1

I have 2 types of product in my website.

1) simple products and 2) grouped products

i wanted different design for both this types of product types. so how can i have different template file for product detail page for above 2 type of product.

thanks in advance

1 Answer 1

0

We can add different templates in catalog_product_view_type_simple.xml and catalog_product_view_type_grouped.xml

e.g)

Assign one.phtml in catalog_product_view_type_simple.xml, this one.phtml available only on simple products.

Assign two.phtml in catalog_product_view_type_grouped.xml, this two.phtml available only on grouped products.

2
  • where to change this ? Commented Feb 18, 2019 at 10:18
  • @PradeepSanku it is a normal layout process, you can override or implement new block/template, it depends on your use cases. could you please mention which block you need to assign different templates based on product type? Commented Feb 18, 2019 at 13:19

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.