Taxonomy Advanced field for selecting multiple WooCommerce product categories

Support MB Settings Page Taxonomy Advanced field for selecting multiple WooCommerce product categories

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36017
    Kulcsár PeterKulcsár Peter
    Participant

    Hi,

    I would like to select multiple categories, which I am going to exclude in my function.

    But after adding the code to the MB Settings page the select box is empty even if add taxonomy: category or product_cat.

     array(
                    'id'       => $prefix . 'excluded_product_categories',
                    'title'    => 'Kizárt termékkategóriák',
                    'type'     => 'taxonomy_advanced',
                    'taxonomy' => array('product_cat'),
                    'field_type' => 'select_advanced',
                    'ajax'     => true,
                    /* 'js_options' => array(
                        'minimumInputLength' => 2,
                    ), */
                ),

    Is there a way to load all the product categories in the taxonomy advanced select box, so I can select multiple items from it?

    Thanks.

    #36023
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The slug product_cat is the correct slug for the Product Category of WooCommerce. It also works as well on my site. Screen record https://monosnap.com/file/2atFZXVmFul7n2klxe1NqscuGVTeUr

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.