Support

Home Forums Event Espresso Premium Make custom button add event to cart in EE4

Make custom button add event to cart in EE4

Posted: September 5, 2020 at 7:30 am


aeiklid

September 5, 2020 at 7:30 am

Hello!

We are new to your plugin, but so far it is exactly what we have been looking for.

Because we do more advanced courses, with different «modules», we need to use your multiple registrations add-on.

What I am trying to achieve is to make a «registration wizard» that takes the customer through an Elementor form so they easier understand when the different modules are happening.

You can find our form in this link: tryggombord-d5l.no/d5l/kursside

I am trying to make the default «next» buttons in the Elementor Form add the event to the Event Cart, and hide the default EE4 buttons that appear when using the EE4 tickets shortcode. This way it would be A LOT easier for our customers to navigate the «wizard».

We have tried a few jQuery- strings, but cant seem to make it work properly.

I know this is not something you regularly do, but I thought I should ask in case you have done something similar and have some tips for me.

Also, do you know how to best implement the jQuery string?

Thanks in advance!


Tony

  • Support Staff

September 9, 2020 at 3:28 am

Hi there,

We don’t have any examples of doing this currently, other than hiding the modal that is shown with CSS using something like:

#ee-overlay,
#cart-results-modal-wrap-dv {
    display:none !important;
}

Sounds like the simplest method would be to just include the ticket selector shortcode on the page and the button using CSS, then when the buttons are clicked on your form use jQuery to click the ticket selector button.

Also, do you know how to best implement the jQuery string?

I’m not really sure what you are asking, can you explain further?

The support post ‘Make custom button add event to cart in EE4’ 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