Home Forums Basel support forum Shop filter Brands

Shop filter Brands

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8536

    NiBow
    Participant

    Hi…

    I would like to get WooCommerce Brands plugin to work together with the Basel Themes shop filters, but I can’t see how I would do this. How can i filter by brands? and how can i disable the first two default “sort by” and “price filter”?

    #8537

    Artem Temos
    Keymaster

    Hello,

    You can simply create an attribute called “Brand” with all brands as a term and then simply use our Basel Layered Navigation widget.

    To hide our default filters widgets add the following code to the functions.php in the child theme

    add_filter( 'basel_use_custom_price_widget', '__return_false', 10 );
    add_filter( 'basel_use_custom_order_widget', '__return_false', 10 );

    Regards

    #9358

    samok
    Participant

    Hello Xtemos Studio,

    I added the filters because I would also like to disable the default filter and use my own.

    But it does not work.

    My functions.php of the child theme looks like this:

    <?php
    
    add_action( 'wp_enqueue_scripts', 'basel_child_enqueue_styles', 1000 );
    
    function basel_child_enqueue_styles() {
    	if( basel_get_opt( 'minified_css' ) ) {
    		wp_enqueue_style( 'basel-style', get_template_directory_uri() . '/style.min.css', array('bootstrap') );
    	} else {
    		wp_enqueue_style( 'basel-style', get_template_directory_uri() . '/style.css', array('bootstrap') );
    	}
    	
        wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('bootstrap') );
    
    add_filter( 'basel_use_custom_price_widget', '__return_false', 10 );
    add_filter( 'basel_use_custom_order_widget', '__return_false', 10 );
    }
    #9360

    Artem Temos
    Keymaster

    Hello,

    Place it at the end of the functions.php file, after all presented code there.

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)