Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I want to craft workflows that add and remove loyalty points (custom metafield) based on orders being processed.
However, it seems like when using conditions on metafield values they are assumed to be strings. This means you can't use conditions like >=
Does anyone have a solution to this? I'm sure that the type of the metafield in question is an integer.
Flow treats any metafield value as a string, so you can't do it this way.
There is a workaround, however.
You should change the flow to "order paid" --> "action: set metafield on order.customer" and put your logic inside liquid code in metafield value field.
Kinda like this -- would require further testing though:
Also see https://help.shopify.com/en/manual/shopify-flow/reference/variables
Should be able to use a run code step and cast to integer.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024