woocommerce / theme-customisations

313 stars 110 forks source link

custom/templates/woocommerce does not actually loaded #23

Open simongcc opened 6 years ago

simongcc commented 6 years ago

I have tried to add archive-product.php It seems that it doesn't loaded.

trungx commented 3 years ago

@simongcc Put it in custom/templatest/archive-product.php All top level page should put there. Also, currently it's not fully support for template parts like header footer content ....

GregPicFlick commented 3 years ago

Hi, I tried to add content-single-product.php file in the custom/templates/woocommerce folder and it does not work. So the full path is /htdocs/wp-content/plugins/theme-customisations-master/custom/templates/woocommerce/content-single-product.php I have tried every permeation and it does not work. Please assist Thanks PicFlick

trungx commented 3 years ago

@GregPicFlick try add to /htdocs/wp-content/plugins/theme-customisations-master/custom/templates/

GregPicFlick commented 3 years ago

Thanks for the response @trungx however that unfortunately did not work. As mentioned, I tried every permeation of file and folder structure within /templates/ and it did not work (see here: Capture2 ) The state of how things were in my previous theme (called Flatastic) was that this file coming from the parent theme folder - i.e. /htdocs/wp-content/themes/flatastic/woocommerce (see here - image ) I am switching over to a new theme and am using this plugin, and would for the customisations to be moved across to. Looking forward to your assistance. Thanks, PicFlick

GregPicFlick commented 3 years ago

Good day @trungx Just a reminder to please assist with the templates folder not recognising my custom .php files. I also tried another example - some of the custom email templates I previously created on my old theme. I tried to add the .php files to the /templates folder and it did not work. I also then tried to use the full path which worked in my old child theme folders /templates/dc-product-vendor/emails/ and it also didnt work when using the new theme + Theme Customisations plugin. See here please I have included the .php files in both areas: image Thanks again

trungx commented 3 years ago

@GregPicFlick You have tried to override template part. but currently there seems it was not support. Try to overrde via child theme image

GregPicFlick commented 3 years ago

Thanks @trungx , however, our theme explicitly states that we should not add custom code here and should use Theme Customisations (please see below). Your advise for a workaround is very much appreciated. Thanks! image

GregPicFlick commented 3 years ago

Hi @trungx Polite reminder for assistance regarding the above please. Many thanks!