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

#   My (workaround) for an inventory backorder system

##

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 9 months ago [\#261108](#261108) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#261108 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

Are you accessing from France or from another country?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NTM2LW15LXdvcmthcm91bmQtZm9yLWFuLWludmVudG9yeS1iYWNrb3JkZXItc3lzdGVtP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#261109](#261109) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#261109 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

Hi,

From France, but our ISP is also a web hosting company (OVH).

Regards,

---

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 9 months ago [\#261178](#261178) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#261178 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

I have been discussing it with my hosting company and they are asking for your IP address. Could you, please, provide it? Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NTM2LW15LXdvcmthcm91bmQtZm9yLWFuLWludmVudG9yeS1iYWNrb3JkZXItc3lzdGVtP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#261181](#261181) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#261181 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

Hi,

No, we can't provide our IP in the forum.
Please use our "contact us" form.

Regards,

---

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 9 months ago [\#261603](#261603) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#261603 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

I have received your IP and asked hosting company to fix it. Did you receive my message? It should be OK now. Could you, please, check it now? Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NTM2LW15LXdvcmthcm91bmQtZm9yLWFuLWludmVudG9yeS1iYWNrb3JkZXItc3lzdGVtP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 9 months ago [\#262203](#262203) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#262203 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

Hi,

Nicolas gave you this code : Code:

$filters[]=' (b.product_quantity=-1 OR b.product_quantity&lt;=1000 ) ';

So it will authorize the display of product with an unlimited quantity or with the quantity inferior (or equal) to 1000.
But, I have the impression that you want to display the product with a stock superior to 1000, right ?

Regards,

---

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

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

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

Less More

- Posts: 46
- Thank you received: 3
-
-

9 years 8 months ago [\#262306](#262306) by [montemama](/forum/user/43131-montemama "View montemama's Profile")  Replied by *[montemama](/forum/user/43131-montemama "View montemama's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#262306 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

Yes, you are right.
I have tried to change the code like this:
if($filter-&gt;filter_type=='instockcheckbox' &amp;&amp; $infoGet[0]=='in_stock'){
$filters[]=' (b.product_quantity&gt;1000) ';
}
But there´s no difference.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NTM2LW15LXdvcmthcm91bmQtZm9yLWFuLWludmVudG9yeS1iYWNrb3JkZXItc3lzdGVtP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#262311](#262311) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[My (workaround) for an inventory backorder system](/forum/2-general-talk-about-hikashop/76536-my-workaround-for-an-inventory-backorder-system?start=20#262311 "I really needed this function and I have no idea how to code, I found a simple solution that I wanted to share just in case anybody else was in the same situation.  First, I added 1000 to my all of my inventory. this way, if it says 1023, I know I have 23 available.  -----  Second, I found this line, I had no idea what I was doing but it worked, I added &quot;-1000&quot; after product quantity. This way my front end displays the product inventory -1000, which is the real inventory.  class=&quot;hikashop&#95;product&#95;stock&#95;count&quot;&gt;'.JText::sprintf('X&#95;ITEMS&#95;IN&#95;STOCK',$this-&gt;row-&gt;product&#95;quantity-1000).'';  -----  In the following link it explains how to add some code to notify the customers if there is less than a certain quantity.    www.hikashop.com/en/forum/search.html?q=...antity&amp;childforums=1  Here is the code after I changed it.  if($this-&gt;row-&gt;product&#95;quantity1001) echo ''.JText::&#95;('This size/colour is on backorder so it might take around ten days for delivery').'';  I added the y backorder message. This way as soon as the item reaches 0, it informs the customer of a longer waiting time, this is where my plan takes effect. Customers can order with the knowledge that it will take a bit longer due to the item not being in stock.  -----  The only negative effect I can see here is that my inventory has plus 1000 products, But this doesn't bother me at all.")*

Hi,

Without knowing how your products are configured ; it will be difficult to say.
But I can see that you removed the product with an unlimited quantity.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2NTM2LW15LXdvcmthcm91bmQtZm9yLWFuLWludmVudG9yeS1iYWNrb3JkZXItc3lzdGVtP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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.068 seconds

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