Skip Navigation

[Resolved] Assigning a Layout to ONE WooCommerce Product

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

Last updated by theW 6 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#596578
OPTS.png

Tell us what you are trying to do?

Can I assign a Template Layout to one single WooCommerce Product?
I mean not to every existing product just an specific one?

Also...
I'm using the "Gravity Forms Product Add-ons"
Is there a button to choose where to display the "summary"

Is there any documentation that you are following?
none.

Is there a similar example that we can see?
not sure

What is the link to your site?
Localhost.

#596641

Hi,

Q1) Can I assign a Template Layout to one single WooCommerce Product?
Yes, it is possible, you can edit the specific Product post, in section "Layout", choose the specific layout, and save the product post.

Q2) Is there a button to choose where to display the "summary"
I assume we are talking about the product summary, please try the shortcode [wpv-post-excerpt], more help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-excerpt

#596879
1.png
2.png

Thank you for your reply Luo.
Please see my screenshots regarding the product layout attached.

When it comes to the "Summary" it's not the "post-excerpt" neither the body, nor the content nor any of the bellow:
[wpv-post-format]
[wpv-woo-list_attributes]
[wpv-woo-product-meta]
[wpv-woo-display-tabs]

It seems that is not included... Here is a link to the plugin I'm using.
https://woocommerce.com/products/gravity-forms-add-ons/

Can Types and View achieve the same or similar functionality as this plugin does?

#597019

Q1) Yes, you are right, you will need to design two layouts, one for the specific product, the other for the rest of products.
And in order to assign a layout to the WooCommerce Product, you will need to setup the Woocommerce Views setting: see our document:
https://toolset.com/documentation/user-guides/getting-started-woocommerce-views/

Q2) I am not familiar with the "Gravity Forms Product Add-ons" plugin, I suggest you check it with the plugin author, check these:
1) Is there any shortcode for display the "Summary", if there is, then you can put the shortcode into content, and display it
2) How does this plugin stores the value of "Summary", if it is a custom pure string field, you can use Views shortcode [wpv-post-field] to display it, see our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-field

#597025

Ok, thank you again for your responses Luo.
I ended up using css for that specific product and it's looking properly.