close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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

Thread began 9/29/2014 3:23 pm by danielsebas | Last modified 10/02/2014 5:46 pm by danielsebas | 1274 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.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

danielsebas

Hi Jason, My site is not online yet. may I send you the files as attachments?

Sign in to reply to this post

Jason ByrnesWebAssist

looking at the code does not explain why it is causing problems, i will need you to upload the pages to the server so I can see the problem to troubleshoot the cause.

Sign in to reply to this post

danielsebas

I solved the problem, I manually add a button and then I used the Add to Cart from the server behaviors panel and it worked. Before I was using the Add to Cart button from the webassist menu at the menu bar.

Sign in to reply to this post

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