Support

Home Forums Event Espresso Premium Alert when clicking add to cart button

Alert when clicking add to cart button

Posted: February 12, 2020 at 5:24 pm


californiasteve

February 12, 2020 at 5:24 pm

My client wants an alert/popup to happen when the “add to cart” button is clicked. I would imagine a continue/ok button on the popup to add to cart or decline. Any ideas of a plugin or coed snippet?


Josh

  • Support Staff

February 12, 2020 at 5:32 pm

Hi,

The Multi Event Registration add-on adds this. May I ask do you have that plugin installed on your site? If so, you should already see a modal window open when adding an event to the cart. If you’re not seeing this happen, maybe you can share a link to an event on your site so we can investigate?


californiasteve

February 12, 2020 at 5:57 pm

I was probably not clear enough. I need a custon text on the modal that says “If you bought the full registration this item is already included” and the a continue or delete before it adds it to the cart.


Josh

  • Support Staff

February 13, 2020 at 3:04 pm

Hi,

Adding/modifying the text within the modal can be done with a text snippet. Changing the behavior of the Add to cart button to make it not actually add to the cart would require a significant rewrite of the plugin. If there’s a specific text string within that modal that you’d like to change its wording I can point you to a specific filter hook that allows for changing that string.


californiasteve

February 13, 2020 at 5:11 pm

Yes, adding/modifing to the text string would work.


Tony

  • Support Staff

February 14, 2020 at 5:04 am

To change the ‘1 item was sucessfully added for this event’ string you can use the FHEE__EED_Multi_Event_Registration__get_cart_results_results_message filter.

Example: https://gist.github.com/Pebblo/c0a730bf7396964f1d58bd6ebbc96b9a

To change the ‘THERE ARE CURRENTLY X ITEMS IN THE EVENT CART.’ text you can use the FHEE__EED_Multi_Event_Registration__get_cart_results_current_cart_message filter in a very similar way to the above.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 days, 16 hours ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!