Support

Home Forums Event Espresso Premium Promo code label missing

Promo code label missing

Posted: December 31, 2015 at 9:24 am


Meredith Whitely

December 31, 2015 at 9:24 am

Any reason why the ‘Promo Code’ label is now missing? – http://snag.gy/k8XKI.jpg

Just updated to the latest EE.


Tony

  • Support Staff

December 31, 2015 at 9:58 am

Hi Meredith,

Can you link me to an event page so I can view this please?


Meredith Whitely

January 3, 2016 at 9:31 am

Here you go – http://dev.foodatheart.co.uk/events/cre-ate/

You’ll see it in the checkout.


Tony

  • Support Staff

January 4, 2016 at 3:39 am

Are you translating the string ‘Promotion Code’ within your site?

I noticed in a previous thread you may be using a custom get text function to translate strings. That heading should be ‘Promotion Code’ but is it translatable within the code, meaning if you are translating that string and setting it to ” it would remove it from the checkout.


Meredith Whitely

January 5, 2016 at 3:32 pm

The ‘Promotion code’ has not been translated with the .po/.mo files, as its good as it is. There is also no gettext function for ‘Promotion Code’ in the functions file.
I’ve removed the functions file to see if one of the gettext functions was affecting it, but didn’t see the ‘Promotion code’ appear after that, so replaced it back.


Meredith Whitely

January 5, 2016 at 3:35 pm

How can I change ‘The Event Cart is empty’ also, to replace event for Basket?

Tried the .mo file and no change.


Lorenzo Orlando Caum

  • Support Staff

January 5, 2016 at 7:00 pm

Hi Meredith,

I don’t recall a label being set there originally.

However, it is possible to add one by using a filter or a line of CSS:

https://gist.github.com/lorenzocaum/36ceb38b5ca6864de649


Lorenzo


Meredith Whitely

January 7, 2016 at 2:24 pm

Thanks, that works!

The support post ‘Promo code label missing’ 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