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

#   Stock not updating on 'created' status.

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 5 days ago [\#128821](#128821) by [t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")  *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#128821 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")* was created by *[t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")*

-- url of the page with the problem -- : [ www.fantomania.pl](http://www.fantomania.pl)
-- HikaShop version -- : 2.1.1
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.4.17
-- Browser(s) name and version -- : Chrome 30.0.1599

Hi!

My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.

However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.

I've been thinking, that this configuration will give me:
Customer adds product to cart then goes to checkout.
Next his choosing payment method as eg. bank transfer.
System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').

So if status is changing to created - the the product should have stock as zero, but it's still available.

What am I doing wrong?

Note: I've done nothing with the statuses, so they are, as implemented originally.

Regs,
Tom

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 5 days ago -  13 years 5 days ago [\#128842](#128842) by [t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")  Replied by *[t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#128842 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

IMO it's the matter of editing and changin a settings of order.php file in /administrator/components/com_hikashop/classes/ however - I ain't got no clue what should I change here...

I guess this is the line, where I should change something. The only question is what: Code:

if($order-&gt;old-&gt;order_status == 'created' &amp;&amp; in_array($order-&gt;order_status,array('confirmed','shipped')))

Last edit: 13 years 5 days ago by [t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile").

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 5 days ago -  13 years 5 days ago [\#128843](#128843) by [t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")  Replied by *[t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#128843 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Ha!

I've made it working! Just added new value to line mentioned above and it's working ![:)](/media/kunena/emoticons/8.png ":)") Now the looks this way: Code:

if($order-&gt;old-&gt;order_status == 'created' &amp;&amp; in_array($order-&gt;order_status,array('confirmed','shipped','created')))

My euphoria wasn't long (unfortunately). It turned out, that changing the order status to 'cancelled' or 'refunded' - is not taking back the stock count...

Last edit: 13 years 5 days ago by [t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile").

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

13 years 5 days ago [\#128911](#128911) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#128911 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hi,

There are already options for that.

[ www.hikashop.com/support/documentation/5...ashop-changelog.html](http://www.hikashop.com/support/documentation/56-hikashop-changelog.html)

> HikaShop 2.1.0
> New features
> There is now an option to choose to update stocks only when the orders are confirmed and not when they are created

[ www.hikashop.com/support/documentation/5...ig.html#main\_product](http://www.hikashop.com/support/documentation/54-hikashop-config.html#main_product)

> Update the product stock on confirmed status: The product stock will be decremented only when the order status is a conformed status, not when the order is created.

Please do not edit HikaShop core files like that, it can generate unwanted side effect.

Regards,

---

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 5 days ago [\#128921](#128921) by [t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")  Replied by *[t.fruba](/forum/user/28551-t-fruba "View t.fruba's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#128921 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hi,

Thank you very much, however I've tried this option and it's not fitting my needs.
The part:

> when the orders are confirmed and not when they are created

Is exactly the opposite of my needs...
I need to update stock when the order is created, not confirmed ![:)](/media/kunena/emoticons/8.png ":)")

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

13 years 5 days ago [\#128923](#128923) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#128923 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hi,

So that is what it is done when the option is not activated ![:)](/media/kunena/emoticons/8.png ":)")

Regards,

---

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

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

11 years 1 month ago [\#215157](#215157) by [afatz](/forum/user/38885-afatz "View afatz's Profile")  Replied by *[afatz](/forum/user/38885-afatz "View afatz's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#215157 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Dear Jerome,

We have a similar problem here:

What we need:
The product stock will be decremented when the order is created, because we have some products with only one piece.
The risk is too high that another person is ordering this product at the same time.

What happens:
Regardless what I try to configure via webgui, the stock is decrementing not until we change the order status to "confirmed".

i have tried the following combinations:

Update the product stock on confirmed status - YES
Invoice order statuses: created,confirmed
--&gt; this works as discribed above (stock decrementing after changing the status)

Update the product stock on confirmed status - NO
Default order status: created
Invoice order statuses: created,confirmed

Update the product stock on confirmed status - NO
Default order status: ocreated
Invoice order statuses: (leave empty)
--&gt; what I've read in the description, this is exactly what we want, but it does not works

We are using: Hikashop Business version 2.3.3
also using the language file to translate to german

Thank you in advance
Andreas

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

11 years 1 month ago [\#215194](#215194) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#215194 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hi,

That should be working on the 2.3.3 but to be sure please update to the latest version of HikaShop.
Decrementing the stock on created orders is the default behavior.

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

10 years 2 months ago [\#247827](#247827) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#247827 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hello!

I have configured various types of state.
Try status "Proceso Iniciado" does not detract from stock .
And the state " Matriculado " reste of stock .
But it does not work!.
The status "Proceso Iniciado" always reste of stock.

I'm doing something wrong !

Thanks!!

- [ ![status.jpg](/forum/attachment/33085) ](/forum/attachment/33085 "status.jpg") [ ](/forum/attachment/33085?download=1 "status.jpg")
- [ ![status2.jpg](/forum/attachment/33086) ](/forum/attachment/33086 "status2.jpg") [ ](/forum/attachment/33086?download=1 "status2.jpg")

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

10 years 2 months ago [\#247844](#247844) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#247844 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hi,

> Update the product stock on confirmed status: The product stock will be decremented only when the order status changes from created to one of the statuses selected in the "invoice order statuses" option, and not when the order is created.

I can see that you setting "invoice order statuses" is not fully configured.
In your screenshot it is named "Estado de facturas de los pedidos" and just contain the value "Matriculado".

Regards,

---

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

The following user(s) said Thank You: [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

7 years 11 months ago [\#300708](#300708) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#300708 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hello Jerome,
I have two states, one of them is "registered" that decreases the stock, since it is confirmed.
And another that is admitted, that is not created or confirmed, and would like this state to also subtract the stock, how can I configure it to achieve it? Thank you

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

7 years 11 months ago [\#300709](#300709) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#300709 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hello,

The setting propose only two alternatives :
- When the order is created.
- When the order receive a confirmed status.

If you want something which is not "created" and not a "confirmed status", it would require some custom development.

Regards,

---

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

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

7 years 11 months ago [\#300749](#300749) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#300749 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Thanks Jerome, where can I make the changes?

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

7 years 11 months ago [\#300766](#300766) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Stock not updating on 'created' status.](/forum/2-general-talk-about-hikashop/862984-stock-not-updating-on-created-status#300766 "-- url of the page with the problem -- :   www.fantomania.pl  -- HikaShop version -- : 2.1.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4.17 -- Browser(s) name and version -- : Chrome 30.0.1599  Hi!  My problem is with updating stock count on ordering some items from shop. My shop is a place, where almost every product is one piece only, so it's obvious that I can't sell two of them.  However if I'll go to product configuration - there's only option to 'update stock count on confirmed status'. Ok. It's not exactly what I need, but I'm wise, so in the other place of config I've added 'created' status as 'confirmed'. That should do the trick.  I've been thinking, that this configuration will give me: Customer adds product to cart then goes to checkout. Next his choosing payment method as eg. bank transfer. System is making an order and gives it the 'created' status (until I won't mark it as 'confirmed').  So if status is changing to created - the the product should have stock as zero, but it's still available.  What am I doing wrong?  Note: I've done nothing with the statuses, so they are, as implemented originally.  Regs, Tom")*

Hello,

Unfortunately, it will be very hard to tell.
It might require some modifications in the HikaShop core ; but it might also be possible to do it just with a plugin...

As said previously, it require a custom development.

Regards,

---

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

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

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

[](#top)
