Archived topic
GP woocommerce template
9 replies · Started by Matthew on September 23, 2016
Hi Tom,
Is it possible to copy the woocommerce templates from the Storefront theme into the GP theme?
I understood that we could copy the woocommerce template into the GP child theme, but is it possible to have the template from the Storefront theme instead?
I have a glanced at the Storefront theme that it added more functions/script/customisation based on the template in the woocommerce plugin folder other than in its own theme folder.
Could you please give me some advice?
Thanks a lot.
Matthew
Hi Matthew,
I doubt it, as Storefront most likely uses a different HTML structure than GP.
Is there something specific you're looking to add to GP?
Hi Tom,
Yes, agreed. GP probably doesn't have the much template for the WC.
What I'm look for is to customize the WC template, such as the My Account page, Check Out page, etc....
Any advice?
thanks.
Matthew
In order to make customizations like that you'll need to use a child theme with GP and overwrite WC templates: https://docs.woocommerce.com/document/template-structure/
It'll help to study the HTML structure of the page.php template, and then add in your WC elements.
Hi Tom,
I don't understand, i have a template GP child and template WC
If i want modify the file price.php (/wp-content/plugins/woocommerce/templates/single-product/price.php) how i can do this ?
This article might help: https://docs.woocommerce.com/document/template-structure/
Let me know :)
Great, it's ok. I copied the folder template of Woo in my Child GP but what's happen when there wille be the next update from Woo ?
may be there isn't update in the template of Woo ?
If it's using the template in your child theme, then they can update and it won't touch your child theme folder :)
of course, thx Tom
No problem :)