How to disable showing the discount code visually when the script doesn't apply the discount code

ski_power
Shopify Partner
9 2 1

So I'm using a script to disable discount codes.  I'm using this script to be specific.

https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/line-item-scripts#disabl...

 

The problem is, when someone enters a valid discount code although it doesn't affect the price in the cart it still shows visually below the box. This might mislead customers to think that they've 'hacked' the system and got a discount even when the policy clearly states otherwise.

 

Fake discount.png

 

Is there a way to visually not show the discount code? I would like to allow Gift cards to be used.

Replies 0 (0)