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

  • Posts: 117
  • Thank you received: 3
7 years 1 month ago #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->filterClass->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?

Last edit: 7 years 1 month ago by crealiagroup.

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
7 years 1 month ago #264242

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 or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 3
7 years 1 month ago #264339

Ok
But showing highest price in an ecommerce, is not the best choice! :-)

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?

Last edit: 7 years 1 month ago by crealiagroup. Reason: other attempt

Please Log in or Create an account to join the conversation.

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
7 years 1 month ago #264343

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 or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum