Support

Home Forums Multiple Event Registration Add-on Overriding checkout cart html

Overriding checkout cart html

Posted: November 26, 2020 at 8:36 am

Viewing 4 reply threads


hodyhong

November 26, 2020 at 8:36 am

Hi there,

Is there a way which I can use filter to override the html in the multi registration checkout cart?

More specifically, I would like to modify the _ticket_qty_input function within EE_Event_Cart_Line_Item_Display_Strategy.php. I don’t want to jump to modifying the actual addon if possible.

Thanks for the help.


Tony

  • Support Staff

November 27, 2020 at 5:03 am

Hi there,

I checked into this and currently, you can’t override the display strategy used.

Whilst you technically could override the template and then load your own display strategy there, the ajax requests sent when editing the cart would then use the default display strategy.

I’ve opened up a ticket to double-check I’m not missing something for this.


hodyhong

November 27, 2020 at 5:52 am

Thanks for your reply Tony. I was trying to modify one of the private function to include a category check. So that specific html class can be included. So from what I am getting, the only way is to modify the add on itself.


Tony

  • Support Staff

November 27, 2020 at 6:11 am

May I ask why you are doing that on _ticket_qty_input?

Why not use FHEE__EE_Event_Cart_Line_Item_Display_Strategy___ticket_row__html?


hodyhong

December 1, 2020 at 10:03 am

Hi Tony, I’m trying to add class based on the event category the event was in. So each of the line item can be some how identified.
I could do that in _event_row but the _ticket_row
Any recommendation on those?

I will take a look at FHEE__EE_Event_Cart_Line_Item_Display_Strategy___ticket_row__html

Viewing 4 reply threads

The support post ‘Overriding checkout cart html’ 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