• Resolved Mejfukuci

    (@mateusz96)


    Hello,

    I use the perfect brands woocommerce plugin on the website to view the brands assigned to a product.
    Unfortunately, archive page does not display the brands assigned to a single variant.

    I found a similar error but it is assigned to a different plugin: https://ww.wp.xz.cn/support/topic/product-variations-not-showing-in-brands-page/

    Is there any solution to this?

    Edit:

    I could probably find a solution:

    I edited plugin file: includes/class-admin.php

    line 122-125:

    from:

    $taxonomies = array(
    'product_cat',
    'product_tag');

    to:

    $taxonomies = array(
    'product_cat',
    'product_tag',
    'pwb-brand');

    And then I ran re-init variations in plugin settings.

    Issue:

    The change will disappear when there is an update .. Is there any filter / action that can overwrite this code?

    Best Regards,
    Mateusz K

    • This topic was modified 5 years, 2 months ago by Mejfukuci.
    • This topic was modified 5 years, 2 months ago by Mejfukuci.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @mateusz96

    Thank you so much!

    From version 1.2.3, I added filter hook ‘woosv_init_taxonomies’, so you can add the custom snippet to theme’s functions.php

    add_filter( 'woosv_init_taxonomies', 'woosv_init_taxonomies_include_brand', 99, 1 );
    function woosv_init_taxonomies_include_brand( $taxonomies ) {
    	return array( 'product_cat', 'product_tag', 'pwb-brand' );
    }
    Thread Starter Mejfukuci

    (@mateusz96)

    Cool!
    Thank you for your help. It works 🙂

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

The topic ‘Compatibility with single variations plugin’ is closed to new replies.