Support

Home Forums Event Espresso Premium Choose Date to Attend During Purchase

Choose Date to Attend During Purchase

Posted: April 2, 2013 at 9:52 am


ksavoie

April 2, 2013 at 9:52 am

Hi, just wondering how to set the plugin to allow the user to choose which date they are going to attend the event when they purchase a ticket. There will be multiple events that occur for a set number of days in a row, and we need to be able to set it so the buyer can choose the date to attend during purchase. Thanks.

WordPress 3.5.1
Event Espresso 3.1.30.7P


Dean

April 3, 2013 at 2:31 am

Hi,

Couple of ways of doing this.

Recurring Events Manager – set up the events via this add on and in the special dropdown templates to enable the user to select a recurring group and then pick a date (see this thread here and this [documentation] and this documentation.2

Alternatively, you could set up multiple events and with the Multiple Event Manager allow them to choose from the list of events and add to cart.

If you dont mind playing about with some templates you could use the Custom Files Addon, specifically the [ESPRESSO_TABLE] shortcode which, as the name suggest, lists events in a table. That combined with categories and Multiple Event Registration will also allow easy selection of events.


ksavoie

April 4, 2013 at 9:59 am

Thanks for the reply Dean. Which of these methods would you recommend for an already implemented ticketing system that is being used to purchase tickets currently? Will this be backwards compatible with events that were previously created?

One other question, with an event that has multiple prices, how can I make it show either the lowest price or all prices in the event lists? Currently I only shows the last price created.


ksavoie

April 4, 2013 at 10:45 am

I actually got into this just now. I don’t think this is quite what I’m after unless I don’t understand or am missing something from your suggestions. I implemented your first option, the Recurring Event addon. It still just lists the same event 3 times in the event list for a 3 day event. I want to list the even once, and show that there are 3 events to choose from in a dropdown, but I don’t want to have all other events in that dropdown too.

Let me know if I am not understanding something correctly.


Dean

April 5, 2013 at 5:47 am

Hi,

Perhaps I wasnt understanding correctly.

With the recurring events method, you have an individual event for each date, lets say one event, Monday to friday.

Using the special template, when the event is listed via the [EVENT_LIST] shortcode, it will display a register link, clicking that link will display in a list all the events in that series, so Mon to Fri in this example. The user can then select one and be taken to the correct registration page.

These are recurring events with that template (on a default site) http://d.pr/i/5Ecz

This is what happens when you click one http://d.pr/i/lQVQ

It would not be backwards compatible.

To not have every event in that drop down you would need to create separate recurring events.

Does that help?`Let me know if you need more clarification or any other questions.


ksavoie

April 5, 2013 at 12:56 pm

Ok, I’ve followed all the instructions so far and am basically hitting a wall. If you go to http://joslyncastle.com/events/ you can see what I have going on.

I’m using these 3 shortcodes at the moment:

[ESPRESSO_CALENDAR]

[EVENT_LIST]

[EVENT_CSS_DROPDOWN]

In the second shortcode’s content, the event list, there is an event called “Test Recurring Event”. As you can see it is repeating 3 times. I don’t want this. I want it to show one time in this list and show that it is a multiple date event. Then allow the user to select the date they wish to attend on the next page after they click register. A “Choose a Date” dropdown like the “Choose a Time” one would be ideal.

Below the event list I’ve added the necessary files and made the necessary changes per your instructions/links and this is what I am getting. Is what I want to do even possible with this? It seems like this is such a core feature that I cannot believe its not built right into the core plugin. Please help me get this straightened out. From your last two screenshots, I think that would work, but I’m not seeing that happen. Thanks.


ksavoie

April 5, 2013 at 2:02 pm

I’ve actually got this error now on the frontend where the event list should be:

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/joslyncastle.com/httpdocs/wp-content/uploads/espresso/templates/event_list.php on line 74

So there is currently still no way to choose the event date. I’m getting a bit frustrated with this, again, I cannot believe this is not a core feature of the core plugin…


ksavoie

April 5, 2013 at 3:38 pm

Sorry for all the replies, but just noticed another error on the homepage where there is this shortcode [event_list limit=3]. Here’s the error:

Warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/joslyncastle.com/httpdocs/wp-includes/wp-db.php on line 1210 Warning: preg_match() expects parameter 2 to be string, array given in /var/www/vhosts/joslyncastle.com/httpdocs/wp-includes/wp-db.php on line 1212


Sidney Harrell

April 5, 2013 at 6:56 pm

Are you using an old or modified version of event_list.php? I’m not showing anything on line 74 in the current version of that file.
Also, I think you are supposed to put the EVENT_CSS_DROPDOWN shortcode on a different page than the event list.


ksavoie

April 5, 2013 at 7:49 pm

I am using the newest version of files. I literally just updated the plugin today, and all addon files have been downloaded in the last two days.


Sidney Harrell

April 7, 2013 at 7:32 pm

Did you copy /var/www/vhosts/joslyncastle.com/httpdocs/wp-content/uploads/espresso/templates/event_list.php over to the uploads folder after you updated?


ksavoie

April 8, 2013 at 7:29 am

Yes, I did copy a new one over. In fact, I just did it again to make sure. It is still giving the PHP errors.


ksavoie

April 8, 2013 at 7:47 am

The errors are gone. My templates directory had been renamed at some point several months ago. So once I copied the files to the right template directory the errors went away. The event list looks no different now, even when adding a new recurring event. There is no dropdown, and the [EVENT_CSS_DROPDOWN] shortcode does nothing, it just shows on the front-end like text. Also, all recurring events still show rather than one with the option to choose the date.


ksavoie

April 8, 2013 at 9:09 am

Do you guys have phone support? Its taking too long between replies on this forum.


Josh

  • Support Staff

April 8, 2013 at 12:25 pm

Hi there,

Phone support is available during business hours with the purchase of priority support tokens. I’m reading through this topic and in this case, it looks like there may be some confusion between using the custom CSS Dropdown template and the event list template. The custom CSS dropdown templates are included with the custom files add-on, and there are step by step instructions on how to use them here:

https://eventespresso.com/wiki/drop-down-list-recurring-events/

There are a set of recurring events templates that can be substituted for the standard event list templates, but to be honest they haven’t been supported for about a year. I have tried to keep them up to date and have posted them in gists on my github profile, you’re welcome to download them here:

https://gist.github.com/3933889

https://gist.github.com/3165268

The above linked files will override the standard event_list templates. If you go this route, you’ll need to add an additional CSS rule to your theme to hide the dates:

.subpage_excerpt .date_picker{
    display: none;
}


ksavoie

April 8, 2013 at 12:31 pm

I’ve added the two files you just linked and that small piece of CSS code is already in the site. No change. All events that are recurring are still listed individually rather than with one that is clickable to show all available dates.


Josh

  • Support Staff

April 8, 2013 at 3:24 pm

Hi there,

I checked the page here:

http://joslyncastle.com/events/

And it looks like it’s still using the default templates. One thing about the rem templates: they do not include Add to cart links, which are being displayed on the event list on your site.

Event Espresso will look in /wp-content/uploads/espresso/templates for custom templates first before it uses its own templates. Can you check to see if the templates you downloaded were copied to the /wp-content/uploads/espresso/templates directory and that the file permissions allow the files in that location to be read?


ksavoie

April 8, 2013 at 3:36 pm

The espresso/templates folder has been renamed twice with the button in the plugin options area. It is now called templates-2013-04-08-08-33-56 but yes, the two new template files are in that directory. The permissions for those two files are currently at 777.


Josh

  • Support Staff

April 8, 2013 at 4:23 pm

Hi there,

When the espresso/templates folder is renamed, Event Espresso doesn’t know to look there. You can create a new /templates folder in /wp-content/uploads/espresso/ and place the files there.


ksavoie

April 8, 2013 at 5:41 pm

Well, I do believe we’ve finally got this figured out. The uploads/espresso directory kept resetting permissions as soon as I’d change it to writable. I had to deactivate the plugin and ssh to delete the old templates directory and then make a new one with the files in it. After doing that and reactivating the plugin it appears to finally be working. Lets mark this sucker resolved! Thanks for all the replies, no one can say Event Espresso support doesn’t try!

The support post ‘Choose Date to Attend During Purchase’ 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