Eliot wrote: Filters are a bit particular since they are generated by the class.
As the values may differ according to your configuration, it cannot simply be in a view or modified with CSS.
So the solutions I gave you are actually the only ones for your case.
I hope I didn't misunderstood what you want to do but if you still want to do the thing you posted first, looking at the class is the solution. As I said, filters are a particular case.
Well, I was trying very hard to find something in the
administrator/components/com_hikashop/classes
But it was no success.
But I really need to get this done so I'll provide the real example.
I want a filter to collapse on toggle.
Here is the working fiddle for this.
jsfiddle.net/Q4PUw/2/
I tried to look at the "views" of the filter in the Back-End and in the administrator folder "filter.php" via FTP, and as far as I could see, because of this code
<div class="hikashop_filter_main_div hikashop_filter_main_div_<?php $this->params->get('main_div_name'); ?>">
That is stored in the "filter" view of the Back-End, I can not assign a class or my jQuery code right to the place I want.
In the HTML markup here's something similar to what I want to see to get this jsFiddle working:
<div class="hikashop_filter_7">
<span class="hikashop_filter_title"> Filter's title</span>
<span class="expand_filter">Toggle to expand</span>
<input type="some_stuff">Here comes the filter itself that expands on '.expand_filter' click</input>
</div>
I refuse to believe there's no way to make this kind of particular customization. There must be a way, easy or not, maybe depending on some patches from you, or writing some documentation.
Please, I really need to do something like this. Help me a bit.
What file should I be editing, how exactly, etc.
Thank you in advance.
Or, here's another workaround.
For example I have 6 filters
<div class="hikashop_filter_1"> Some stuff here</div>
<div class="hikashop_filter_2"> Some stuff here</div>
<div class="hikashop_filter_3"> Some stuff here</div>
<div class="hikashop_filter_4"> Some stuff here</div>
<div class="hikashop_filter_5"> Some stuff here</div>
<div class="hikashop_filter_6"> Some stuff here</div>
Filters from 1 to 3 are default, filters from 4-6 are optional.
I want filters 4-6 to be shown only when a user wants it.
So I do like that:
<div class="hikashop_filter_1"> Some stuff here</div>
<div class="hikashop_filter_2"> Some stuff here</div>
<div class="hikashop_filter_3"> Some stuff here</div>
<div class="toggle_to_expand">Show more params
<div class="hikashop_filter_4"> Some stuff here</div>
<div class="hikashop_filter_5"> Some stuff here</div>
<div class="hikashop_filter_6"> Some stuff here</div>
</div>
And onClick the user gets displayed filters from 4 to 6.
God, if it has been the Bootstrap with the Smarty php engine, I would have done it myself.
But it's Joomla & Hikashop and I got no freaking idea how to customize and who else is supposed to help me since this software is yours