Forums / General Questions / After moving reviews, write review now adds to cart

After moving reviews, write review now adds to cart

Started by cath on 22 Nov 2024, 11:29 PM · Views: 407

Results 1 to 3 of 3
22 Nov 2024, 11:29 PM
#1
cath avatar

cath

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

After moving reviews, write review now adds to cart

Good morning.

I'm using ZC v2.0.1 with the Fluorspar template (there's no version number, but it was updated 7 August 2024).

I'm not using any plugins.

PHP 8.2.11

I wanted to see the reviews on the product page so followed the excellent instructions I found at https://www.zen-cart.com/showthread.php?139955-Product-Review-on-Product-Pages

That worked perfectly.

However, the Write Review button (on a product which already has a review) now adds the product to the shopping cart (and takes me to the shopping cart). If the product has no reviews, the Write Review button works as expected.

If I inspect the Write Review button and follow the link, if I'm logged on as a user it takes me to the correct page (the write review page). If I'm not logged on it takes me to the logon page and then to the write review page.

Why would clicking the button behave differently from following the link in the inspector? And how do I fix it?

You can check this behaviour at https://zencart4.webdesign.place/index.php?main_page=product_info&cPath=8000&products_id=8005

If you want to log in as a customer, use [email protected], password test2024.

Thanks (very hopefully!) in advance.

23 Nov 2024, 2:53 AM
#2
cath avatar

cath

New Zenner

Join Date:
Jun 2006
Posts:
21
Plugin Contributions:
0

Re: After moving reviews, write review now adds to cart

I can't find out how to delete that post.

I just spent a couple of hours fiddling with other things - moving things around on the product page, changing the date format - and weirdly the Write Review button now works correctly.

I wish I could tell you how it was fixed - but I can't.

23 Nov 2024, 11:35 AM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,326
Plugin Contributions:
41

Re: After moving reviews, write review now adds to cart

Most likely when you moved it you inserted it inside of the add to cart function code & since it's a button... walllaaa =)

No worries