7

When I create a configurable product, in the tab "associated products" the checkbox for "use default", label for attribute is unchecked.

I have fixed this altering the product.js (line 404), adding attribute.use_default == null:

                if (attribute.use_default == '1' || attribute.use_default == null  ) {
                use_default_checked = ' checked="checked"';
                label_readonly = ' readonly="readonly"';
            }

This work fine.

However now I would like to set this for all the products that I have already created.

I will accept answer that help me to create a query on DB

1 Answer 1

9

If you want to do it for all attributes of all configurable products, then:

UPDATE catalog_product_super_attribute_label SET use_default = 1

If you want to do it for particular product or particular attribute you have to JOIN with catalog_product_super_attribute table using product_super_attribute_id field of both tabels.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.