Home / Forums / WoodMart support forum / Split: WoodMart price filter
Home › Forums › WoodMart support forum › Split: WoodMart price filter
Split: WoodMart price filter
- This topic has 11 replies, 2 voices, and was last updated 2 years, 12 months ago by
Artem Temos.
-
AuthorPosts
-
December 21, 2022 at 1:46 pm #430397
DejanParticipantHi 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.December 21, 2022 at 1:49 pm #430400
Artem TemosKeymasterHello,
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
December 21, 2022 at 1:56 pm #430404
DejanParticipantThe nonrelated plugins are disabled 🙂
thanks again
December 21, 2022 at 1:59 pm #430406
Artem TemosKeymasterTry 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 );December 21, 2022 at 2:02 pm #430407
DejanParticipantShould I add it to the end? or it doesn’t matter
December 21, 2022 at 2:13 pm #430410
DejanParticipantGreat 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.December 21, 2022 at 3:30 pm #430430
Artem TemosKeymasterTry 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
December 22, 2022 at 2:32 am #430523
DejanParticipantHi,
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.December 22, 2022 at 10:22 am #430606
Artem TemosKeymasterHello,
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
December 22, 2022 at 12:09 pm #430639
DejanParticipantHi Artem,
thanks that work great!
Kind regards
December 22, 2022 at 12:20 pm #430646
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
Kind Regards
December 22, 2022 at 12:20 pm #430647
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
Kind Regards
-
AuthorPosts
The topic ‘Split: WoodMart price filter’ is closed to new replies.
- You must be logged in to create new topics. Login / Register