[Skip to main content](#vessel-content)

#   Price filter does not work

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

6 years 2 months ago [\#322465](#322465) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322465 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

-- HikaShop version -- : 4.3.0

Hi, I have a problem with the price filter for the variants. Displays a value of 0.
[ ![ScreenShot07-30-20at03.15AM.PNG](/forum/attachment/50182) ](/forum/attachment/50182 "...0at03.15AM.PNG")

- [ ![ScreenShot07-30-20at03.15AM.PNG](/forum/attachment/50182) ](/forum/attachment/50182 "...0at03.15AM.PNG") [ ](/forum/attachment/50182?download=1 "...0at03.15AM.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

6 years 2 months ago [\#322477](#322477) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322477 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

Hi,

Filters are for listings of products. There are no variants on them and you can't have a listing of variants.
So I'm not sure what you mean.
Note that you have the "dynamic display" setting activated on your filter. So if the products listing you're on doesn't have products or the products don't have prices you might not see the filter. You might want to turn off that setting so that it always displays a 0-100 slider with 10 steps.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

6 years 2 months ago -  6 years 2 months ago [\#322485](#322485) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322485 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

After the tests I found that if the main product has no price but only the variants (I thought it also worked with variants), then the filter will not work. Is it possible in the future to make so that even the main product has no price - to take the lowest price of the variants. The problem is solved.

Last edit: 6 years 2 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

6 years 2 months ago [\#322493](#322493) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322493 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

Hi,

The "product sort price" on which your filter is based on is updated each time you save a product or a variant.
So the variants prices will be taken into account.
However, that option was added 1 or 2 years ago. So if you had products before that and you didn't edit any variant since then, then you still have 0 as sort price in the main product. Which would explain why you think it doesn't work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

6 years 2 months ago [\#322780](#322780) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322780 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

Hi, I found a perfect solution to the problem. But I have a question - how to take the currency symbol?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

6 years 2 months ago [\#322793](#322793) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322793 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

Hi,

What you do mean ? Where do you want to add the currency symbol ? Could you provide a screenshot and a link to the page ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

6 years 2 months ago -  6 years 2 months ago [\#322796](#322796) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322796 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

Hi, I only need the symbol of the current currency. I created my own filter and need to add it as a prefix or only the values will be displayed.

If there's a better way than this please share.
Code:

$price = $this-&gt;currencyHelper-&gt;format($this-&gt;currencyHelper-&gt;getTaxedPrice($this-&gt;element-&gt;prices[0]-&gt;price_value, hikashop_getZone(null), $this-&gt;element-&gt;product_tax_id), $this-&gt;element-&gt;prices[0]-&gt;price_currency_id); $price = preg_replace('/[0-9,]+/', '', $price);

Last edit: 6 years 2 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14263
-
-

6 years 2 months ago [\#322798](#322798) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Price filter does not work](/forum/45-filters-search/900493-price-filter-does-not-work#322798 "-- HikaShop version -- : 4.3.0  Hi, I have a problem with the price filter for the variants. Displays a value of 0.")*

Hi,

Ok. I think I know what you mean. I've added a patch on our end for that.
Download the install package of Hikashop on our website and install it on yours and it will add the support of the currency format settings for the filters based on the product sort price

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzkwMDQ5My1wcmljZS1maWx0ZXItZG9lcy1ub3Qtd29yaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.233 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
