Skip to main content

Smartrr Subscription Widgets

Learn how to install and style the Smartrr subscription widget in your Shopify theme editor, plus troubleshooting tips.

The Smartrr subscription widget is added to your product page with two app blocks, and both can be styled from the Shopify theme editor without code.

Smartrr offers four app blocks for product templates. Two of them handle subscription purchases:

  • Subscription Options shows the one-time purchase option and your subscription programs, along with the delivery frequency picker.

  • Subscription Benefits shows a short "Why subscribe?" section that lists what customers get when they subscribe.

This article covers how to add both blocks, every setting you can customize, and how to fix the most common issues.

Before you start

Make sure these are in place before adding the blocks:

  • An Online Store 2.0 theme. App blocks only work on 2.0 themes. If you're on a vintage theme, contact our support team and we'll help you install the widget another way.

  • At least one product in a subscription program. The widget only appears on products that are part of a Smartrr subscription program.

  • No existing Smartrr code snippet on the product page. If Smartrr was previously installed with code in your theme, the app block and the old snippet will conflict. Reach out to support before switching.

Installing the app blocks

  1. In your Shopify admin, go to Sales channels > Online Store and click Edit theme on the theme you're adding Smartrr to.

  2. From the page selector at the top, choose Products and open the product template you want to use (for example, Default product).

  3. In the top-right preview selector, choose a product that's in a subscription program. The widget won't show in the preview for other products.

  4. In the left sidebar, find the Product information section and click Add block.

  5. Search for "Smartrr" and open the Apps tab. Select Subscription Options.

  6. Drag the Subscription Options block to where you want it. We recommend placing it above the Quantity selector and Buy buttons.

  7. [Optional] Click Add block again and select Subscription Benefits. Place it directly below Subscription Options.

  8. Click Save.

Adding the Smartrr app blocks in the Shopify theme.

If your store uses more than one product template, repeat these steps for each template your subscription products use.

Customizing Subscription Options

Click the Subscription Options block in the sidebar to open its settings. They're grouped into four areas.

Screen grab of the Subscription Options customization panel.

Custom Product Form

Setting

What it does

Custom Product form attribute

Attaches the widget to a specific product form. Enter the name of a custom attribute you've added to the form's tag, such as smartrr-product-form. Leave it blank unless your theme needs it (see Troubleshooting).

Subscription Program

These settings style the rows for one-time purchase and each subscription program.

Setting

What it does

Type

Layout of the options: Radio, Dropdown, Pills, or Grid.

Border

Border thickness, from 0 to 25 px.

Corner Radius

How rounded the corners are, from 0 to 100 px.

Background Color

Background color of the option rows.

Text Color

Color of the option text.

Border Color

Color of the option borders.

Show one time purchase option?

When on, shows "One-time purchase" alongside your subscription programs.

Make one-time purchase the default option?

When on, "One-time purchase" is selected when a customer lands on the page.

Subscription Plan (Frequency)

These settings style the delivery frequency picker, such as "Every 1 month."

Setting

What it does

Type

Layout of the frequency options: Radio, Dropdown, Pills, or Grid.

Border

Border thickness, from 0 to 25 px.

Corner Radius

How rounded the corners are, from 0 to 100 px.

Show label?

Shows or hides the label above the frequency options.

Background Color

Background color of the frequency picker.

Text Color

Color of the frequency text.

Border Color

Color of the frequency picker border.

Custom CSS

Use the Custom CSS field for styling you can't achieve with the settings above. CSS entered here only applies to this block.

Customizing Subscription Benefits

Click the Subscription Benefits block in the sidebar to open its settings. Start by choosing a Type, since it decides which content fields are used.

Screen grab of the Subscription Benefits customization panel.

Content

Setting

What it does

Type

Check list shows your list items with a check icon. Bullet list shows them as bullet points. Text shows a paragraph only, with no list items.

Headline

Title above the benefits, such as "Why subscribe?"

Text

Paragraph shown when Type is set to Text.

List Item #1 to #4

Up to four benefits, such as "Save money" or "Free shipping." Shown for Check list and Bullet list. Empty items are hidden.

Style

Setting

What it does

Background Color

Background color of the benefits section.

Text Color

Color of the headline and benefit text.

Icon Color

Color of the check icons. Check list only.

Padding top, bottom, left, right

Space inside the section on each side, in px.

Border radius

How rounded the corners are, in px.

Display

Setting

What it does

Always show

When off, the benefits only appear once a customer selects a subscription option. When on, they're always visible.

Custom CSS

For styling you can't achieve with the settings above.

Troubleshooting

The widget doesn't appear in the theme editor preview

The preview only shows the widget on products that are in a subscription program. Use the product selector at the top of the theme editor to switch to a subscription product. Also check that the block isn't hidden (an eye icon with a line through it next to the block name).

The widget doesn't appear on my live store

  • Confirm the product is added to a subscription program in Smartrr.

  • Confirm the product uses the template where you added the block. Products can be assigned different templates in the product's admin page.

  • Make sure you clicked Save in the theme editor and that you're editing your published theme.

The Subscription Benefits section isn't showing

If Always show is turned off, the benefits only appear after a customer selects a subscription option. Turn on Always show to display them at all times.

Customers are checking out as one-time purchases, or the subscription isn't added to the cart

This usually means the widget isn't in the same product form that sends the variant to the cart. Some themes place the Buy buttons in their own form, so the selected subscription plan never reaches the cart.

To fix this, give the correct form a custom attribute and point the widget to it:

  1. In your theme code, find the <form> tag that contains your add-to-cart button. Add a unique attribute to it, for example <form ... smartrr-product-form>.

  2. In the Subscription Options block settings, enter only the attribute name, smartrr-product-form, in Custom Product form attribute. Don't include id=, #, or brackets.

  3. Click Save, then test by adding a subscription to the cart.

If you're not comfortable editing theme code, contact our support team and we'll set it up for you.

The widget doesn't update when the variant changes

If prices or options in the widget don't change when a customer picks a different variant, the widget is likely attached to the wrong form. Follow the steps in the section above to add a custom attribute to the form that holds your variant picker and add-to-cart button, then enter that attribute name in Custom Product form attribute.

I'm seeing an error or two widgets on the page

This happens when the app block and an older Smartrr code snippet are both on the product page. Only one can be used at a time. Contact our support team and we'll help you remove the old snippet.

Still need help?

Reach out to our support team through the chat in your Smartrr admin. Include the product URL and a screenshot of the issue so we can help faster.

Did this answer your question?