Skip Navigation

[Resolved] Set a default Content Template for product category

This support ticket is created 3 years, 6 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 9 replies, has 2 voices.

Last updated by nickT-2 3 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2034199

Hi,
Please can I ask, is it possible to set a default Content Template for a product (woocommerce) category.

E.g. every product with the category of 'track' to be set to use content template 'track content'?

Thanks
Nick

#2034285

Shane
Supporter

Languages: English (English )

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

Screenshot 2021-04-27 at 9.32.27 AM.png

Hi Nick<

Thank you for getting in touch. Yes it is possible to set a content template for a Woocommerce product of a specific category, however you must be running the latest version of our Toolset Blocks/Views plugin and be using the Block editor for the content template.

When you select the Product Post Type there is a conditional option that you can set. See Screenshot

In my screenshot you will see me selecting the Posts and then below you will see category, uncategorized. This will only apply the content template to posts that are created with the Uncategorized category added.

Thanks,
Shane

#2034339

Ah thanks for letting me know. Is there a way to migrate my current views and content templates over to blocks?

#2034343

Hi,
Sorry I just found a great support articles all about moving from Views to Blocks, a nice and simple process.

So all OK .. thanks for your help!

#2034377

Hi,
Sorry .. I've come across an additional question.
I use WPBakery page builder for my views. Is it possible to use this with blocks and have the conditional settings you mentioned in your first reply?

#2034489

Shane
Supporter

Languages: English (English )

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

Hi Nick,

Unfortunately no not at this time. You are not able to do this without the use of Gutenburg editor for the content templates.

Thanks,
Shane

#2035029

Hi Shane,
Thanks for letting me know. That's a shame. Are there any plans to make it compatible with other page builders? Or any other way to do the conditional applying of different content templates?

Is one workaround to paste the raw code with WPBakery builder shortcodes into the Gutenburg editor and maybe the page layout will be the same?

#2035633

Shane
Supporter

Languages: English (English )

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

Hi Nick,

Are there any plans to make it compatible with other page builders?

Currently the editors require the use of the Classic editor. If the editor themselves don't work with the gutenburg editor then not much we can do in terms of compatibility. They are already compatible with the Classic editor that our Content template provides. Unfortunately some features will only work when using the Gutenburg editor to build out your content template.

Is one workaround to paste the raw code with WPBakery builder shortcodes into the Gutenburg editor and maybe the page layout will be the same?

This could help but the main problem would be the wrapper divs for the gutenburg editor may interfere with WPBakery Builder's css structure.

Thanks,
Shane

#2042213

Hi Shane,
I think it's safe to resolve this issue now as it's being covered by the other one you've just escalated.

But a quick question please, now that I've moved over to the 'Toolset Blocks' plugin from the 'Toolset Views' plugin. Where have the views gone? I can't seem to find the views I've created. I can see the content templates that these views are using, no problem, but I need to adjust a few settings on the views ... they are no where to be found? I've also looked for a menu item called Blocks in case they've been moved to there ... but again I can't find anything.

So, maybe it works differently with Blocks. Please can you point me in the direction of my old views so I can adjust their settings.

Thanks
Nick

#2042219

Ah ... found the setting here:

Dashboard-> Toolset-> Settings-> General, in section "Editing experience", enable option "Show both the legacy and Blocks interface and let me choose which to use for each item I build".

Thanks for your help