Skip Navigation

[Resolved] Different Woocommerce Archives Templates for categories

This support ticket is created 4 years, 11 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1414983

I´m new to Toolset and i´m working with the new blocks plugin. Right about now i´m in a woocommerce project and my need is to design custom archive-templates per product-category.

For example: i have a product-category called: Umweltfreundliche Verpackungen
That category have two sub categories: 1. Folien + Beutel; 2. Adressieren und Kennzeichnen

For each of that 3 categories i would like to have an individual archive-template.

I know that Elementor Pro has such a feature. But since you´re doing a great job with the blocks integration my plan is to build the shop without using elementor.

What would be the smartest way to make that happen?

Is there any documentation that you are following?
No

Is there a similar example that we can see?
Different Layouts for each categories
hidden link
hidden link

What is the link to your site?
hidden link

#1415823

Hello,

There isn't such a built-in feature within Toolset plugins, it needs custom codes, for example:
1) Create three Views WordPress archives, design them differently
https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/

2) Use filter hook wpv_filter_force_wordpress_archive to trigger a PHP function:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_wordpress_archive
in this PHP function, check if current archive page is specific term, then return different WordPress Archive ID
https://developer.wordpress.org/reference/functions/is_tax/