Support

Home Forums Event Espresso Premium "Promotion Code" Area Just A Search Bar?

"Promotion Code" Area Just A Search Bar?

Posted: January 15, 2016 at 10:14 am


Alexander Quesada

January 15, 2016 at 10:14 am

Hello,

The area where someone would enter a promotion code normally would say “Promotion Code” or something to that effect so people know what it is; I thought Event Espresso’s said that but, after receiving multiple calls from people not knowing where to enter their codes, I noticed it doesn’t.

Basically the area to enter the code is just a long search bar now with a “Submit” button. I am pretty sure it used to say Promotion Code on it.

How can I get it to show “Promotion Code”?

No Promotion Code


Lorenzo Orlando Caum

  • Support Staff

January 15, 2016 at 11:54 am

Hi Alexander,

Here are two ways on how you can add a label:

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


Lorenzo


Alexander Quesada

January 15, 2016 at 2:39 pm

Hey Lorenzo,

I tried both of those ways but neither changed the page..

Thanks


Lorenzo Orlando Caum

  • Support Staff

January 15, 2016 at 6:00 pm

Are you running the latest software for Event Espresso 4?


Lorenzo


Alexander Quesada

January 16, 2016 at 9:56 am

Hello,

I believe so; I have Event Espresso Version 4.8.31.p and Event Espresso – Promotions Version 1.0.5.p.


Tony

  • Support Staff

January 18, 2016 at 5:48 am

Hi Alexander,

Have you translated/altered the string ‘Promotion Code’ previously?

Using any of the methods shown here maybe:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

If you go to Event Espresso -> Promotions -> Settings and hit save.

Then navigate to the /registration-cancelled/ page on your site and retest a registration does it show the label on the Promotion code field?


Alexander Quesada

January 18, 2016 at 9:07 am

Hello Tony,

I have not translated or altered any string under “Promotion Code”..

I did follow your instructions, and now instead of showing “Submit” it shows “Submit Promotion Code” as a button. It is not exactly what I was looking for, but it is a little easier for people to understand.

Any other suggestions to get it to show “Promotion Code” or something above the bar?

Thanks


Lorenzo Orlando Caum

  • Support Staff

January 18, 2016 at 10:40 am

Hi Alexander,

Could you go ahead and apply the filter below to your site through your child theme’s functions.php file or a site specific plugin and then provide a link to an event so we can take a look at your site?

//* Add a label for the promotion code field
add_filter( 'FHEE__EED_Promotions___add_promotions_form_inputs__ee_promotion_code_input__html_label_text', 'ee_registration_checkout_promotions_heading' );
function ee_registration_checkout_promotions_heading() {

 return 'Enter your Discount Code';
}

Thanks


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

February 12, 2016 at 4:58 am

Hi Alexander,

Another member used the filter and it worked but the label was behind the field making it not visible. I’m wondering if something similar is happening for you.

Could you try adding the CSS in the following link to your site?

https://eventespresso.com/topic/add-custom-text-or-disclaimer-to-registration-checkout-page-ee4/#post-192167


Lorenzo

The support post ‘"Promotion Code" Area Just A Search Bar?’ 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