- This topic is empty.
- AuthorPosts
-
August 23, 2017 at 8:13 am #9443
mobashir
ParticipantI want to override woocommerce templates from my theme. I follow all the steps from the official documents of woocommerce. And I’m sure that there is no woocommerce.php file in my theme.
So, I can;t understand why it isn’t working.
I’m using twenty seven theme.Any help will be appreciated.
August 24, 2017 at 12:27 pm #9447momen-mohamed
ParticipantIf you’ve already read this documents
https://docs.woothemes.com/document/template-structure/Please Note: When creating woocommerce.php in your theme’s folder, you will
be unable to override the woocommerce/archive-product.php custom
template in your theme, as woocommerce.php has priority over all other
template files. This is intended to prevent display issues.Also make sure that you don’t have “Template Debug Mode†activated that you can find under:
WP Dashboard -> WooCommerce -> System Status -> Tools
August 27, 2017 at 7:34 am #9448mobashir
ParticipantAfter lots of researching, finally I’ve found my answer from here WordPress – Failing to override woocommerce templates
Actually, I use all of my files inside the template folder and this is the reason why it didn’t work.
So simple steps. But I can’t understand how was I miss it!
Thank’s Mo’men Mohamed for your suggetions.
July 7, 2018 at 2:47 am #9449almaz-bissenbayev
ParticipantTry to declare Woocommerce support in your theme’s
function.php
June 11, 2020 at 11:50 am #9445mohan
ParticipantYes i agree with Mobashir.
There are three steps to check why override not working :- Check in functions.php for woocommerce supported added ( URL : https://docs.woocommerce.com/document/woocommerce-theme-developer-handbook/ )
- Check spelling of directory and files is proper in theme such as your-theme/woocommerce. ( URL : https://docs.woocommerce.com/document/template-structure/ )
- Woocommerce allow to change the location of woocommerce template. Hook is : woocommerce_template_path .If you are using the premium theme then check for filter hook in your theme’s functions.php file. If that hook exits then use that location which is mention in that hook’s callback function.
October 20, 2020 at 10:44 am #9446tayyab-chaudhary
ParticipantI’m facing the same issue. I am using the JupiterX theme with Elementor and trying to override the checkout template in the JupiterX Child theme, but it’s not loading. I have double checked the path, it’s like
themes/jupiterx-child/woocommerce/checkout/form-checkout.php
.Solution:
I have resolved the issue. Actually, the JupiterX theme has its own WooCommerce overriding structure, that is
themes/jupiterx/lib/templates/woocommerce/checkout/form-checkout.php
and the same for the child theme that isthemes/jupiterx-child/lib/templates/woocommerce/checkout/form-checkout.php
.For more details: themes.artbees.net/docs/overriding-woocommerce-templates
May 26, 2021 at 1:51 am #9450wickywills
ParticipantI had an issue with this relating to the WooCommerce template cache.
The cache can be cleared by navigating to:
WooCommerce > Status > Tools > Clear template cache
May 4, 2023 at 5:46 am #9444adz
ParticipantI had this issue too.
Clear cache, then just swap/activate themes to a wordpress standard theme, then swap back to yours. Happy Days!
- AuthorPosts
- You must be logged in to reply to this topic.