Copy-paste a Liquid snippet for cart & checkout - One-time vs subscribe pill toggle - primes customers for a selling plan without an app's weight.
1<div class="gpl-sub" data-gpl-sub>2 <label class="gpl-sub__opt">3 <input type="radio" name="purchase_type" value="onetime" checked>4 <span>One-time purchase</span>5 <b>{{ product.price | money }}</b>6 </label>7 {%- if product.selling_plan_groups.size > 0 -%}8 <label class="gpl-sub__opt gpl-sub__opt--save">9 <input type="radio" name="purchase_type" value="sub">10 <span>Subscribe {{ freq | default: 'monthly' }} - save {{ discount | default: '10' }}%</span>11 <b>{{ product.price | times: 0.9 | money }}</b>12 <input type="hidden" name="selling_plan" value="{{ product.selling_plan_groups.first.selling_plans.first.id }}" disabled>13 </label>14 {%- endif -%}
Full source is for members
One payment - every snippet, guide and bundle