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

TOPIC: After VM Update: Custom Field, Stockable Variant

After VM Update: Custom Field, Stockable Variant 9 years 10 months ago #9620

UPDATED on August 2nd (tested and confirmed!)

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)

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(\'<div class="FlexibleCSS3Button"></div>\');
$(".FlexibleCSS3Button").append(\'<span class="FlexibleCSS3ButtonInner"></span><span class="FlexibleCSS3ButtonQuantity"></span>\');
$(".FlexibleCSS3ButtonInner").append(\'<input type="submit" name="addtocart" value="'.JText::_('COM_VIRTUEMART_CART_ADD_TO').'" title="'.JText::_('COM_VIRTUEMART_CART_ADD_TO').'" class="addtocart-button FlexibleCSS3Button-text"><span class="FlexibleCSS3Button-symbol"></span><span class="FlexibleCSS3Button-slide-icon"></span>\');
$(".FlexibleCSS3ButtonQuantity").append(\'<span class="quantity-controls js-recalculate FlexibleMinus"><input type="button" class="quantity-controls quantity-minus"></span><span class="quantity-box FlexibleInput"><input type="text" value="\' + quantity + \'" onblur="check(this);" name="quantity[]" class="quantity-input js-recalculate"></span><span class="quantity-controls js-recalculate FlexiblePlus"><input type="button" class="quantity-controls quantity-plus"></span>\');

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

Regards,
Support & Development
Last Edit: 9 years 7 months ago by Support.
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10416

I made ​​the change mentioned selectoptions2 but does not work.
joomla 2.5.22
VirtueMart 2.6.6

please help

Attachment Immagine.jpg not found

Last Edit: 9 years 7 months ago by Support.
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10437

hi,

I just updated the code to copy/paste. (look at the 1st post).
Can you try the new code?

Regards.
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10481

solved for the variations, but there are still problems with add to cart: there is not the quantity, + / -, and language translation.

Attachment Immagine_2014-07-28.jpg not found

Last Edit: 9 years 7 months ago by Antonio Brunno.
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10511

hi Antonio, sorry for the trouble. I don't know why that happens on your website. It shouldn't be.

I need to see your website and re-organize the custom lines for your website (to be sure it is working fine)

Please create me;
- joomla (super) administrator account,
- FTP account


and send them to This email address is being protected from spambots. You need JavaScript enabled to view it.. Let me try to resolve your problem. If i change anything i will provide you the detailed information about my touches.

While emailing to This email address is being protected from spambots. You need JavaScript enabled to view it. Don't forget to include this forum topic's URL at the of your message (or in the Subject field) as reference to avoid possible confusion in our end.

Regards,
Support
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10519

Ok, email sent, thank you!
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10528

Antonio the problem on your website has been fixed, I replied your email, check your email box.

I updated the codes in this topic as well.
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10557

Thanks!
The administrator has disabled public write access.

After VM Update: Custom Field, Stockable Variant 9 years 7 months ago #10573

Sure, your welcome.
I am glad everything works out.
The administrator has disabled public write access.
Time to create page: 0.124 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