<p>I am porting a Shopify "multi-site" to CraftCMS using Commerce and I need to be able to add subscriptions to the shopping cart (customers can subscribe to a monthly box), together with other products. 
Ideally I would have the subscription as a payment variant of a given product, so I can offer the same product for a reduced price if a customer subscribes to it.
(Single box vs. Monthly box)</p>

<p>Has anyone implemented something similar? Any hint or advise on how you'd go for this? </p>

<hr>

<p>Edit, just for this question viewers's information:</p>

<p><a href="https://i.sstatic.net/vdTDH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vdTDH.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2018-04-18T16:05:36.627Z
I haven't look at subscriptions yet for Commerce 2, so don't have a specific answer to Craft side of this, but I'd argue that you'd do well to keep the single and monthly boxes as separate products if for no other reason than for easier sales reporting purposes. We manage a large subscription service company and that's how they prefer it too.
Stephen Callender
CC BY-SA 3.0
2018-04-18T22:56:24.573Z
Subscriptions currently only work with Stripe - you will find the plugin in the Craft Plugin Store. All subscription plans need to be setup on the Stripe account, before you can select them in your CP. This will allow you to keep the transactions apart, as @stephen indicated. E-way does provide subscriptions also, however, while in E-commerce β, there is no provision for this plugin as yet.. –
Nutmeg
CC BY-SA 3.0
2018-04-19T08:03:11.073Z
@StephenCallender The subscription vs. single item would be different product variants, and thus, they'd have a different SKU, so I think we would be covering that issue that you comment.
Rosana Ruiz
CC BY-SA 3.0
2018-04-19T08:03:15.943Z
@Nutmeg I have already set up stripe subscriptions on my Craft installation but the thing of actually being able to add a subscription to the cart is what I haven't solved. I'm guessing I'll have to implement custom logic but can't yet evaluate how much possible it is to accomplish.
Rosana Ruiz
CC BY-SA 3.0
2018-04-19T20:52:30.200Z
Why don't you ask Pixel & Tonic how they built the Plugin Store? I would imagine something alike considering most plugins have a recurring annual charge?
Nutmeg
CC BY-SA 4.0
2018-06-15T12:56:34.347Z
@RosanaRuiz I just implemented this on a site I'm working on. I created a Product which represents the subscription and added a field onto the product to store the associated subscription handle. Then, I wrote a plugin that hooks into the EVENT_AFTER_COMPLETE_ORDER event which manually adds the user to the subscription.
Bryant
CC BY-SA 4.0
2018-11-23T15:58:59.027Z
This still seems like a vague topic. I too would like to port Shopify recurring billing items (which are discounted when subscribed to but must be the same SKU for the warehouse fulfillment to happen) any more clarity?
Benjamin Shrimpton
<plugin-craftcommerce><craft3>
Craft Commerce 2: Adding subscriptions to cart
# Craft Commerce 2: Adding subscriptions to cart

(Asked by: username_0 on 2018-04-17)

I am porting a Shopify "multi-site" to CraftCMS using Commerce and I need to be able to add subscriptions to the shopping cart (customers can subscribe to a monthly box), together with other products.
Ideally I would have the subscription as a payment variant of a given product, so I can offer the same product for a reduced price if a customer subscribes to it.
(Single box vs. Monthly box)

Has anyone implemented something similar? Any hint or advise on how you'd go for this?

---

Edit, just for this question viewers's information:

[![enter image description here](https://i.sstatic.net/vdTDH.png)](https://i.sstatic.net/vdTDH.png)

**Tags:** plugin-craftcommerce, craft3
> **Comments:**
> **username_1**: I haven't look at subscriptions yet for Commerce 2, so don't have a specific answer to Craft side of this, but I'd argue that you'd do well to keep the single and monthly boxes as separate products if for no other reason than for easier sales reporting purposes. We manage a large subscription service company and that's how they prefer it too.  
> **username_2**: Subscriptions currently only work with Stripe - you will find the plugin in the Craft Plugin Store. All subscription plans need to be setup on the Stripe account, before you can select them in your CP. This will allow you to keep the transactions apart, as @stephen indicated. E-way does provide subscriptions also, however, while in E-commerce β, there is no provision for this plugin as yet.. –  
> **username_0**: @StephenCallender The subscription vs. single item would be different product variants, and thus, they'd have a different SKU, so I think we would be covering that issue that you comment.  
> **username_0**: @Nutmeg I have already set up stripe subscriptions on my Craft installation but the thing of actually being able to add a subscription to the cart is what I haven't solved. I'm guessing I'll have to implement custom logic but can't yet evaluate how much possible it is to accomplish.  
> **username_2**: Why don't you ask Pixel & Tonic how they built the Plugin Store? I would imagine something alike considering most plugins have a recurring annual charge?  
> **username_3**: @RosanaRuiz I just implemented this on a site I'm working on. I created a Product which represents the subscription and added a field onto the product to store the associated subscription handle. Then, I wrote a plugin that hooks into the EVENT_AFTER_COMPLETE_ORDER event which manually adds the user to the subscription.  
> **username_4**: This still seems like a vague topic. I too would like to port Shopify recurring billing items (which are discounted when subscribed to but must be the same SKU for the warehouse fulfillment to happen) any more clarity?  

---

## 0 answers

