Switch from the old subscription widget
The old subscription widget is being retired. Move your store to the Subscription Widget app block, which you add to your theme and style in Awtomic under Tools → Widget Configurations.
Which widget does your store use?
| Your setup | How to tell | What to do |
|---|---|---|
| Old widget added by Awtomic | The Launch page in Awtomic shows Old subscription widget with a Disable or Make public button. | Follow steps 1–4. |
| Old widget installed in your theme code (a local install) | Your theme has snippet files such as awtomic-plan-selector, awtomic-imports or awtomic-translations. Older installs use awtomatic-, bundleapp- or bundle- in these names. | Follow steps 1–4, then remove the old code. |
| Subscription Widget app block | The Launch page shows Added for your product templates and no old widget button. | Nothing to do. |
Before you begin
These settings don't carry over from the old widget. Set them up again in Tools → Widget Configurations:
- Styling. Restyle the widget on the Styles and Custom CSS tabs.
- Custom text and translations. Text you changed in your theme's language editor (the
awtomatic.plan_selectorkeys) isn't copied. Enter it on the Texts tab. If you sell in more than one language, create a widget for each language and map it to that language's product templates. - Which option is selected by default. Set Default Selected Option on the Preferences tab.
The old widget could also appear on collection pages and quick-add pop-ups. The Subscription Widget is built for product pages.
1. Set up your widget
- In Awtomic, go to Tools → Widget Configurations and click Create widget.
- Match your old widget's text and styling, then click Save. The first widget you create becomes your Default widget.
See Subscription Widget for every setting.
2. Add the block to your product templates
- In Awtomic, go to Launch and find Add the subscription widget to your theme.
- Click Add next to each template, then click Save in the theme editor.
- Add the Gift form block if you sell gift subscriptions, and the Product Price block if you want the product price to update for subscriptions.
Full steps are in Add the subscription widget to your theme.
Customers see both widgets until step 4Once the block is on your live theme, product pages show the old and new widgets together. Do steps 2–4 in one sitting.
3. Test a product page
- Open a product with Awtomic subscription plans on your storefront.
- Select a subscription option and a delivery frequency.
- Add the product to the cart and confirm the cart shows the delivery frequency.
4. Turn off the old widget
- In Awtomic, go to Launch.
- Under Old subscription widget, click Disable.
- Reload a product page. Only the Subscription Widget should appear.
To turn the old widget back on while you fix something, click Make public.
Remove the old code from your theme
If the old widget was installed in your theme code, the Disable button doesn't remove it. Remove the code once the Subscription Widget works. This needs someone comfortable editing theme code, or contact [email protected] and we'll do it for you.
- In Shopify admin, go to Online Store → Themes and click Duplicate on your live theme. Make every change below on the copy.
- On the copy, add the Subscription Widget block to your product templates as in step 2.
- Remove each place the old plan selector is rendered:
{% render 'awtomic-plan-selector' %}in product sections and product card snippets, such asmain-product.liquidandproduct-item.liquid. Remove the whole block between the{% comment %} Awtomic Subscriptions {% endcomment %}markers. - In
layout/theme.liquid, remove the renders ofawtomic-importsandawtomic-translations. - Delete the
awtomic-plan-selector,awtomic-importsandawtomic-translationssnippet files. - Search the theme code for the names you deleted to confirm nothing still refers to them.
- Preview the copy on product pages, collection pages and the cart, then click Publish.
Keepawtomic-theme-customIf your theme has an
awtomic-theme-customsnippet, leave it in place. It holds customizations made for your store.
Custom code that used the old widget
The old widget's JavaScript, including window.bundleapp, the bundleapp:ready event, onInit, initializeForms and setThemeConfigs, stops working when you turn it off. Update any code that depends on it first.
The Subscription Widget fires an event on document whenever a customer changes the purchase option or frequency:
document.addEventListener('awtomic:sellingplan:change', (event) => {
const { productId, variantId, sellingPlanId } = event.detail;
// sellingPlanId is null when one-time purchase is selected
});The event detail also includes the selected price (formattedPrice, formattedCompareAtPrice) and discount (discountValue, discountType).
Get help
We can switch your store with you, including removing a local install. Contact [email protected] with your store name and which setup you have.
Updated about 11 hours ago
