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

#   Add to cart button to show even when out of stock

##

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

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

14 years 3 months ago [\#61437](#61437) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  *[Add to cart button to show even when out of stock](/forum/4-how-to/61437-add-to-cart-button-to-show-even-when-out-of-stock#61437 "I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.  In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.  How do I set that up?  thanks  Jan")* was created by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")*

I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.

In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.

How do I set that up?

thanks

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

14 years 3 months ago [\#61543](#61543) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Add to cart button to show even when out of stock](/forum/4-how-to/61437-add-to-cart-button-to-show-even-when-out-of-stock#61543 "I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.  In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.  How do I set that up?  thanks  Jan")*

It's currently not possible to buy a product when this on is out of stock.
The only thing you can do is add for exemple 10 product to the real number of product you have in order to allow people buying it even when you're temporaly out of stock.

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

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

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

14 years 3 months ago -  14 years 3 months ago [\#61549](#61549) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  Replied by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")* on topic *[Re: Add to cart button to show even when out of stock](/forum/4-how-to/61437-add-to-cart-button-to-show-even-when-out-of-stock#61549 "I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.  In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.  How do I set that up?  thanks  Jan")*

Thanks for the information,

Then add that to the wishlist, it must be an option that allows that in Hikashop!

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

Last edit: 14 years 3 months ago by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzYxNDM3LWFkZC10by1jYXJ0LWJ1dHRvbi10by1zaG93LWV2ZW4td2hlbi1vdXQtb2Ytc3RvY2s/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 3 months ago [\#61550](#61550) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add to cart button to show even when out of stock](/forum/4-how-to/61437-add-to-cart-button-to-show-even-when-out-of-stock#61550 "I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.  In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.  How do I set that up?  thanks  Jan")*

It's already in the todo list.

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

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

Less More

- Posts: 83
- Thank you received: 10
-
-

14 years 2 months ago -  14 years 2 months ago [\#64471](#64471) by [jrod](/forum/user/8164-jrod "View jrod's Profile")  Replied by *[jrod](/forum/user/8164-jrod "View jrod's Profile")* on topic *[Re: Add to cart button to show even when out of stock](/forum/4-how-to/61437-add-to-cart-button-to-show-even-when-out-of-stock#64471 "I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.  In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.  How do I set that up?  thanks  Jan")*

After entering in the quantities for about 40 or so items, I also discovered that a customer can not order, so I searched and found this post.

So, to solve it I created a new cutom field in product called inventory_qty which is where I track our stock back-end, and I leave the regular quantity field blank.

So that accomplished the same thing. :whistle:

(note, so that I didn't have to hand re-enter the quantities into my new custom field I transferred them using phpmyadmin.
To do this I ran two simple sql statements in phpmyadmin.

The first statement copied the quantities into the new field:
UPDATE jos\_hikashop\_product SET &#96;inventory\_qty&#96;= &#96;product\_quantity&#96;

The second statement deleted all the quantities in the Quantity field:
UPDATE jos\_hikashop\_product SET &#96;inventory\_qty&#96;= NULL

Last edit: 14 years 2 months ago by [jrod](/forum/user/8164-jrod "View jrod's Profile").

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

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

Less More

- Posts: 182
- Thank you received: 15
-
-
- [](http://www.colorconsult.se)
-

14 years 2 months ago -  14 years 2 months ago [\#64485](#64485) by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")  Replied by *[jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile")* on topic *[Re: Add to cart button to show even when out of stock](/forum/4-how-to/61437-add-to-cart-button-to-show-even-when-out-of-stock#64485 "I have been looking everywhere for a setting that allows a customer to order an item even though it is out of stock. But I haven't found any setting to control this.  In this case we want to have contol of the stock in the backend but customer should be able to place an order even if the item is temporarily out of stock.  How do I set that up?  thanks  Jan")*

Thanks for the tip, but how do you update the quantity when someone order a product?

You must have some custom PHP that recalculates the custom field.

BTW, shouldn't this SQL Query "UPDATE jos_hikashop_product SET &#96;inventory_qty&#96;= NULL"
instead be UPDATE jos_hikashop_product SET &#96;product_quantity&#96;= NULL

You want to set the original quantity fielsd to zero, right?

Jan

---

Jan Suhr
[ www.colorconsult.se](http://www.colorconsult.se) [ www.jansuhr.se](http://www.jansuhr.se)

Last edit: 14 years 2 months ago by [jansuhr](/forum/user/6377-jansuhr "View jansuhr's Profile").

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

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