With the upcoming additional scripts in the checkout being deprecated I am trying to create a custom app with a post purchase ui extension to achieve a partial migration of some of the code. The Shopify docs in the developer console clearly state to use the chrome extension Shopify Post-purchase Developer Tools but this has been removed by chrome and i can no longer download it. How do i test my extension?
(post deleted by author)
You should be able to test your post-purchase extension in the Shopify Developer Console that’s accessible through the Shopify CLI tool.
When you run shopify app dev
, do you see an option to preview?
It should be available with cmd + p
on mac and ctrl + p
on windows.
HI Dylan, thanks for the quick response. When i run shopify app dev i get the screenshot below. On pressing p in the terminal it just sends me to the dev console where i see the initial instructions i posted
Followed this link below and saw that the Shopify CLI was updated to account for the chrome extension deprecation in May. I had not updated the Shopify CLI since then and was still on 3.79 and with an update (3.81.2) i can now see the correct link to press in the development console
Post-purchase extension development without Chrome extension