Home Forums WoodMart support forum Split: WoodMart price filter

Split: WoodMart price filter

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #430397

    Dejan
    Participant

    Hi Azis!

    We would like to hide the filter for pricing for the Shop Archive on the website (the products don’t have a price), I disabled the Shop filters in Theme settings but another bar on the front end was showing up with filters as Highest to lowest, is there a way to hide the pricing filters totally?

    I couldn’t find anything in the Widget-tab as well.

    Kind regards!

    Attachments:
    You must be logged in to view attached files.
    #430400

    Artem Temos
    Keymaster

    Hello,

    Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?

    Thank you in advance

    #430404

    Dejan
    Participant

    The nonrelated plugins are disabled 🙂

    thanks again

    #430406

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php

    add_action( 'wp', function (){
    	add_filter( 'woodmart_use_custom_price_widget', '__return_false' );
    }, 10 );
    #430407

    Dejan
    Participant

    Should I add it to the end? or it doesn’t matter

    #430410

    Dejan
    Participant

    Great it works, there is still 2 titles in the left column Price: low to high,
    can I remove them? or maybe the whole Filter tab if that is not possible?

    and lastly, If I have a Product category without any products for now, is there a way of hiding the 0-products title?

    Attachments:
    You must be logged in to view attached files.
    #430430

    Artem Temos
    Keymaster

    Try to replace previous code with the following one

    add_action( 'wp', function (){
    	add_filter( 'woodmart_use_custom_order_widget', '__return_false' );
    	add_filter( 'woodmart_use_custom_price_widget', '__return_false' );
    }, 10 );

    Kind Regards

    #430523

    Dejan
    Participant

    Hi,
    that worked!
    1) is there a way of hiding the standard bar with the “lower to highest”-filter?
    2) can I remove the empty category “0” somehow but still have the title?

    All best

    Attachments:
    You must be logged in to view attached files.
    #430606

    Artem Temos
    Keymaster

    Hello,

    1. Try to add the following line also

    remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

    2. There is no such ability, unfortunately.

    Kind Regards

    #430639

    Dejan
    Participant

    Hi Artem,

    thanks that work great!

    Kind regards

    #430646

    Artem Temos
    Keymaster

    You are welcome. Feel free to contact us if you have any further questions.

    Kind Regards

    #430647

    Artem Temos
    Keymaster

    You are welcome. Feel free to contact us if you have any further questions.

    Kind Regards

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

The topic ‘Split: WoodMart price filter’ is closed to new replies.