Support

Home Forums Event Espresso Premium Changing view details button in calendar to read Register/Sold Out

Changing view details button in calendar to read Register/Sold Out

Posted: December 6, 2016 at 3:26 am


nakedtourguide

December 6, 2016 at 3:26 am

Hi folks,

I want the lessen the number of clicks required to make a sale, so can I change the View Details button to read Register which will bring me directly to the cart for that event?

Or

Can I keep the View Details button and add a Register button which brings me to the cart for that event. Also, can this button read Sold Out, when we are sold out? There is something similar going on here: http://thatdamguide.com/events-calendar/


Josh

  • Support Staff

December 7, 2016 at 7:58 am

Hi Marcus,

I’m afraid that the calendar does not have the ability to add events directly to the cart. Another approach that you can take is use something like the events table template to display the events, and make a few edits to the table template so that it uses the add to cart function instead of a link to the event page.

There are a few code examples in these other topics:

https://eventespresso.com/topic/add-to-cart-in-espresso_table/#post-82897

https://eventespresso.com/topic/custom-calendar-table-questions/#post-103797


nakedtourguide

December 7, 2016 at 9:44 am

Ok, so if you look at the calendar on the That Dam Guide website – http://thatdamguide.com/events-calendar/, you’ll see that he has it set up so that it either says Register or Sold Out. How do I make that happen?


Lorenzo Orlando Caum

  • Support Staff

December 7, 2016 at 1:04 pm

Hi,

The difference that you are seeing is from the multiple event registration add-on.

The site that you shared a link to does not offer registering for multiple events at once.

You can change the button text for “View Details” to something else by using a gettext filter (https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function) but they will still be taken to the single event page.


Lorenzo


nakedtourguide

December 7, 2016 at 3:44 pm

Hi Lorenzo,

Ok, that is half the problem solved.

How do I get it to display Sold Out once the event is sold out?


Josh

  • Support Staff

December 7, 2016 at 3:59 pm

That happens automatically.


nakedtourguide

December 8, 2016 at 3:04 am

Ok, thanks Lorenzo and Josh. That seems to be working.


nakedtourguide

December 8, 2016 at 5:45 am

Hi Lorenzo,

I used the Quick Localisation plugin to change the labels on my calendar. However, I also want to change the words Enter Attendee Information, from the registration page, but it hasn’t made the change.

Am I missing something?

Marcus


Josh

  • Support Staff

December 8, 2016 at 12:55 pm

That’s a translation ready string, so it should be translatable from that plugin. Since you asked in another thread about how to customize the cart, you’ll probably end up editing that template anyway. In which case you can change the text string directly in the template.

The support post ‘Changing view details button in calendar to read Register/Sold Out’ 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