Hi Richard,
The solution is easy, you can apply this patch by yourself.
Open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/cart/default.php
Find these lines (around the bottom of this PHP file):
<div class="terms-of-service">
<span class="terms-of-service" rel="facebox"><span class="vmicon vm2-termsofservice-icon"></span><?php echo JText::_('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED'); ?><span class="vm2-modallink"></span></span>
<div id="full-tos">
<h2><?php echo JText::_('COM_VIRTUEMART_CART_TOS'); ?></h2>
<?php echo $this->cart->vendor->vendor_terms_of_service;?>
</div>
</div>
and replace them with this:
<div class="terms-of-service">
<a href="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=vendor&layout=tos&virtuemart_vendor_id=1&tmpl=component') ?>" class="terms-of-service" id="terms-of-service" rel="facebox" rev="iframe|550|900">
<span class="vmicon vm2-termsofservice-icon"></span>
<?php echo JText::_ ('COM_VIRTUEMART_CART_TOS_READ_AND_ACCEPTED'); ?>
</a>
</div>
Then it will be working alright.
You can alternatively remove the
rev="iframe|550|900" attribute from the above lines and have the TOS page opens through AJAX (instead of iframe)
Regards,
Forum Support.