Support

Home Forums Event Espresso Premium Custom message for Added to Cart popup

Custom message for Added to Cart popup

Posted: October 27, 2018 at 9:02 pm


yogakeys

October 27, 2018 at 9:02 pm

Hi,

I have used the code from the following link perscribed from another post from your support:

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

Unfortunately when I add a single item to the cart i receive the following message:

1 tickets were added to your basket.

Not sure why as this is a singular, not plural. I do have other items sitting in my cart too but this shouldn’t affect it should it?

Any ideas how to fix this, thanks.


Josh

  • Support Staff

October 29, 2018 at 9:02 am

Hi,

I can advise to not use that other snippet, and use this one instead:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-multi-event-registration/eea-mer-custom-cart-results-messages.php


yogakeys

October 29, 2018 at 7:30 pm

Hi Josh,

Having a few issues with the correct message displaying for the item added to basket popup.

So, my basket already has 1 ticket belonging to another event in it.

I go to another separate event and add 1 ticket to the basket.

The popup message says “2 items were successfully added for this event.” // this message text was changed from Message for %1$s items. from the above link.

Ideally I’d like it to say “1 item was successfully added for this event.” but it’s looking at the total basket qty instead of what was just added to it.

Any ideas?


Josh

  • Support Staff

October 29, 2018 at 7:58 pm

The issue where it always prints the total (not the most recent count of tickets that were just added) is actually a regression that was reported to the dev team, and they need to fix that within the Multi Event Registration plugin.


yogakeys

October 30, 2018 at 2:11 pm

Okay thank you, I look forward to this issue being fixed.

The support post ‘Custom message for Added to Cart popup’ 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