Skip Navigation

[Resolved] Different Woo Single Product Template for each or some categories

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to know if it was possible to display a different content template based on the category of the Product.
Solution:

For this I would recommend that you take a look at the link below.
https://toolset.com/forums/topic/different-single-layout-templates-of-product-woocommerce-depending-on-category/#post-913077

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Richard 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1113170

I'm sure this question has been asked before......

I would like (ideally) to have different single product templates for different categories. I could for the moment settle for two templates - one for one specific top level category and one for the rest but hey - in an ideal world I'd like to customise the single product page as much as possible.

I've read the following

https://toolset.com/forums/topic/different-single-layout-templates-of-product-woocommerce-depending-on-category/

which seems like a good place to start but that specifically concerns TS Layouts and as I understand it as a *Divi* user layouts is not the way to go. I'm wondering if the best approach is to set up multiple Divi library items and then (somehow) reference them in the code that was supplied in the URL above.

Thanks

#1113190

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Richard,

Than you for contacting our support forum.

What I would recommend is the solution in this post here.
https://toolset.com/forums/topic/different-single-layout-templates-of-product-woocommerce-depending-on-category/#post-913077

This is because there are incompatibilities between Layouts and Divi so I wouldn't recommend a solution that involves Layout.

Thanks,
Shane

#1113229

Mmm - same article but if I understand correctly the conditional statement checks a condition and if it's true they display content - all in the one WC layout. I

I guess I could use that to reference Divi content shortcodes and load the bits I want into the page on a conditional basis. Let me go away and have a go - I'll close this if I get it working (and explain what I did).

#1114409

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Richard,

Please keep me posted and if any assistance is needed.

Thanks,
Shane

#1117351

The problem was I needed multiple different WC tab sets per different categories but I've sorted it using conditional display of tabs in WC which meets my needs for the mo'.