PremiumNewFeaturedProduct Sections

Subscription Toggle

One-time vs. subscribe-and-save toggle for PDPs.

#subscription#subscribe-and-save#recurring#pdp#recharge-helper#shopify-subscriptions

Live preview

See it in action.

Fully interactive, drag, click, scroll inside the frame, toggle to mobile.

About this section

A polished one-time-vs-subscribe radio toggle that surfaces the savings percentage and frequency picker for any product configured with selling plans (Shopify Subscriptions, Recharge, Bold Subscriptions). Reads native product.selling_plan_groups, no app SDK required. Mirrors the chosen variant + selling_plan into your theme's existing add-to-cart form so checkout creates the right subscription line item.

Install in 90 seconds

  1. 01

    Create /sections/modblo-subscription-toggle.liquid.

  2. 02

    Paste the section code and save.

  3. 03

    Add the section to product.json directly above your existing variant picker / add-to-cart button.

  4. 04

    Configure selling plans on your products in Shopify Admin โ†’ Products โ†’ Selling plans (or via Recharge / Bold).

  5. 05

    The widget auto-syncs with your theme's product form by mirroring the variant id and selling_plan input. Works with most modern themes (Dawn, Refresh, Origin) without changes.

The code

This is the file you'll paste into your theme.

Unlock the section code

Subscription Toggle is a premium section. Get the full Liquid + scoped CSS paste-ready.

One-time purchase ยท Lifetime updates ยท You own the code

What you can customize

Every setting below shows up in the Shopify theme editor. Change them without touching code.

SettingTypeDefault

Product

product

Leave blank on PDPs to auto-bind.

Product,

One-time label

onetime_label

TextOne-time purchase

One-time subtext

onetime_sub

Text,

Subscribe label

subscribe_label

TextSubscribe & save

Subscribe subtext

subscribe_sub

Text,

Background

bg

Color picker#ffffff

Foreground

fg

Color picker#0b0b0c

Accent

accent

Color picker#6366f1

Save badge color

save_color

Color picker#16a34a

SEO and accessibility notes

  • Reads native product.selling_plan_groups, works with any subscription provider that registers Shopify selling plans.
  • Real <input type="radio"> with label association, full keyboard accessibility.
  • Auto-detects discount kind (percentage / fixed_amount / price) and renders the right savings math.
  • Section auto-hides when the product has no selling plans configured, no broken UI on regular products.
Subscription Toggle. Shopify section | modblo