Skip Navigation

[Resolved] Default woocommerence product page template

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

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

Assisted by: Luo Yang.

Author
Posts
#1113959

Dear Sir/Madam,

Regard to the WooCommerce Views, it allows selecting the template file, if I select the WooCommerce Views plugin default single product template, how can I use the Woocommerence default template if I have not yet designed my own? Can I preload the Woocommerence default template and modify a bit as my custom designed template? I think it saves the time to set up the custom layout for the newbie user.

I refer to article https://toolset.com/learn/create-an-ecommerce-wordpress-site/create-custom-fields-and-taxonomies/ , if I want to provide options to the customer for selection, I have no idea whether I should add the taxonomies or add the product's Variations? How can I add the variations in Views?

Best regards,

Kelvin

#1114083

Can I have some products using the default Woocommerence product template but some products using my custom own template? How can I do that?

#1114872

Hello,

Q1) how can I use the Woocommerence default template if I have not yet designed my own?

As a workaround, you can copy the Woocommerence default template "\plugins\woocommerce\templates\single-product.php" to your theme folder "\woocommerce\single-product.php", use it as single product template, and design it as what you want.

Q2) Can I preload the Woocommerence default template and modify a bit as my custom designed template?

See the answer above, more help:
https://docs.woocommerce.com/document/template-structure/#section-1
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.

Q3) if I want to provide options to the customer for selection, I have no idea whether I should add the taxonomies or add the product's Variations?
If you want to manage those options under Toolset control, I suggest you try with custom taxonomies, then you will be able to setup it in admin side, and setup views to filter on the taxonomies, and so on...

Q4) How can I add the variations in Views?

Please try the shortcode [wpv-woo-list_attributes]:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-334530
This shortcode outputs product attributes in WooCommerce.

Q5) Can I have some products using the default Woocommerence product template but some products using my custom own template?

No, there isn't such a built-in feature, you might consider to use custom codes in your custom theme file "single-product.php"