Hello!
Some of our users are confused when entering discount codes because it only reflects the discount within the line items.
I would like to add a popup message or something similar when a discount code is applied that says “discount has been applied to applicable items” or something like that.
I am playing around with the idea of creating an if statement to include in Settings>Checkout>Additional Scripts
This is what I have so far:
{% for discount_application in checkout.discount_applications %}
{% if discount_application.title %}
{% endif %}
{% endfor %}
This is obviously very crude and I need some serious direction. I am just curious if this has come up for anyone else and they could help me formulate the proper statement.
Thanks!
-Hazel