• thestonehouseofcampbellville

    (@thestonehouseofcampbellville)


    Hi,

    I have an compatibility issue between this plugin and MDTF (Meta Data and Taxonomy Filter). MDTF, when having an active filter, resets the products per page to WooCommerce default value. Changing the Product Per Page dropdown while MDTF is active does not change the products per page.

    The active filter changes the url from “shop/” to something like “shop/?slg=product&mdf_cat=686&page_mdf=bf0dc27f3a410f34ddb870977d9df8cd”; does the plugin recognize this as a shop page still? I’ve tried increasing the priority on the hook setting the products per page but no luck.

    Any help would be appreciated. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    I haven’t tested / confirmed it, but I do believe it should still be recognised as a shop page, I don’t see reason why it wouldn’t.

    Which setting are you using for the ‘http method’ on the settings are of this plugin? If you’re using ‘GET’ you may want to change it to ‘POST’ instead, that might work.

    Could you confirm it is working properly when not using the filter functionality?

    Let me know!
    Jeroen

    Thread Starter thestonehouseofcampbellville

    (@thestonehouseofcampbellville)

    Hi,

    Thanks for getting back to me. Yes products Per Page works fine when the filter is not active (ie. on “shop/page/2/” like pages). I have tried both GET and POST, no change.

    I think the solution is for me to try and dig into the MDTF documentation and try to figure it out. I’ve run through your plugin code and it should be working but MDTF seems to be the issue (ie. incompatible). My feeling is that MDTF is using a higher priority set of the products per page (or is somehow blocking/neutralizing PPP).

    The results_per_page seem to be captured with this snippet (in views/settings.php).

    <input type=”text” class=”regular-text”
    value=”<?php echo(isset($data[‘results_per_page’]) ?
    $data[‘results_per_page’] : 0) ?>” name=”meta_data_filter_settings[results_per_page]”>

    I will dig into the code further and will see if I can make sense of it. Thank you for your help.
    Jamie

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Jamie,

    Thanks for testing.

    I didn’t thought of it before the MDTF might change the number of results per page.
    Doing a quick search in their code it indeed is doing that. Not sure if this is it, but search for ‘posts_per_page’ in the ‘shortocdes/meta_data_filter.php’ file, I think that is the one with highest change of interfering.

    If its not that, just do a global search for the term and you’ll see which others might interfere.

    Have a great day!
    Jeroen Sormani

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incompability with MDTF Plugin’ is closed to new replies.