Continuous CI/CD Pipeline run whenever changes are made on shopify

vipult4
Shopify Partner
2 0 0

Hi, I have Shopify store and I am using shopify storefront api and have build a gatsby website using netlify. I need help in website so that whenever any changes are done on the website the changes are reflected on the gatsby website. when I go in shopify notification and I try creating a webhook it does it only for certain action not for all actions.

 

 

Reply 1 (1)

vipult4
Shopify Partner
2 0 0

I have solved the issue part of it is you can create webhooks for certain events inside shopify settings -> notifications -> add webhook and do it.
With the changes you might have to create multiple events and add same webhook.
https://github.com/gatsbyjs/store.gatsbyjs.org/issues/4 

For blogs I have used Zapier since shopify lacks webhook functionality for that.

(when a new item is added to the rss feed. -> trigger a netlify deploy)

1. In Zapier, you can connect using the documentation as shopify generates rss feeds for blogs based on the category like news, events, press. (This will only work if your store is not using password so remove password on theme)
2. you don't have to provide credentials in just the json 

Shopify automatically produces an RSS feed for every blog that you create, so customers can subscribe to it and receive notifications when you publish a new post. The feed URL is the URL of the blog page with .atom appended. For example, http://store.myshopify.com/blogs/blogname.atom