# Sage 10 - Override default woocommerce templates

**URL:** https://discourse.roots.io/t/sage-10-override-default-woocommerce-templates/19078
**Category:** sage
**Tags:** woocommerce, sage10
**Created:** 2020-09-10T06:14:58Z
**Posts:** 13

## Post 1 by @davidfaladore — 2020-09-10T06:14:58Z

Hi,

I have problems overriding the default woocommerce templates in sage 10.

I’ve tried placing it directly into theme folder and also in `resources/views/woocommerce`, but none of the are working.

Do you have any experience with this problem?

Thank you

---

## Post 2 by @philipp — 2020-09-10T08:36:25Z

Please use the search… [WooCommerce support for Sage 10](https://discourse.roots.io/t/woocommerce-support-for-sage-10/17999)

---

## Post 3 by @davidfaladore — 2020-09-10T08:56:02Z

Yes I did, but is there a way just to paste woocommerce .php files somewhere in theme directory that overrides the default woocomerce template files?

I don’t want to use .blade.php files

---

## Post 4 by @philipp — 2020-09-10T09:28:35Z

Ah I see. So or so you need to use one of the packages added, so that WooCommerce looks for the template overwrites in the correct directories. So install one of them and you should be able to use regular `.php` files as well (as far as I remember).

---

## Post 5 by @davidfaladore — 2020-09-10T11:16:45Z

Can you link me the package please?

---

## Post 6 by @philipp — 2020-09-10T12:05:05Z

See my first reply: [WooCommerce support for Sage 10](https://discourse.roots.io/t/woocommerce-support-for-sage-10/17999)

---

## Post 7 by @davidfaladore — 2020-09-10T12:26:57Z

I tried his solution but it’s not working for me. As soon as I add that to my theme I get blank page.

---

## Post 8 by @anon36748741 — 2020-09-10T14:22:25Z

I’ve had some luck using this pull request. .

> <https://github.com/roots/sage-woocommerce/pull/23/files>

But I am still using `blade` in my files though. I created a woocomm folder and am overriding templates.

I actually moved it into my own personal repo but I am not supporting updates as of yet.

> **[MikaCaldera/woocommerce-sage-10](https://github.com/MikaCaldera/woocommerce-sage-10)**
>
> Roots WooCommerce integration with Sage 10 hooks. - MikaCaldera/woocommerce-sage-10

---

## Post 9 by @davidfaladore — 2020-09-11T07:05:20Z

Thank you so much, works perfect :slight_smile:

---

## Post 10 by @anon36748741 — 2020-09-11T14:37:56Z

> [@anon36748741](#):
>
> [ptrckvzn](https://github.com/ptrckvzn)

NO worries! It was ^` ptrckvzn` this person who found the solution. I only split it off to a repo making it easier to add to projects.

---

## Post 11 by @ShamarKellman — 2020-09-27T16:33:49Z

Hi, I have been using the [https://github.com/ptrckvzn/sage-woocommerce](https://github.com/ptrckvzn/sage-woocommerce) repo for Sage 10 and I have been experiencing an issue where overriding the [content-product.php](https://github.com/woocommerce/woocommerce/blob/4.4.0/templates/content-product.php) file, causes duplicate products to be shown. Basically it loads both the original template and the overridden template. Does your version solve this issue?

---

## Post 12 by @anon36748741 — 2020-09-27T20:08:10Z

Hi,

This is the same solution/repo I am currently using. Like I said, I only broke it out into a repo and made it simple to install. I haven’t had any duplicates but I am not touching `content-product.php`. Below is an image of the WooComm template files I am currently successfully overriding.

![Screen Shot 2020-09-27 at 4.04.27 PM](https://discourse.roots.io/uploads/default/original/2X/5/5acf9e6d7d36adbce3e3d1824280fb11aa240ec7.png)

---

## Post 13 by @system — 2020-10-22T06:15:02Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
