Support

Home Forums Event Espresso Premium Changing event address on registration page

Changing event address on registration page

Posted: October 2, 2014 at 8:28 am

Viewing 4 reply threads


Joshua

October 2, 2014 at 8:28 am

I need to change the address lines on the registration page.

It’s now displayed like this:
[Venue title]
[Street]
[City]
[Zipcode]
[Country]
[Route & Map link]

I need it like this:
[Venue title]
[Street]
[Zipcode] [City]
[Route & Map link]


Tony

  • Support Staff

October 3, 2014 at 4:26 am

Hi Joshua,

Is this using the [ESPRESSO_VENUE] shortcode?

Customisations such as these will likely involve either writing your own shortcode to output the details as required, or customising the registration_page_display.php template file to output as required.

Depending how comfortable you are with PHP you may need the help of a developer.


Joshua

October 3, 2014 at 4:56 am

Hi Tony,

No it’s in the ‘registration_page_display.php’ template on line 200.

<div class="location-block"><?php echo stripslashes_deep($location); ?></div>

Please advise.


Tony

  • Support Staff

October 3, 2014 at 5:17 am

registration_page_display.php uses the variables & values setup within registration_page.php

If you look in registration_page.php line 146 you’ll find:

$location = (!empty($event_address) ? $event_address : '') . (!empty($event_address2) ? '' . $event_address2 : '') . (!empty($event_city) ? '' . $event_city : '') . (!empty($event_state)  ? ', ' . $event_state : '') . (!empty($event_zip) ? '' . $event_zip : '') . (!empty($event_country) ? '' . $event_country : '');

So you’ll need to move around the values and remove the br tags you do not need. So something like:

$location = (!empty($event_address) ? $event_address : '') . (!empty($event_address2) ? '' . $event_address2 : '') .  (!empty($event_zip) ? '' . $event_zip : '') . (!empty($event_city) ? ', ' . $event_city : '');

Should output the above.


Joshua

October 3, 2014 at 5:24 am

Thanks a million Tony 🙂

Viewing 4 reply threads

The support post ‘Changing event address on registration page’ 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