How to edit the label text of "Discount code or gift card" for the input?

Topic summary

Editing the checkout field label to remove “or gift card” is possible via language settings. In Shopify Admin > Online Store > Themes > … > Edit Default Theme Content, search for “discount code or gift card” and change the text. The original poster confirmed this solved their need to display only “Discount Code.”

A follow-up asked about handling a “discount code apply” event to show a popup when an invalid code is entered. The response clarifies that checkout already displays an invalid code message automatically, and its text can be customized in the same Default Theme Content settings. No event hook or custom popup handling was provided in the thread.

Outcomes:

  • Label text change resolved through Default Theme Content edits.
  • Error messaging for invalid codes can be customized, but the discussion does not provide a method to trigger a custom popup on invalid entry.

Images were shared as examples of the default error message but are not essential for the solution.

Summarized with AI on December 30. AI used: gpt-5.

Is there a way to change what this says on a Shopify Plus Store?

Screenshot 2023-12-20 at 6.13.01 PM.png

I am using two more input boxes that I custom built to work with a third party gift card provider and I would like to figure out a way for this input box to only say “Discount Code”.

Is that possible somehow?

Go into your Shopify Admin > Online Store > Themes > click the “…” button/menu next to your theme > select “Edit Default Theme Content”.

At the top of the page, search for “discount code or gift card” and then it should bring up the options which you can edit to change the text shown on checkout.

yeah that was it. I use those option so little that I forget they are even there.

Thank you..

@StephensWorld Can we handle the discount code apply event because I need to show a popup when the user add the wrong discount code

If someone enters an invalid discount code, it will show a message saying that the code is invalid.

You can edit the message that’s shown via the ‘Default Theme Content’ settings.