Variation Bundles with subscription-option (All Products Subscriptions)
-
Hi SomewhereWarm,
Is there a way to make variation bundles work with your excellent “All Products for WooCommerce Subscriptions”-plugin?
I’m selling a nutrition supplement (1 box = 30 days) and the customers can choose a monthly subscription option as well. I also want to offer a discount to customers who purchase 3 boxes at a time. To manage stock I used product bundles together with variation bundles to bundle 3 boxes together. It works really great!
The problem is that I also want to add a subscription plan to my product bundle: 3 boxes sent every 3 months. Is there a way to make the subscription option show up on the front-end, so the customer can choose the subscription plan before adding the product to the cart?
I’ve been looking at this code-snippet: https://gist.github.com/somewherewarm-snippets/00d81c3f538383e347583ffce24d0dfb to programmatically add the subscription option to the variation – and it kinda works. But because variation bundles works by replacing the variation when added to the cart I can’t figure out how to map the product-bundle subscription to the variation. I hope it makes sense.
Right now I added a subscription to the variation programmatically but the choice is obviously ignored in the cart because it gets replaced with the product bundle.
I really hope you can help ??
- The topic ‘Variation Bundles with subscription-option (All Products Subscriptions)’ is closed to new replies.