filters: list with max/min value and cursorproblem

  • Posts: 171
  • Thank you received: 4
11 years 6 months ago #70078

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

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

  • Posts: 81591
  • Thank you received: 13079
  • MODERATOR
11 years 6 months ago #70231

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.

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

  • Posts: 171
  • Thank you received: 4
11 years 6 months ago #70233

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 ?

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

  • Posts: 81591
  • Thank you received: 13079
  • MODERATOR
11 years 6 months ago #70235

I don't understand your question about max value.
Please explain what you want.

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

  • Posts: 171
  • Thank you received: 4
11 years 6 months ago #70236

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

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

  • Posts: 81591
  • Thank you received: 13079
  • MODERATOR
11 years 6 months ago #70500

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.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum