1) The checkboxes for the small sandwich platter are named:
Sandwiches[]2
that needs to be changed to:
Sandwiches2[]
2) the add to cart code for the small platter is at lines 345 - 380:
<?php
// WA eCart AddToCart
if (isset($_POST["cupcake1_13_ATC"]) || isset($_POST["cupcake1_13_ATC_x"])) {
$ATC_itemID = $_POST["cupcake1_13_ID_Add"];
$ATC_AddIfIn = 0;
$ATC_RedirectAfter = "order_display.php";
$ATC_RedirectIfIn = "";
if (isset($totalRows_rsCaterLunch) && $totalRows_rsCaterLunch > 0) {
$row_rsCaterLunch = WAEC_findRecordMySQL($rsCaterLunch, "PRODUCTID", $ATC_itemID);
if ($row_rsCaterLunch) {
$ATC_itemName = "Small Sandwich Platter";// column binding
$ATC_itemDescription = "";// column binding
$ATC_itemWeight = floatval("0");// column binding
$ATC_itemQuantity = "".$_POST["cupcake1_13_Quantity_Add"] ."";// column binding
$ATC_itemPrice = floatval("34.95");// column binding
$ATC_itemPlatterOptions = "";// column binding
$ATC_itemTaxable = "1";// column binding
mysql_data_seek($rsCaterLunch, 0);
$row_rsCaterLunch = mysql_fetch_assoc($rsCaterLunch);
}
}
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$cupcake1->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice, $ATC_itemPlatterOptions, $ATC_itemTaxable);
if ($ATC_RedirectAfter != "" && $cupcake1->redirStr == "") {
$cupcake1->redirStr = $ATC_RedirectAfter;
}
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
}
else {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];
}
}
}
?>
line 360 sets the options:
$ATC_itemPlatterOptions = "";// column binding
change that to:
$ATC_itemPlatterOptions = "".((isset($_POST["Sandwiches2"]))?implode(", ",$_POST["Sandwiches2"]):"") ."";// column binding