1

I migrated product from 1.7 to 2.1.6 and the product with Size attribute show drop down correctly.

Now I want to change the Size attribute to "Text Swatch" in Admin panel (Product attribute)but then the the size option in front end disappear. Just show "Size:" with no options to choose.

Is it a problem with Magento 2 or do I need to modify something else to make the Text Swatch work?

2
  • do you change the attribute settings to text swatch in admin panel?
    – Rita Jose
    Jun 14, 2017 at 5:10
  • Yes. I change to "Text Swatch" and it cause the problem, customer cannot select the size. If I change back to "Dropdown" it show dropdown correctly.
    – imrhung
    Jun 14, 2017 at 8:24

1 Answer 1

1

Make sure that you change the attribute settings in admin panel.

Dashboard -> Stores -> Attributes -> Product ->Size -> Catalog Input Type for Store Owner -> Text Swatch

Do this commands after change the settings.

sudo php bin/magento indexer:reindex

sudo php bin/magento cache:clean

sudo chmod 777 -R var/ pub/media pub/static vendor/
1
  • I change to "Text Swatch" and it cause the problem, customer cannot select the size. If I change back to "Dropdown" the size show dropdown correctly. So I wondering is there any problem or extra config for "Text Swatch" to work?
    – imrhung
    Jun 14, 2017 at 8:25

Your Answer

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

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