The selling_plan_group object

A group of selling plans that have been grouped together based on a shared and selling_plan_group.options.


{% for selling_plan_group in product.selling_plan_groups %}
 {{ }} :

 {% for selling_plan in selling_plan_group.selling_plans %}
   - {{ }}
 {% endfor %}
{% endfor %}


Subscribe & save:
 - Weekly (save 10%)
 - Monthly (save 5%)

Prepaid subscriptions:
 - Prepaid for 1 year

A unique ID for the selling plan group.

The name of the selling plan group.


An array of selling_plan_group_option objects.

A selling_plan_group_option object contains the name and respective values of an individual item in the selling_plan_group.options array.


{% for option in selling_plan_group.options %}
  <label>{{ }}</label>
    {% for value in option.values %}
    <option {% if value == option.selected_value %}selected{% endif %}>
      {{ value }}
    {% endfor %}
{% endfor %}


<label>Delivery frequency</label>
  <option>Every week (save 10%)</option>
  <option selected>Every month (save 5%)</option>
  <option>Every 2 months (save 5%)</option>

Returns the selling plan option’s name.


Returns the index of the the option amongst all the selling_plan_group.options.


Returns the value for the selling plan group option when a selling plan allocation is selected. The selected selling plan allocation is based on both the URL parameters selling_plan and id.


An array of values for the selling plan group option.


Returns true if the selected selling plan is part of the selling plan group. The selected selling plan is based on the URL parameter selling_plan.


An array of selling_plan objects that belong to the selling_plan_group.


An optional string provided by an app to identify selling plan groups created by that app.

If no string is provided by the app, then this property returns nil.