Code
Sometimes they put "XXL (30 - 34)" So can the code say when it "includes" the text "XXL" instead of = ?
here is the code to the add to card, it doesn't work this way.
// WA eCart AddToCart
if (isset($_POST["wearyourin_1_ATC"]) || isset($_POST["wearyourin_1_ATC_x"])) {
$ATC_itemID = $_POST["wearyourin_1_ID_Add"];
$ATC_AddIfIn = 0;
$ATC_RedirectAfter = "cart.php";
$ATC_RedirectIfIn = "";
if (isset($totalRows_pdetail) && $totalRows_pdetail > 0) {
$row_pdetail = WAEC_findRecordMySQL($pdetail, "id", $ATC_itemID);
if ($row_pdetail) {
$ATC_itemName = "".$row_pdetail['title'] ."";// column binding
$ATC_itemDescription = "".$row_pdetail['shortd'] ."";// column binding
$ATC_itemWeight = floatval("".$row_pdetail['weight'] ."");// column binding
$ATC_itemQuantity = "".$_POST["wearyourin_1_Quantity_Add"] ."";// column binding
$ATC_itemPrice = floatval("".$row_pdetail['retail_price'] ."");// column binding
if(isset($_POST['wearyourin_1_Size_Add']) && $_POST['wearyourin_1_Size_Add'] == 'XXL') $ATC_itemPrice += floatval("1.50");
$ATC_itemPicture = "".$row_pdetail['image_thumb'] ."";// column binding
$ATC_itemColor = "".$row_pdetail['colors'] ."";// column binding
$ATC_itemSize = "".$_POST["wearyourin_1_Size_Add"] ."";// column binding
$ATC_itemwholesaleprice = "".$row_pdetail['wholesale_price'] ."";// column binding
$ATC_itemstocknumber = "".$row_pdetail['stock_number'] ."";// column binding
mysql_data_seek($pdetail, 0);
$row_pdetail = mysql_fetch_assoc($pdetail);
}
}
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$wearyourin->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice, $ATC_itemPicture, $ATC_itemColor, $ATC_itemSize, $ATC_itemwholesaleprice, $ATC_itemstocknumber);
if ($ATC_RedirectAfter != "" && $wearyourin->redirStr == "") {
$wearyourin->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'];
}
}
}
?>