Support

Home Forums Event Espresso Premium Formatting location

Formatting location

Posted: May 20, 2014 at 8:55 am

Viewing 5 reply threads


dario de caneva

May 20, 2014 at 8:55 am

the code <?php echo stripslashes_deep($location); ?> shows the location in this way:
address
city, state
zip
country

is it possible to change it in:
Address
zip city state
country

do i have to modify the core?


Dean

May 21, 2014 at 2:51 am

Hi,

If you are looking to edit this on the event list page, then you can modify a template (event_list.php) to achieve the desired output.

Copy /wp-content/plugins/event-espresso/templates/event_list.php and /wp-content/plugins/event-espresso/templates/event_list_display.php (both files required) over to /wp-content/uploads/espresso/templates/ and edit the event_list.php there.

The variable in question is on line 343.


dario de caneva

May 21, 2014 at 3:53 am

Thank you.
Actually i wanted to change the view of registratio_page_display and i saw that is almost the same i have to change the registration_page.

How can i modify the email format?


Dean

May 21, 2014 at 3:59 am

Hi,

Yes the registration page is virtually identical just copy over registration_page.php and registration_page_display.php and edit registration_page.php.

The email layout is, unfortunately, much harder and would require a core file edit.

If you wanted to achieve that you would need to edit the /wp-content/plugins/event-espresso/includes/functions/email.php file around line 258.

Note that any updates will over write the email.php file.


dario de caneva

May 21, 2014 at 4:14 am

Thank you.


dario de caneva

May 21, 2014 at 4:46 am

Another question in the registration_page_display.php there is no space between the currency and the price (EUR150.00).
Is it possible to add ad space?


Dean

May 21, 2014 at 6:09 am

Hi,

It is but it is editing a core file (EE4 makes this much much easier).

If you wish to you will need to edit /wp-content/plugins/event-espresso/includes/organization_config.php at approx line 115

Where it says

$org_options['currency_symbol'] = 'EUR'; // use the Euro for all eurozone countries

add a space after the EUR, like so

$org_options['currency_symbol'] = 'EUR '; // use the Euro for all eurozone countries

After saving the file, head over to the General Settings page in the Event Espresso menu, and save the options. This will set the currency to the modified version.

  • This reply was modified 10 years, 6 months ago by Dean. Reason: code syntax highlighter didnt work
Viewing 5 reply threads

The support post ‘Formatting location’ 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