Posted: July 17, 2017 at 9:09 am
|
Hi I have an event at http://www.bosworthsgc.co.uk/snowglobe We have public tickets and some that are only bookable by admin On contrast we have grotto tickets done the same way but these are showing the total publicy available tickets for the day, which is how I wants it to show them Are you able to advise why these two events are set up the same, but they are showing differently? Thanks |
Hi Jonathan, Normally the Grid view doesn’t display spaces remaining. Assuming you’ve added some code to display that, it might be related to how you’ve coded things and the way the ticket options are ordered. |
|
|
Hi Josh We used some code that Tony supplied (from a previous ticket) This is the reply from Tony: |
|
This showed the number of main tickets remaining, but once we added the admin tickets, it shows the total number of admin tickets only and not the main tickets. |
That’s not actually my code, the text above is me advising some changes to the code you are using. It’s from: https://eventespresso.com/wiki/events-grid-view-template-add-on/#ee4customizations Are the admin tickets assigned to their own datetime? |
|
|
Hi Tony Apologies – I thought it was your code They each have their own date time yes. Got the same setup for our grotto and that seems to be working fine Only problem we had was that the original public booking ticket has 5 reserved against it, so we ended up deleting that ticket and creating a new one as the 5 reserved had copied across to all the duplicated events – could this be the reason? Thanks |
So all the normal tickets are assigned to one datetime and all admin to another? If so can you test changing the ‘Event Start’ value of the ‘normal’ datetime to be later than the admin datetime. So right now they are both set to |
|
|
Hi Tony Just tried that but no – it still shows the admin only ticket quantity |
|
Just tried the other way round and if I make the admin tickets later that works |
Sorry, that was me being a bit daft, it would need to be the admin ticket you made later. Ok, so I know what is happening. The grid template pulls in the datetimes for the event using this like:
Which is basically saying ‘Pull all of the datetimes in this event ordered by start time, but only give me the first result’ (the grid is only intended for the next datetime). You have 2 datetimes in your event with the same start date/time so on the snowglobe events you’re getting the ‘admin’ datetime, on the other, you’re getting the ‘normal’ datetime. The above forces the ‘normal’ datetime to be returned because the admin one is then later. You could update each event to have a slightly later time for the admin ticket, or the grid template can be modified to pull the datetimes based on the order set in the event, so it could always use the ‘top’ datetime from the list. Do you only use the grid template for these events? I’m asking because changing the grid template will mean you will need to check all instances where you are using it to make sure the correct details are output. |
|
|
Hi Tony I think I can get round it by making all admin datetimes 1 minute past nine. I am only going to use this on the grid template as is |
Yeah, that should work fine. It is probably the quickest solution without having to retest all other usage of the Grid template on your site. |
|
The support post ‘Min Max tickets’ 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.