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

TOPIC: productdetails does not display the chosen child p

productdetails does not display the chosen child p 5 years 2 months ago #15777

When I choose a variant of a child product via the customfield, it seems that it loads the product correctly, but in the customfield it always shows the first value.
Example here: new.brugnolaro.com/it/donna/58-mocassini-donna/24440-grunland-mili-sc2762-taupe-rosa-scarpe-donna-mocassini-slip-on-detail
I choose 40 as the correct child product is loaded, but in the customfield it shows 39
The administrator has disabled public write access.

productdetails does not display the chosen child p 5 years 1 month ago #15785

Hii Paola,

this case must be specific to your website. I can't be sure what you did to setup those variants. But as you can see on the live demo:

demo.flexiblewebdesign.com/materialmart/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=10&virtuemart_product_id=106

once you select a variant (color or size), the child product gets loaded and the value in the dropdown also gets selected respectively.

Are you sure you disabled the jQuery chosen() from VM Configuration?

- Navigate to Joomla Backend >> Virtuemart Configuration.
- Click "Templates" Tab
- Find this option: "Use jQuery chosen for dropdowns in FE"
- Make sure it is disabled

Regards.
The administrator has disabled public write access.

productdetails does not display the chosen child p 5 years 1 month ago #15790

Ok the option you mentioned is disabled but we have this problem, the only particularity and that we use the stockable breakdesign plugin to manage the variants, please help us to solve the problem as for the user it is a problem not to understand with clarity what is the chosen child product.
The administrator has disabled public write access.

productdetails does not display the chosen child p 5 years 1 month ago #15792

Too bad you have not given me any help, but in the end it seems that I found the solution with a bit of js code that in the product detail view copies the value selected in 'select' in the input field:

jQuery(document).ajaxComplete(function() {
//console.log('sono qui');
var taglia = jQuery(".select-wrapper select option:selected" ).text();
//console.log(taglia+'=taglia');
jQuery("input.select-dropdownMat").val(taglia);

});
The administrator has disabled public write access.
Time to create page: 0.083 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