Skip to content
Snippets Groups Projects
Commit 21f2e7b4 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] website_sale: get right variant image if list of variant

If the variants are displayed by list of attributes, the image of a
product displayed would be updated to the image of the first variant.

But this was not done when using the customizing option "List View of
Variants".

opw-645729
parent 4914e077
Branches
Tags
No related merge requests found
......@@ -218,6 +218,11 @@ $('.oe_website_sale').each(function () {
$parent.find(".js_check_product").attr("disabled", "disabled");
}
});
$('div.js_product', oe_website_sale).each(function () {
$('input.js_product_change', this).first().trigger('change');
});
$('ul.js_add_cart_variants', oe_website_sale).each(function () {
$('input.js_variant_change, select.js_variant_change', this).first().trigger('change');
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment