Skip to main content
Glama
selling_plan_group.md2.11 kB
# selling_plan_group Information about a specific group of [selling plans](https://shopify.dev/apps/subscriptions/selling-plans) that include any of a product's variants. Selling plans are grouped based on shared [selling plan option names](https://shopify.dev/docs/api/liquid/objects/selling_plan_option#selling_plan_option-name). To learn about supporting selling plans in your theme, refer to [Purchase options](https://shopify.dev/themes/pricing-payments/purchase-options). ## Properties ### app_id **Type:** [string](https://shopify.dev/docs/api/liquid/basics#string) An optional identifier provided by an app to distinguish selling plan groups created by that application. If the app doesn't provide a value, then `nil` is returned. **Tip:** Use this property with the [`where` filter](https://shopify.dev/docs/api/liquid/filters/where) to filter the [`product.selling_plan_groups` array](https://shopify.dev/docs/api/liquid/objects/product#product-selling_plan_groups) for selling plan groups from a specific app. ### id **Type:** [number](https://shopify.dev/docs/api/liquid/basics#number) The ID of the selling plan group. ### name **Type:** [string](https://shopify.dev/docs/api/liquid/basics#string) The name of the selling plan group. ### options **Type:** array of [selling_plan_group_option](https://shopify.dev/docs/api/liquid/objects/selling_plan_group_option) The selling plan group options. ### selling_plan_selected **Type:** [boolean](https://shopify.dev/docs/api/liquid/basics#boolean) 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. ### selling_plans **Type:** array of [selling_plan](https://shopify.dev/docs/api/liquid/objects/selling_plan) The selling plans in the group. ## Example ```json { "app_id": "gid://shopify/App/66228322305", "id": "e88ff8fdb3c39c89b564859e34542e0b982076d6", "name": "1 Week(s), 4 Week(s)", "options": [], "selling_plan_selected": false, "selling_plans": [] } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server