4

How to identity configurable product in magento frontend ?

2 Answers 2

1

The quickest what to figure out if a product is a configurable product on the frontend is to view the page source and look for the body tag"

body class='page-product-configurable..'

If you are trying to figure out if a product is configurable in a phtml file

if ($product->getTypeId() === 'configurable')

-1

Please follow below link -It will help you.

https://docs.magento.com/m2/ce/user_guide/catalog/product-create-configurable.html

Please see step 3 carefully -

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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