For the complete documentation index, see llms.txt. This page is also available as Markdown.

🪄Installing Smartrr on a Shopify 2.0 theme (Automatic Install)

Implementing Smartrr on storefronts with one of Shopify’s 2.0 free themes: Dawn, Craft, Crave, and Sense.

Table listing considerations for subscription products (sales channel support, discounts, payment gateways, draft order restrictions) and the five supported payment gateways: Shopify Payments, PayPal Express, Authorize.net, Adyen and Stripe.

If your store is using one of Shopify’s 2.0 free themes, and have not made any customizations to your theme’s source code, you’re eligible for our simple one-click automated install of Smartrr via our in-app Setup page.

Smartrr works with New customer accounts, with one difference: Smartrr's modern account portal doesn't replace Shopify's account page. Instead, you link customers to it from a menu, in one of two ways:

  • Link the app proxy URL (no theme edits needed). Add your store's Smartrr proxy URL as a menu item in the New customer accounts menu or your store's main menu. For new installs, the proxy path is /a/subscriptions/customer-portal, for example https://yourstore.com/a/subscriptions/customer-portal. To confirm your store's path, open Shopify's app settings and find the proxy URL in Smartrr's app details.

  • Render the portal on its own page. Create a page that displays the portal, then link that page from a menu. [See how to set up the Smartrr account portal on its own page →]

The customer account settings page in the Shopify admin. Shopify's new customer account doesn't provide a liquid file for the Smartrr customer portal to inject into. Instead, the Smartrr customer portal needs to be rendered on its own page and added to Shopify's customer account portal's menu options.

Within the Smartrr app navigate to Setup under RESOURCES in the left-hand menu.

There are two parts to Smartrr setup: Subscription setup and On-site setup. Each has its own tab with required steps to get Smartrr up and running.
There are two parts to Smartrr setup: Subscription setup and On-site setup. Each has its own tab with required steps to get Smartrr up and running.

Subscription setup

1. Set up a subscription program

Subscription Programs are the heart of the Smartrr app. If you're just getting started with subscriptions, we can create a demo program for you by clicking Use a demo program. This will automatically create a "Subscribe & Save 10%" program for your shop.

Gif highlighting the steps to create a demo subscription program.

Alternatively, you can create a new program from scratch by pressing Create my own program. You'll be redirected to our Subscription Program tab to complete this step. Learn more about setting up a Subscription Program here.

2. Select subscription products

Now that your Subscription Program is created, your next step is to assign a product/s to this program.

Similarly to above, Smartrr can create a demo product for you if you press Use a demo product. This will create a Smartrr Snack Cookie (Demo) in your Shopify shop. You can use this demo product for previewing purposes, and will be able to delete it at a later date directly within your Shopify admin.

Gif highlighting the steps to add a demo product.
Gif highlighting the steps to add the newly created demo product to your Shopify store's "Online Store" sales channel.
If using a demo product, be sure to set Online Store as an available sales channel in your Shopify admin.

If you want to start with one of the existing products in your shop, press Select from existing products. You can select one or multiple products from the modal that appears.

Optional: Smartrr optimizations

Now that you've completed the required Subscription setup steps, explore the remaining cards on this tab for ways you can further optimize your subscription business:

The Smartrr dashboard's setup view, showing the "Optional: Smartrr optimizations" list.

On-site setup

1. Install Smartrr snippets

Select the Shopify theme you'd like Smartrr snippets to be installed on. Smartrr Snippets are files that are injected into your code base and will not modify any existing liquid files. These are required in order to render Smartrr on your storefront (such as the Smartrr account portal). There are five files that will be added under the Snippets section in your theme's liquid code.

Note: If you're planning on using Smartrr's subscription widget, leave the I'm planning on using Smartrr's subscription widget box checked. If you're not using a liquid Shopify theme compatible with app blocks, and/or are planning to manually render subscription options on your shop's PDPs with the assistance of a developer, uncheck this box. If you're unsure, no worries. You can always duplicate a clean version of your Shopify theme and re-install Smartrr snippets again.

