Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / added a form for reviews to product page, now it's adding to cart instead

added a form for reviews to product page, now it's adding to cart instead

Started by rbarbour on 5 May 2011, 5:34 AM · Views: 525

Results 1 to 3 of 3
5 May 2011, 5:34 AM
#1
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #1 by rbarbour

Not sure if this is where to post but here goes.

I inserted the reviews, reviews write pages into the products page everything shows fine.

The problem is when the review is submitted, it doesn't submit, it adds 1 of that product to shopping cart.

Any Ideas?

5 May 2011, 6:07 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

You've probably nested multiple separate forms inside one <form></form> section, and thus your "submit" button is actually triggering the real <form> it's referring to. You can't nest <form> inside another <form>.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 May 2011, 7:19 AM
#3
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Post #3 by rbarbour

Not my most idiotic question or answer :lookaroun

Yes, I forgot about the

<!--bof Form close--> </form> <!--bof Form close-->

at the very bottom of the product_info page, all works now!

Thanks