Virtuemart

Bug fix for Terms of Service in Checkout of Virtuemart

Posted by on Jun 11, 2014 in Virtuemart

The Terms of Service on the cart is not being validated before the user goes to the checkout. (Virtuemart 2.0.20b, Joomla 2.5.9)

The fix is to add the following views/cart/tmpl/default.php (after line 61)

$document->addScriptDeclaration (”
jQuery(document).ready(function($) {
$(‘a.vm-button-correct’).click(function(event)
{
if( $(‘input#tosAccepted’).is(‘:checked’) )
{
document.checkoutForm.submit();
}
else
{
$(‘a.terms-of-service’).css(‘background-color’, ‘red’);
}
});
});
“);

Learn More
How to apply discount to a single product in Virtuemart Joomla? Comments Off

How to apply discount to a single product in Virtuemart Joomla?

Posted by on Jun 11, 2014 in Virtuemart

There are two ways:

1. variant:

create a product category: discount 20%

unpublish this category

go to your calculation rule settings -> choose this product category

go to your product and choose your calculation rule as discount

2. variant:

go to your product

product pricing -> add your discounted price in override field -> choose overwrite final or overwrite price to be taxed

Learn More