Subscription Widget
The Subscription Widget app block adds purchase options to your product pages. Customers choose between a one-time purchase and your Awtomic subscription plans, and pick a delivery frequency. Their choice is added to the cart with the product.
You add the block to your theme in the Shopify theme editor. You control how it looks and behaves in Awtomic under Tools → Widget Configurations.
Before you begin
- Install Awtomic and assign at least one Awtomic subscription plan to your products. See Setting up subscription plans and Assigning subscription plans to products.
- Use a theme that supports app blocks (an Online Store 2.0 theme).
- If your store still uses the old subscription widget, turn it off or remove it when you switch to this block so customers don't see two sets of purchase options. See Switch from the old subscription widget.
1. Add the block to your theme
- In Shopify admin, go to Online Store → Themes and click Customize on the theme you want to update.
- Open the product template, for example Products → Default product. Repeat these steps for each product template that sells subscription products.
- In the product information section, click Add block and select Awtomic's Subscription Widget from the Apps list.
- Drag the block above the quantity selector and Add to cart button.
- Click Save.
Keep the widget on a page with the product's Add to cart buttonThe widget adds the selected plan to the product's Add to cart form, wherever that form is on the page. Placing it in the product information section, next to the variant picker, is usually clearest for customers. If the page has no Add to cart form for the product, the widget stays hidden.
On product templates, the block uses the product being viewed. On other pages, such as a landing page with a featured product section, choose the product in the block's Product setting.
In the theme editor, the block shows a placeholder when the product has no Awtomic subscription plans. On your storefront, the widget stays hidden on those products.
2. Customize the widget in Awtomic
The widget works without any setup in Awtomic, using the built-in look. To change its look or behavior, create a widget configuration.
If you don't see Widget Configurations under Tools, contact [email protected] to confirm the feature is available for your store.
- In Awtomic, go to Tools → Widget Configurations.
- Click Create widget.
- Configure the widget using the General, Preferences, Texts, Styles and Custom CSS tabs described below. The Preview on the right updates as you edit. Your theme's fonts and styles can make the storefront look slightly different.
- Click Save in the save bar.
The first widget you create becomes your Default widget and applies to every product page, unless a mapping assigns a different widget. See step 3 below.
General
| Setting | What it controls |
|---|---|
| Widget Name | An internal name to identify the configuration. Customers don't see it. Up to 64 characters. |
| Frequency Selector Style | How customers choose a delivery frequency: Dropdown (default), Buttons, or Radio buttons. |
Preferences
| Setting | What it controls |
|---|---|
| Default Selected Option | Which option is selected when the page loads: Subscription selected by default (the first subscription option) or One-time purchase selected by default. |
| Custom subscription details URL | Optional. Adds a Learn more link to the subscription details popup, for example to your subscription FAQ. Enter a full URL starting with https://, or a path on your store starting with /. See Texts for how to turn on the popup. |
Texts
Change the words customers see in the widget. Leave a field empty to use the widget's built-in text. Your text appears exactly as you enter it, in every storefront language.
| Setting | What it changes | Built-in text |
|---|---|---|
| Purchase Options Label | The heading above the purchase options. | Purchase Options |
| One-time Purchase Label | The name of the one-time option. | One-time purchase |
| Frequency Label | The label above the frequency selector. | Frequency |
| Customize My Box Button Label | The button shown on customizable Build-a-Box products. | Customize my box |
| Discount Badge Text | The badge on discounted subscription options. Use {{discount_value}} where the discount should appear, for example Save {{discount_value}}. | Save {{discount_value}} |
| One-time Option Description | Optional text below the one-time option. | None |
| Subscription Details Link Text | The link that opens the subscription details popup, and the popup's title. | None |
| Subscription Details Description | The text inside the subscription details popup, for example how subscriptions work and how to cancel. | None |
The subscription details link and popup appear only when both Subscription Details Link Text and Subscription Details Description are filled in.
Styles
Styles are grouped into collapsible sections. Enter sizes as numbers; they are applied in pixels.
| Group | What it styles |
|---|---|
| Widget Container | The box around the whole widget: background, border, corner radius, padding and margin. |
| Option Card | Each purchase option: background, border, text color, corner radius, padding and margin. |
| Selected Option | The selected option: background, border color and width, and text color. |
| Radio Button | The radio circles: border color, checked color and size. |
| Typography | Font family, and the color, size and weight of option names. Enter inherit as the font family to use your theme's font. |
| Price | Price color, size and weight; strikethrough price color and size; and the price subtitle. |
| Discount Badge | Badge background, text color, size and weight. |
| Frequency Selector | The frequency label and the dropdown's background, text, border, corner radius, padding and font size. |
Custom CSS
Add CSS to style the widget further. It is applied after the widget's own styles. Start selectors with .awtomic-sw, for example:
.awtomic-sw .awtomic-sw__option {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.awtomic-sw .awtomic-sw__option--selected {
border-color: #1f5f3f;
}Manage widgets
From the Widget Configurations list you can:
- Edit a widget.
- Duplicate a widget to create a copy named "(Copy)" that you can change separately.
- Set as default to make a widget the default for your store.
- Delete a widget. Mappings that use it are removed too. You can't delete your only widget. If you delete the default widget, another widget becomes the default.
3. Use different widgets for different themes or templates
Mappings let you show a different widget on a specific theme or on specific product templates. For example, a wine club product template could get its own design.
- In Tools → Widget Configurations, click Widget Mappings.
- Click Add mapping.
- Choose the Theme, or Any theme.
- Under Product Templates, select one or more product templates. Leave it empty to use the widget for every product template on that theme.
- Choose the Widget, then save.
Each theme and template combination can be mapped only once.
When a product page loads, the widget uses the first match in this order:
- A mapping for the current theme (or Any theme) that includes the product's template.
- A mapping for the current theme (or Any theme) with no templates selected.
- Your Default widget.
Mappings only choose which widget configuration applies. You still need to add the Subscription Widget block to each theme and product template in the theme editor.
What customers see
- A One-time purchase option, followed by one option for each Awtomic subscription plan group on the product. Each subscription option shows its price, and, when the plan has a discount, the original price with a strikethrough and a Save badge.
- A frequency selector inside the selected subscription option. When a group has only one frequency, it shows as text.
- The plan description, if the plan has one, below the selected subscription option.
- A subscription details link below the options, if you've set up the popup in Texts. It opens a popup with your description and, if you added a Custom subscription details URL, a Learn more link.
- On subscription-only products, there's no one-time option and the first subscription option is selected.
- When the customer changes variant, the options and prices update for that variant. Options for sold-out variants can't be selected.
- The selected plan is added to the page URL as
selling_plan, so shared links open with the same plan selected. You can also link to a product page with?selling_plan=<plan ID>to preselect a plan.
Plans used only at checkout, such as Card Vaulting and allocation plans, never appear in the widget.
Build-a-Box products
On Build-a-Box products, the widget replaces the Add to cart button with Customize my box and hides the Buy it now button. You can change the button's text with Customize My Box Button Label in Texts. Customize my box opens the box builder with the selected variant and plan. Shuffle bundles keep the standard Add to cart button.
Works with other Awtomic blocks
- Product Price shows the price of the option selected in the widget.
- Gift form appears when a customer selects a giftable prepaid plan.
Test your setup
- Open a product with Awtomic subscription plans in your storefront or theme preview.
- Confirm the purchase options appear with the expected default selection.
- Select a subscription option, choose a frequency and add the product to the cart.
- In the cart, confirm the item shows the subscription and frequency you selected.
- Change the variant and confirm the options and prices update.
- Open a product without subscription plans and confirm the widget doesn't appear.
Troubleshooting
| Issue | What to check |
|---|---|
| The widget doesn't appear | Confirm the product has an Awtomic subscription plan assigned, the block is saved on the product template being viewed, and the page has an Add to cart button for the product. |
| The cart shows a one-time purchase after selecting a subscription | Confirm the widget and the Add to cart button are for the same product. On pages with several products, choose the right product in the block's Product setting. |
| The subscription details link doesn't appear | Fill in both Subscription Details Link Text and Subscription Details Description in Texts, then save. |
| My text changes don't appear | Confirm you edited the widget that applies to this page (see Widget Mappings and the Default widget) and saved it. |
| Two sets of purchase options appear | The old subscription widget is still on. See Switch from the old subscription widget. |
| My widget configuration isn't applied | Check Widget Mappings for a mapping that matches the theme and template, and check which widget is the Default. |
| A plan is missing from the widget | Confirm the plan is assigned to the product and the selected variant. |
| Styles don't match my theme | Adjust the widget's Styles, or add Custom CSS. |
Contact [email protected] if you need help.
Updated 9 days ago
