Skip Navigation

[Resolved] Setting the path for the desired product template file

This support ticket is created 4 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 13 replies, has 3 voices.

Last updated by Minesh 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1541553
Screenshot 2020-03-06 at 13.22.52.png

Tell us what you are trying to do?
I am trying to set the path for the product template file under toolset woocommerce views, but the path cannot be edited. Where can I edit it?
Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1541703

You can't edit that, it is a radio field, radio fields can only be checked.

The options offer all valid templates.

Why do you want to edit that?
Maybe we can help with other approaches, but generally, if using WooCommerce Views, you would use the WooCommerce Views Template.

#1541733
Screenshot 2020-03-06 at 16.44.39.png
Screenshot 2020-03-06 at 16.44.28.png
Screenshot 2020-03-06 at 16.44.17.png

Hi Beda,

thank you for your reply.

I need to edit that because it is pointing to a wrong file for oceanwp's single product template.
I can possibly copy oceanwp's owp-single-product.php's content to page.php, but i suspect any customisation from the theme's panel won't be applied.

#1542049

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I think you should create a child theme and add the product template and customize it as per your need.

Please check the following related Doc that may help you. The steps you need to follow could be the same, theme is just different:
=> https://toolset.com/documentation/user-guides/views/customizing-woocommerce-product-templates-genesis/#select-the-copied-php-single-product-php-in-the-woocommerce-views-settings

#1542823

Hi Minesh,

thank you for your reply.
I do use a child theme.
I understand the proposed solution. But in implementing that I lose the ability to customise the single product page using the theme customiser in WP, isnt it?

what can i do it to point it to the correct file that the theme customiser edits?

Dave

#1544253

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

But in implementing that I lose the ability to customise the single product page using the theme customiser in WP, isnt it?
==>
I think so, as you are using the theme's PHP template.

what can i do it to point it to the correct file that the theme customiser edits?
==>
I do not have much experience with but maybe you can check with customizer support they could be the better person to answer this question.

#1544337

Hi Minesh,

Thank you for your reply.
I had spoken to the support.
The recommendation is to set the path of the template file to use owp-single-product.php in the theme's woocommerce folder.
but currently woocommerce views points it to page.php.

there is no way to edit that?

thanks

#1544347

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Have you created the folder namely woocommerce inside your theme and added the singe-product.php template there?

I just tested with default 2020 theme where I've created woocommerce folder inside the 2020 theme and within this folder I've added the single-product.php template file and I can see it's showing the template path to this file with woocomerce views settings.

Please check the following screenshot: hidden link

#1544421

Hi Minesh,

Thank you for your suggestion. The file is already present in the woocommerce folder in the theme folder.
I tried copying it to the child theme, but the result is the same.

Woocommerce Views still pointing to page.php

#1544423

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

what is the name of the file which resides within the woocommerce folder?

#1544427

its owp-single-product.php

#1544431

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

What if you try to change the file name to single-product.php and check again?

#1544509

ah, changing it to single-product.php adds the option to woocommerce view.
but unable to customise via the theme.

#1544561

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok great - so as per the standard it works. Toolset do not offer a way to customize the template via theme. I do not think Toolset has to do anything here as you already notice the template path works as expected. You may need to find a way to customize the template using the theme.