Hi there,
On this website there are two domains: https://www.daylightlamps.ie (https://www.daylightlamps.ie) and https://www.truelightdaglichtlampen.nl (https://www.truelightdaglichtlampen.nl).
There are no add to cart problems on the Dutch site but on daylightlamps.ie the add to cart button is not working. The pop-up doesn't appear.
I think this problem started with VirtueMart 3.4.2.
Also tested in beez3 and the problem remains.
Joomla and Virtuemart latest version, PHP 7.2
Regards,
Dorine
You have this error on add to cart:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.truelightdaglichtlampen.nl/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=en&Itemid=584. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Yes -- your posting your .ie add to cart to
https://www.truelightdaglichtlampen.nl/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=en&Itemid=831
how did u manage this?
see your .ie source
var vmSiteurl = 'https://www.truelightdaglichtlampen.nl/' ;
Thank you!
I enabled CORS and the problem is solved.
Regards, Dorine
so u really want to add to cart in the .nl site from the .ie site???
No I found something in the Joomla configuration file that was the cause of this problem, $live_site was filled. I don't do that usually.....
interesting -- so var vmSiteurl takes its value from the Jconfig if live_site set?