DInamic Cursor filter don't calculate the right minumum and maximun values
- crealiagroup
-
Topic Author
- Offline
Less
More
9 years 7 months ago - 9 years 7 months ago #264234
by crealiagroup
DInamic Cursor filter don't calculate the right minumum and maximun values was created by crealiagroup
-- 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?
-- 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: 9 years 7 months ago by crealiagroup.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #264242
by nicolas
Replied by nicolas on topic DInamic Cursor filter don't calculate the right minumum and maximun values
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.
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.
- crealiagroup
-
Topic Author
- Offline
9 years 6 months ago - 9 years 6 months ago #264339
by crealiagroup
Replied by crealiagroup on topic DInamic Cursor filter don't calculate the right minumum and maximun values
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?
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: 9 years 6 months ago by crealiagroup. Reason: other attempt
Please Log in or Create an account to join the conversation.
9 years 6 months ago #264343
by nicolas
Replied by nicolas on topic DInamic Cursor filter don't calculate the right minumum and maximun values
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.
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.160 seconds