• Resolved Giorgi1992

    (@giorgi1992)


    Hello dear communnity happy new year with best wishes for you and your family

    i find bug when i try order something from my woocommerce website and forgot about checkbox and click order its remind me that its required field but after i check checkbox and click again order nothing happens i need click mouse in some field and make change and after this click order and its working

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Elena

    (@elenathemehigh)

    Your issue needs a detailed check. Could you please raise a ticket through our website? We hope our technical team will be able to help.

    Thank you!

    Thread Starter Giorgi1992

    (@giorgi1992)

    submit

    Plugin Support Elena

    (@elenathemehigh)

    Upon checking your website, we noticed that the validation for the checkbox field in your theme (Elessi theme) isn’t being handled correctly.

    Inorder to fix the issue, please add the below code snippet in your child theme’s functions.php file.

    /**Themehigh**/
    function th_custom_checkbox_script_footer() {
    ?>
    <script type="text/javascript">
    jQuery(document).ready(function($) {
    $(document).on('change', '.thwcfd-field-checkbox input[type="checkbox"]', function() {
    let parentWrapper = $(this).closest('.thwcfd-field-wrapper');

    if (parentWrapper.hasClass('woocommerce-validated')) {
    parentWrapper.find('.nasa-error').remove();
    }
    });
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'th_custom_checkbox_script_footer', 100);

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.