Magento : How to Change Attribute Label For Configurable Product
-
07-10-2020 - |
Question
I want to change attribute label of products. For that I have changed its label in backend like as shown in below image,
I want to change an attribute name from Flavour
to Flavour
Options but it still shows Flavour at frontend.
I checked further and found on product edit page, under associated products tab, it still showing Flavour and it doesn't use default value. If I use its default value then it works fine and show correct attribute name at frontend. see image--
There are hundreds of products, so I can't change them manually.
How can I use default value for all products for that store or can edit the value of attribute name ?
Solution
You can achieve what you want by a single database query.
UPDATE `catalog_product_super_attribute_label` SET `use_default`= 1;
Run this in your database and it will use default value for all of your products attributes.