Liquid, JavaScript, themes, sales channels
good day,
Is there a Liquid query in which I can output on the account page for which voucher codes the customer is authorized to use?
Thanks in advance 🙂
Kind regards
Markus
Solved! Go to the solution
This is an accepted solution.
Hi @Wabema ,
This is not possible, you can just use app to add it.
Or you will manually add discount codes tags for each customer, then show it when they login. You can follow the instructions:
- Step 1: Add tags for customer. https://i.imgur.com/50rt2Vs.png . It will have a prefix to distinguish other tags, ex: discount:
- Step 2: Add code to display when customer login in account page. Code:
{% for tag in customer.tags %}
{% if tag contains 'discount:' %}
Discount codes: {{ tag | remove_first: 'discount:' | strip }}
{% endif %}
{% endfor %}
Hope it helps!
This is an accepted solution.
Hi @Wabema ,
This is not possible, you can just use app to add it.
Or you will manually add discount codes tags for each customer, then show it when they login. You can follow the instructions:
- Step 1: Add tags for customer. https://i.imgur.com/50rt2Vs.png . It will have a prefix to distinguish other tags, ex: discount:
- Step 2: Add code to display when customer login in account page. Code:
{% for tag in customer.tags %}
{% if tag contains 'discount:' %}
Discount codes: {{ tag | remove_first: 'discount:' | strip }}
{% endif %}
{% endfor %}
Hope it helps!
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