Skip Navigation

[Resolved] Template or view integration

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

Assisted by: Luo Yang.

Author
Posts
#1206580

Tell us what you are trying to do?
I’m trying to use a content template or view, I’m not sure which to use in this case, on a none Toolset Woocommerce single product page template. Selecting my own product template covers the content section, but I would also like to have a custom section below product galleryy/product info and above the related product section for displaying a custom table, without having to use to Woocommerce views template. My theme isn’t Toolset ready, so when I use Toolset’s Woocommerce product template some parts of the page are not inherited by the page/theme. Hoe can I solve this? Should I integrate a Toolset content template in single-product.php with a function or filter? And if so, what’s the best approuch?

#1206718

Hello,

Please elaborate the question with detail steps:
How do you setup the "product galleryy/product info and above the related product section"?
If it is custom PHP codes in your theme file, you just need to find those PHP codes, and insert your "custom table".

If the "custom table" is setup with a specific post view, you can use Views API function render_view() to render the post view, see our document:
https://toolset.com/documentation/programmer-reference/views-api/#render_view