News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Photos in stockable option

Started by alesandroca, September 29, 2013, 15:39:12 PM

Previous topic - Next topic

alesandroca

If you use the "stockable option" in Virtuemart,the price, the product description change but the photo doesn't change!
The "stockable option" has to be used when the user can change from 2 to 4 parameters inside a product page. For example a product page of a pair of shoes, where the user can choose shoe's size and color. When user chooses the color and size, change the price and the description in product page but the photo of the shoes doesn't change. I studied deeply the file "stockable.php" (C:\xampp\htdocs\joomla\plugins\vmcustom\stockable) but I was not able to understand how to modify the JavaScript. In my opinion has to be modified here:

// recalculate the price by found product child id;
formProduct = Opt.parents("form.product");
virtuemart_product_id = formProduct.find(\'input[name="virtuemart_product_id[]"]\').val();
formProduct.find(\'input[name*="customPlugin['.$field->virtuemart_customfield_id.']['.$this->_name.'][child_id]"]\').val(found_id);
Virtuemart.setproducttype(formProduct,virtuemart_product_id);
         }
Please help me in finding a solution. I want the photo changing togheter with price and description. Thank  in advance to all the forum in advance.


Alessandro
Joomla 2.5.8
Virtuemart 2.0.14

Maxim Pishnyak

First your versions are not secure and outdated.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart