News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

some clients can not add product to cart.

Started by carsten888, August 14, 2017, 14:00:44 PM

Previous topic - Next topic

carsten888

Every few weeks I get emails from clients who can not click the 'add to cart button'.

I never managed to reproduce the issue. But it keeps coming back.

What could possibly be going wrong here?

VM 3.2.2
J 3.7.4

jenkinhill

What do you mean by "can not click the 'add to cart button'" ? Is it unresponsive or can't they find it?

Have they selected required custom firlds? Template issue? JavaScript issue?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

carsten888

the button is unresponsive. This is what one of the clients answered.
Quote
the Add to Cart button does nothing
I've tried in Chrome/firefox and Safari and does nothing when clicked
I would really like to purchase your product straight away so any help would be appreciated.
I don't think there are required fields to add a product to the cart. No template overrides. Maybe javascript issue, but that we should be able to reproduce. I can't reproduce.

carsten888

AHA!!!
SOLVED!!!

This happens when you go to the site without www in the url.
http://domain.com does this issue
http://www.domain.com no problem.

How to make it so the site always uses www in the url?

Milbo

It is the opposite way. Somewhere you set in a config the www, so it works only correct with www, you should just remove it. Maybe in the joomla config, or at your provider
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

carsten888

I took the www out in the main Joomla config at

public $live_site = 'https://domain.com';

that fixed this issue for non-www use, but breaks it for when using www.

any other ideas?

jenkinhill

Use .htaccess to force removal of www. from urls.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jjk

#7
Do you have a redirect in your .htaccess file similar to this?
RewriteEngine On
RewriteCond %{HTTP_HOST}  ^www.domain.com [NC]
RewriteRule ^(.*) http://domain.com/$1 [L,R=301]


Also, in case you use the 'Force SSL' setting in Joomla, is your SSL certificate configured for both www and non-www?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

carsten888

I got it fixed with this
# Force the "www."
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]


thank you all