VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: aarondowling on September 08, 2015, 08:36:45 AM

Title: Wheel spins when add to cart -Nothing happens after
Post by: aarondowling on September 08, 2015, 08:36:45 AM
This is a message I get from clients from time to time

Hi. I've tried both friefox and chrome and I've been unable to make a purchase on your website. When I click add to cart all that appears is a small spinning wheel icon and doesn't go beyond this. It isn't an issue on my end as I've just re formatted this laptop so seems to be the website.

Its not a browser issue I'd imagine as my customers who complain about it tell me they try various browsers.

I am still getting orders from some clients but just not all of them.  It's hard to figure out the issue when it works for some and not for others.

Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: jenkinhill on September 08, 2015, 12:12:42 PM
http://forum.virtuemart.net/index.php?topic=79799.0  - especially URL
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: aarondowling on September 08, 2015, 15:35:23 PM
Sorry about that.

Joomla 3.4.3 and virtuemart version is 3.0.9

The website is www.paperbear.ie

Most of the complaints come when people try to add to cart and it freezes. They can't even see cart.

We are receiving orders though too but must be a browser issue although so many complaints. Customers have also tried multiple browsers and computers but with no luck.
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: GJC Web Design on September 08, 2015, 16:12:42 PM
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://paperbear.ie/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

in simple terms your not forcing either https://paperbear.ie or https://www.paperbear.ie

add to cart works with https://paperbear.ie  - not with https://www.paperbear.ie because it is trying to load resources from https://paperbear.ie and thats not allowed with https -- the domain must be identical

simplest way is to just right a htaccess that forces either with or without www
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: aarondowling on September 08, 2015, 17:24:06 PM
Thanks so much for the explanation. I will take a look at this immediately. Would this explain why it works for some users and not some other users?
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: jenkinhill on September 08, 2015, 18:16:59 PM
Yes, just depends on whether they add www. or not.
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: aarondowling on September 08, 2015, 19:08:12 PM
Great so we've changed that now so if you type in either it will go to https://paperbear.ie

Hopefully that will fix the issue. Thanks guys for your help :)
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: GJC Web Design on September 08, 2015, 21:15:59 PM
seems fine now
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: aarondowling on September 08, 2015, 22:02:02 PM
Thanks GJC Web Design
Title: Re: Wheel spins when add to cart -Nothing happens after
Post by: aarondowling on September 09, 2015, 15:50:19 PM
A customer just told me that they have pressed confirm purchase but the same problem was having where it just kept loading with the wheel spinning.  We have received some orders today so it does work. Is there something we are not doing right?