close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

eCart 5

Thread began 3/07/2012 5:20 pm by rob294118 | Last modified 3/12/2012 12:57 pm by rob294118 | 2531 views | 43 replies

Jason ByrnesWebAssist

No Rob, it is the same issue, just on a new page, the detail page

on the detail page, this is the code for the add to cart button:

// WA eCart AddToCart
if (isset($_POST["eCart1_1_ATC"]) || isset($_POST["eCart1_1_ATC_x"]))     {
$ATC_itemID $_POST["eCart1_1_ID_Add"];
$ATC_AddIfIn 0;
$ATC_RedirectAfter "cart.php";
$ATC_RedirectIfIn  "";
  if (isset(
$totalRows_rs_products) && $totalRows_rs_products 0)     {
$row_rs_products WAEC_findRecordMySQL($rs_products"ProductID"$ATC_itemID);
    if (
$row_rs_products)     {
$ATC_itemName "".$eCart1->DisplayInfo("Name")  ."";// column binding
$ATC_itemDescription "".$eCart1->DisplayInfo("Description")  ."";// column binding
$ATC_itemThumbnail "".$eCart1->DisplayInfo("Thumbnail")  ."";// column binding
$ATC_itemWeight floatval("".$eCart1->DisplayInfo("TotalWeight")  ."");// column binding
$ATC_itemQuantity "".$_POST["eCart1_1_Quantity_Add"]  ."";// column binding
$ATC_itemPrice floatval("".$eCart1->DisplayInfo("Price")  ."");// column binding
$ATC_itemColor "".$_POST["eCart1_1_Color_Add"]  ."";// column binding
$ATC_itemSize "".$_POST["eCart1_1_Size_Add"]  ."";// column binding
$row_rs_products mysql_fetch_assoc($rs_products);
$ATC_itemQuantity floatval($ATC_itemQuantity);
  if (
is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0)     {
    if (
$ATC_RedirectAfter != "" && $eCart1->redirStr == "")     {
$eCart1->redirStr $ATC_RedirectAfter;
    if (isset(
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
    else  {
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];

the name:

$ATC_itemName = "".$eCart1->DisplayInfo("Name")  ."";// column binding


$ATC_itemDescription = "".$eCart1->DisplayInfo("Description")  ."";// column binding


$ATC_itemThumbnail = "".$eCart1->DisplayInfo("Thumbnail")  ."";// column binding


$ATC_itemWeight = floatval("".$eCart1->DisplayInfo("TotalWeight")  ."");// column binding

and price

$ATC_itemPrice = floatval("".$eCart1->DisplayInfo("Price")  ."");// column binding

are all bound to get their information from the cart object, this is not correct and is the cause of the problem.

you need to rebind them to get the information from the recordset instead.

doing that will fix the problem.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...