Support

Home Forums Event Espresso Premium How to change MER popup text "X items were successfully added for this event"

How to change MER popup text "X items were successfully added for this event"

Posted: November 20, 2017 at 8:50 pm

Viewing 3 reply threads


website@secpta.net

November 20, 2017 at 8:50 pm

Hello,

When adding multiple events to the cart and getting the popup message that reads “X items were successfully added for this event”, I’m looking to change this text but can’t seem to figure out the correct syntax for the code through which to make this change.

I see the parameters for this part starting at line 795 of the code:
https://github.com/eventespresso/ee4-mer/blob/master/EED_Multi_Event_Registration.module.php

…and also the general code sequence for making a modification:
https://eventespresso.com/wiki/ee4-multiple-event-registration-add-on/#customizations

But since the code is dynamic depending if there are 1 or 1+ registrations in the cart, how can I customize the output of this popup?

Thanks,
Marshall


Tony

  • Support Staff

November 21, 2017 at 3:13 am

Hi there,

You can use this function:

https://gist.github.com/Pebblo/40b0ee35ac6841f0153498305ad4888c

Lines 11 and 14 are the custom text strings you replace.

Add that to a Custom Functions Plugin on your site and edit the above strings and you should be good to go.


website@secpta.net

November 22, 2017 at 10:13 pm

Thanks, Tony. The code works.

My only follow-up question to this is if there is a way to split the messages on that popup. For example, can the uppermost part of the popup reference only the number of tickets that were just added to the cart, and not the total amount of tickets in the cart? I think this is what is confusing the members, because if they already have 5 events in the cart and want to add 2 more of a different event, the message will say 7 tickets have been added, and it confuses people into thinking they just added 7 more tickets (where in fact they only added 5). The bottom of the popup is already showing how many tickets are in the cart in total.

Thanks,
Marshall


Tony

  • Support Staff

November 23, 2017 at 3:19 am

Hmm, that should not be happening, it should show the current selection you’ve just added to the cart there but I can reproduce this on my test sites and have created a ticket for our developers to investigate.

In the mean time you could hide that string using some CSS:

#cart-results-modal-dv .cart-results-wrap-dv {
    display: none;
}

That will then display like this – http://take.ms/mCl8c

Which is a little odd but might be less confusing whilst we get this looked into.

Viewing 3 reply threads

The support post ‘How to change MER popup text "X items were successfully added for this event"’ 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