Posted: 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, |
|
Hi, I saw that you were able to do this on your site. Just wondering how you were able to? Cheers, |
Hi there,
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. |
|
|
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! |
Hi Brett, Could you try changing the heading through this example? https://gist.github.com/lorenzocaum/36ceb38b5ca6864de649 — |
|
|
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? |
Hi Brett, Try a site specific plugin instead: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ — |
|
|
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. |
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 |
|
|
Perfect!!!! Thanks this is exactly what I needed. |
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.