Support

Home Forums Event Espresso Premium EE Display List of Categories & other front end questions

EE Display List of Categories & other front end questions

Posted: August 19, 2016 at 7:25 am


Stanwick Lakes

August 19, 2016 at 7:25 am

Hi guys,

I am quite familiar with your plugin and have used on a couple of sites now with little to no troubles, however the current site I am implementing it on has a different plan of how to utilise events.

I have created a parent category with around 8 subcategories, I am aiming to create a page which displays a list of these sub-categories on the front end so that the user can then select a sub-category which will display a list of events, can you tell me if this is possible and how it can be implemented?

Another question I have regarding some of the front end is moving the location of the add to card button? I would like to add a button to every table row next to the quantity select box? So that each ticket has it’s own add to card button. Could you let me know how this can be done? I have looked through some of the default template files and located these elements but just need some steering in how to get the end product I am looking for. With regards to these files, to edit these would i just create a duplicate like I would for others, e.g archive & single templates? Or is there another way to edit these? Currently using EE4.

I am also trying to edit the default archive template file, but it is showing it is currently referncing index.php and not my custom archive-espresso_events.php.

Any help would be greatly appreciated.
Thanks


Josh

  • Support Staff

August 19, 2016 at 4:54 pm

Hi there,

I have created a parent category with around 8 subcategories, I am aiming to create a page which displays a list of these sub-categories on the front end so that the user can then select a sub-category which will display a list of events, can you tell me if this is possible and how it can be implemented?

This can be implemented by using the get_term_children() function in a page template.

I would like to add a button to every table row next to the quantity select box? So that each ticket has it’s own add to card button. Could you let me know how this can be done?

I’m not sure that this can be done without breaking the add to cart functionality. If it can be done, it could be done by using the filter hooks inside /modules/ticket_selector/templates/ticket_selector_chart.template.php. If you look through the code in that file, you’ll see many filter hooks that allow for altering the standard display.


Stanwick Lakes

August 23, 2016 at 5:01 am

Hi Josh, thanks for your help so far.
I have got the subcategories displaying and working now, but have been using this code here https://gist.github.com/joshfeck/2df649a11c8cda58e69d478a74873808 to display the category description, how can I edit this snippet to work with the term children?

Thanks again


Stanwick Lakes

August 23, 2016 at 5:17 am

I have also noticed, that when adding the ticket selector to a ticket on the events listing page, it removes the view details button? Is there a way to keep the button, as there is more information I would like to display on the single event page.
Thanks


Josh

  • Support Staff

August 23, 2016 at 11:28 am

how can I edit this snippet to work with the term children?

The snippet actually gets the event categories that are assigned to an event. It sounds like what you would do instead is use the get_term_children() and run a similar loop that outputs the $term->description for each of them.

I have also noticed, that when adding the ticket selector to a ticket on the events listing page, it removes the view details button?

It will help to know exactly how you’re adding a ticket selector to a ticket on the events listing page. I’m not sure what that even means.


Stanwick Lakes

August 24, 2016 at 3:39 am

Hi Josh,

In regards to the ticket selector, within the plugin settings under templates I am selecting yes for ‘display ticket selector’ for event list pages, however this now removes the ‘view details’ button that was next to each event before. I want to stop this removing the button as I would still like people to click through to the single event page.

Thanks again for your help


Tony

  • Support Staff

August 24, 2016 at 5:42 am

The view details button is actually part of the ticket selector, if you set the option to not display ticket selector within the event it just shows the View Details button, if you show the Ticket Selector it shows it in full.

The user should still be able to click the event name name to view the full details of the event.

The support post ‘EE Display List of Categories & other front end questions’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 years, 1 month ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!