Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lazirpascual
Copy link

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

  • I have 🎩'd these changes
  • I have squashed my commits into chunks of work with meaningful commit messages

@lazirpascual lazirpascual force-pushed the lazirpascual/add-product-config-link-extension branch from bd8a121 to 69c9700 Compare November 27, 2024 20:30
templates.json Outdated
"group": "Admin",
"supportLinks": [],
"url": "https://github.com/Shopify/extensions-templates",
"type": "product_configuration_link",
Copy link
Author

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

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.

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

@lazirpascual lazirpascual force-pushed the lazirpascual/add-product-config-link-extension branch from 9575774 to dbca95e Compare November 27, 2024 21:28
@lazirpascual lazirpascual marked this pull request as draft December 2, 2024 17:15
templates.json Outdated Show resolved Hide resolved
templates.json Outdated Show resolved Hide resolved
@lazirpascual lazirpascual force-pushed the lazirpascual/add-product-config-link-extension branch from ec66c7b to b3e2842 Compare December 3, 2024 19:06
@lazirpascual lazirpascual marked this pull request as ready for review December 6, 2024 20:56
type = "product_configuration_link_extension"
handle = "{{ handle }}"
{% if uid %}uid = "{{ uid }}"{% endif %}
pattern = "/bundles{?product_id,shop}&id={contract_id}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants