Sauter la navigation

[Résolu] Divi Builder

This support ticket is created Il y a 6 années et 3 mois. 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/Karachi (GMT+05:00)

Ce sujet contient 7 réponses, a 2 voix.

Dernière mise à jour par Waqar Il y a 6 années et 2 mois.

Assisté par: Waqar.

Auteur
Publications
#1155225

Hi,

Is it possible to have more than one content template assigned to the product category?

If possible, I would like to duplicate the current template assigned to the product category and and structure the content fields of the new template to accommodate a product variation.

#1155511

I attempted to duplicate my product content template to use with a product variation and the Divi builder does not show in the product page dashboard when opened from the Toolset content template page, only the default editor.

Is it possible to duplicate content templates this way and use them to display a different product page view for product variations?

#1155545

Hi Charles,

Thank you for contacting us and I'll be happy to assist.

I've checked your product category pages ( e.g. lien caché ) and noticed that they are currently showing with default content template that comes with the WooCommerce plugin.

To assign a custom content template to it, first you'll need to follow the steps shown in this guide:
https://toolset.com/documentation/recommended-themes/toolset-divi-integration/creating-a-custom-shop-page-for-products-using-divi-builder-and-toolset/

Note: I've noticed that you've assigned a view named "Artwork" to your product archives but its setup is not complete:
lien caché

Make sure that product categories option is also checked in the "Taxonomy Archives" section:
( screenshot: lien caché )

As for your original question, only one content template can be assigned through a view to product categories, but you can use conditional HTML blocks ( ref: https://toolset.com/documentation/user-guides/conditional-html-output-in-views/ ) to load either selective fields directly or as part of a nested content template.
( i.e. create another content template with the extra fields or product variations and load it inside the main content template )

I hope this helps.

regards,
Waqar

#1155645

Waqar,

Thank you for the very helpful information.

With such an efficient search form and filter system, is there a reason for having visible archive pages?

Instead of configuring the archive pages to use the product template, can we disable them entirely?

#1155676
Screenshot_11-29-1.jpg

Retraction: I reviewed the information you provided and I would like to create a custom template for the shop page.

Would it be possible to link each shop item display to the the same product view that appears in the search results as shown in the screenshot?

#1156269

Hi Charles,

The archive pages are conventionally used to present users with an option to view similar items, grouped together for easy access.

But if you feel they are not needed for your specific project, you can remove/hide their links and even add redirection rules, based on personal preference.

Your website's shop page ( lien caché ) is currently showing products, using the content template "Loop item in Artwork".
( lien caché )

To make shop page products show in the same format as the search page ( lien caché ), you have two options:

1. If you'd always like these two pages to show products in the same format, you can open your view "Artwork" ( lien caché ) and replace all instances of shortcode:


[wpv-post-body view_template="Loop item in Artwork"]

With:


[wpv-post-body view_template="Loop item in Single Product List Entry"]                

The result will be that both the shop and search results page will show products in the same format and for future changes, you can just update your content template "Loop item in Single Product List Entry".
( lien caché )

2. On the other hand, if you'd like to show the shop page's product in the same format as the search results page, but would like to keep the flexibility to format it independently in future (i.e. without affecting the search results page's format), you can open "Loop item in Artwork" content template ( lien caché ) and set it up with same content as the "Loop item in Single Product List Entry" content template ( lien caché ).

This way, the two pages will have the same but independent format.

I hope this helps!

regards,
Waqar

#1156823

Hi Waqar,

Thank you for providing this information.

#1157532

You're welcome, Charles!