How to turn input mode from numbers to checkbox

Home Forums Ticket Products Event Tickets Plus How to turn input mode from numbers to checkbox

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1408198
    amf
    Participant

    Main Objective: Make the input boxes into checkboxes and have it so a user check the event then fill out the form then proceed to check out.

    What i had done before: I blocked the woocommerce_quantity_input code which is
    woocommerce_quantity_input( array(
    ‘input_name’ => ‘quantity_’ . $ticket->ID,
    ‘input_value’ => 0,
    ‘min_value’ => 0,
    ‘max_value’ => $must_login ? 0 : $max_quantity, // Currently WC does not support a ‘disable’ attribute
    ) );

    and then i inserted my checkbox code which is
    echo ‘<input type = “checkbox” value = “1” name = “quantity_’.$ticket->ID.'” >’;

    This did succesfully switch out the input text box for a checkbox.
    The thing I am having trouble with is that with my checkbox hack I am not able to collect any extra data other than the name and primary information because it is not displaying the meta.php file correctly. Is there any guidance you can give me on how to either change the woocommerce quantity input to use checkboxes or any other alternative methods

    #1409121

    Hi Ford,

    Thanks so much for reaching out!

    It sounds like you are making a lot of progress with your customizations, which is great!

    Just to let you know, we are limited by our Support Policy in how much we can help with customizations, but I will try to point you in the right direction.

    A great place to start would be our Themer’s Guide, which can show you what views and templates that you can copy and edit to achieve the results that you are looking for.

    https://theeventscalendar.com/knowledgebase/themers-guide/

    If this functionality is a requirement for your intended project, I’d suggest that a third-party developer would be the best way to make this feature happen on a short timeline. ? We maintain a list of developers who work with our plugins on our Knowledgebase here:

    https://theeventscalendar.com/knowledgebase/find-a-customizer/

    Let me know how it goes!

     

    Thanks,

    Jaime

    #1422517
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to turn input mode from numbers to checkbox’ is closed to new replies.