Support

Home Forums Event Espresso Premium Event Available space error

Event Available space error

Posted: June 17, 2021 at 9:23 am

Viewing 12 reply threads


Mark

June 17, 2021 at 9:23 am

Hi,
My event showing available space using this function spaces_remaining_for_sale();
it shows the space but the problem is that it shows available space 1 whereas when a user tries to register it shows space is not available which is actual space.
Could you please help?


Tony

  • Support Staff

June 18, 2021 at 3:46 am

Hi there,

Can you link me to page that shows this, please?

Also, if you can post either the event title, or ID so I know which event to look into I’ll take a look.


Mark

June 18, 2021 at 11:36 pm

HI Tony,

Thanks for reaching out, here is the link “https://firstaidcalgary.ca/emergency-first-aid-courses/” where event showing available space 1 but on when anyone click to register that event it shows sold out.
Event name is Emergency First Aid and CPR in Calgary South
Also check this screenshot: https://prnt.sc/15w7yqt

I did exclude this page from cache but issue still remains same.
Please do look and let me know with the solution.

Thanks


Tony

  • Support Staff

June 21, 2021 at 4:55 am

Hi there,

I can’t see any issues with the output on the above currently.

The first event in question shows as 0 spaces and the event itself is sold out.

The second instance of that event showed as 1 space, I set that ticket in the cart but did not complete registration (which means that ticket is currently in reserve for 1 hour), the output for that event now shows 0.

Am I missing something or did you fix this yourself over the weekend?


Mark

June 22, 2021 at 4:43 am

Have a look at this one
https://firstaidwinnipeg.ca/events/standard-first-aid-and-cpr-in-winnipeg-232/
is this due to the other ticket which have space and the one with no space?


Tony

  • Support Staff

June 22, 2021 at 5:08 am

Sorry but I’m not sure what I need to look at on that page, can you explain further?


Mark

June 22, 2021 at 10:57 pm

Hi There,

Sorry, above link which I have sent you is not the link where I am facing the issue, please check this video: https://www.screencast.com/t/MJobo3XFcy9v and also you can check this link https://firstaidcalgary.ca/emergency-first-aid-courses/ it’s show’s available Space: 1 but when a student click at register button its show’s sold out.

Thank you,


Tony

  • Support Staff

June 23, 2021 at 3:01 am

Hmm, strange.

Ok, so for the event you showed in the video, can you add a screenshot of the ‘Event Tickets & Datetimes’ section, please?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Mark

June 28, 2021 at 5:10 am

Hi Tony,
This is the dashboard side SS of the event referenced in the previous video.
https://www.screenpresso.com/=tFrHg
Thanks.


Mark

June 29, 2021 at 3:28 am

Hi Tony,
Need to follow up on this thread.
Thanks.


Tony

  • Support Staff

June 29, 2021 at 9:47 am

So far I can’t reproduce this and looking at your events currently they seem correct, is there another event this is happening on?

How have you added the above code to the page?


Mark

July 7, 2021 at 10:02 am

this code is used to display the remaining spaces of the event.

<div>
	               <b>Available Space: </b><?php 
	               $event = EEH_Event_View::get_event($post->ID);
                // Spaces remaining for sale.
                    echo $event->spaces_remaining_for_sale(); ?>
	           </div>


Tony

  • Support Staff

July 7, 2021 at 11:01 am

Is there another event this is happening on currently?

Viewing 12 reply threads

The support post ‘Event Available space error’ 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