Adding discount percentage to product metafield

Adding discount percentage to product metafield

Peter-AG
Visitor
1 0 0

Hi,

 

I created the product metafield ''discount'' and would like to fill in the discount percentage in this metafield, so it would be possible to make a filter on our website for discounts. 

 

Is there any way to automatically fill in this metafield with Shopify Flow? As it's concerning lots of product and our prices are changing one daily base.

 

Thanks in advance!

Replies 2 (2)

PaulNewton
Shopify Partner
6350 582 1356

Currently there is no product-price-update or product-variant-price-update triggers.

Add your use case to this forum thread:

https://community.shopify.com/c/shopify-flow-app/triggering-a-flow-when-a-product-is-updated/td-p/13... 

 

Currently you'd have to use the trigger schedule-time  with an action get-product-data or one of the below workarounds.

💣Keeping in mind the get-product-data action currently has a limit of 100 products per run; so multiple runs could just be getting the same first 100 products over an over depending on the query.

Getting around 100 limit would need something like setting up multiple workflows targeting sets of 100 each ,  or maybe flipping products between special utility collections made for this purpose,  or setting some sort of tag/metafield of the last run and ignoring products with that.

 

Alternatives -

If you can toggle the product status for products with variants whose prices are adjusted use that as the trigger trigger product-status-updated.

There's also maybe the collection triggers if you can create/delete temporary collections containing the target product/variants 

If using CSV or external way of updating product-variants if that can also control inventory then toggle the inventory off and on to activate the new variant inventory triggers

https://changelog.shopify.com/posts/shopify-flow-new-triggers-for-product-variant-back-in-stock-and-... 

Or find a third party automation app that integrates with flow such as the mechanic app to be the trigger for prices https://apps.shopify.com/mechanic.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


PaulNewton
Shopify Partner
6350 582 1356

In addition to manual runs of the flow by selecting products in the products admin

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org