Re: How to trigger email notifications only for manual stock quantity changes

How to trigger email notifications only for manual stock quantity changes

BitShifter
Shopify Partner
3 0 0

Hello. I want to receive an email when the stock quantity changes. I actually managed to do this, but I'm also getting emails when there's a sale. I only want to receive emails when the stock quantity is changed manually, not in sales scenarios. Does anyone have any ideas on how I can achieve this?

Yeni Proje (2).jpg

Replies 5 (5)

rajweb
Shopify Partner
825 71 155

Hello @BitShifter ,

Thank you for your message. To only receive notifications for manual inventory updates (excluding sales), we can set up a custom webhook and implement filtering logic on the server side. This will ensure you get notified only when stock quantities are changed manually. Please feel free to email me, and we can discuss the details further. Thanks!

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev

RPiii
Shopify Staff
161 27 48

As noted in the documentation for that trigger, you may want to use the Inventory item created trigger instead. Alternatively, you may be able to build a condition using the fields available in product.variant.inventoryItem.

BitShifter
Shopify Partner
3 0 0

Is it possible to give a little more detail? I am not familiar with Shopify Flow at all... What will the Inventory item created trigger do for me? My goal is to trigger when inventory is updated

Bob_
Pathfinder
82 13 15

Product variant inventory quantity changed ----- if totalinvetnoryquanitity > previousinvetnoryquanitity ------ send email

 

Don't have time to set it up and paste, but should be able to do something like that, you'll only get mails when stock is added (including cancelled orders getting restocked) and not when you get sales.

.
BitShifter
Shopify Partner
3 0 0

My aim is to be informed by e-mail when the stock decreases. I think you only calculated the stock increase