# SAGE 10 Woocommerce: Sage start after Woocoommerce - Paypal Express Bug

**URL:** https://discourse.roots.io/t/sage-10-woocommerce-sage-start-after-woocoommerce-paypal-express-bug/19727
**Category:** sage
**Tags:** woocommerce, sage10
**Created:** 2020-12-08T09:58:10Z
**Posts:** 4

## Post 1 by @riccardomel — 2020-12-08T09:58:10Z

Hi all,

We have some trouble with **SAGE 10 Woocommerce.**  
In our test case, for example we need to register some default Woocommerce enque in our theme in order to achive the default woocommerce plugin **Paypal Express Support.**

Workaround:  
`wp_enqueue_script( 'wc-gateway-ppec-smart-payment-buttons' );`

This script is hooked by default from woocommerce but in our Sage 10 theme, for some reason, not appear in html correctly.

Using default Wordpress TwentyTwenty all works fine.

**THE PROBLEM:**  
Seems like our sage theme start **after** the woocommerce plugin, so the plugin not append the wp\_enqueue\_script correctly.

We need to solve without a workaround in order to solve future problem like this.

Any ideas or suggestions?

---

## Post 2 by @Jacek — 2020-12-08T12:06:55Z

Are you try set higher priority for this enqueue\_script to load before woocommerce ?

---

## Post 3 by @riccardomel — 2020-12-09T08:42:42Z

Yes with tried everything with priority.

The Sage theme “autoload” start after the woocommerce plugin, this cause some hook of the plugin not start correctly.

---

## Post 4 by @Jacek — 2020-12-09T09:22:25Z

I think it’s fine, plugins should load before theme.

---

## Post 5 by @system — 2021-01-19T10:05:34Z

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