Support

Home Forums Event Espresso Premium How to move Promo Code box to top of registration form

How to move Promo Code box to top of registration form

Posted: October 29, 2014 at 9:15 am

Viewing 10 reply threads


wbatson

October 29, 2014 at 9:15 am

I want the Promo Code box to appear at the top of the registration form page. How do I get that to happen? Thanks!


Lorenzo Orlando Caum

  • Support Staff

October 29, 2014 at 1:41 pm

Hi,

This can be done by adjusting the some templates files. Here the steps to do so:

1) Login to your WordPress site with your preferred SFTP or FTP client. FileZilla and Cyberduck are free options.

2) Browse to this location:

wp-content/plugins/event-espresso/templates

3) Locate the following files and download a copy of them to your local computer:

registration_page_display.php
registration_page.php

4) Using your preferred FTP or SFTP client, browse to this location:

wp-content/uploads/espresso/templates

5) Upload the two files that you recently downloaded to the location above

6) Open the registration_page_display.php file for editing and go to line 189. You’ll see some coding like this:

						
						
						

http://cl.ly/image/3B1V2s3d2E3P

7) Move that coding to just above the registration form at just after line 179. Then save changes.

Let us know if this helps.

--
Lorenzo


wbatson

October 30, 2014 at 6:53 am

I followed your instructions but it did not work. Is something missing?


Lorenzo Orlando Caum

  • Support Staff

October 30, 2014 at 6:58 am

Hi,

Did you relocate the two files to the templates folder?


Lorenzo


wbatson

October 30, 2014 at 7:26 am

Yes, but I have a question. You want me to “copy” the two files and upload them to wp-content/upload/espresso/templates, correct? Is it “upload” or “uploads”? Also, do I leave the two files in the original folder?

Also, here is what the code looks like in the file. At which place do I place the coupon code?
// * * This section shows the registration form if it is an active event * *

if ($display_reg_form == ‘Y’) {

do_action(‘action_hook_espresso_registration_form_top’, $event_id, $event_meta, $all_meta);

?>
<div id=”event-reg-form-groups”>

<h3 class=”section-heading”><?php _e(‘Registration Details’, ‘event_espresso’); ?></h3>

<?php
//Outputs the custom form questions. This function can be overridden using the custom files addon
echo event_espresso_add_question_groups( $question_groups, ”, NULL, FALSE, array( ‘attendee_number’ => 1 ), ‘ee-reg-page-questions’ );
?>
</div>

<?php
//Coupons
?>
<input type=”hidden” name=”use_coupon[<?php echo $event_id; ?>]” value=”<?php echo $use_coupon_code; ?>” />
<?php
if ( in_array( $use_coupon_code, array(‘Y’,’G’,’A’)) && function_exists( ‘event_espresso_coupon_registration_page’ )) {
echo event_espresso_coupon_registration_page($use_coupon_code, $event_id);
}
//End coupons display

//Groupons


Lorenzo Orlando Caum

  • Support Staff

October 30, 2014 at 9:15 am

Hi,

It should be uploads. I’ve fixed the prior post:

wp-content/uploads/espresso/templates

You’ll want to move the coupons code below line 179. Try adding it just before this:

http://cl.ly/image/3B1V2s3d2E3P

Essentially, you are repositioning the coding so that the box appears above the registration form. Does that make sense?


Lorenzo


wbatson

October 30, 2014 at 11:43 am

My line numbers are different it seems. Here’s an image of the code in my file:
Screen capture of registration page display code

When I move the suggested code to line 199, which I think is your line 179, I get a Fatal Error message stating that the syntax is wrong. Does this make sense to you? Is there any other information I can give you to help.

I appreciate your time.


Lorenzo Orlando Caum

  • Support Staff

October 30, 2014 at 12:39 pm

Hi,

I expanded the tutorial a bit and also relocated the social coupons field as well. Follow the steps here:

https://gist.github.com/lorenzocaum/5aeb6e2a3683f8a37d79

Before: http://cl.ly/image/1a0r451y0O2c
After: http://cl.ly/image/0T32103C0f3Z

If you are short on time, then these files are ready to go:

http://cl.ly/0v3u2j3U0g0Q

However, it would be good time try once more as other customizations are done through the template files.

Tested with EE 3.1.36.6.P & WP 4.0.

Thanks.


Lorenzo


wbatson

October 30, 2014 at 1:14 pm

YES!! That did the trick. Thank you so much for patiently helping me make this adjustment.

Willie


wbatson

October 30, 2014 at 1:15 pm

And here’s what it looks like on my site:
redacted – LOC


Lorenzo Orlando Caum

  • Support Staff

October 30, 2014 at 1:32 pm

That looks great! I’ve removed your site url as our support forums are partially public.

Our team can still view the link. If you need help with anything else, just create a new support post through our support forums:

https://eventespresso.com/support/forums/


Lorenzo

Viewing 10 reply threads

The support post ‘How to move Promo Code box to top of registration form’ 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