[Skip to main content](#vessel-content)

#   Change behaviour on the instock filter

##

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#260500](#260500) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260500 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

Hi!
Is it possible to make filter "instock" to apply on quantity -1 and 0 ? Now its working for 0 only.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#260501](#260501) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260501 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi,

Please provide basic details of your current configuration ; starting with the HikaShop version number you're using and details about your product page overrides.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#260695](#260695) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260695 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Your version is 2.6.0
Joomla 3.6.4

I have some overides, like
filter.php
listing_price.php
show_default.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#260699](#260699) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260699 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi,

Please note that you're using an old version of HikaShop (September 2015)
Your issue has been fixed in recent packages.
[ www.hikashop.com/support/documentation/5...ashop-changelog.html](https://www.hikashop.com/support/documentation/56-hikashop-changelog.html)

Here a thread talking about it :
[ www.hikashop.com/forum/product-category-...duct-micro-data.html](https://www.hikashop.com/forum/product-category-display/888071-imperfection-on-product-micro-data.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#260802](#260802) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260802 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi!
I installed the lastest version. It didn t change anysting with thw instock filter. Maybe you didnt understand the issue. In stock works only with quantity 0 . I needed it to work also for -1 (unlimited quantity.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#260819](#260819) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260819 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi,

I'm afraid that does not make any sense.

Here the code in HikaShop 3 : Code:

&lt;meta itemprop="availability" content="http://schema.org/&lt;?php echo ($this-&gt;row-&gt;product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?&gt;" /&gt;

And it makes perfect sense !

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#260897](#260897) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260897 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Jerome, I just tell you something I need.
What do you mean by "it doesn t make any sense" ?
You re not helping me, you re judging me .

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago -  9 years 8 months ago [\#260898](#260898) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260898 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

where is the code you sent me?
&lt;meta itemprop="availability" content="[ schema.org/](http://schema.org/)echo ($this-row-&gt;product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?&gt;" /&gt;

Last edit: 9 years 8 months ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#260904](#260904) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#260904 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi,

The content you're looking for is in the product page (show_default, show_tabular, show_reverse).
As I mentioned in the the forum thread I gave you before :
[ www.hikashop.com/forum/product-category-...as-stock.html#253948](https://www.hikashop.com/forum/product-category-display/887206-availability-tag-out-of-stock-but-variants-has-stock.html#253948)

And in very old version of HIkaShop, the micro data was split in a lot of view, as you can see in that post :
[ www.hikashop.com/forum/product-category-...uct-view.html#246902](https://www.hikashop.com/forum/product-category-display/879103-invalid-microdata-on-single-product-view.html#246902)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#261120](#261120) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#261120 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

It doens t change a thing.
Sorry but I believe its not the case.
I need my filter module to work
"Hi!
Is it possible to make filter "instock" to apply on quantity -1 and 0 ? Now its working for 0 only.

Thanks!"

I tried the file and checked the overrides too. Should this file be in filters somewhere, or in a plugin?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

9 years 8 months ago -  9 years 8 months ago [\#261160](#261160) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#261160 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hello,

You have to know that in his **normal and default** behavior the stock filter with "**in stock**" will take **ALL** product quantity (&gt;0) **AND** unlimited (-1)
That's a logical way to proceed because unlimited, means available.

And so, your question isn't logical,:

> "I needed it to work also for -1 (unlimited quantity)."

because by default must be the default way to proceed, and so idea judgement isn't the point...

But maybe there is for some reason a bug ?...
I note that you have some **override on your filter view**, can you try to **remove** (after save it on your side) this override?
If after this, your filter behavior is corrected, that's mean that your override **make something wrong**.

This point isn't easy to understand:

> "Is it possible to make filter "instock" to apply on quantity -1 and 0"

So you mean **in stock** =&gt; 0 stock ?...
Well, maybe tour have a precise purpose or context but just this is difficult to understand.

Awaiting news from you.

Regards

Last edit: 9 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#261169](#261169) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#261169 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Yes. 0 quantity for means not available.
But -1 which means unlimited, for me in my shop, I want it to mean "not available" when the user uses the instock filter.
Its a matter of time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

9 years 8 months ago [\#261242](#261242) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#261242 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi,

Then it's not a bug but some custom coding you want.
You'll have to change the line: Code:

$filters[]=' b.product_quantity!=0 ';

to something like that: Code:

$filters[]=' b.product_quantity&gt;0 ';

in the file administrator/components/com_hikashop/classes/filter.php

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 8 months ago [\#261285](#261285) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#261285 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Thank you Nikolas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1189
- Thank you received: 13
-
-

9 years 6 months ago [\#266296](#266296) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#266296 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Can I create an orerride? Because when I update I loose my customs.
Its on the administrator/..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

9 years 6 months ago [\#266311](#266311) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change behaviour on the instock filter](/forum/45-filters-search/888503-change-behaviour-on-the-instock-filter#266311 "Hi! Is it possible to make filter &quot;instock&quot; to apply on quantity -1 and 0 ? Now its working for 0 only.  Thanks!")*

Hi,

Sure. You can copy the file to templates/YOUR_TEMPLATE/html/com_hikashop/administrator/classes/filter.override.php and rename the class hikashopFilterClass to hikashopFilterClassOverride in it and the system should automatically use your file and class instead of HikaShop's core one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2ZpbHRlcnMtc2VhcmNoLzg4ODUwMy1jaGFuZ2UtYmVoYXZpb3VyLW9uLXRoZS1pbnN0b2NrLWZpbHRlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.487 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
