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?

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 weeks, 1 day ago ago

Topic Tags

Notifications

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