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

#   Multiple Customers Trying To Buy Same Item

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

15 years 5 months ago [\#16070](#16070) by [reefpets](/forum/user/1018-reefpets "View reefpets's Profile")  *[Multiple Customers Trying To Buy Same Item](/forum/4-how-to/16070-multiple-customers-trying-to-buy-same-item#16070 "Hello, Made my site live last night and the items I sell only have an inventory of 1. When someone puts the item in their cart it does not come out of inventory so it allows multiple people to have the same item in their cart and then when one person checks out the other people that has that same item cannot check out. It gives them and &quot;internal server error&quot; and then it seems like their cart doesn't work again even if they remove the item. I hope there is a fix for this because people were not happy. The nature of my business is I send out a newsletter and then people rush to get the ones they want as fast as possible. I am using the business edition. Please help. Here is the link to the site. Everything else is excellent!!!!!  Thanks Tatum")* was created by *[reefpets](/forum/user/1018-reefpets "View reefpets's Profile")*

Hello,
Made my site live last night and the items I sell only have an inventory of 1. When someone puts the item in their cart it does not come out of inventory so it allows multiple people to have the same item in their cart and then when one person checks out the other people that has that same item cannot check out. It gives them and "internal server error" and then it seems like their cart doesn't work again even if they remove the item. I hope there is a fix for this because people were not happy. The nature of my business is I send out a newsletter and then people rush to get the ones they want as fast as possible. I am using the business edition. Please help. Here is the link to the site.[ 10 dollar frags](http://www.10dollarfrags.com)
Everything else is excellent!!!!!

Thanks Tatum

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE2MDcwLW11bHRpcGxlLWN1c3RvbWVycy10cnlpbmctdG8tYnV5LXNhbWUtaXRlbT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

15 years 5 months ago [\#16087](#16087) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Multiple Customers Trying To Buy Same Item](/forum/4-how-to/16070-multiple-customers-trying-to-buy-same-item#16087 "Hello, Made my site live last night and the items I sell only have an inventory of 1. When someone puts the item in their cart it does not come out of inventory so it allows multiple people to have the same item in their cart and then when one person checks out the other people that has that same item cannot check out. It gives them and &quot;internal server error&quot; and then it seems like their cart doesn't work again even if they remove the item. I hope there is a fix for this because people were not happy. The nature of my business is I send out a newsletter and then people rush to get the ones they want as fast as possible. I am using the business edition. Please help. Here is the link to the site. Everything else is excellent!!!!!  Thanks Tatum")*

There is indeed a bug regarding that case on the current release.
We were able to reproduce it on our end and fixed. The fix will be included in next release.
In the mean time you can do this:
In the file components/com_hikashop/controllers/checkout.php, after the line:
$done = $cartClass-&gt;loadFullCart(true);

add the code:
if(empty($done-&gt;products)){
$app =&amp; JFactory::getApplication();
$app-&gt;redirect( $this-&gt;redirect_url, JText::_('CART_EMPTY'));
}

Then, in the file administrator/components/com_hikashop/classes/cart.php, you need to change the lines:
$notUsable[$k]=0;
by:
$notUsable[$product-&gt;product_id]=0;

You should have it 4 times.

That solves the problem on our end.

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

15 years 5 months ago [\#16091](#16091) by [reefpets](/forum/user/1018-reefpets "View reefpets's Profile")  Replied by *[reefpets](/forum/user/1018-reefpets "View reefpets's Profile")* on topic *[Re: Multiple Customers Trying To Buy Same Item](/forum/4-how-to/16070-multiple-customers-trying-to-buy-same-item#16091 "Hello, Made my site live last night and the items I sell only have an inventory of 1. When someone puts the item in their cart it does not come out of inventory so it allows multiple people to have the same item in their cart and then when one person checks out the other people that has that same item cannot check out. It gives them and &quot;internal server error&quot; and then it seems like their cart doesn't work again even if they remove the item. I hope there is a fix for this because people were not happy. The nature of my business is I send out a newsletter and then people rush to get the ones they want as fast as possible. I am using the business edition. Please help. Here is the link to the site. Everything else is excellent!!!!!  Thanks Tatum")*

OK I have made the adjustments and see if that works. Thank you so much for getting back with me!!

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

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

[](#top)
