VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: SoTrue on March 23, 2017, 13:40:26 PM

Title: AJAX Cart pop - Not loading over https
Post by: SoTrue on March 23, 2017, 13:40:26 PM
Hi All,

I'm working on a site using Joomla 3.6.5 with VM 3.20. The client has a shared SSL through Cloudflare which has been a complete pain to get working, and I still haven't resolve all  the issues...anyway...

When enabling the AJAX add to cart pop up (after clicking add to cart on the product details page) the popup is not loading, just the loading animation appears. In the console the following error is being logged:

Mixed Content: The page at 'https://www.website.com/shop/outerwear/pretty-tomboy-athletics-hoodie' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.website.com/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=en'. This request has been blocked; the content must be served over HTTPS.

Can anyone point me in the correct direction for getting the pop to work through https? The HTTPS option is enabled in VM, as it is on the site.

Thank you in advance.
D
Title: Re: AJAX Cart pop - Not loading over https
Post by: jenkinhill on March 23, 2017, 15:47:14 PM
I have no issues with SSL and VM3.2 using default VM templates and Protostar/Beez templates. Are you using template overrides?