• Resolved meidanm95

    (@meidanm95)


    Hi.
    I noticed theres an error in checkbox.js when autosubmit is off
    When I check a term, then uncheck it and then check the same term again I get a console error in woof_checkbox_direct_search function on values.split(‘,’) (it’s undifined..)
    so I fixed it by changing it to:

    if(values){
      values = values.split(',');
     }

    but I don’t want it to disappear after plugin update…

    and second problem I have is to override checkbox.php template.
    I copied checkbox.php file to /my-child-theme/woof/views/html_types/checkbox.php
    and then in my functions.php:

    function newWoofTemplate(){
     get_template_part('/woof/views/html_types/checkbox', '');
    }
    add_action('woof_html_types_view_checkbox','newWoofTemplate');

    but on the frontend the checkboxes removed.
    if I change my custom checkbox.php file content to simple html it works fine so the hook is ok, but the whole point is to work with the dynamic content of woof but as I say, when I copy the original code to my custom template, the checkboxes disappearing in the frontend…Is there anything you can help me with, please? :]

    • This topic was modified 2 years ago by meidanm95.
Viewing 1 replies (of 1 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    1)Thank you for your cooperation!But maybe it has something to do with your code customization. On my site, I can’t replicate this error. My test- https://c2n.me/4h1vjb1

    2)Please drop me exact link to the issue. Perhaps you should initialize scripts for these custom checkboxes

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in checkbox.js and template overriding problem’ is closed to new replies.