Set the Default Selection to Subscribe in Bold Subscriptions

Follow

Overview

By default, Bold Subscriptions will set the "one-time purchase" selection as the default selection when you are offering both a one-time purchase and subscription option on a product. You can change this to make the default selection the "subscription" option using JavaScript.

To make "subscribe" the default selection, please follow these steps:

  1. From within your Shopify admin, select Online Store, then ActionsEdit.
  2. Under "Snippets", select Add a new snippet.

    Add a new snippet

  3. Enter boldsubs-btn-preselect as the snippet name, then select Create snippet.

    Subscriptions snippet

  4. Copy and paste the boldsubs-btn-preselect.liquid code into the new snippet file and select Save.

    Paste the code

  5. Under "Layout", select theme.liquid.

    Select theme.liquid

  6. Directly below the Bold includes, insert the following line of code:
    {% include 'boldsubs-btn-preselect' %}

    Insert the code

  7. Select Save.

To test that this worked, reload your product page and ensure that the default selection is now beside the 'subscribe' option.

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.