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
Spaces Available Display Help Needed | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Spaces Available Display Help Needed

Spaces Available Display Help Needed

Posted: September 10, 2013 at 9:51 am

Viewing 4 reply threads


Maria Baugh

September 10, 2013 at 9:51 am

Hi,

Looked over the forum and tried this method of adding code to the registration display php page:

<p><span class="span_event_date_label">Available Spaces: </span><?php echo do_shortcode('[ATTENDEE_NUMBERS event_id=' . $event_id . ' type=available_spaces]'); ?></p>

Results: the code appeared on the live form.

Then, tried this method of adding this to line 122 on the registration display page:
<?php echo do_shortcode(‘[ATTENDEE_NUMBERS event_id=’.$event_id.’ type=available_spaces]’) . ‘/’ . do_shortcode(‘[ATTENDEE_NUMBERS event_id=’.$event_id.’ type=reg_limit]’); ?>

It worked and showed up on the registration form, but there are 2 issues:
1. How do I add a phrase before it, like “Spaces Available”? I tried ad when I did the registration page appeared blank online.
2. I am wondering if attendees will see “Spaces Available: 12/12” and think there are 12 spaces still available. If they see 11/12 — they will understand, but seeing 12/12 might be confusing. Is there another shortcode that I can add to the above code that will also state “no spaces available” or “closed”?

Thanks!


Dean

  • Support Staff

September 11, 2013 at 12:38 am

Hi,

1) Something like this

Available spaces:

Notice I reduced the amount of code by changing the attribute to automatically show the booked vs non booked numbers?

Documentation is here http://staging.eventespresso.com/wiki/shortcodes-template-variables/#attendee-numbers

2) When the max attendees is reached the registration page will be replaced with something like this http://d.pr/i/wPcu


Maria Baugh

September 18, 2013 at 5:58 am

Hi, tried the above code and the actual code as you have it written above is showing on the registration page.


Maria Baugh

September 18, 2013 at 6:02 am

Hi,

Also noticed the registration layout and design changed based on this post: http://staging.eventespresso.com/topic/event-espresso-3-2-screenshots/, but the one we’re using looks like the old version (but the plugin was purchased after this post). Has the new layout version been released? Thanks.


Josh

September 18, 2013 at 12:08 pm

Hi, tried the above code and the actual code as you have it written above is showing on the registration page.

Can you post the code you added in context in a pastebin so we can take a look?

Has the new layout version been released?

It hasn’t been released.

Viewing 4 reply threads

The support post ‘Spaces Available Display Help Needed’ 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