Skip to main content

selling_plan_group

Information about a specific group of selling plans that include any of a product's variants.

Selling plans are grouped based on shared selling plan option names.

To learn about how to support selling plans in your theme, refer to Purchase options.

Properties

Anchor to
app_id

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

If the app doesn't provide a value, then nil is returned.

Tip

You can use this property, with the where filter, to filter the product.selling_plan_groups array for all selling plan groups from a specific app.

The ID of the selling plan group.

The name of the selling plan group.

The selling plan group options.

Anchor to
selling_plan_selected

Returns true if the currently selected selling plan is part of the selling plan group. Returns false if not.

Note

The selected selling plan is determined by the selling_plan URL parameter.

Anchor to
selling_plans
array of selling_plan

The selling plans in the group.

{
"app_id": "gid://shopify/App/66228322305",
"id": "e88ff8fdb3c39c89b564859e34542e0b982076d6",
"name": "1 Week(s), 4 Week(s)",
"options": [],
"selling_plan_selected": false,
"selling_plans": []
}
Was this section helpful?