Support

Home Forums Event Espresso Premium Hide events when "Sell Until" date is past [ESPRESSO_EVENTS]

Hide events when "Sell Until" date is past [ESPRESSO_EVENTS]

Posted: September 28, 2015 at 1:58 pm

Viewing 5 reply threads


Donna

September 28, 2015 at 1:58 pm

I’m using [ESPRESSO_EVENTS] in a page. And I need to hide the events where there “Sell Until” date has passed.

I’ve already seen this page:
https://eventespresso.com/topic/events-still-show-with-passed-sell-until-date/

I’ve tried this code in functions.php:
https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

However, it still shows events that have their “Sell Until” date passed.


Donna

September 28, 2015 at 2:00 pm

Forgot to mention I’m on: Version 4.8.9.p


Donna

September 28, 2015 at 2:04 pm

And I am willing to modify my templates to get this working, just need instructions.


Lorenzo Orlando Caum

  • Support Staff

September 28, 2015 at 4:07 pm

Hi Donna, I tested the code snippet that you linked to and it does removed expired events.

Could you add it to a site specific plugin on your site?


Lorenzo


Donna

September 28, 2015 at 4:12 pm

Hi Lorenzo,

Not expired events. I need it to hide “Sell Until” events that have hit their sell until date.

My events span several weeks, but the tickets only sell until the start of the first class.

After the class starts (and “Sell Until” is expired) I don’t want the classes to show.

In EE3, this was the way it used to work, but now in EE4, this was changed.

I know there is a solution to hide “Sell Until” events, but I cannot find it online.


Donna

September 28, 2015 at 4:20 pm

Hi Lorenzo,

I saved functions.php again and it worked. It was likely some server-caching going on.

ANyway, it works now, thank you

Viewing 5 reply threads

The support post ‘Hide events when "Sell Until" date is past [ESPRESSO_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.

Event Espresso