Home Forums Event Espresso Premium Promo Code declined message

Promo Code declined message

Posted: September 14, 2018 at 10:50 am


September 14, 2018 at 10:50 am

Hi guys,

I’m looking to change the text of when a promo code is not valid. I came across this post:

But get the error (without changing anything within the code provided in that forum post):

Your PHP code changes were rolled back due to an error on line 119 of file wp-content/plugins/site-plugin/customizations.php. Please fix and try saving again.

syntax error, unexpected 're' (T_STRING), expecting ')'

Can you help me change that text?

Thanks, Derek


  • Support Staff

September 14, 2018 at 11:05 am

Hi Derek,

That snippet wasn’t actually tested. The single quote needs to be escaped with a slash. e.g. 'We\'re sorry,


September 17, 2018 at 2:15 pm

Perfect, thanks!

The support post ‘Promo Code declined message’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  lupineart 1 year, 4 months ago ago

Topic Tags


This topic is:
Do NOT follow this link or you will be banned from the site!