Posted: 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! |
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 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:
|
|
|
I followed your instructions but it did not work. Is something missing? |
Hi, Did you relocate the two files to the templates folder? — |
|
|
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? if ($display_reg_form == ‘Y’) { do_action(‘action_hook_espresso_registration_form_top’, $event_id, $event_meta, $all_meta); ?> <h3 class=”section-heading”><?php _e(‘Registration Details’, ‘event_espresso’); ?></h3> <?php <?php //Groupons |
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? — |
|
|
My line numbers are different it seems. Here’s an image of the code in my file: 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. |
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 If you are short on time, then these files are ready to go: 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. — |
|
|
YES!! That did the trick. Thank you so much for patiently helping me make this adjustment. Willie |
|
And here’s what it looks like on my site: |
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/ — |
|
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.