• Resolved rtw4jwerito

    (@rtw4jwerito)


    Hello Tobias,

    TablePress is great! Really enjoy it!

    I have a unique request from my client, and need your assistance please.

    We’ve added the inverted filter, edited the PHP file, and it works great. We want to allow our customers to click on a “Search” term if they wish, but as soon as you click it, it populates as it should, but does not do the search. Without the inverted filter, the buttons work fine. You can even see them work if you click accommodation for example, the pagination links light up.

    Please help me to make this work.

    The work around right now is Click the button below the search > Click inside the Search box > Press Enter

    Thank you for your assistance.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This should be doable with small code modification. Please edit the file /wp-content/plugins/tablepress-datatables-button-filter/tablepress-datatables-button-filter.php and after line 75,

    {$name}.search( $( this ).data( 'filterterm' ) ).draw();
    

    add

    $( '.dataTables_filter' ).find( 'input' ).trigger( 'keyup' );
    

    Regards,
    Tobias

    Thread Starter rtw4jwerito

    (@rtw4jwerito)

    Hi Tobias,

    Thank you for the quick reply.

    I added the code, but not working.

    I have:

    	{$name}.search( $( this ).data( 'filterterm' ) ).draw();
    	$( '.dataTables_filter' ).find( 'input' ).trigger( 'keyup' );
    } );

    Please help.

    Thread Starter rtw4jwerito

    (@rtw4jwerito)

    Hi Tobias,

    Just want to check if you would be able to assist me with this please? I added the code, but it’s still not actuating the search on button press.

    Please help.

    Thnx,
    Chris

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ok, another try. Please add this line instead:

    $('#{$html_id}').show();
    

    Regards,
    Tobias

    Thread Starter rtw4jwerito

    (@rtw4jwerito)

    Tobias, you genius!! Thank you so much!!

    I really appreciate how you help everyone. I’ve gone through a lot of your help to people, and it’s just amazing how you help. Much appreciated! Keep it up!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias
     
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hi rtw4jwerito would you mind sharing a heads up, how to make the table work like you did? and the formatting? thanks

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    directly pinging @rtw4jwerito here 🙂

    Regards,
    Tobias

    Thread Starter rtw4jwerito

    (@rtw4jwerito)

    Hi @stressor , sorry for the delay. Was out of town.

    Let’s see…

    I installed TablePress, with these extra plugins:

    Change DataTables strings
    TablePress Extension: DataTables Button Filtering
    TablePress Extension: DataTables Inverted Filter
    TablePress Extension: Responsive Tables

    I also use Divi Theme Builder. When you read what each of these plugins do, you’ll know what part of it I used. Also, the two support tickets I raised for this project are:

    (This one on this page) and This one

    I then just created buttons in a text block according to the Button Filtering page, and center aligned.

    Let me know if you need anything else. I’ll assist where I can.

    Chris

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Chris,

    awesome! Thanks for sharing your summary on how you achieved this!

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Inverted Filter not searching with Search button click’ is closed to new replies.