Hi, I have two promo codes: one gives a 20% discount, the second is 0% discount but signifies a donation is being made (for every 0% discount entered, we will give a charity $2).
My question is this: can I change the word “Discount” on the registration-checkout page (the second registration-checkout page where the promo code that was entered appears after the ticket/qty/price line item and before the total line) ONLY when my 0% promo code is used? For example, when promo code one (20%) is used, the word “Discount” stays as is, but when promo code two (0%) is used I want it to say “Donation”
You can’t dynamically change the text that is shown on the page based on the type of discount. However, you can change the accepted message for a promotion through the promotions editor.
That is the messaging that appears in a green notice when a discount/promotion code has been successfully applied.
What’s the best way to permanently change that word without losing the change when the plugin is updated? I’m a fan of adding new functions to my child theme folder – will that work? If so, can you supply the exact code? Or do I need to make a copy of the php file and add it to my child theme folder? If I can only do the latter, what is the path/name of the file?
The support post ‘Can I change the word "discount" when a certain promo code is used?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.