Support

Home Forums Event Espresso Premium Promo Code declined message

Promo Code declined message

Posted: September 14, 2018 at 10:50 am

Viewing 2 reply threads


lupineart

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: https://eventespresso.com/topic/promo-code-declined-message/

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


Josh

  • 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,


lupineart

September 17, 2018 at 2:15 pm

Perfect, thanks!

Viewing 2 reply threads

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.

Event Espresso