Have your say in Community Polls: What was/is your greatest motivation to start your own business?

How can I track product expiry dates using Meta Fields?

How can I track product expiry dates using Meta Fields?

RHOLDT
Not applicable
1 0 0

Hi,

 

Certain products in our assortment have expiration dates. Each time we receive a new batch of stock, the product's expiration date is manually updated in the product's Meta Fields.

I want to use the Shopify Flow to keep track of these dates and send a notification to email as soon as a product reaches 10 days before the specified date.

Can anyone show me how to set this up? Thanks. 

Replies 3 (3)

DaveMcV
Shopify Staff
104 31 29

Hi Rholdt,

 

This is not currently possible, but Flow is working on better support for metafields that could make use cases like this possible.

 

Stay tuned!

DaveMcV | Flow Development Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

FePixie
Shopify Partner
30 2 7

Hi

you might be able to do something similar to this post for checking metafield dates...
https://community.shopify.com/c/shopify-flow-app/hiding-product-after-metafield-date/m-p/2263340#M25...

first add a tag based on the metafield value
then check for the tagged products and send the email

then remove the tags once done

RobinSoundsGood
Shopify Partner
2 0 1

It is true that it is not natively supported. But if you have big movement on stock, you could use trigger Variant inventory changed, then on every inventory vhange pull data from variant metafield. and then use javascript to count if it is the time, then add there other actions like add tag and send email. Would need to test but in theory it should work,