Gif highlighting the steps to install Smartrr snippets on a Shopify theme.

2. Add Smartrr subscription widget

Smartrr's subscription widget is an app block that can be added to your Default product page from your Shopify theme's online customizer.

If you installed Smartrr snippets to a theme that supports our widget, you will see a green banner during this step that reads: "You're using a Shopify theme that supports the block for our Smartrr Subscription widget."

Don't see this banner? Try our guided install instead.

Below are Shopify themes that are compatible with Smartrr's subscription widget: Colorblock Craft Crave Creator Dawn Enterprise Expanse Fetch Focal Impact Impulse Motion Origin Prestige Publisher Refresh Ride Sense Spotlight Streamline Studio Taste Warehouse

The green banner within the "Add Smartrr subscription widget" card, advising that your theme supports the Smartrr Subscription widget app block.
If you installed Smartrr snippets to a theme that supports our widget, you will see a green banner during this step that reads: "You're using a Shopify theme that supports the block for our Smartrr Subscription widget."

Click Add Smartrr subscription widget to be taken to your live theme editor. Make sure you are viewing Products > Default product. Additionally, make sure you are previewing a product that you have added to a Smartrr subscription program. Under Product information, click Add block and find Subscription Options.

Adding Smartrr's app block to the product page in a theme using the theme's "Customize/Edit" view.

You can customize the look and feel of Smartrr Subscription Options on your by manipulating the block's settings in the left-hand sidebar.

Customize the Smartrr app block using the block's custom settings.
The Subscription Options widget is made up of two parts: Subscription Program, which is on top, and Subscription Plan (Frequency), which is on the bottom. Both parts can be customized independently of each other.
Hide/show the one time purchase option or prices, using the app block's settings.
Check "Show prices?" to include subscription prices with/without price incentives. Uncheck "Show one time purchase option" to make a subscription the only option on a PDP.

Note: 💻 Have a developer who would like to make even more changes to Smartrr's Widget? They can add custom CSS in the "Custom CSS" block.

Add custom stylings to the Smartrr widget in the app block's "Custom CSS" field.

Troubleshooting

Why don't see Smartrr on my theme once I preview my shop?

Whether you've created a demo Subscription Program or made a new program from scratch, you may need to double check and make sure your program details have been successfully "saved". To do this, go to Subscription Programs > Manage Program. Check and see if there is a Discard / Save banner at the top, and click the green Save button.

A "Save" banner appears at the top of the page in the Smartrr admin portal when changes are made. Remember to save changes to have them committed.

Can I add subscription pricing outside the Smartrr subscription widget?

To add Smartrr's pricing element outside of the subscription widget, you can add the following code:

Styling can be changed by adding the following values to the data-smartrr-price-style attribute.

  • original (Adds the original variant price/one-time purchase)

  • original-compare (Adds the original variant price/one-time purchase price and the compare price)

  • overwrite (Adds the current selected subscription plan's price)

  • overwrite-compare (Adds the current selected subscription plan's price and compare price)

  • strike (Discounted price struck through)

  • strike-compare (Compare at price struck through)

How do I enable variant selection within the Smartrr subscription widget?

  1. Find the product liquid file in your theme's code. This is usually named product.liquid or main-product.liquid, but can also be uniquely named if your shop uses a custom theme. If you can't find this file, you can also use theme.liquid.

  2. At the bottom of the file, paste the following code:

  1. In lines 4-5 above, input the unique selector for your variant selector elements. This can be done by inspecting the elements using your browser's developer tools and finding a class or data-attribute that is used only for variant selectors. Examples below:

Note: If your variant selectors are not <input> elements, then you can change the 'change' event listener to 'click'.

Still having trouble installing and don’t have access to a developer? We partner with a handful of excellent agencies. We also offer full white-glove onboarding support with our Grow and Excel plans.

Last updated