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


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.

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.

Support forum for the Multiple Event Registration add-on.
Documentation for Multiple Event Registration Add-on
http://eventespresso.com/wiki/multiple-event-registration-add-on/

Status: closed

Updated by  Josh 3 months, 2 weeks ago ago

Topic Tags

Notifications

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