• Hello,

    Firstly, thank you for creating this great plugin.

    You have this option “Allow multiple tickets/ticket type per purchaser” but it would be great if there was an additional option to “Allow only single ticket type” which would change “checkboxes” to “radio” buttons.

    I really need this option for a project I am working on at the moment for a heart health research organization.

    I have been trying to modify the plugin (mainly the mt-button.php file) and change “checkbox” to “radio” to only allow selection of single ticket type for purchase without much luck. The issue is that “radio” buttons require “name” to be the same but you use “name=’mt_tickets[$type]'” which is dynamic and different for each ticket. When I remove “[$type]” part from code the ticket no longer adds to cart.

    Any help/suggestions would be appreciated. And/Or if you are able to add this option to the plugin I am sure many people would welcome it.

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    This is on my to-do list, but it’s not a trivial change.

    Thread Starter mutagennix

    (@mutagennix)

    I have used JS/jQuery (within jquery.public.js) to mimic radio buttons for the time being. I just have the “checked” attribute added/removed. I am using WordPress 4.8 by the way.

    There seems to be an issue with cart updating. When I select type ticket#1 then click “add to cart” button, then deselect ticket#1 and select type ticket#2 and click “add to cart” button, both are now added. It seems like any unselected tickets don’t get removed from cart via the ajax call but can only be added.

    How can I force all unselected ticket types to be removed from the cart when “add to cart” button is pressed?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change “checkbox” to “radio” to only allow single ticket type for purchase’ is closed to new replies.