Support

Home Forums Event Espresso Premium Promo Code declined message

Promo Code declined message

Posted: September 14, 2018 at 10:50 am


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!

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  lupineart 6 days, 19 hours ago ago

Topic Tags

Notifications

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