Support

Home Forums Event Espresso Premium Is there a template tag to show sale date?

Is there a template tag to show sale date?

Posted: March 18, 2019 at 12:21 pm

Viewing 3 reply threads


Michael

March 18, 2019 at 12:21 pm

Hello, I cant seem to find a way to get the sale date of a ticket.

What I am trying to accomplish:

In my archive page (archive-espresso_events.php), I would like to display a custom message if the ticket is not available for sale yet. Something like:


//Not real code
<?php (if (not_for_sale) ){
//my code
}
?>

I am looking for a template tag that gets the sale date of a ticket.

Thank you.


Tony

  • Support Staff

March 19, 2019 at 6:25 am

Hi there,

In what context are you trying to do this?

The tickets are displayed within the ticket selector, so are you wanting to change something there or somewhere else?

Is the code above meant to be ran on the event or each individual ticket within an event?


Michael

March 20, 2019 at 12:32 pm

Hi Tony, on my archives page, (archive-espresso_events.php) I would like to design my own alert box. My client is allowing only one ticket per person, so the Qty column in the table in my archives page only has a radio button. We would like to get rid of this column, but I would like access to a method that I can show a message when a event sale begins.

See this screen shot:
https://www.evernote.com/l/APcTNly1Lx1IjZ9XxUw27ft_59-qaEzhbBs

I would like to have the info below the table like this screen shot:
https://www.evernote.com/l/APemnxVK76JBc4lsTYAH9M6_IDWS7eVo2cA

This only shows if the event sale date is in the future.

I hope this clarifies my question.

Thank you!


Michael

March 20, 2019 at 8:42 pm

We decided to go in a different direction as far as this is concerned. Thank you!

Viewing 3 reply threads

The support post ‘Is there a template tag to show sale date?’ 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