For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
In selling plan groups and selling plans, there is an options attribute. I just put in a dummy value there though since I don't understand how I'm suppose to use them.
For selling plan groups, I just iterate through all its selling plans and display their name. What's options for here?
For selling plans, I don't get how there can be multiple options for a single selling plan.
Options are what would show to the customer front end. For example, letting them pick a frequency so you can in turn can set up the correct plan. Options are shown in the docs so maybe the example here may help you:
https://shopify.dev/tutorials/create-manage-selling-plans
In that link, it shows a selling plan group with 3 selling plans. And the selling plan group has an array of options with one option: `["Delivery every"]`. I don't understand why this is an array.
The selling plan options then are just string that looks like it should be concatenated with the group option. Not sure I understand.
In this page https://shopify.dev/tutorials/customize-theme-showing-selling-plan-groups-and-selling-plans#show-ava... it shows 2 ways to display in the front end:
I have the same question. I don't see why should I use options (Besides giving the user an option to customize their name).
Why shouldn't I use it?