Support

Home Forums Event Espresso Premium Promo code explanatory note

Promo code explanatory note

Posted: May 14, 2019 at 8:19 am


activateyrlife

May 14, 2019 at 8:19 am

I’d like to put a different explanatory note above the promo code field on the booking form depending on which event is being booked, is that possible? Second question, where do I go about changing this note? I made such a note last year but for the life of me can’t figure out now how to modify it.


Tony

  • Support Staff

May 14, 2019 at 12:22 pm

Hi there,

Currently we don’t have an option to change the text per event, however the note you are referring to was never actually a note, the original string for that section is simply ‘Promotion Code’ and is the label for the promotion code input.

There are a few ways in which you may have edited that section using PHP, you may have used the filter:

FHEE__EE_Promotions_Config____construct__label_singular

Or used a function to translate the string using a gettext file such as:

https://gist.github.com/Pebblo/8ca7e0ada54d6b615eff8b76ded48461

Only the string you would have been targeting would be just 'Promotion Code'

It’s also possible you edited the promotions add-on code directly (which we advise against).

Start by checking your theme’s functions.php for anything related to ‘promotion’, then check if you have a custom functions plugin installed to hold custom functions, again search that for anything related to ‘promotion’.


activateyrlife

May 14, 2019 at 1:56 pm

Ah yes, the custom functions plugin, that’s where I had inserted that code (which I think I found via the support forums last year). Thanks for pointing me in the right direction! It was very useful to be able to add a custom label there.

The support post ‘Promo code explanatory note’ 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  activateyrlife 3 months, 1 week ago ago

Topic Tags

Notifications

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