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


butterlane

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

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 https://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


butterlane

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.


butterlane

September 18, 2013 at 6:02 am

Hi,

Also noticed the registration layout and design changed based on this post: https://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

  • Support Staff

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