Update VirtueMart 3.0.12 to 3.0.14 - add to cart POPUP Facebox not work

Started by Tonimito, March 15, 2016, 12:02:18 PM

Previous topic - Next topic

Doomas

Quote
I found the problem is the "Show cart" link in the "Add to Cart" Pop-up. My customers site runs on https, but the "Show cart" link in the Pop-up points to http://....

Never mind....I found the Problem.
"Enable SSL for sensitive areas (recommended)" in the VM configuration was not enabled.

BUT, in my view it's a very strange behaviour. If your whole site is running over SSL( Forced by the Joomla configuration). The above VM config option should not be allowed to override it back to http, if it is not enabled.

@Thomas Kuschel
Thanks! I did not test your code yet, but it lead my to the correct solution of my problem.

Thomas Kuschel

The problem is that code at components/com_virtuemart/helpers/vmview.php, possibly it appears more than once in VM:
$scheme = 'http';
if(VmConfig::get('useSSL',false)){
$scheme .='s';
}

A solution: http://forum.virtuemart.net/index.php?topic=133941.0   - With JRoute, it does not change back to http if you're on https. It's better using Joomla core functions then the obove code which implies to have set useSSL=1.

Milbo

Thank you for pointing that out. I agree a common function would be better.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/