-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add product configuration link extension template #172
base: main
Are you sure you want to change the base?
Conversation
bd8a121
to
69c9700
Compare
templates.json
Outdated
"group": "Admin", | ||
"supportLinks": [], | ||
"url": "https://github.com/Shopify/extensions-templates", | ||
"type": "product_configuration_link", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure what the type
here should be.
definition of type
from https://vault.shopify.io/page/Create-an-extension-template~cqQS.md:
type: identifier of the extension type that the template contains, it should be identical to the one defined in the Core specification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The identifier for the new cli extension will be product_configuration_link_extension
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
product_configuration_link
will continue to refer to the old dashboard-managed extension
9575774
to
dbca95e
Compare
ec66c7b
to
b3e2842
Compare
type = "product_configuration_link_extension" | ||
handle = "{{ handle }}" | ||
{% if uid %}uid = "{{ uid }}"{% endif %} | ||
pattern = "/bundles{?product_id,shop}&id={contract_id}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pattern = "/bundles{?product_id,shop}&id={contract_id}" | |
pattern = "/bundles{?product_id,shop}" |
The pattern should actually be just this as contract_id
isn't a query parameter for us, my bad for the previous suggestion!
Background
Closes https://github.com/Shopify/bundles-app/issues/2855
Solution
Followed steps in https://vault.shopify.io/page/Create-an-extension-template~cqQS.md
Checklist