Posted: December 4, 2017 at 5:24 pm
|
I set up a site several years ago using EE3 and the EE calendar add-on. Somehow I set it so that sold out events displayed in gray and have the words SOLD OUT on them. http://smudgestudiosaustin.com/upcoming-events/ But client just noticed that it is not working on pages that show a calendar for a specific event category: http://smudgestudiosaustin.com/kids/camps/ (Almost all of the December Camps are sold out). I have been digging and digging through the code trying to figure out how I even made it happen on the main calendar! Can anyone tell me how to make sure it does the same thing on category calendars? |
Hi there, As it’s not something EE does by default, we don’t know how to apply the same logic to the ‘category calendars’, however as far as EE is concerned there’s no difference between a calendar showing all events and events its pulled in for a category, its just an array of events and uses the same function to loop through them and work out what to do. So with that said I can tell you where I would start looking for custom code.
The You’re setting the link href to # so check for what is happening with the The title has sold out prepended, so checkout:
Compare whats happening with those elements in your calendar with the default version and it might help shed some light on how the calendar was edited. |
|
|
Actually it looks like I had hired someone to help me with this, which is why it was so over my head trying to figure out how it worked. 😉 I think it has to do with this added code:
global $this_event_id; $this_event_id = $event->id; //Get details about the category of the event //Assign colors to events by category } else { } |
The code that is custom above would be:
Which basically checks if both the event is sold out and wdm_hide_sold_events are true, if so set the background colour to So its likely this check:
Is being done in various places to add additional content to the calendar, you’ll need to find those and work through to confirm the same happens for a normal ‘all event Have you checked that the shortcodes you are using for both the main calendar and the category calendar match? (Obviously other than the parameter to specify the category) I didn’t write the code so I don’t know for sure but you may need to add If not you may need to contact WisdmLabs as it looks like they are the developers who added the functionality for you (the use |
|
The support post ‘SOLD OUT EVENTS’ 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.