How to add subscriptions to your custom template
Adding subscriptions to your bundles is possible using the Template Creator, but there are a few important things to keep in mind. Let’s walk through the process step by step.
Start with Selling Plans
Shopify uses Selling Plans to enable subscriptions on products. If you’ve set up a subscription app (like Shopify Subscriptions or a third-party app), these selling plans can be attached to products at checkout.
To add a selling plan to a bundle created with Kitenzo, you can define a global function called bbModifyAddToCartPayload
. This function is triggered when a customer adds a bundle to their cart.
Here’s an example:
<script type="text/javascript"> window.bbModifyAddToCartPayload = (payload) => { payload.items.forEach(item => item.selling_plan = 2446655546); }; </script>
Replace 2446655546
with the ID of your desired selling plan.
Where does this code go?
Your developer can insert this code snippet directly into your store’s theme. We suggest reaching out to a Shopify Expert to help you with the task. Shopexperts and StoreTasker are recommended partners of Kitenzo - both specializing in website development and offering free quotes for their services.
Important: Bundle Type Compatibility
Shopify currently does not support subscriptions on standard bundles.
This is due to Shopify's restrictions on how selling plans can be applied to multiple-product bundles. For more details, refer to Shopify’s official documentation on bundle compatibility.
To use subscriptions successfully, we recommend switching your bundle type to Single-SKU. These bundles are more likely to work with selling plans and subscription apps.
Final Thoughts
With the right setup, you can offer your customers flexible, subscription-based bundles. Just remember:
- Add the
bbModifyAddToCartPayload
function to modify the cart payload. - Ensure the correct selling plan ID is used.
- Use a compatible bundle type—Single-SKU is the best option for subscriptions.