Print

VirtueMart Show Cart Links not going to SSL

Recently updated a site to VirtueMart 3.0.18.  Had SSL for sensitive areas turned on in the VirtueMart configuration, however, the show cart links in both the VirtueMart Cart Module and the Ajax popup did not point to SSL.

Visited /components/com_virtuemart/helpers/cart.php

At the bottom of the file under the function prepareAjaxData find:

$data->cart_show

The JRoute function called here is missing the 3rd variable $xhtml.

So after adding it will look like this:

  1. $data->cart_show = '<a style ="float:right;" href="'.JRoute::_("index.php?option=com_virtuemart&view=cart".$taskRoute,$this->useXHTML,$this->useSSL).'" rel="nofollow" >'.$linkName.'</a>';
$data->cart_show = '<a style ="float:right;" href="'.JRoute::_("index.php?option=com_virtuemart&view=cart".$taskRoute,$this->useXHTML,$this->useSSL).'" rel="nofollow" >'.$linkName.'</a>';



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

VirtueMart Admin Menu Not Showing After Update

After running a Joomla and VirtueMart update in place the admin menu dissappears, and this is a...

Hide the Shopper Information Fields in VirtueMart

Open the file: components/com_virtuemart/views/user/tmpl/edit_shopper.phpor corresponding...

Adding Shopper Group Based Discount in VirtueMart 2

Calculation rules can be added using the instructional located here:...

Setting Payment Module Order

This can be done via the Joomla plugins section on the admin side.  Adjust the order there.

Setting product order in VirtueMart 2

Basics of product ordering in VirtueMart can be found here:...