Liquid, JavaScript, themes, sales channels
Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!
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 %}
User | RANK |
---|---|
11 | |
10 | |
9 | |
7 | |
6 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022