Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hooks to Customize Event Rows in Cart and Widget #30

Open
Captnspdr opened this issue Mar 2, 2022 · 1 comment
Open

Add Hooks to Customize Event Rows in Cart and Widget #30

Captnspdr opened this issue Mar 2, 2022 · 1 comment

Comments

@Captnspdr
Copy link

Captnspdr commented Mar 2, 2022

Issue Overview

It is not currently possible to override event name rows in the cart and cart widget like what is possible for ticket line items.

Bug report or feature request?

Feature Request

Environment Data:

Version of EE core: 4.10.26.p

Version of this addon: 2.0.18.p

Version of WordPress: 5.9.1

Related Information:

We use Event Espresso for RSVPs and event registrations for our Scout units. Twice a year we have major fundraising, where we run multiple locations on Saturdays and Sundays. Each of these locations and dates has its own event, partly so we can set limits on certain ticket types to ensure that we have enough adult leadership to meet Youth Protection standards.

To create a better user experience in the cart, we would like to customize it to display Events as "Event Name - Venue Name - Start Date" so that before checking out, people know what fundraising locations and dates they are signing up for. It looks like this is possible today for the ticket line items by overriding "FHEE__EE_Mini_Cart_Table_Line_Item_Display_Strategy___ticket_row__line_item_name" and over similar hooks. Since it is not possible to do for the event name, which looks much nicer than appending every ticket line item, we currently have customized the plugin files to meet our needs.

This was done by modifying the _event_row() function in the following files:

  • EE_Event_Cart_Line_Item_Display_Strategy.php
  • EE_Mini_Cart_List_Line_Item_Display_Strategy.php
  • EE_Mini_Cart_Table_Line_Item_Display_Strategy.php

Ideally, we'd like to see hooks created so that we can merely override them in our website's child theme instead of making sure we reapply the changes every time the plug-in updates.

@tn3rb
Copy link
Member

tn3rb commented Mar 31, 2022

@Captnspdr

Hi thanks for the nice feature request.
would it be possible for you to fork our repo and submit your changes as a pull request?
That way we can fully understand your customizations and decide how best to integrate them into the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants