Skip to main content

Hi!

So my problem is basically that i need to give personalized link to customer with custom variable for my shopify product. For example if a=123 “www.shopifymyshop.com/myproduct?a=123” and customer purchases that product through link and then i could read variable “a” with Zapier. 

I have set up metafield for my product in shopify but i can’t see that metafield/metafield namespace/key in zapier after i make purchase and zapier shopify app gets triggered. Also zapier shopify app has option Find metafield data but no luck with that either. Couldn’t find any examples how to use that.

Any ideas how to get this done?

Hi there ​@Jepsjeps,

Welcome to the Community! 🎉

Before we dig deeper into this, would you mind sharing a detailed screenshot of how your Zap is configured? Also, please share a screenshot of the action step that shows all of its fields in the “CONFIGURE” section.

Please don't include personal information in the screenshot, or be sure blur out any personal information.

Thanks!


Hi ​@ken.a  ! Thank you for helping.

When i go through that list of possible variables and information(last picture) about order what caused a trigger. I don’t find my metadatafield variable. Should it be there if it’s configured in shopify correctly? 


Okay. I managed to find metafield data with shopify app. Now i just need to figure out how to dynamically change metafield value.


That’s good news, ​@Jepsjeps! Glad to hear you were able to locate the missing metadata fields in the end—nice work! 🙌

Hope you don’t mind me jumping in for Ken here. To have the values dynamically update you’d need to map fields from a previous trigger or action so that whatever values those fields contain when the Zap runs, is what will be used. So for your example of http://www.shopifymyshop.com/myproduct?a=123 you’d replace the 123 part with the relevant Shopify field that contains the value you need to pass for it. 

One thing you might want to watch out for is line items, if there multiple products being ordered for example then you might need to use a Formatter action to convert the line items into a comma separated list instead if they all need to be included in the same link. See Convert line items into text strings for more details. Though, if you’re looking to generate separate links for each product then I’d suggest using Paths, Looping and Digest to store the different links in a digest and then release them all together in an email (or whatever other type of action you’re using to send the link to the customer). We have a guide that explains that sort of approach in more detail here:

Hope that helps. If you run into any issues on that or have any further questions at all just let us know! 🙂


Reply