Can't apply filters to all store categories

  • Posts: 377
  • Thank you received: 7
11 years 5 months ago #109738

I've set up my product filters under Display > Filters, however when I try and select which categories to apply these too, it will not allow me actually select any. By default it has applied it to the first category, which works okay. It allows me to enter the category browser, and I can navigate in and out of the folders/categories, however if I select the green '+' to select/add that category, nothing happens - the same again when clicking the name of the category.

The category browser isn't popping up in lightbox window, rather it's opening as a new page inside the same tab I've navigated to the page from.

Any ideas on how to resolve this?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
11 years 5 months ago #109743

Hi,

That means that you have a javascript error on the filter edition page which prevent the popup system of Joomla to initialize properly.
You need to look at the javascript error log of your browser to see where the error is coming from.
If you're not using the default template of the joomla backend, it could potentially come from that.
Otherwise, there is a high chance that it comes from one of the system plugins that you have on your website (other than default joomla system plugins and HikaShop system plugins). So you can try to switch them one by one to see if that fixes the problem in order to identify the culprit.

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

  • Posts: 377
  • Thank you received: 7
11 years 5 months ago #109754

Hi,

I am using the default Joomla back end template.

In the Firebug console, it's showing the following error:

" data_type = document.getElementById('datafilterfilter_data_cursor').value; "

Any ideas?

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

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #109830

Hello there,

Could you please provide us a backend access to your site so we can take a look at this error?
Just send us a PM with the informations.

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

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #109861

Hi there,

I checked and it was actually a bug in Hikashop. To fix it, I replaced in the view form_options of filter the line:

<?php echo $this->product_informationType->display("data[filter][filter_data_cursor]", @$this->element->filter_data, $this->fields , 'onchange="setVisibleUnit(this.value);"', ''); ?>

with this one:
<?php echo $this->product_informationType->display("data[filter][filter_data_cursor]", @$this->element->filter_data, $this->fields , 'onchange="setVisibleUnit(this.value);"', 'datafilterfilter_data_cursor'); ?>

The following user(s) said Thank You: Dibben

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

  • Posts: 377
  • Thank you received: 7
11 years 5 months ago #109932

eliot wrote: Hi there,

I checked and it was actually a bug in Hikashop. To fix it, I replaced in the view form_options of filter the line:

<?php echo $this->product_informationType->display("data[filter][filter_data_cursor]", @$this->element->filter_data, $this->fields , 'onchange="setVisibleUnit(this.value);"', ''); ?>

with this one:
<?php echo $this->product_informationType->display("data[filter][filter_data_cursor]", @$this->element->filter_data, $this->fields , 'onchange="setVisibleUnit(this.value);"', 'datafilterfilter_data_cursor'); ?>


Excellent, thanks for the support guys!

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

  • Posts: 377
  • Thank you received: 7
11 years 5 months ago #110022

Hi Guys,

There seems to be an issue now with the 'cusor' type filter, before it was set to filter on price, now price isn't an option and it's using things like volume, weight etc?

Any idea why that is?

Thanks

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

  • Posts: 377
  • Thank you received: 7
11 years 5 months ago #110024

Also, I applied CSS rules to one page to move the position of the 'filter' button and also change the colour of some filter text from the default orange, however every other filter has a different ID so the rule isn't applied universally, is there anyway around that? (So that all filters will appear the same using 1 rule, rather than identifying each ID manually and applying the rules).

Thanks

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

  • Posts: 377
  • Thank you received: 7
11 years 5 months ago #110049

I've come across another problem, there's a pop-up 'address' form which prompts you to add an address if you've registered without doing so previously, however because this is in an iFrame i'm unable to style it, is there a way around this?

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

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #110079

About the css the best thing to do is to spot a div and create a css rule concerning every child.
You can also create a specific class with your css rules and add this class to the cursor in the file filter.php (in administrator/components/com_hikhashop/classes)

Changing this line:

$html='<div style="'.$cursorWidth.' '.$float.' margin-top:10px; margin-bottom:10px;" id="slider_'.$filter->filter_namekey.'_'.$divName.'"></div>';
To something like:
$html='<div class="yourclass" style="'.$cursorWidth.' '.$float.' margin-top:10px; margin-bottom:10px;" id="slider_'.$filter->filter_namekey.'_'.$divName.'"></div>';

About your address popup problem and despite what I said in my last private message, you should post a new topic with more details (like a link to your page).

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

Time to create page: 0.081 seconds
Powered by Kunena Forum