# Sage-woocommerce and Radicle

**URL:** https://discourse.roots.io/t/sage-woocommerce-and-radicle/25506
**Category:** radicle
**Tags:** woocommerce
**Created:** 2023-06-09T10:16:48Z
**Posts:** 12

## Post 1 by @SStrym — 2023-06-09T10:16:48Z

I found information on how to integrate the sage 10 theme with woocommerce to use blade templates ([GitHub - generoi/sage-woocommerce](https://github.com/generoi/sage-woocommerce)), since radicle has a different structure, how to do it correctly

---

## Post 2 by @Log1x — 2023-06-09T11:11:21Z

Have you tried it? sage-woocommerce is a package and Radicle’s directory structure shouldn’t effect it.

---

## Post 3 by @SStrym — 2023-06-09T11:15:57Z

Yes, I tried, changing the blade archive and single-product.blade.php templates does not change anything.

---

## Post 4 by @ben — 2023-06-09T15:22:15Z

I can confirm there’s some issues with the `sage-woocommerce` package and Radicle — I don’t have an answer/solution just yet though

---

## Post 5 by @ben — 2023-06-09T16:17:30Z

Workaround for now ([props](https://github.com/roots/radicle/issues/14#issuecomment-1544601967) @sequelagency)

Modify the contents of `public/content/mu-plugins/00-acorn-boot.php`:

```
add_action('after_setup_theme', fn () => \Roots\bootloader()->boot());
```

---

## Post 6 by @SStrym — 2023-06-10T10:52:19Z

Yes, everything works, thanks!

---

## Post 7 by @wispyco — 2024-03-20T18:01:23Z

I have modified my `00-acorn-boot.php` but the single-product.blade.php does not override the WooCommerce default template so can’t customize.

```
<?php

if (! function_exists('\Roots\bootloader')) {
    wp_die(
        __('You need to install Acorn to use this site.', 'radicle'),
        '',
        [
            'link_url' => 'https://roots.io/acorn/docs/installation/',
            'link_text' => __('Acorn Docs: Installation', 'radicle'),
        ]
    );
}

add_action('after_setup_theme', fn () => \Roots\bootloader()->boot());
```

---

## Post 8 by @ben — 2024-03-20T18:04:15Z

I think this is resolved in the latest version of `sage-woocommerce`?

[https://github.com/generoi/sage-woocommerce/issues/30](https://github.com/generoi/sage-woocommerce/issues/30)  
[https://github.com/generoi/sage-woocommerce/pull/31](https://github.com/generoi/sage-woocommerce/pull/31) (included in v1.1.3)

---

## Post 9 by @wispyco — 2024-03-20T18:08:53Z

So I ran

`composer update generoi/sage-woocommerce`

Should this fix it do I need to do anything after, seems to be the same

It did upgrade

`Upgrading generoi/sage-woocommerce (v1.1.2 => v1.1.3)`

---

## Post 10 by @wispyco — 2024-03-21T17:26:14Z

Just bumping this not sure why my `resources/views/woocommerce/single-product.blade.php` even if I make it just a H1 with test it does not replace the page.

---

## Post 11 by @wispyco — 2024-03-22T18:13:36Z

> [@ben](#):
>
> ```
> add_action('after_setup_theme', fn () => \Roots\bootloader()->boot());
> ```

Oh I mistakenly thought this was no longer neccesary with the fix from sage package but it is so I added the add\_action with composer update and it is working now

---

## Post 12 by @ben — 2024-03-22T19:37:52Z

:+1: That is now the default in Radicle since v1.3.0

[https://github.com/roots/radicle/blob/main/public/content/mu-plugins/00-acorn-boot.php](https://github.com/roots/radicle/blob/main/public/content/mu-plugins/00-acorn-boot.php)
