Hello,
I have used the following line - {% assign discount_code = ‘CODE’ %}
But it’s giving the following error - "the variable discount_code is assigned but not used.
Any assistance please?
Hello,
I have used the following line - {% assign discount_code = ‘CODE’ %}
But it’s giving the following error - "the variable discount_code is assigned but not used.
Any assistance please?
There is no error in it.
System just shows you a notification that you forget to use the variable because without it there is no use of it So its better to remove it or you can keep it.
Apologies as I think I may be missing something then. This is the part of the code I have, you’re saying it’s correct?

It’s not doing what it’s meant to do so I assumed this part was wrong.