Hi there,
I’m trying to remove a specific tag from a Shopify Customer when they cancel their membership. I can’t find any actions that do that. Any idea ?
Thanks
Hi there,
I’m trying to remove a specific tag from a Shopify Customer when they cancel their membership. I can’t find any actions that do that. Any idea ?
Thanks
Best answer by jayeshkumarbhatia
You can try below code.
Below is the screenshot. The tags on Shopify are Tag1,Tag2 and i want to remove Tag1

On running the code, it gave me the output like below.

Below is the Javascript code. Replace Tag1 with monthly-plan on 3rd line in your Javascript code
var tags = inputData.tags
var arrayTags = tags.split(',');
var final = arrayTags.filter(e => e !== 'Tag1');
final = final.toString();
output = {final,final}
Let me know if this works for you.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.