• Hi,

    Is it possible to apply the Automatically filter category pages modification to selected categories only and not to all categories?

    The website has product categories which do not apply to vehicles.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the line:

    
     if ($displayType == 'subcategories'){ // cannot filter subcategories
    

    with:

    
      if (!in_array($categoryId, array(75,76,78)) || $displayType == 'subcategories'){ // cannot filter subcategories
    

    in the file:
    wp-content/plugins/ymm-search/Controller/Product.php

    Replace:
    75,76,78

    with your allowed category IDs.

    Stanislav

Viewing 1 replies (of 1 total)
  • The topic ‘Automatically filter selected category pages’ is closed to new replies.