<p>No.  Yii's extensions and Craft's plugins are different things, although it's not that difficult to port a Yii extension to a Craft plugin.</p>

CC BY-SA 3.0
2015-03-17T21:19:51.690Z
Thanks! I figured as much. I'm probably just going to create a wrapper for it
charmeleon
CC BY-SA 3.0
2015-03-17T21:19:10.103Z
2015-03-17T21:19:10.103Z
Brad Bell
<p>Specifically, I'm looking at <a href="https://github.com/yiiext/shopping-cart-component" rel="nofollow">https://github.com/yiiext/shopping-cart-component</a>. Can Yii extensions be made to work with Craft (or work out of the box)? </p>

<p>I'm unfamiliar with both, so I'm having a hard time approaching adding a shopping cart to this project, and I think rolling my own would turn out to be a mistake</p>

<plugins><ecommerce>
Are Yii plugins compatible with craft?
# Are Yii plugins compatible with craft?

(Asked by: username_0 on 2015-03-17)

Specifically, I'm looking at <https://github.com/yiiext/shopping-cart-component>. Can Yii extensions be made to work with Craft (or work out of the box)?

I'm unfamiliar with both, so I'm having a hard time approaching adding a shopping cart to this project, and I think rolling my own would turn out to be a mistake

**Tags:** plugins, ecommerce

---

## 1 answers

### Answer by username_1 on 2015-03-17. Score: 1 | Accepted answer

No. Yii's extensions and Craft's plugins are different things, although it's not that difficult to port a Yii extension to a Craft plugin.

> **Comments:**
> **username_0**: Thanks! I figured as much. I'm probably just going to create a wrapper for it  

---

