How to assign single product template to product by its category (Block Theme)

  • Unknown's avatar

    Hi,
    I tried to assign single product templates to products by their categories, e.g.

    electronic products -> use single product template for electronics
    books -> use single product template for books
    cosmetic -> use single product template for cosmetic

    I had searched for similar questions but found answers in classic theme. I’ve also asked Gemini who gave me a few codes but none of them worked -> each product fell back to the default template instead of designated templates.

    Appreciate if anyone could suggest, either by settings or by coding.

    Thanks in advance.

    The blog I need help with is: (visible only to logged in users)

  • The topic ‘How to assign single product template to product by its category (Block Theme)’ is closed to new replies.