Using Bold Subscriptions V1 on the Recurring Cart Mode creates a widget on the cart page for customers to choose their subscription frequencies. This widget defaults to the one-time purchase selection, but you can change the default selection from one-time purchase to subscription using JavaScript.
This customization only works for stores using the Recurring Cart mode. All other cart modes have this option built into the subscription group.
Alert
Please note that this article only relates to Version 1 of Bold Subscriptions. If you have Version 2 of Bold Subscriptions installed on your store, please visit Subscriptions V2 Overview.
If you are unsure of which version of Bold Subscriptions that you have currently installed, please visit Identify Your Version of Bold Subscriptions.
Setup
- From the Shopify admin, select Online Store.
- Select Actions.
- Select Edit.
- Under Snippets, select Add a new snippet.
- Enter boldsubs-btn-preselect as the snippet name, then select Create snippet.
- Copy and paste the boldsubs-btn-preselect.liquid code into the new snippet file and select Save.
- Under Layout, select theme.liquid.
- Directly below the Bold includes, insert the following line of code:
{% include 'boldsubs-btn-preselect' %}
- Select Save.
To test this, reload your product page and ensure that the default selection is now beside the Subscribe option.