Support

Home Forums Event Espresso Premium How can I change the layout for member/non member price display?

How can I change the layout for member/non member price display?

Posted: July 19, 2023 at 2:28 am

Viewing 1 reply thread


bpigroup

July 19, 2023 at 2:28 am

I’m using Event Espresso Version: 5.0.7.p and S2 Member Framework Version 230530 to offer tickets at 2 different prices for members and non members.

Currently our event page displays the tickets like this to non-members who would not be logged in –

Ticket Price Display When not Logged In

And like this to members who have logged in –

Ticket Price Display when logged in

Is there anyway I can make the logged in display format the default and just not allow anyone who is not logged in to select a members price quantity?

TIA.


Tony

  • Support Staff

July 19, 2023 at 2:11 pm

Hi there,

Possible, yes, but we don’t have any examples of doing it currently.

The WP User integration add-on hooks into FHEE__ticket_selector_chart_template__do_ticket_inside_row within Event Espresso core.

It uses the method EED_WP_Users_Ticket_Selector::maybe_restrict_ticket_option_by_cap to hook into the above and determine if the user has access and what to do from there.

WHat I would likely do in your situation is look into unhooking the above method and adding my own to filter the content of the row and remove ‘just’ the Qty field when the member doesn’t have access to the ticket.

In short, you’ll need to add your own function to do this, we don’t have anything that will do what you are requesting but the above hook and method is where I would start looking.

Viewing 1 reply thread

The support post ‘How can I change the layout for member/non member price display?’ 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