close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Conflict with Add to cart Button action="" and Template page

Thread began 9/29/2014 6:23 pm by danielsebas | Last modified 10/02/2014 8:46 pm by danielsebas | 501 views | 4 replies

danielsebas

Conflict with Add to cart Button action="" and Template page

Hi, my product_detail page works fine until I add the Add to Cart Button and all the design stops working. If I erase the action from the form the page I can see the page design again. The form is added by the Add to Cart behavior:

<form name="eCart2_1_ATC_<?php echo $row_productos["ProductID"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentites($_SERVER["QUERY_STRING"]):""; ?>">
<input type="hidden" name="eCart2_1_ID_Add" value="<?php echo $row_productos["ProductID"]; ?>" >
<input type="hidden" name="eCart2_1_Quantity_Add" value="1" >
<input type="submit" class="button" value="Add to Cart" name="eCart2_1_ATC">
</form>

My recordset is like has this: WHERE ProductID = colname and colname is equal to $_GET['ProductID'] if I change my recordset like this WHERE ProductID = 1 or any other number, the Cart button works fine but my page is dynamic and I sell several products so I cannot put a single number in the recordset. I need to get the product ID from somewhere.

Thank you in advance for your help.

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