Support

Home Forums Event Espresso Premium Customizing the Event Cart

Customizing the Event Cart

Posted: December 7, 2015 at 8:46 pm


Hideout Theatre

December 7, 2015 at 8:46 pm

Is there an officially supported way to customize the look of the Event Cart Checkout page? I’d like to change how the different tickets are listed (Including Event name at the beginning of the ticket name, and adding date to the description, for example)

Is there an easy way to do this or do I just edit EE_Event_Cart_Line_Item_Display_Strategy.php directly?


Josh

  • Support Staff

December 8, 2015 at 12:34 pm

Please do not edit the EE_Event_Cart_Line_Item_Display_Strategy.php file directly. You won’t have a good time with keeping the plugin updated. The recommended way to make changes is with action and/or filter hooks. If there’s a spot where an action or filter hook would help you with your customizing, please open an issue on Github to request the hook:

https://github.com/eventespresso/event-espresso-core/issues


Hideout Theatre

December 8, 2015 at 12:52 pm

Can you link me to instructions on requesting a filter/action hook? I want to make sure I include all the necessary information.


Josh

  • Support Staff

December 8, 2015 at 1:00 pm

Before you can do a pull request, you can request access to the Multi Event Registration repo (it’s a private repo). You can request access here:

https://eventespresso.com/developers/request-repo-access/

One you have access to the Multi Event Registration repo, you can follow these guidelines for pull requests:

https://github.com/eventespresso/event-espresso-core#pull-requests


Hideout Theatre

December 8, 2015 at 1:14 pm

Thank you.

Before I go down that path, can you tell me how I change the value of $options[‘show_desc’], referenced on line 207 (function _ticket_row) of EE_Event_Cart_Line_Item_Display_Strategy.php . I think if I can remove that from the ticket display, it will get me mostly where I need to be.


Josh

  • Support Staff

December 8, 2015 at 2:02 pm

You can hide that span with CSS, or if an apply_filters gets added there, it can be changed with PHP.


Hideout Theatre

December 8, 2015 at 2:10 pm

The code is already checking to see if show_desc is set. How do I change the value of that option?


Josh

  • Support Staff

December 8, 2015 at 2:58 pm

This isn’t an option that gets set in the UI anywhere, so if you want to set the option to something else, a filter hook can be requested in a Github issue or pull request.

The support post ‘Customizing the Event Cart’ 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