• Resolved mavdiablo

    (@mavdiablo)


    Hi there,
    I found an error in your plugin.
    When I navigate the product category in sub category brand filter disappeared.
    I debug the plug by excluding any other cause first.
    In the class-pwb-filter-by-brand.php file in the function current_products_query on the line 154 I found:
    $cat_id = $cat->term_taxonomy_id;
    but it should be
    $cat_id = $cat->term_id;
    It’s not true?
    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi mavdiablo!

    Thanks for reporting. This is a known issue, it will be fixed very soon ??

    Thread Starter mavdiablo

    (@mavdiablo)

    Hi There,
    I would like to report another problem. I wanted to filter the products by brand even in the product tag pages. I did this:
    File perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php
    line 190 I added
    if( is_product_category() || is_post_type_archive( ‘product’ ) || is_product_tag() )
    File perfect-woocommerce-brands/classes/widgets/class-pwb-filter-by-brand.php
    line 68 and 93 I added
    if( is_product_category() || is_shop() || is_product_tag() ){
    line 155 I transform
    $cat_id_array = get_term_children( $cat_id, $cat->taxonomy );
    and line 158 I transform
    ‘taxonomy’ => $cat->taxonomy,

    Hope it helps.

    Best regards

    Plugin Contributor titodevera

    (@titodevera)

    Fixed in PWB 1.7.7 ??

    Thread Starter mavdiablo

    (@mavdiablo)

    Thankyou very much Titodevera!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Brand filter error’ is closed to new replies.