Support

Home Forums Multiple Event Registration Add-on Ticket Selector showing "View Cart" when should be showing "Add to Cart"

Ticket Selector showing "View Cart" when should be showing "Add to Cart"

Posted: March 9, 2018 at 7:43 am

Viewing 2 reply threads


FINS SWIMMING

March 9, 2018 at 7:43 am

First off I am using the multiple event registration add on:

Issue:
I am using the ticket selector short code to embed into a page that is displayed inside of a popup.

On the first pass, this button reads as “Add to Cart” but after I add that ticket to my cart, Maybe I want to add another – The second time the popup shows with the ticket selector, the EE submit button now shows “View Cart” – however if I select a ticket qty and click the “View Cart” button it adds that item to my cart.

Expected result:
Ideally all these submit buttons inside the ticket selector would read “Register Swimmer” I understand I can override the button text somewhat, but I was having trouble getting it to behave the way I envision.

Any suggestion on how to force the ticket selector button from the shortcode to always read “Register Swimmer” ?


FINS SWIMMING

March 9, 2018 at 9:44 am

I was able to solve this with jQuery by using the following:

$(“.ticket-selector-submit-btn”).val(“Register Swimmer”);

Let me know if you have a more efficient way of doing this


Josh

  • Support Staff

March 9, 2018 at 12:26 pm

That should work just fine.

Viewing 2 reply threads

The support post ‘Ticket Selector showing "View Cart" when should be showing "Add to Cart"’ 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