products results does not populate cart
products_results.php add to cart button opens cart.php but does not populate cart.php
Any thoughts. Thanking you in advance.
products_results.php add to cart button opens cart.php but does not populate cart.php
Any thoughts. Thanking you in advance.
I can't spot the problem. If you can give me FTP access and a url to reproduce I'll debug it directly.
Thanks, Ray
You had an override of your form action in your submit button code. That caused the page to submit directly to the cart page and the add to cart code never ran. I've corrected that issue and the add to cart is working now.
Thank you for the fix, I am going through the code to see if there is anything I can learn from this.
Found two things.
One, the WA eCart Redirect code was moved down to just above DOCTYPE.
<?php
// WA eCart Redirect
if ($DIYbyPhill->redirStr != "") {
if (function_exists("rel2abs")) $DIYbyPhill->redirStr = rel2abs($DIYbyPhill->redirStr,dirname(__FILE__));
header("Location: ".$DIYbyPhill->redirStr);
die();
}
?>
Two, formaction and formmethod deleted from Add to Cart input name.
<input name="DIYbyPhill_1_ATC" type="submit" class="eC_FormButton" formaction="cart.php" formmethod="POST" value="Add to Cart">
<input name="DIYbyPhill_1_ATC" type="submit" class="eC_FormButton" value="Add to Cart">
I deleted formaction and formmethod without moving the Redirect code and prod_results did not propagate cart.php. When I moved the order of the Redirect code, prod_results worked. So I guess the order in which code is called makes a difference. Something I will never comprehend, thanks for your expertise.
This should be easier to solve, i'm sure I'll feel really stupid when you direct me to the issue but the thumbnail still is not showing in cart.php. I've tried writing <img src="images/thumbs<?php echo $DIYbyPhill->DisplayInfo("ProductThumb"); ?>" alt="Product thumbnail" class="eC_ProductThumb" /> several ways and tried various recordsets. Thanks for your help.
At line 199 of the cart.php page you had:
<img src="images/thumbs<?php echo $DIYbyPhill->DisplayInfo("ProductThumb"); ?>" alt="Product thumbnail" class="eC_ProductThumb" />
But the column in your cart is named "Thumbnail", so it should be:
<img src="images/thumbs/<?php echo $DIYbyPhill->DisplayInfo("Thumbnail"); ?>" alt="Product thumbnail" class="eC_ProductThumb" />
Thank you for your prompt reply as always, new it was going to be a simple answer. I was assuming the column name was from the product table in my database. Just out of curiosity where else is column name designated?
These are the cart columns... you can add and remove and rename columns in the cart object. If you drag/drop from the bindings panel you won't make these mistakes.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.