---
title: "How to Override Or Fixed Outdated WooCommerce Template Files In your theme"
url: "https://dolphinwebsolution.com/how-to-override-or-fixed-outdated-woocommerce-template-files-in-your-theme"
date: "2023-04-26T13:15:05+05:30"
modified: "2023-08-29T05:34:39+05:30"
author:
  name: "Jignesh Patel"
categories:
  - "Wordpress"
word_count: 385
reading_time: "2 min read"
summary: "- In this post, we see how to override WooCommerce template files in our theme.

- WooCommerce provides that will allow you to override core templates within your child theme. This means that you..."
description: "&#8211; In this post, we see how to override WooCommerce template files in our theme. &#8211; WooCommerce provides that will allow you to override core templ..."
keywords: "Wordpress"
language: "en"
schema_type: "Article"
related_posts:
  - title: "Best Profitable eCommerce Niches to Start Selling"
    url: "https://dolphinwebsolution.com/blog/profitable-ecommerce-niches/"
  - title: "10 steps Starting your online ecommerce store in WordPress"
    url: "https://dolphinwebsolution.com/starting-your-online-ecommerce-store-in-wordpress-is-just-10-steps-away"
  - title: "How To Develop Auto Parts Ecommerce Website?"
    url: "https://dolphinwebsolution.com/blog/how-to-develop-auto-parts-ecommerce-website/"
---

# How to Override Or Fixed Outdated WooCommerce Template Files In your theme

_Published: April 26, 2023_  
_Author: Jignesh Patel_  

![](https://dolphinwebsolution.com/wp-content/uploads/2023/04/Frame-40227-1024x536.png)

– In this post, we see how to override [WooCommerce](https://woocommerce.com/) template files in our theme.

– WooCommerce provides that will allow you to override core templates within your [child theme](https://developer.wordpress.org/themes/advanced-topics/child-themes/). This means that you can copy a template file in your current theme and customize it as per your need. you can customize the template without changing the core version of the template.

– We do suggest you do not do this, if possible most changes can be done via [hooks (filters and actions)](https://woocommerce.github.io/code-reference/hooks/hooks.html) instead of this, and this method is far more upgrade-safe than changing a template. However, sometimes a hook you need doesn’t exist, and overriding a template would be the only option to use.

– To override WooCommerce template files in your theme simply create a folder named ‘woocommerce’ within your theme directory, and then create the folders/template file you wish to override within it.

– keeping the same file structure but removing the /templates/ subdirectory.

– As an example, now we override the thankyou page template for custom design. First we find the template file in the plugin directory [(see the full list of templates)](https://woocommerce.com/document/template-structure/). And follow the below path.

- **/plugins/woocommerce/templates/checkout/thankyou.php**
- **/themes/yourtheme/woocommerce/checkout/thankyou.php**
- **/themes/child-yourtheme/woocommerce/checkout/thankyou.php**

– If you override the template in your theme then you will check woocommerce template status every woocommerce new version release or any issue with the theme. but make sure you have taken backup of old template files.

– If found any Outdated templates then you [Fix Outdated templates](https://woocommerce.com/document/fix-outdated-templates-woocommerce/). for that you copy the new template from the plugin and customizations copy from the old template and override the new template in theme.

– Here is the path to check woocommerce template status: Go to: WooCommerce > Status > System Status.

![AI Integration in Magento: Benefits, Use Cases and Business Impact](https://dolphinwebsolution.com/wp-content/uploads/2023/04/image1-2.png)

### Conclusion

– We propose using more suitable methods to make changes first. You should first always try to use a filter or action to change, and then use a template override as a last option if this method isn’t possible or not find any appropriate hooks.

– You’re also now responsible for making sure you keep this template up to date.

– Sometimes you have to update with time because all things will not work with the current environment.


---

_View the original post at: [https://dolphinwebsolution.com/how-to-override-or-fixed-outdated-woocommerce-template-files-in-your-theme](https://dolphinwebsolution.com/how-to-override-or-fixed-outdated-woocommerce-template-files-in-your-theme)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-26 07:39:37 UTC_  
