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

#   Item Number in Stock &amp; Stock Notifications

##

- **[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")**
- [![PubSite's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28074.jpg)](/forum/user/28074-pubsite "View PubSite's Profile") Topic Author
- [ Offline](/forum/user/28074-pubsite)

Less More

- Posts: 100
- Thank you received: 1
-
-

12 years 7 months ago [\#151566](#151566) by [PubSite](/forum/user/28074-pubsite "View PubSite's Profile")  *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151566 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")* was created by *[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")*

Hello,

I want to ask for help on two issues I'm facing with my HikaShop.

1. How can I force the system to only decrement items when the order is "PAID"? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.

2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?

Site URL : [ www.222publications.com](http://www.222publications.com)

Thanks in advance,
Blessings,
Simon

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#151613](#151613) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151613 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")*

Hi,

1. There is an option for that in HikaShop, Configuration &gt; Main &gt; Product &gt; "Update the product stock on confirmed status".

2. You have to make a view override for the view "product / quantity", add an if condition to display the stock level only if it"s less than 6. something like: Code:

if($this-&gt;row-&gt;product_quantity &lt; 6){ echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;br/&gt;&lt;/span&gt;'; }

The following user(s) said Thank You: [PubSite](/forum/user/28074-pubsite "View PubSite's Profile")

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

- **[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")**
- [![PubSite's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28074.jpg)](/forum/user/28074-pubsite "View PubSite's Profile") Topic Author
- [ Offline](/forum/user/28074-pubsite)

Less More

- Posts: 100
- Thank you received: 1
-
-

12 years 7 months ago [\#151663](#151663) by [PubSite](/forum/user/28074-pubsite "View PubSite's Profile")  Replied by *[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")* on topic *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151663 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")*

Thanks a lot Xavier..

I added the code you suggested. I don't know where to put it exactly in the php file.. It might not be working because of that...

we only have 2 of this book left : [ www.222publications.com/newcatalog/fa/ho...ncebooks/product/24-](http://www.222publications.com/newcatalog/fa/holybiblenref/refrencebooks/product/24-)
but I can't see any notification even though I've added the code.

Thanks in advance.
God bless,
Simon

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

- **[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")**
- [![PubSite's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28074.jpg)](/forum/user/28074-pubsite "View PubSite's Profile") Topic Author
- [ Offline](/forum/user/28074-pubsite)

Less More

- Posts: 100
- Thank you received: 1
-
-

12 years 7 months ago [\#151668](#151668) by [PubSite](/forum/user/28074-pubsite "View PubSite's Profile")  Replied by *[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")* on topic *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151668 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")*

now it's showing 2 lines of available items in stock. I want it to show only one line and ONLY if there's 5 or less.. Shall I add an else to that if statement? Please help me with the code. You'll see what I mean if you click on the link above.

Thanks! ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#151676](#151676) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151676 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")*

Hi,

So you just have to remove the other line (the one not in your if condition): Code:

echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;br/&gt;&lt;/span&gt;';

The following user(s) said Thank You: [PubSite](/forum/user/28074-pubsite "View PubSite's Profile")

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

- **[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")**
- [![PubSite's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28074.jpg)](/forum/user/28074-pubsite "View PubSite's Profile") Topic Author
- [ Offline](/forum/user/28074-pubsite)

Less More

- Posts: 100
- Thank you received: 1
-
-

12 years 7 months ago [\#151734](#151734) by [PubSite](/forum/user/28074-pubsite "View PubSite's Profile")  Replied by *[PubSite](/forum/user/28074-pubsite "View PubSite's Profile")* on topic *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151734 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")*

Thank you so much! You've done me a huge favor Xavier. I appreciate it.

Just a quick question. Although I've fixed this issue with my CSS before, it's came back. I don't know why. I even checked the code and it's as it was before. I've floated all addresses to Center. But as you can see in my screenshots, when I'm in the checkout process, the addresses are corrupted and price titles too...! What can I do about this?

[ www.dropbox.com/s/9mzjdjfrs2aymc6/Screen...04-10%2014.09.18.png](https://www.dropbox.com/s/9mzjdjfrs2aymc6/Screenshot%202014-04-10%2014.09.18.png)
[ www.dropbox.com/s/7gv8x79vnq72cpz/Screen...04-10%2014.10.04.png](https://www.dropbox.com/s/7gv8x79vnq72cpz/Screenshot%202014-04-10%2014.10.04.png)

Regards,
Simon

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 7 months ago [\#151763](#151763) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Item Number in Stock &amp; Stock Notifications](/forum/35-orders-management/867324-item-number-in-stock-stock-notifications#151763 "Hello,  I want to ask for help on two issues I'm facing with my HikaShop.  1. How can I force the system to only decrement items when the order is &quot;PAID&quot;? Because some people make the order and don't pay it for a while but the items are decremented from my stock. Others can't order items this way... What can I do about this? I want items to be subtracted from the stock ONLY IF they're paid for.  2. How can I have a notification for USERS when there's only 5 items left in my stock? I don't want the number to be there all the time because I don't want them to see all items I have in my stock. Only when we're down to 5 or less, I want them to see a text near the item or smth like this. How can I do this?  Site URL :   www.222publications.com  Thanks in advance, Blessings, Simon")*

Hi,

As you say it' a css issue. [ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

Thanks to create a test account in order to see directly from what that come.
But we don't support css issues. ![;)](/media/kunena/emoticons/24.png ";)")

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

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