Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.
  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #9443
    blankmobashir
    Participant

    I 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.

    #9447
    blankmomen-mohamed
    Participant

    If 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

    #9448
    blankmobashir
    Participant

    After 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.

    #9449
    blankalmaz-bissenbayev
    Participant

    Try to declare Woocommerce support in your theme’s function.php

    #9445
    blankmohan
    Participant

    Yes i agree with Mobashir.
    There are three steps to check why override not working :

    1. Check in functions.php for woocommerce supported added ( URL : https://docs.woocommerce.com/document/woocommerce-theme-developer-handbook/ )
    2. Check spelling of directory and files is proper in theme such as your-theme/woocommerce. ( URL : https://docs.woocommerce.com/document/template-structure/ )
    3. 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.
    #9446
    blanktayyab-chaudhary
    Participant

    I’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 is themes/jupiterx-child/lib/templates/woocommerce/checkout/form-checkout.php.

    For more details: themes.artbees.net/docs/overriding-woocommerce-templates

    #9450
    blankwickywills
    Participant

    I 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

    #9444
    blankadz
    Participant

    I had this issue too.

    Clear cache, then just swap/activate themes to a wordpress standard theme, then swap back to yours. Happy Days!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.