Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
Our store uses product tags that are pushed to Shopify through our POS and we would like to add storefront filtering capability based on one of those tags. It looks like this should be achievable through Flow by creating a trigger event (when product is added to Shopify) and looking to see if the product contains a tag, then updating the meta field. I have got that far in Flow, but it is not adding the desired value to the meta field. I am not getting any errors, it's just not doing anything. I read in a separate forum post that since the value would be the same for all qualifying products that I don't need to use liquid in the "value" field, but maybe this is incorrect? See below screenshot:
The first thing to know if the condition is met, i.e., whether or not the tag is added when the workflow is run. If you open a workflow run, what does it show?
To learn more visit the Shopify Help Center or the Community Blog.
Thanks for the reply. So just to clarify I am not adding a tag. I am using the tag to trigger the event. What I would like it to do is add a value to a meta field (I created) so that it can be used for storefront filtering. But if your question is whether or not the Worflow is running on when the condition is met, then yes. I continually receive succeed on all triggers (see below) Does that answer the question?
Have you set up a metafield definition for that metafield and can you see it in the Admin? Some screenshots would help. I'd guess that you are setting the wrong namespace or key and that you aren't seeing it because it's setting an "undefined" metafield that doesn't show up by default.
Ok, I was thinking it was something along those lines. Below is the meta field
Also, I have tried adding the name and key in Flow as
Metafield Namespace: custom.condition
Key: custom.condition
Yes, that is what I have currently. Is liquid required to update the value field or anything along those lines?
no, that should just work. You may want to check that you don't have any extra spaces on the ends of those values.
If that isn't the problem, might help to contact support so that we can see your workflow run and the resource to confirm what you are saying. You could also drop the screenshots here for the workflow run and product that should've been updated (showing the metafield).
Just checked, no additional spacing anywhere. Here are additional screen shots of workflow run success and the associated product with metafield (still empty).
Ah, you are updating a "product metafield" when you need to update a "product variant metafield". Sorry should've got that one a bit earlier.
Ack thank you! That fixed it.
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