VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lineit on April 17, 2018, 15:18:46 PM

Title: Microsoft Edge Show Cart Issue
Post by: lineit on April 17, 2018, 15:18:46 PM
Hi,

We've been having major problems with the add to cart issue.  When you add a item to a cart and then click on 'show cart', the cart is empty.  My developer is stumped and unable to resolve it :( 

The website is primepackaging.com.au

Please help regarding this issue. 
Title: Re: Microsoft Edge Show Cart Issue
Post by: jenkinhill on April 17, 2018, 15:53:53 PM
Versions?  http://forum.virtuemart.net/index.php?topic=79800.0
Title: Re: Microsoft Edge Show Cart Issue
Post by: lineit on April 19, 2018, 05:17:53 AM
Sure.

Currently using J3.6.2 and VM3.0.18. 
Title: Re: Microsoft Edge Show Cart Issue
Post by: jenkinhill on April 19, 2018, 11:41:56 AM
Then for site security reasons you are advised to update to current versions, which are Joomla 3.8.7 and VirtueMart 3.2.14  - https://virtuemart-help.co.uk/VM3214/

Any update should be tested on a backup version of the site.

If updating does not fix your issue then the problem may lie with your Joomla template overrides or the JavaScript used by the template, however I could not see any JavaScipt errors with your site. I have tested the current Joomla/VM releases in Edge and have no problems using the default VirtueMart templates  or templates from https://www.olympianthemes.com which use overrides, in all cases VirtueMart worked as expected.
Title: Re: Microsoft Edge Show Cart Issue
Post by: lineit on April 29, 2018, 16:49:20 PM
The problem is there is a lot of modification within Joomla and Virtuemart.  My developer seems like they have given up or unable to work it out.

Do you offer paid services to fix the issue?
Title: Re: Microsoft Edge Show Cart Issue
Post by: jenkinhill on April 29, 2018, 19:22:16 PM
I just tested your site again and it worked just fine for adding products to the cart, tested with Firefox and Chrome. So maybe they have now fixed it?

We would be unable to take this site on privatey at the moment due to other pressures.
Title: Re: Microsoft Edge Show Cart Issue
Post by: lineit on April 30, 2018, 15:31:26 PM
Firefox and Chrome works okay.  Just Microsoft Edge :(

The developer has identify the issue which related to jquery file vmkeepalive.js. In case Microsoft edge browser the vmkeepalive.js -- file is not working even not added into the VM script.

Even though they have identified it, it's still not working.
Title: Re: Microsoft Edge Show Cart Issue
Post by: jenkinhill on April 30, 2018, 17:09:26 PM
Default VirtueMart on the Protostar template works just fine using Edge, no issues with keepalive.js,  so the problem is certainly with your template. I don't have oplder versions of Joomla/VM to check this, but I don't remember anyone reporting a problem in this forum with Edge.
Title: Re: Microsoft Edge Show Cart Issue
Post by: Jumbo! on April 30, 2018, 18:10:15 PM
I got an easy fix for you. Check "Enable SSL for Sensitive Areas" option in VirtueMart Configuration.

That's it.
Title: Re: Microsoft Edge Show Cart Issue
Post by: jenkinhill on April 30, 2018, 18:49:59 PM
@Jumbo! the site already runs in https so can you explain why enableing cart SSL makes a difference? I have checked a couple of my my sites running in SSL and all work OK without that setting. Is this a template thing?
Title: Re: Microsoft Edge Show Cart Issue
Post by: Jumbo! on April 30, 2018, 20:29:26 PM
No, it is not a template issue. Yes, I know the full site is over https. But check the cart page link in Ajax Add to Cart pop-up. It is still using http. Therefore a redirection occurs initially when you try to visit the cart page after adding a product to the cart. This may clear the https session in some browsers. If you enable SSL in VM Config then the issue gets resolved.
Title: Re: Microsoft Edge Show Cart Issue
Post by: jenkinhill on April 30, 2018, 23:33:38 PM
Thanks for the explanation Abhishek, that makes sense. Our normal policy is to force all URLs to use https by .htaccess so that maybe why I have never seen this.
Title: Re: Microsoft Edge Show Cart Issue
Post by: lineit on May 02, 2018, 16:54:58 PM
Thank you so much Jumbo.  Can't believe its that simple. 

You're from VirtuePlanet.  We use your really good VP one page checkout plugin.    :)

Thanks for the input from everyone. 

Title: Re: Microsoft Edge Show Cart Issue
Post by: Jumbo! on May 04, 2018, 19:50:45 PM
You are welcome.

I am glad that you use our one page checkout plugin. :)