We offer a few different options to help you complete this installation on your store:
- An automatic installer
- The ability to request a professional installation from our team
- A step-by-step guide on completing this manually
Before you start, we highly recommend creating a Duplicate version of your Shopify theme to ensure you have a copy without our code installation.
This article is relevant to Subscriptions V1. If you have Subscriptions for Shopify Checkout on your store, please visit visit Installation Guide for Subscriptions for Shopify Checkout. If you are unsure of which version of Bold Subscriptions you have, please visit Identify Your Version of Bold Subscriptions.
Automatic Install
When you first install Bold Subscriptions V1 to your store, it will immediately take you to a screen that mentions the importance of running an automatic installation on your store.
If you are not seeing this option, please navigate to Help > Install to Theme.
Selecting Begin update will allow you to choose your preferred theme that you would like to complete the automatic code installation on for Subscriptions V1.
Pro-Tip
When selecting which theme to update, there will be a check box that says: "I have created a backup of this theme"
We recommend creating a Duplicate version of your Shopify theme to ensure you have a copy without our code installation.
Once the checkbox is selected to confirm you have a back up version of your theme, you will be able to proceed with the code installation.
If your current theme is not compatible with our automatic installation tool, the app will automatically notify you. If this happens, you can rollback your theme to its previous state.
When the installation has not been completed in full, reverting the changes will automatically create an installation request for our team to assist you further.
Manual Install
This step will instruct you on how to complete the Liquid code installation yourself. This method of installation is only suggested if you have a strong knowledge of Liquid coding.
Before you start the installation, it is highly recommended to create a duplicate of your theme. This allows you to test your installation before making the theme live on your store.
Note: Our installations team recommends completing an automatic installation first. The manual installation steps below can then be followed to ensure that everything is added correctly and displaying properly on your store.
Step 1: Add Snippet Files
- From the Shopify admin, select Online Store.
- Select Actions.
- Duplicate the theme you would like the installation completed on.
- Select Edit code on the duplicated theme.
- Under Snippets, find the following files:
- bold-common.liquid
- bold-includes.liquid
- bold-ro-init.liquid
- If they don't currently exist, select Add a new snippet.
- Enter the correct snippet name.
- Select Create snippet.
- Copy and paste the code from the following links:
- Select Save.
Step 2: Edit bold-includes.liquid
- Under Snippets, select bold-includes.liquid.
- Copy and paste the following code in to the bottom of the file:
{{ 'https://ro.boldapps.net/v2_ui/js/ro.js' | script_tag }}
- Select Save.
Step 3: Edit theme.liquid
- Under Layout, select theme.liquid.
- Copy and paste the following code directly above the </head> tag:
{%- render 'bold-common' -%}
{%- render 'bold-includes' -%}
{%- render 'bold-ro-init' -%} - Select Save.
Step 4: Edit customers/account.liquid
This step explains how to add the Manage Subscriptions page link in to the customer’s account details page. Without this link being inserted into an obvious area, subscribers may find it difficult to locate where to manage their subscription.
We recommend inserting this link into the recommended location, though other locations can be utilized as well - like in your main navigation bar. This link can be moved around to your liking.
- Under Templates, select customers/account.liquid.
-
Under the line:
{{ 'customer.account.details' | t }}
or:
{{ 'customer.account.title' | t }}
copy and paste the following code:
<p><a href="/tools/checkout/api/manage/subscription/app" class="text-link">Manage Subscription</a></p>
If you are not seeing either of the codes above, you can add this under the </header>
- Select Save.
Step 5: Edit product.liquid
- Under Templates, select product.liquid. It may redirect you to product-template.liquid depending on your theme.
-
Add this code where you want the widget to display. The widget can be placed anywhere within a <form> or {%form%} on the product page. The widget normally is placed above the Add to Cart button or the Quantity Selector:
<div class="ro_widget"></div>
Note: This step is optional, as the app will try to automatically place the widget if this step is not done manually. If you would like to move the subscription widget on the product page, you can do so by moving the line of code mentioned above either up or down the liquid file between the <form> or { % form %} start and end lines.
- Find the add to cart input or button and add the class addtocart. If no class already exists, you'll need to create one. Your existing code should look something like the following:
<button type="submit" class="btn" name="add">Add To Cart</button>
which should be changed to:
<button type="submit" class="btn addtocart" name="add">Add To Cart</button>
- Select Save.
Step 6: Edit cart.liquid
- Under Templates, select cart.liquid.
Note: If your theme contains sections, you may have to look for this code under Sections in cart-template.liquid instead.
- Find a line of code similar to:
On newer themes, it may be:{{ item.price | money }}
{{ item.final_line_price | money }}
Note: This code may be referenced differently depending on the theme you are using. In some themes, this code may not exist at all. If it is contained within your theme, the code will include a reference to price.
- Copy and paste the following snippet of code above this line:
<span class="Bold-theme-hook-DO-NOT-DELETE bold_cart_item_price" data-item-key="{{item.key}}" style="display:none !important;"></span>
- Find a line of code similar to:
On newer themes, you may be searching for:{{ item.line_price | money }}
{{ item.final_line_price | money }}
- Copy and paste the following snippet of code above this line:
<span class="Bold-theme-hook-DO-NOT-DELETE bold_cart_item_total" data-item-key="{{item.key}}" style="display:none !important;"></span>
- Find a line of code similar to:
{{ cart.total_price | money }}
- Copy and paste the following snippet of code above this line:
<span class="Bold-theme-hook-DO-NOT-DELETE bold_cart_total" style="display:none !important;"></span>{{ cart.total_price | money_with_currency }}
- Add the following pieces of code where you want the descriptions to display:
<span class="bold_ro_desc" data-product-id="{{item.id}}-{{ forloop.index0 }}"></span>
<span class="bold_load_cart_item_properties"></span> - Place {% comment %} and {% endcomment %} tags around any existing properties loop:
- Copy and paste the following line of code around any third-party checkout buttons:
<div class="additional-checkout-buttons">{{ content_for_additional_checkout_buttons }}</div>
Note: Subscriptions is not compatible with additional checkout buttons. In order for your customer's orders to reoccur, the built in Subscriptions checkout must be used. PayPal, AmazonPay, ApplePay, and GooglePay are not supported within the Subscriptions checkout.
- Select Save.
Request a Subscriptions V1 Install
This option creates a ticket request with our installation team, which is then scheduled to be completed by our experts. By selecting this option, you will be asked to confirm which theme you would like this code installation completed on.
All of these requests are completed manually on a rotational basis. You will receive an email notification upon completion.
Alert
In order for our team to complete a Liquid code install or help troubleshoot certain issues, we will require access to your Shopify Admin.
To maintain the security of your Shopify account, we are now requesting that you do not proactively send us a Staff Account invite for access to your shop. Instead, our team will request Collaborator access to your shop.
If you would like to install an app that requires you select a checkbox to confirm you have created a Staff Account before submitting your request, you can select this option without creating the staff account. Our team will respond with a Collaborator request.
- From within Bold Subscriptions V1, navigate to Help, then Install to theme.
- Under the automatic theme update information, select expert theme update service.
- Review the terms, then select I have created a staff account for Bold.
- Select the theme you would like the code installation to be completed on.
- Select Submit Request.
Next Steps
Once this installation is completed on your store, the subscription widget and the Manage Subscription page should start appearing on your store.
We recommend that a Test Order with Bold Subscriptions V1 be created so you can review how orders appear and how they are managed by your customers.
Code Removal
If you would like to remove the liquid code from your theme, the liquid code can be removed by deleting the snippet files, asset files, and other code mentioned in the instruction steps above.
You can otherwise request a code removal by contacting our Customer Success team.
Note: If you are experiencing storefront performance issues after completing the code installation, we recommend requesting an expert installation as your theme may require further liquid code changes. Please see previous step Request a Bold Subscriptions V1 Install for more information.