Page 1 of 1

[SOLVED] - Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 1:41 am
by drjawn1962
Not sure when it started, but the add to cart, add to wish list and add to compare buttons stopped working in the following locations:

Featured
Latest
Best Seller

Will work on some products pages, but not others.

In a few cases the buttons work on the first page of a product, but on the second one.

I've checked the config files, templates, disabled extensions/mods, checked for oddities in some of the affected
category and product entries. Same thing using Chrome, Safari, Opera, Avast Secure browser,
Explorer, Brave, Firefox and a couple of other browsers.

I'm losing my mind trying to figure this out. Can anyone here provide some insight?

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 2:25 am
by straightlight
Please provide your OC version and URL.

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 2:28 am
by drjawn1962

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 2:54 am
by straightlight
Ensure all layouts are properly configured from your OC admin > extensions > modules page for each extension modules you are using.

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 3:08 am
by drjawn1962
I had all the mods disabled and removed extensions that were just an xml file. Nothing changed.

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 3:23 am
by ADD Creative
Look in your web browser's development console. You will probably see a CORS policy error. This is because you categories start with www. and your other pages do not. Likely caused by a bad theme or modification.

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 3:30 am
by drjawn1962
I'll try that, thanks.

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 3:34 am
by drjawn1962
You're onto something, at least 20 CORS Policy errors. Now to fix them.......

Re: Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 3:49 am
by drjawn1962
That was it my friend!! When I made the new navbar and a grid with the image links, out of habit I included www. Removed those and all is well.
Thanks so much for your help!!

Re: [SOLVED] - Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 7:55 am
by drjawn1962
Ooops, only partially solved.

Still not working under,features, bestseller and latest.

Re: [SOLVED] - Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 6:06 pm
by ADD Creative
You need to decide if you want to use www.domain or just domain, set that in all your configs and redirect from one to the other in your htaccess.

Re: [SOLVED] - Add to cart, wishlist, compare buttons stopped working

Posted: Mon May 18, 2020 8:16 pm
by drjawn1962
I actually looked at some products that a storefront employee had entered, found options with no values assigned, things working properly again, but
www is my choice, I will have to check the htaccess file for shites and giggles. Thanks.