VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: hendrikdebeer on August 27, 2019, 12:37:40 PM

Title: Add to cart not working on some products
Post by: hendrikdebeer on August 27, 2019, 12:37:40 PM
Good day

My client just informed me that some products does not add to cart

It seems to be a category setting, but when I do a compare - all settings look the same.

Add to cart (in my case -add to enquiry) not working
https://tentco.co.za/index.php/quick-links/products/tents/shower-tents-cubicles/shower-dome-tent-detail

Add to cart (in my case -add to enquiry) - working
https://www.tentco.co.za/index.php/quick-links/products/tents/bow-tents1/explorer-safari-bow-detail

Please advise what else I can check

Title: Re: Add to cart not working on some products
Post by: Jörgen on August 27, 2019, 13:02:57 PM
I guess this is a template issue. You have JS errors. Talk to template developer.

Here is a longshot, try adding a second image.

Jörgen @Kreativ Fotografi
Title: Re: Add to cart not working on some products
Post by: GJC Web Design on August 27, 2019, 16:47:12 PM
hmm ... fails also on protostar

https://tentco.co.za/index.php/quick-links/products/tents/shower-tents-cubicles/shower-dome-tent-detail?template=protostar

https://www.tentco.co.za/index.php/quick-links/products/tents/bow-tents1/explorer-safari-bow-detail?template=protostar

ah .. you aren't forcing the www

one has www, the other doesn't -- force it in your .htaccess

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


https://www.tentco.co.za/index.php/quick-links/products/tents/shower-tents-cubicles/shower-dome-tent-detail

works but still has errors and non ssl content


Title: Re: Add to cart not working on some products
Post by: hendrikdebeer on September 02, 2019, 17:02:10 PM
Thanks GJC (aka SUPER HERO).

It was a force HTTP Issue. I have removed all reference on the configuration file, rewrite the htaccess file, and now it seems to work.

http://www.tentco.co.za/index.php/quick-links/products/tents/shower-tents-cubicles/shower-dome-tent-detail

http://www.tentco.co.za/index.php/quick-links/products/tents/bow-tents1/explorer-safari-bow-detail

Can you please test again and see if it is working on your side as well?
Title: Re: Add to cart not working on some products
Post by: GJC Web Design on September 02, 2019, 18:51:53 PM
:)

works fine now..