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

#   High freqency orders issue

##

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

Less More

- Posts: 241
- Thank you received: 5
-
-

11 years 11 months ago [\#181612](#181612) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  *[High freqency orders issue](/forum/35-orders-management/873321-high-freqency-orders-issue#181612 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : chrome  Hi guys,  We run a event website and many / most events have multiple variants which have limits on quantity available.  Some of these events sell out very quickly (300 spots in 15 minutes) and this can create a issue on the last spot available.  If there is only one spot (or 2, 3) and more than one person puts it into their cart (it is 'created') the system will let the event checkout process continue. However when the customer finishes the transaction, only 1 will complete payment and the others will complete payment for $0.00 (a blank order receipt will be sent as well).  Is there a way to avoid this? Perhaps the cart retaining period / frequency check is the solution, but I want to enquire with you first.  Many thanks, Chris")* was created by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : chrome

Hi guys,

We run a event website and many / most events have multiple variants which have limits on quantity available.

Some of these events sell out very quickly (300 spots in 15 minutes) and this can create a issue on the last spot available.

If there is only one spot (or 2, 3) and more than one person puts it into their cart (it is 'created') the system will let the event checkout process continue. However when the customer finishes the transaction, only 1 will complete payment and the others will complete payment for $0.00 (a blank order receipt will be sent as well).

Is there a way to avoid this? Perhaps the cart retaining period / frequency check is the solution, but I want to enquire with you first.

Many thanks, Chris

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MzMyMS1oaWdoLWZyZXFlbmN5LW9yZGVycy1pc3N1ZT90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

11 years 11 months ago [\#181662](#181662) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[High freqency orders issue](/forum/35-orders-management/873321-high-freqency-orders-issue#181662 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : chrome  Hi guys,  We run a event website and many / most events have multiple variants which have limits on quantity available.  Some of these events sell out very quickly (300 spots in 15 minutes) and this can create a issue on the last spot available.  If there is only one spot (or 2, 3) and more than one person puts it into their cart (it is 'created') the system will let the event checkout process continue. However when the customer finishes the transaction, only 1 will complete payment and the others will complete payment for $0.00 (a blank order receipt will be sent as well).  Is there a way to avoid this? Perhaps the cart retaining period / frequency check is the solution, but I want to enquire with you first.  Many thanks, Chris")*

Hi,

I think that's a bug because we assume that when you confirm an order you were displaying a cart with valid products (which is the case, but the products got invalidated between the moment the customer saw the last page of the checkout and clicked on the finish button).
Add the code: Code:

$cart = $this-&gt;initCart(); if(empty($cart-&gt;products) &#124;&#124; !is_array($cart-&gt;products) &#124;&#124; !count($cart-&gt;products)){ return false; }

after the line: Code:

function check_cart(){

in the file components/com_hikashop/controllers/checkout.php and that should avoid such cases.

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

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

Less More

- Posts: 241
- Thank you received: 5
-
-

11 years 11 months ago [\#182027](#182027) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[High freqency orders issue](/forum/35-orders-management/873321-high-freqency-orders-issue#182027 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : chrome  Hi guys,  We run a event website and many / most events have multiple variants which have limits on quantity available.  Some of these events sell out very quickly (300 spots in 15 minutes) and this can create a issue on the last spot available.  If there is only one spot (or 2, 3) and more than one person puts it into their cart (it is 'created') the system will let the event checkout process continue. However when the customer finishes the transaction, only 1 will complete payment and the others will complete payment for $0.00 (a blank order receipt will be sent as well).  Is there a way to avoid this? Perhaps the cart retaining period / frequency check is the solution, but I want to enquire with you first.  Many thanks, Chris")*

Thank you. Will this likely be included in the next release?

I do note that the code displays the LIMIT_REACH_REMOVED message, but also includes our terms and conditions: [ awesomescreenshot.com/0fb3ydka79](http://awesomescreenshot.com/0fb3ydka79)

I am not sure how to remove the terms and conditions message as it is not relevant.

Thanks again.

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

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

Less More

- Posts: 241
- Thank you received: 5
-
-

11 years 11 months ago [\#182029](#182029) by [cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")  Replied by *[cberry1971](/forum/user/13211-cberry1971 "View cberry1971's Profile")* on topic *[High freqency orders issue](/forum/35-orders-management/873321-high-freqency-orders-issue#182029 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : chrome  Hi guys,  We run a event website and many / most events have multiple variants which have limits on quantity available.  Some of these events sell out very quickly (300 spots in 15 minutes) and this can create a issue on the last spot available.  If there is only one spot (or 2, 3) and more than one person puts it into their cart (it is 'created') the system will let the event checkout process continue. However when the customer finishes the transaction, only 1 will complete payment and the others will complete payment for $0.00 (a blank order receipt will be sent as well).  Is there a way to avoid this? Perhaps the cart retaining period / frequency check is the solution, but I want to enquire with you first.  Many thanks, Chris")*

one other scenario exists worth thinking about:

1 spot remains and two (or more) orders click "finish and pay" before either is marked "confirmed".

Both are "created" and are sent along to authorize.net for payment processing.

Are both spots sold, despite only one available?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MzMyMS1oaWdoLWZyZXFlbmN5LW9yZGVycy1pc3N1ZT90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

11 years 11 months ago [\#182133](#182133) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[High freqency orders issue](/forum/35-orders-management/873321-high-freqency-orders-issue#182133 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- Browser(s) name and version -- : chrome  Hi guys,  We run a event website and many / most events have multiple variants which have limits on quantity available.  Some of these events sell out very quickly (300 spots in 15 minutes) and this can create a issue on the last spot available.  If there is only one spot (or 2, 3) and more than one person puts it into their cart (it is 'created') the system will let the event checkout process continue. However when the customer finishes the transaction, only 1 will complete payment and the others will complete payment for $0.00 (a blank order receipt will be sent as well).  Is there a way to avoid this? Perhaps the cart retaining period / frequency check is the solution, but I want to enquire with you first.  Many thanks, Chris")*

1.
In my code, change the :
return false;
line by :
$app = JFactory::getApplication();
$app-&gt;redirect( $this-&gt;redirect_url, JText::_('CART_EMPTY'));
and that should avoid the problem.
We'll of course include that modification for the next version.

2.
The check on the cart products that I told you to add is done just before the order is created.
So having another order not confirmed should already reduce the stock to 0 and what you're describing shouldn't be possible unless both customers click on the button at 10 milliseconds of interval or less.
From what you're saying, it would mean that you activated the "Update the product stock on confirmed status" so that the stock is only deduced after the order confirmation.

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

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