Support

Home Forums Event Espresso Premium shortcode ESPRESSO_TICKET_SELECTOR by date

shortcode ESPRESSO_TICKET_SELECTOR by date

Posted: June 4, 2015 at 9:05 am

Viewing 11 reply threads


Zoe E

June 4, 2015 at 9:05 am

Hi,

For a site we are developing we use the shortcode to put dates on a page automatically across the site.

the issue is when a new date is added it goes to the bottom of the list regradless of its date.

We need a way to have this short code to display the tickets in order of the event days.

Many Thanks.


Lorenzo Orlando Caum

  • Support Staff

June 4, 2015 at 9:57 am

Hi Zoe, I’m not sure that I understand your question. Any available options for the ticket selector are already available.

Are you referring to using the shortcode multiple times on a WordPress page or a ticket option within the ticket selector itself?


Lorenzo


Zoe E

June 4, 2015 at 10:05 am

[ESPRESSO_TICKET_SELECTOR event_id='1237']

With that shortcode i need to make sure it shows all the tickets in order of when their event is.

[ESPRESSO_TICKET_SELECTOR event_id=’1237′]

http://prntscr.com/7d2r5b
So that how they output at the moment but if i add a date for end of june it will go to the bottom of that list instead near the top.

If this is not possible at this time can we request that it can be added.

Many Thanks.


Lorenzo Orlando Caum

  • Support Staff

June 4, 2015 at 10:14 am

Hi, the individual ticket options in the ticket selector can be re-ordered via the event editor. Could you try re-ordering and saving via the event editor?


Lorenzo


Zoe E

June 4, 2015 at 11:14 am

Hi Lorenzo, we’re automatically creating the tickets, each time an even page is loaded the website communicates with a CRM to check for new dates, and if there is one it automatically adds it via the database. So we need to find a way to tell them to reorder when they are displayed really…

Thanks 🙂

Zoe


Dean

June 5, 2015 at 1:28 am

Hi Zoe,

I assume that what is happening is it loads the page, if there is a new date it adds it to the end, but if you refreshed that page do the dates then appear in order?

If so, perhaps your CRM date injection is coming too late in the process?

The reason I say this, is because the Ticket Selector (/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/EED_Ticket_Selector.module.php) should be ordering them by datetime as a default. (see line 278 of that file).


Zoe E

June 5, 2015 at 1:53 am

Hi Dean,

No they don’t go back in order. The new one always stays at the bottom.

This is why something we can put in the short code to order by date not by menu order would be helpful.


Dean

June 5, 2015 at 4:36 am

OK, I see what you’re saying. It looks like I was wrong with how they are ordered. Each ticket has a TKT_order column value, which is added to when the ticket is created and which is changed when the tickets are re-ordered in the admin.

I’ll certainly add a request for a filter or shortcode parameter to modify the ordering for this.


Zoe E

June 10, 2015 at 3:38 am

Thank you,

Do you have an idea of a time frame?

Many Thanks.


Dean

June 10, 2015 at 5:16 am

Hi,

Sorry, I can’t provide a timescale on this, as it depends on the developers current work schedule which is constantly in flux.


Zoe E

June 10, 2015 at 5:42 am

Hi Dean, what would it cost if we wanted to pay for this to be added?


Dean

June 10, 2015 at 5:46 am

Hi,

I can refer this to a developer, but it may take a little while for a response. I’ll get back to you asap on this.

Viewing 11 reply threads

The support post ‘shortcode ESPRESSO_TICKET_SELECTOR by 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