I have a bunch of configurable products where I want to show the sizes available under the product price on the product list.

Every configurable product has simple products attached each with a size attribute like XL, L, M, S.

How do I do that in my template file: Magento_Catalog/templates/product/list.phtml ?

  • It is showing by default in Magento-2. May 2, 2017 at 5:00

1 Answer 1


You can do it from admin panel. Go to

Store > Atrributes > Product > your_attribute > Storefront Properties

set Used in Product Listing to Yes

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.