Change “checkbox” to “radio” to only allow single ticket type for purchase
-
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.
- The topic ‘Change “checkbox” to “radio” to only allow single ticket type for purchase’ is closed to new replies.