Filter Configuration

  • Posts: 441
  • Thank you received: 24
12 years 10 months ago #34233

I cant configure filters, dont know waht im doing wrong.
First i Create a filter, price one, select category and add values, 10,20,30,40,50
it creates the values and then create a joomla module hikashop_filter, choose place, add filters.
to problems happens then:
1.- choose quantity 10 € to 20 €, click filter button, nothing happens
2.- the filter is also loaded in main body but i just want it on the left menu.

finally i manage to create a filter but still have problem numbre 2, and now if i choose erase filter option i have the next problem:
Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 579

Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 582

Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 582

Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 582

Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 582

Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 582

Warning: in_array() expects parameter 2 to be array, string given in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 586
Precio

Last edit: 12 years 10 months ago by condorazul.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 10 months ago #34262

Hi,

Could you first make sure that you're using the latest version of HikaShop ?

Then, if you still have these warnings, you can edit these lines in that file and add the characters @ just before in_array and that will remove the warnings.

If you don't want to hide the filters on your main area, you can do that by following the explanations there:
www.hikashop.com/en/support/documentatio...-filter-listing.html

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

  • Posts: 441
  • Thank you received: 24
12 years 10 months ago #34273

1.- i have the latest version
2.- what i want is to hide it in the main area, but i dont understand how to do it

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 10 months ago #34305

1. So did the modification I proposed removed the warnings ?

2. You will be able to do that by adding such CSS line (replace the X by the id of your menu) in the front end CSS file that you can edit via the Display tab of the configuration:
#hikashop_category_information_menu_X .hikashop_subcategories{ display:none; }

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

  • Posts: 441
  • Thank you received: 24
12 years 10 months ago #34362

1.- errors disappears after puttin @ before in array but now this ones coming
Notice: Uninitialized string offset: 0 in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 1048.

2.- other problem i have is if i choose filter display cursor, i choose minimun value 10 and maximun value 120, steps 4, cursor effects ok, apply and cursor appears but only shows 120-120 no drag options or anything happen when i try to use it. if i just click the button i get this problem :
Notice: Undefined offset: 1 in C:\xampp\htdocs\cestamagica\administrator\components\com_hikashop\classes\filter.php on line 640
Precio

hikashop version:1.5.5 joomla version:1.7.2

3.- the css wasnt this one i dont know if im using same version or whatever, because css seems to be very different from other post than mine, correct css was:
.hikashop_filter_fieldset {
display:none;
}
#hikashop_filter_button_hikashop_category_information_module_83 {
display:none;
}

is anything wrong with my joomla or version because something seems to be worng with other css we spoke about, not even with demo page in hikashop, seems to be very different compare to mine, i also post here the html generated by my joomla to see if anything is wrong:

<div id="hikashop_category_information_module_83" class="hikashop_category_information hikashop_products_listing_main">
<div class="hikashop_filter_main_div">
<fieldset class="hikashop_filter_fieldset">
<span>
<input id="hikashop_filter_button_hikashop_category_information_module_83" class="button hikashop_cart_input_button" type="submit" onclick="var field=document.getElementById('hikashop_product_quantity_field_1');document.forms.submit(); return false;" value="Filtro" name="filter">
</span>

Last edit: 12 years 10 months ago by condorazul.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 10 months ago #34391

Hi,

1. Please change the line:

if($filter->filter_deletable && $selected[0]!='none' && ( isset($selected[0]) && !in_array($selected[0],array(" ",'')))){

to:
if($filter->filter_deletable && isset($selected[0]) && $selected[0]!='none' && !in_array($selected[0],array(" ",''))){

in that same file and it will solve that problem.

2. Could you do a screenshot of the options of your filter so that we can really try to do the same as we didn't had these problems on our end when we tried to reproduce them ?

3. Your HTML is good. But you should look further up in the HTML hierarchy for the menu id. Or you can do like what you suggested. It will work too.

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

  • Posts: 441
  • Thank you received: 24
12 years 10 months ago #34397



This is what i get with this configuration

Attachments:

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

  • Posts: 441
  • Thank you received: 24
12 years 10 months ago #34398

and this is the configuration

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 10 months ago #34458

Hi,

Thank you. We were able to reproduce the problem.

Please add the code:

if($minVal>$maxVal){
$tmp = $maxVal;
$maxVal = $minVal;
$minVal = $tmp;
}
if($cursorMin>$cursorMax){
$tmp = $cursorMax;
$cursorMax = $cursorMin;
$cursorMin = $tmp;
}

just before the code:
$js='jQuery(document).ready(function(){

jQuery("#slider_'.$filter->filter_namekey.'_'.$divName.'").removeAttr("slide").slider({

in the file administrator/components/com_hikashop/classes/filter.php and it will work.

We'll add that fix to next version of HikaShop too.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 10 months ago #34459

Hi,

Thank you. We were able to reproduce the problem.

Please add the code:

if($minVal>$maxVal){
$tmp = $maxVal;
$maxVal = $minVal;
$minVal = $tmp;
}
if($cursorMin>$cursorMax){
$tmp = $cursorMax;
$cursorMax = $cursorMin;
$cursorMin = $tmp;
}

just before the code:
$js='jQuery(document).ready(function(){

jQuery("#slider_'.$filter->filter_namekey.'_'.$divName.'").removeAttr("slide").slider({

in the file administrator/components/com_hikashop/classes/filter.php and it will work.

We'll add that fix to next version of HikaShop too.

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

  • Posts: 441
  • Thank you received: 24
12 years 10 months ago #34682

the filter continues without working properly, next fail:

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
12 years 10 months ago #34742

Mmm. We don't have these errors on our end. Could you put online your website and provide an FTP access to it so that we can have a look at the problem and fix what needs to be fixed ?

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

  • Posts: 72
  • Thank you received: 0
9 years 8 months ago #196457

Dear Sir
did you fix this problem, I have same problem
Notice: Undefined offset: 1 in D:\wamp\www\mymall\administrator\components\com_hikashop\classes\filter.php on line 975, this happened mainly on cursor filter, where 2 filters applied at the same time, the title of the filter disappear and this message came up
thanks

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

  • Posts: 12953
  • Thank you received: 1778
9 years 7 months ago #197744

Hello,
Firstly can you give us more information about how you configured your filters through some screenshots and about the problem that you are having ?
Also, to be sure that you are using the last Hikashop version, can you download Hikashop through our website, install it and test it again ?
Thanks.

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

Time to create page: 0.099 seconds
Powered by Kunena Forum