Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Tutorial: Modification for VM Custom, Stockable

Tutorial: Modification for VM Custom, Stockable 7 years 6 months ago #9802

For those who are willing to use VM Custom, Stockable Variants, then you should do this small modification.
(otherwise you won't see awesome add to cart button of PureMart)

Open this PHP file:
/plugins/vmcustom/stockable/stockable.php

Look for this line (around 403rd line):
$(".addtocart-bar").append(\'<span class="quantity-box"><input type="text" class="quantity-input js-recalculate" name="quantity[]" value="\' + quantity + \'" /></span><span class="quantity-controls js-recalculate"><input type="button" class="quantity-controls quantity-plus" /><input type="button" class="quantity-controls quantity-minus" /></span><span class="addtocart-button"><input type="submit" name="addtocart" class="addtocart-button" value="'.JText::_('COM_VIRTUEMART_CART_ADD_TO').'" title="'.JText::_('COM_VIRTUEMART_CART_ADD_TO').'" /></span><div class="clear"></div>\');

and replace it with this:
$(".addtocart-bar").append(\'<span class="quantity-box"><input type="text" class="quantity-input js-recalculate" name="quantity[]" value="\' + quantity + \'" /></span><span class="quantity-controls js-recalculate"><input type="button" class="quantity-controls quantity-plus" /><input type="button" class="quantity-controls quantity-minus" /></span><span class="FlexibleCSS3Button"><input type="submit" name="addtocart" value="'.JText::_('COM_VIRTUEMART_CART_ADD_TO').'" title="Add to Cart" class="addtocart-button FlexibleCSS3Button-text"><span class="FlexibleCSS3Button-slide-text"><span class="FlexibleProductDetailsInStock">'.JText::_('COM_VIRTUEMART_PRODUCT_IN_STOCK').'</span></span><span class="FlexibleCSS3Button-icon-right"><span></span></span></span><div class="clear"></div>\');

And you will be good to go.
You would need to do this coding modification each time you update your Virtuemart.

Regards,
Support & Development
The administrator has disabled public write access.
Time to create page: 0.119 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo