• Resolved icedevcen

    (@icedevcen)


    Hello, I am currently customizing WooCommerce templates for one of my clients using the simple Twenty Twenty Four theme and no builder whatsoever. This client has 2 types of products that can be differentiated by their category and he would like a different display depending the product.

    After reading the documentation, I saw that you could create a custom product page template for a single specific product (cf. the documentation). Is there a way to expand that scope to a products category, instead of having to create multiple templates and assigning each one to the corresponding product? This last method could work for now, but would become quite fastidious to maintain with a lot of products in the future…

    Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello icedevcen,

    Thank you for contacting WooCommerce support.

    I understand you’re looking to create custom templates for product categories in WooCommerce to avoid assigning individual templates to each product.

    This blog post might guide you through the process.
    It explains how to create templates for specific categories, which should simplify managing your client’s requirements.

    Please note that our support policy does not cover custom code.
    If you need help with code, I suggest reaching out to a web developer.
    You can find one at Codeable.io and WooExperts.com.

    Let me know if you have more questions or concerns.
    I am here to help ??

    Best regards.

    Thread Starter icedevcen

    (@icedevcen)

    Hello @doublezed2,

    Thank you for your answer. However, I don’t think it is helping me with my problem. I didn’t explain it well I’m sorry.

    I don’t want to create a custom template for a products category, aka an archive or a list of products. I want to create a custom template for the single product page, so the page displaying only one product with its pictures, price and full description. But I want to directly apply this template to all the products of a category and not just target a single product.

    Right now, what I can do is :
    – Create a template 1, assign it to product 1.
    – Create a template 2, assign it to product 2, etc.
    What I want :
    Create a template, assign it to a products category -> product 1 and product 2 have the template.

    Is there a way to achieve this? Thank you for your time.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello icedevcen,

    Thank you for the clarification.

    You can achieve this by using a single product template file.
    In the template, include conditional code to check the product’s category and display the appropriate layout or design for that category. This way, the template dynamically adjusts based on the product’s category.

    Let me know if you have any more questions. ??

    Best regards.

    Thread Starter icedevcen

    (@icedevcen)

    Hello @doublezed2,

    Thank you for your answer, I see how to do it now.

    Have a nice day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.