Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Shwo Location on Payment Page | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Shwo Location on Payment Page

Shwo Location on Payment Page

Posted: October 1, 2013 at 7:24 am

Viewing 9 reply threads


Klaus M

October 1, 2013 at 7:24 am

Hi guys, i am editing the PAYMENT PAGE and would like to show the title of my location only! <?xphp echo stripslashes_deep($event_venue) ?x> shows the whole deal including the map. $event_location shows nothing?! Any idea? Thanks for your help!


Sidney Harrell

  • Support Staff

October 1, 2013 at 3:33 pm

Which file are you editing?


Klaus M

October 1, 2013 at 11:52 pm

I am editing the payment_page.php


Dean

  • Support Staff

October 2, 2013 at 12:42 am

Hi,

The venue data isn’t available at that point, you could use a shortcode though

<?php echo do_shortcode('[ESPRESSO_VENUE event_id="' . $event->id . '" show_image="false" show_description="false" show_address="false" show_google_map_link="false" show_map_image="false"]'); ?>


Klaus M

October 2, 2013 at 1:10 am

Works, shows the location only! Almost done! Problem: using this in my text (or everywhere else), that shortcode as a (br/) included, so that my text is teared apart. Doesn’t look good. Any idea?


Dean

  • Support Staff

October 2, 2013 at 1:58 am

There shouldn’t be a br tag, though the title is a header (h3) and there is a surrounding div and an empty p tag. Css should be able to resolve those as they have classes available and the shortcode can be modified to edit those classes to make them unique should you use this shortcode elsewhere.

If it is adding in a BR tag then your theme is modifying the output.

If the Br tag is within an element with a class/id you could target it with css

e.g. .event_venue br { display:none; }

http://staging.eventespresso.com/wiki/shortcodes-template-variables/#venue


Klaus M

October 2, 2013 at 2:02 am

yes, it’s probably a headline thing. wrapping the shortcode in css works, but the line break still appears :( where can i edit that shortcode?


Dean

  • Support Staff

October 2, 2013 at 2:21 am

Well, if you have the Custom Files Addon, you could go to the shortcodes.php file in the main plugin and copy the shortcode to the custom_shortcodes.php file in the custom files addon. Then you would need to rename it so it doesnt clash, make your adjustments and use that new shortcode in your template.

Of course you could just amend the shortcode directly in the shortcodes.php file, but as it is a core file updates will over write your changes.


Klaus M

October 2, 2013 at 2:23 am

got that addon. thanks, will check tonight or tomorrow. hope that works…


Dean

  • Support Staff

October 2, 2013 at 4:24 am

No problem.

Viewing 9 reply threads

The support post ‘Shwo Location on Payment 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 - Staging Server