close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

add cart product results checkbox

Thread began 5/27/2015 4:49 pm by John | Last modified 5/29/2015 3:53 pm by John | 936 views | 6 replies

John

So far I found one instance I was able to replicate this problem starting with a clear cart.
1. go to temporary home page at http://citychemical.applinex.com/index.html
2. type in "winter" under "Search Here for The Chemicals You Need" then click the "GO" button
3. check the 3rd and 4th items indicated as "M1534-500ML, Methyl Salicylate" and "O114-100GM, Birch Oil"
4. click the "Add to Cart" button
5. on shopping cart page, I'm only seeing the 3rd item which is for "Methyl Salicylate" but not for "Birch Oil"

However when I click on the product detail for "Birch Oil" and click the "Add to cart" button from there then it will show up in the shopping cart page.

I'm curious as to how to debug this since I'm using Dreamweaver CS6 and while my skills in php are rather basic, I have debugging experience with visual studio and c# at least.

update: when I clear cart and select the 4th item alone, it works, but not when I select the 3rd and 4th item for this example. There are other examples where it does work when I have multiple checkmark selections though.

Here is a snippet from my products_results.php page that I'm trying to look further into:

<?php
// WA eCart Get Info From RS
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($totalRows_rsATC) && $totalRows_rsATC > 0) {
$Redirect_redirStr="cart.php";
do {
$eCart1_itemID = floatval("".$row_rsATC['ProductID'] ."");
$eCart1_itemName = "".$row_rsATC['Chem1'] ."";
$eCart1_itemDescription = "".$row_rsATC['CAS'] ."";
$eCart1_itemThumbnail = "".$row_rsATC['ProductID'] ."";
$eCart1_itemWeight = floatval("".$row_rsATC['Quantity'] ."");
$eCart1_itemQuantity = floatval("1");
$eCart1_itemPrice = floatval("".$row_rsATC['Price'] ."");

$eCart1->AddToCart(1, "", $eCart1_itemID, $eCart1_itemName, $eCart1_itemDescription, $eCart1_itemThumbnail, $eCart1_itemWeight, $eCart1_itemQuantity, $eCart1_itemPrice);
} while ($row_rsATC = mysql_fetch_assoc($rsATC));
if ($Redirect_redirStr != "") {
$eCart1->redirStr = $Redirect_redirStr;
}
mysql_data_seek($rsATC, 0);
$row_rsATC = mysql_fetch_assoc($rsATC);
}
?>

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

Content

rating

Layout

rating

Ease of use

rating

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...