Skip Navigation

[Resolved] Woocommerce products not using Content Template

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 6 replies, has 2 voices.

Last updated by Luo Yang 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1202764

I am trying to: Use content template for Woocommerce products but it is not using the template.

Link to a page where the issue can be seen: hidden link

Here is the template:

[su_row]
[su_column size="1/2"]
	[wpv-post-featured-image size="custom" style="max-height: 600px; width: auto;"]
	[wpv-woo-product-image enable_third_party_filters="yes"]
[/su_column]
[su_column size="1/2"]
	<h1>[wpv-post-title]</h1>
	[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'true' )"]
		[wpv-woo-buy-options] 
		[su_spoiler title="Request a written quote." open="no" style="default" icon="" anchor="" class=""]
			<div class="quote-form-body">[sc name="teardrop flag quote"]</div>
		[/su_spoiler]
		[wpv-post-excerpt output="raw"]
	[/wpv-conditional]
	[wpv-conditional if="( '[wpv-current-user info='logged_in']' eq 'false' )"]
		[wpv-post-excerpt output="raw"]
		[wpv-woo-list_attributes]
		<a href="/selbys/register" class="button">Please register to view pricing</a> <span style="padding: 0 4px;">or</span> <a href="/selbys/login/" class="">login here</a>.
	[/wpv-conditional]
[/su_column]
[/su_row]
#1203521

Hello,

Thanks for the details, I can login into your website and see the problem.

I have tried these in your website:
Switch to wordpress default theme 2019, test the single product post in front-end again, it works fine.

So there should some compatibility problems with your theme, it seems that your theme "Selby's" does not support content template for single product post, so it conducts the problem as you mentioned above.

Since I don't have a copy of "Selby's" theme in my localhost, so I am not sure if it is possible with your theme files.

If you need more assistance for it, please provide a copy of your website in below private message box, I need to test and debug it in my localhost. thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1203541
#1203687

Thanks for the details, I think this theme is not compatible with Toolset Woocommerce plugin, and it produce a lots of PHP errors in a fresh wordpress installation.

Here are my suggestions:
1) You can try these:
Dashboard-> Toolset-> WooCommerce Views, option "Product Template File" choose "Selby's Theme Single Posts Template":
and test again.

I have tried to activate Views plugin in your website, but get 500 error, you can restore your website by this:
Use FTP tools, find and rename the Views plugin folder to something else, for example "wp-view-bak"

2) Since this theme occurs lots of PHP errors, you might consider try other theme, there is a recommended theme list:
https://toolset.com/documentation/recommended-themes/
For your reference.

#1204155

Hi Luo,
Thanks for checking this out.

This is a custom theme developed from a fresh blank theme.

Would you be able to point some of the PHP errors and what is causing it so we can bring it back to the developer?

Stan

#1204170

This theme does not support standard WordPress Template Hierarchy, for example, you can create a theme file in your theme folder:
- single-product.php
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
Or
- woocommerce/single-product.php

None of them work.
https://docs.woocommerce.com/document/template-structure/#section-1

For your reference.

#1205972

Thank you!

I have informed the theme developer regarding this.

Did you manage to find any other issues? If not, this ticket can be closed.

Thanks!

Stan

#1206010

Dear Stan,

No, I did not find other issues.

The is an issue of your theme, as I mentioned above, you might consider other theme to avoid more errors.
https://toolset.com/documentation/recommended-themes/