Support

Home Forums Event Espresso Premium Add Custom Text or Disclaimer to Registration Checkout Page EE4

Add Custom Text or Disclaimer to Registration Checkout Page EE4

Posted: February 10, 2016 at 11:32 pm

Viewing 9 reply threads


Brett Stallings

February 10, 2016 at 11:32 pm

I need to add custom text to the /registration-checkout page. Basically just a block of text to tell users that the Promo Code is optional. Can you let me know where to locate the .php page where I can drop in the text and how?

http://www.statscamp.org/registration-checkout

Thanks,


Kyah Simon Football Clinic

February 11, 2016 at 12:28 am

Hi, I saw that you were able to do this on your site. Just wondering how you were able to?

Cheers,


Tony

  • Support Staff

February 11, 2016 at 3:31 am

Hi there,

Can you let me know where to locate the .php page where I can drop in the text and how?

We highly discourage users from directly editing core files.

Can you let me know where exactly you would like to add text to the checkout page? There is likely a hook in place that can be used, however it depends where you would like to output text.


Brett Stallings

February 11, 2016 at 12:25 pm

I agree, would prefer not to edit core files for sure. So really all we want to do is add a short bit of text to show above or below the field for the “Promotional Code” which tells the user that not all users have the coupon code so it is totally optional. We have had several folks abandon the cart and then go looking for promo codes which we only give to certain customers. Therefore we just need to tell them something like “Please enter a promo code if you have been issued one via email or in person. Otherwise please proceed with payment at regular price.”

Thanks!


Lorenzo Orlando Caum

  • Support Staff

February 11, 2016 at 1:49 pm

Hi Brett,

Could you try changing the heading through this example?

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


Lorenzo


Brett Stallings

February 11, 2016 at 2:52 pm

We are not using a child theme at this time. Can you recommend a plugin to use or should I use the primary theme’s functions.php file?


Lorenzo Orlando Caum

  • Support Staff

February 11, 2016 at 2:56 pm

Hi Brett,

Try a site specific plugin instead:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lorenzo


Brett Stallings

February 11, 2016 at 3:55 pm

Thanks! I added the code into the custom plugin. Not sure what I am looking for now. No noticeable change to the promo code area on the checkout page. Please advise.


Tony

  • Support Staff

February 11, 2016 at 4:04 pm

That code changes the label for the promotion code field, however it is hidden behind the field itself by default.

Add some custom CSS such as:

label#ee-promotion-code-input-lbl {
    margin-top: -1.5em;
}

We recommend using either the My Custom CSS or Reaktiv CSS Builder plugins to add custom styles such as these.

That will pull the label above the input field, like this – http://take.ms/H4Pvd


Brett Stallings

February 11, 2016 at 4:06 pm

Perfect!!!! Thanks this is exactly what I needed.

Viewing 9 reply threads

The support post ‘Add Custom Text or Disclaimer to Registration Checkout Page EE4’ 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