VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jazz_mavericks on March 24, 2017, 01:28:05 AM

Title: Add to cart is hanging
Post by: jazz_mavericks on March 24, 2017, 01:28:05 AM
Newbie here, apologies if I come across as stupid, or if I have missed an answer previously given....

My site has suddenly started hanging as soon as you try to add an item to the cart. It worked fine until a week ago or so, and now it it just doesn't work.

My site is www.comicsandtoys.co.uk....

Can anyone help please?

Thanks in advance.
Title: Re: Add to cart is hanging
Post by: jenkinhill on March 24, 2017, 13:14:47 PM
Versions?  http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Add to cart is hanging
Post by: GJC Web Design on March 26, 2017, 23:18:47 PM
XMLHttpRequest cannot load http://comicsandtoys.co.uk/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=en&Itemid=256. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.comicsandtoys.co.uk' is therefore not allowed access.

in other words u need to force www on your site

normally done in the .htaccess with something like

RewriteCond %{HTTP_HOST} ^(comicsandtoys\.co\.uk)(:80)? [NC]
RewriteRule ^(.*) http://www.comicsandtoys.co.uk/$1 [R=301,L]
order deny,allow