Developer forum

Forum » Development » Add to cart

Reply

Hi!

I have a problem with adding items to the cart. I have a list of products, each with a submit button. Each product have its own form-tag. But when I add several products on the same page, only the product of the first click is added to the cart.

Can be this an error in the page or in the session object on the server?

How do you do to make a page with several "Add to cart"-buttons, one for each product?

Is there a need for a specifc form-action? My forms have no action at all.

Can you have more than one form tag in a DW-page? (I know that when you program ordinary aspx-pages you can't.

Best regards.
Per


Replies

 
Reply
Hi,

You'll need one form containing all products. Check this out: http://engage.dynamicweb-cms.com/Adding-multiple-products-to-the-shopping-cart-195.aspx

BR.
Lars
 
Reply
But you ain't supposed to add several products with a single click, I'm talkning about a form with multiple "add"-buttons where each button adds one and only one product so you have to click once for every product you want to add.

But I solved it. I have several forms in the page, but when I clicked "add" I posted the form for the first product regardless of which product you clicked on. Fixed this so now it works.

Best regards,



PS. Saw now that my first question was a little unclear. Hope you understand now.
 
Reply
 Ah, sorry. Completely misunderstood that one:)

 

You must be logged in to post in the forum