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

#   DInamic Cursor filter don't calculate the right minumum and maximun values

##

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

9 years 8 months ago -  9 years 8 months ago [\#264234](#264234) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[DInamic Cursor filter don't calculate the right minumum and maximun values](/forum/45-filters-search/889207-dinamic-cursor-filter-dont-calculate-the-right-minumum-and-maximun-values#264234 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : firefox  I'have created some dinamyc cursor filter (ex Price, lenght, height) etc  I Use Joomlavi flatize template.  In the firs time i removed the comment in this line  $datas=$this-&gt;filterClass-&gt;getProductList($this, $filters); As written in this topic:   www.hikashop.com/forum/filters-search/88...existing-values.html  In this way the dinamic filter start to work, but calculate the extreme value only for main product, without consider the variants.  For example in a category i have variant from 430 to 2200 Euro, but the filter show me as extreme value 430 and 1800 Euro (and not 2200 tha is the real maximun value: 1800 is the maximum value for the main product, but variant has bigger price)!!!  Is it possible to filter the price, lenght, height considering even variant value?")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0
-- Browser(s) name and version -- : firefox

I'have created some dinamyc cursor filter (ex Price, lenght, height) etc

I Use Joomlavi flatize template.

In the firs time i removed the comment in this line

$datas=$this-&gt;filterClass-&gt;getProductList($this, $filters);
As written in this topic: [ www.hikashop.com/forum/filters-search/88...existing-values.html](https://www.hikashop.com/forum/filters-search/888591-filter-element-sho-only-existing-values.html)

In this way the dinamic filter start to work, but calculate the extreme value only for main product, without consider the variants.

For example in a category i have variant from 430 to 2200 Euro, but the filter show me as extreme value 430 and 1800 Euro (and not 2200 tha is the real maximun value: 1800 is the maximum value for the main product, but variant has bigger price)!!!

Is it possible to filter the price, lenght, height considering even variant value?

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Last edit: 9 years 8 months ago by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4OTIwNy1kaW5hbWljLWN1cnNvci1maWx0ZXItZG9udC1jYWxjdWxhdGUtdGhlLXJpZ2h0LW1pbnVtdW0tYW5kLW1heGltdW4tdmFsdWVzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

9 years 8 months ago [\#264242](#264242) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[DInamic Cursor filter don't calculate the right minumum and maximun values](/forum/45-filters-search/889207-dinamic-cursor-filter-dont-calculate-the-right-minumum-and-maximun-values#264242 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : firefox  I'have created some dinamyc cursor filter (ex Price, lenght, height) etc  I Use Joomlavi flatize template.  In the firs time i removed the comment in this line  $datas=$this-&gt;filterClass-&gt;getProductList($this, $filters); As written in this topic:   www.hikashop.com/forum/filters-search/88...existing-values.html  In this way the dinamic filter start to work, but calculate the extreme value only for main product, without consider the variants.  For example in a category i have variant from 430 to 2200 Euro, but the filter show me as extreme value 430 and 1800 Euro (and not 2200 tha is the real maximun value: 1800 is the maximum value for the main product, but variant has bigger price)!!!  Is it possible to filter the price, lenght, height considering even variant value?")*

Hi,

That's not possible.
That would require too much resources to load all the prices of all the variants of all the products of all the pages of the listing.
That's why we limit the system to only the main products.
I would recommend setting the prices you want in the main products in that case.

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

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

9 years 8 months ago -  9 years 8 months ago [\#264339](#264339) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[DInamic Cursor filter don't calculate the right minumum and maximun values](/forum/45-filters-search/889207-dinamic-cursor-filter-dont-calculate-the-right-minumum-and-maximun-values#264339 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : firefox  I'have created some dinamyc cursor filter (ex Price, lenght, height) etc  I Use Joomlavi flatize template.  In the firs time i removed the comment in this line  $datas=$this-&gt;filterClass-&gt;getProductList($this, $filters); As written in this topic:   www.hikashop.com/forum/filters-search/88...existing-values.html  In this way the dinamic filter start to work, but calculate the extreme value only for main product, without consider the variants.  For example in a category i have variant from 430 to 2200 Euro, but the filter show me as extreme value 430 and 1800 Euro (and not 2200 tha is the real maximun value: 1800 is the maximum value for the main product, but variant has bigger price)!!!  Is it possible to filter the price, lenght, height considering even variant value?")*

Ok
But showing highest price in an ecommerce, is not the best choice! ![:-)](/media/kunena/emoticons/3.png ":-)")

I try to create a checkbox custom field so i can assign different lenght to my main product.

Now i try to filter using a checkbox or a single choiche, and this work good, but if i try to use cursor, it doesn't work. The number of query should be the same.. or not?

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Last edit: 9 years 8 months ago by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile"). Reason: other attempt

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4OTIwNy1kaW5hbWljLWN1cnNvci1maWx0ZXItZG9udC1jYWxjdWxhdGUtdGhlLXJpZ2h0LW1pbnVtdW0tYW5kLW1heGltdW4tdmFsdWVzP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86576
- Thank you received: 14320
-
-

9 years 8 months ago [\#264343](#264343) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[DInamic Cursor filter don't calculate the right minumum and maximun values](/forum/45-filters-search/889207-dinamic-cursor-filter-dont-calculate-the-right-minumum-and-maximun-values#264343 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0 -- Browser(s) name and version -- : firefox  I'have created some dinamyc cursor filter (ex Price, lenght, height) etc  I Use Joomlavi flatize template.  In the firs time i removed the comment in this line  $datas=$this-&gt;filterClass-&gt;getProductList($this, $filters); As written in this topic:   www.hikashop.com/forum/filters-search/88...existing-values.html  In this way the dinamic filter start to work, but calculate the extreme value only for main product, without consider the variants.  For example in a category i have variant from 430 to 2200 Euro, but the filter show me as extreme value 430 and 1800 Euro (and not 2200 tha is the real maximun value: 1800 is the maximum value for the main product, but variant has bigger price)!!!  Is it possible to filter the price, lenght, height considering even variant value?")*

Hi,

The display of the price on the listing can be configured in the settings of your menu item.
If you set the price display method to range, it will display the minimum and the maximum.
If you set "cheapest", then it will display the cheapest one.
So that shouldn't be a problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg4OTIwNy1kaW5hbWljLWN1cnNvci1maWx0ZXItZG9udC1jYWxjdWxhdGUtdGhlLXJpZ2h0LW1pbnVtdW0tYW5kLW1heGltdW4tdmFsdWVzP3RtcGw9bWFya2Rvd24=) 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.075 seconds

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