diff --git a/themes/default/js/product.js b/themes/default/js/product.js index ce63b51fd..fc55829ed 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -713,6 +713,7 @@ function checkUrl() count++; // add class 'selected' to the selected color $('#color_'+attributesCombinations[a]['id_attribute']).addClass('selected'); + $('#color_'+attributesCombinations[a]['id_attribute']).parent().addClass('selected'); $('input:radio[value='+attributesCombinations[a]['id_attribute']+']').attr('checked', true); $('input:hidden[name=group_'+attributesCombinations[a]['id_attribute_group']+']').val(attributesCombinations[a]['id_attribute']); $('select[name=group_'+attributesCombinations[a]['id_attribute_group']+']').val(attributesCombinations[a]['id_attribute']);