Skip Navigation

[Resolved] Woocommerce attribute archive page

This support ticket is created 6 years, 5 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.

This topic contains 1 reply, has 2 voices.

Last updated by Beda 6 years, 5 months ago.

Author
Posts
#911195

Hi, I have created attributes for my products. One of them is called "brand" and is not used in variable products. It's an attribute used to characterise the product, I've selected "is taxonomy" and "has archive" so now I am wondering how to build the template for my attribute archive page. The default one doesn't have the sidebar.
Thanks,
Laura

#911375

If this is a public taxonomy you can build an archive for it in Toolset > WordPress archives.

But that won't control the template of this archive, which is what you need, since you plan to remove the sidebar.
A sidebar usually is produced by the Theme, and we cannot control that part of the template.
We Control basically only the_content and the Loop, not what's around it.

For that, you'd need to programmatically integrate Toolset Layouts and build your own templates with it, but this method is not suggested anymore.

Instead, we suggest to use for example a Custom Types ready Theme or even a Theme that integrates its options to Toolset:
https://toolset.com/documentation/recommended-themes/

If the theme offers a option to remove the sidebar, it may be possible they also offer this setting globally so you can use it in Toolset on your Content Templates or Layouts.

However WooCommerce Attributes are quite complex taxonomies:
hidden link

Each Attribute you create is a whole taxonomy, each value a term.

But if you register the Attributes in the Products > Attributes screen, and Enable Archives, you can then create an archive for that under Toolset > WooCommerce Views.

The easiest is to create an Attribute in Products > Attributes screen, and Enable Archives, add some terms, and then "view" one of those terms.
That'll lead you to the Front End of that Term (archive).
You'll then see a WordPress Admin bar menu item "Design with Toolset".
If you hover on it, you'll see a link to create a new Archive. Click on it, and complete that Archive View.

It'll now style the loop of that Attribute Archive

But, you will need to do that for each new attribute you create, since each attribute is a new taxonomy!
Only each term will belong to the taxonomy, and always apply the Archive you design for that taxonomy.

Thanks!