Liquid, JavaScript, themes, sales channels
Hi everyone, I would like you to help me with my code please.
I have created a code that allows the customer to get a 20% and 10% discount on all the products in my store if he has the tag "GV20" or "GV10"
Now I would like to bring a discount that changes according to the customer's tag only on a collection of my products in addition to the tags "GV20" and "GV10".
{% if customer.tags contains "GV20" %}
{{ product.price | times: 0.8334 | money }}
{% else %}
{% if customer.tags contains "GV10" %}
{{ product.price | times: 0.9167 | money }}
{% else %}
{{ money_price }}
{% endif %}
{% endif %}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024