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 theme still has the older Awtomic plan selector installed, remove it when you switch to this block so customers don't see two sets of purchase options. See Subscription widget local installation.
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 block in the product sectionPlace the Subscription Widget in the same section as the product's variant picker and Add to cart button. The widget adds the selected plan to that section's product form. In another section, customers' subscription choices are not added to the cart.
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 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. |
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.
- 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. 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 and the block is saved on the product template being viewed. |
| The cart shows a one-time purchase after selecting a subscription | Move the Subscription Widget into the same section as the Add to cart button, save, and test again. |
| Two sets of purchase options appear | Your theme may also have the older Awtomic plan selector installed. Remove it, or contact Awtomic support for help. |
| 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 about 1 hour ago
