- Posts: 171
- Thank you received: 4
filters: list with max/min value and cursorproblem
13 years 11 months ago #70078
by jesper
filters: list with max/min value and cursorproblem was created by jesper
hey,
is it possible to get the filter value of a list to be maximum or minimum instead of in between the values ?
also i have a cursor with
max 30000, min 400000, steps 500
if i then choose: 105500 - 275500 and press search
it searches the right pages, but it now shows 30000 - 105500 as the search criteria in the search box.
Can you tell me if this is a bug or something we have done, that is woth
is it possible to get the filter value of a list to be maximum or minimum instead of in between the values ?
also i have a cursor with
max 30000, min 400000, steps 500
if i then choose: 105500 - 275500 and press search
it searches the right pages, but it now shows 30000 - 105500 as the search criteria in the search box.
Can you tell me if this is a bug or something we have done, that is woth
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70231
by nicolas
Replied by nicolas on topic Re: filters: list with max/min value and cursorproblem
Hi,
That's indeed a bug.
The line:
if(is_array($values)){
should be:
if(is_array($values) && count($values)!=2){
in the file administrator/components/com_hikashop/classes/filter.php
Change that and it will work.
That's indeed a bug.
The line:
if(is_array($values)){
should be:
if(is_array($values) && count($values)!=2){
in the file administrator/components/com_hikashop/classes/filter.php
Change that and it will work.
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70233
by jesper
Replied by jesper on topic Re: filters: list with max/min value and cursorproblem
thanx for the info.
about the max value is this possible ? or you have a way to do that too ?
or will this be implemented in a later version ?
about the max value is this possible ? or you have a way to do that too ?
or will this be implemented in a later version ?
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70235
by nicolas
Replied by nicolas on topic Re: filters: list with max/min value and cursorproblem
I don't understand your question about max value.
Please explain what you want.
Please explain what you want.
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70236
by jesper
Replied by jesper on topic Re: filters: list with max/min value and cursorproblem
if i add a dropdown list with values
1000
1100
1200
1300
i get select options
under 1000
1000 to 1100
1100 to 1200
1200 to 1300
over 1300
i just want it to say
max 1000
1100
1200
1300
over 1300
instead in the dropdown
1000
1100
1200
1300
i get select options
under 1000
1000 to 1100
1100 to 1200
1200 to 1300
over 1300
i just want it to say
max 1000
1100
1200
1300
over 1300
instead in the dropdown
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70500
by nicolas
Replied by nicolas on topic Re: filters: list with max/min value and cursorproblem
Ah yes, I can see what you mean.
You can remove the lines:
$html.='<OPTION '.$selectedItem.' value="::'.$value.'">'.JText::sprintf('X_AND_INFERIOR',$formatVal).'</OPTION>';
and:
$html.='<OPTION '.$selectedItem.' value="'.$value.'::">'.JText::sprintf('X_AND_SUPERIOR', $formatVal ).'</OPTION>';
in the file administrator/components/com_hikashop/classes/filter.php and that will remove the "under 1000" and the "over 1300" choices from the dropdown.
You can remove the lines:
$html.='<OPTION '.$selectedItem.' value="::'.$value.'">'.JText::sprintf('X_AND_INFERIOR',$formatVal).'</OPTION>';
and:
$html.='<OPTION '.$selectedItem.' value="'.$value.'::">'.JText::sprintf('X_AND_SUPERIOR', $formatVal ).'</OPTION>';
in the file administrator/components/com_hikashop/classes/filter.php and that will remove the "under 1000" and the "over 1300" choices from the dropdown.
Please Log in or Create an account to join the conversation.
Time to create page: 0.214 seconds