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!
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