ecart5 thumbnails to display
I've read the tutorials and most of the questions here in the forum, but I still cant seem to get my images (thumbnails) to display in the cart. I thought I had the proper binding.
Here is the code for the image:
class="eC_GroupColumn"><a href="images_Detail.php?<?php echo $jfincart->DisplayInfo("ID"); ?>=<?php echo $jfincart->DisplayInfo("Thumbnail"); ?>"><img src="images/<?php echo $row_WADAimages["image_file"]; ?>" alt="<?php echo $row_WADAimages["caption"]; ?>" class="eC_ProductThumb" /></a>
This is the code for the bindings:
if (!$jfincart->IsEmpty()){
$cart = $jfincart;
$jfincart->DisplayInfo("ID");
$jfincart->DisplayInfo("Thumbnail");
$ATC_itemID = "".($row_WADAimages["image_id"]) ."";
$ATC_AddIfIn = 2;
$ATC_RedirectAfter = "";
$ATC_RedirectIfIn = "";
$ATC_itemName = "".($row_WADAimages["caption"]) ."";// column binding
$ATC_itemDescription = "".($row_WADAimages["description"]) ."";// column binding
$ATC_itemThumbnail = "".($row_WADAimages["image_file"]) ."|";// column binding
$ATC_itemWeight = floatval("0");// column binding
$ATC_itemQuantity = floatval("".$_POST["jfincart_1_Quantity_Add"] ."");// column binding
$ATC_itemPrice = floatval("0");// column binding
$ATC_itemQuantity = floatval($ATC_itemQuantity);
if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0) {
$cart->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);
if ($ATC_RedirectAfter != "" && $cart->redirStr == "") {
$cart->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'];
}
}
}
Can anyone direct me to solving this?
Thank you.
Gary