Posted: 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”? |
Hi Alexander, Here are two ways on how you can add a label: https://gist.github.com/lorenzocaum/36ceb38b5ca6864de649 — |
|
|
Hey Lorenzo, I tried both of those ways but neither changed the page.. Thanks |
Are you running the latest software for Event Espresso 4? — |
|
|
Hello, I believe so; I have Event Espresso Version 4.8.31.p and Event Espresso – Promotions Version 1.0.5.p. |
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? |
|
|
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 |
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 — |
|
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? — |
|
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.