I am migrating from woocommerce over to shopify and have one thing that I just can’t figure out a direction to go and need some help. I wrote some code via the functions.php in woocommerce that would take the customers email that was logged on in my store, reach out to a 3rd party website via api, check their email and if they had a tag from subscriptions (one store I check via shopify, the other is s2members which is woocomerce) or in s2members would return if they had an active paying account and allow them to use a discount code of 10%. If they was not a paying member, then they could not use the discount code and would remove or reject the coupon code and tell them.
So what do you think is the fasted and easiest way to do this. I have the code from woocommerce if it helps to see that, but is simple stuff.
so there is now way I can write something that does these checks and adds and removes tags on google sheets or something that uodates Shopify customers? Just thinking outside the box.
I’d run a script to go through each customer, fire off the API checks and add/remove tags. Then, create a customer segment for customers with the specific tag. Finally, create a discount code that can only be used by that customer segment. Let me know if you have any questions or I’m missing some requirements.