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

#   Stock not updating on Confirmed

##

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 6 months ago [\#102338](#102338) by [mmijat](/forum/user/6617-mmijat "View mmijat's Profile")  *[Stock not updating on Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102338 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")* was created by *[mmijat](/forum/user/6617-mmijat "View mmijat's Profile")*

Hi,
I have set my stock to update when on "confirmed" status (Configuration&gt; system&gt; product&gt;update product on confirmed status).

When a customer selects to pay via Bank Transfer, the status automatically sets to "pending" (rather than "created") until we confirm the money has cleared into the account. Whereby we manually adjust the order status to "Confirmed". However, the stock is not updating once the status is changed to confirmed.

Can you please advise?
Thank you in advance.

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

13 years 6 months ago [\#102378](#102378) 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 Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102378 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Hi,

Which version of HikaShop are you using ?

Regards,

---

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

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 6 months ago [\#102397](#102397) by [mmijat](/forum/user/6617-mmijat "View mmijat's Profile")  Replied by *[mmijat](/forum/user/6617-mmijat "View mmijat's Profile")* on topic *[Stock not updating on Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102397 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Business edition 2.1.2, the latest version.

Thanks

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

13 years 6 months ago [\#102415](#102415) 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 Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102415 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Hi,

Can you give us more details on your configuration ?

I triend on my end, and it's working fine.

What is the status of the order set in the payment method "bank transfer" ?
Have you created new order statuses ? (in addition to the standard one) ?

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 6 months ago [\#102419](#102419) by [mmijat](/forum/user/6617-mmijat "View mmijat's Profile")  Replied by *[mmijat](/forum/user/6617-mmijat "View mmijat's Profile")* on topic *[Stock not updating on Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102419 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Hi

I know it's got to be something really simple (and probably dumb too! :S )

Bank transfer order status is set to "Pending".
All the existing order statuses are:

Created
Confirmed
Cancelled
Refunded
Partial Refund (this one doesn't affect the stock)
Shipped
Pending

I can send screen captures of any configuration page you would like. Just let me know.

- [ ![Untitled-1.png](/forum/attachment/9988) ](/forum/attachment/9988 "Untitled-1.png") [ ](/forum/attachment/9988?download=1 "Untitled-1.png")

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

13 years 6 months ago [\#102431](#102431) 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 Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102431 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Hi,

Pending is not a default status, so you have to change the code in the file "administrator/components/com_hikashop/classes/order.php" function "save()", replace: Code:

if($config-&gt;get('update_stock_after_confirm') &amp;&amp; isset($order-&gt;order_status) &amp;&amp; isset($order-&gt;old-&gt;order_status) &amp;&amp; $order_type == 'sale'){ if($order-&gt;old-&gt;order_status == 'created' &amp;&amp; in_array($order-&gt;order_status,array('confirmed','shipped'))){ // Decremente product qty $this-&gt;loadProducts($order); if(!empty($order-&gt;products)){ $productClass = hikashop_get('class.order_product'); foreach($order-&gt;products as $product) { $product-&gt;change = 'minus'; $productClass-&gt;update($product); unset($product-&gt;change); } } }elseif(in_array($order-&gt;old-&gt;order_status, array('shipped','confirmed')) &amp;&amp; $order-&gt;order_status == 'created'){ // Incremente product qty $this-&gt;loadProducts($order); if(!empty($order-&gt;products)){ $productClass = hikashop_get('class.order_product'); foreach($order-&gt;products as $product) { $product-&gt;change = 'plus'; $productClass-&gt;update($product); unset($product-&gt;change); } } } }

By: Code:

if($config-&gt;get('update_stock_after_confirm') &amp;&amp; isset($order-&gt;order_status) &amp;&amp; isset($order-&gt;old-&gt;order_status) &amp;&amp; $order_type == 'sale'){ if( in_array($order-&gt;old-&gt;order_status,array('created','pending')) &amp;&amp; in_array($order-&gt;order_status,array('confirmed','shipped'))){ // Decremente product qty $this-&gt;loadProducts($order); if(!empty($order-&gt;products)){ $productClass = hikashop_get('class.order_product'); foreach($order-&gt;products as $product) { $product-&gt;change = 'minus'; $productClass-&gt;update($product); unset($product-&gt;change); } } }elseif(in_array($order-&gt;old-&gt;order_status, array('shipped','confirmed')) &amp;&amp; in_array($order-&gt;old-&gt;order_status,array('created','pending'))){ // Incremente product qty $this-&gt;loadProducts($order); if(!empty($order-&gt;products)){ $productClass = hikashop_get('class.order_product'); foreach($order-&gt;products as $product) { $product-&gt;change = 'plus'; $productClass-&gt;update($product); unset($product-&gt;change); } } } }

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 6 months ago [\#102445](#102445) by [mmijat](/forum/user/6617-mmijat "View mmijat's Profile")  Replied by *[mmijat](/forum/user/6617-mmijat "View mmijat's Profile")* on topic *[Stock not updating on Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102445 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Thanks, I will give it a go.

So just to clarify, this change will enable:

Customer clicks on to pay with bank transfer (order comes through marked as pending but stock doesn't change)&gt;
After the bank transfer clears we manually change the status to Confirmed (and then the stock level changes)

and with Paypal payments:

Customer clicks and pays with Paypal (order comes through as confirmed and the stock level changes)

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

13 years 6 months ago [\#102452](#102452) 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 Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102452 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Yes this change will enable that.

For Paypal it's already the case, the change just add the 'pending' status as the 'created' to change the quantity when stock change from 'pending' to 'confirmed' and 'confirmed' to 'pending'.

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 6 months ago [\#102495](#102495) by [mmijat](/forum/user/6617-mmijat "View mmijat's Profile")  Replied by *[mmijat](/forum/user/6617-mmijat "View mmijat's Profile")* on topic *[Stock not updating on Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102495 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

Unfortunately it didn't work. Still no stock update going from Pending to confirmed.

I have changed it back and changed the bank transfer order status to go from created to confirmed (It works in this configuration)
Unless there is something else, I will just scrap the idea of "pending"

Thanks for your help.

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

13 years 6 months ago [\#102497](#102497) 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 Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102497 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

There is a lot of things to edit in order to change the status for custom order statuses in the class "order".
It's on our TODO list.

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 6 months ago [\#102583](#102583) by [mmijat](/forum/user/6617-mmijat "View mmijat's Profile")  Replied by *[mmijat](/forum/user/6617-mmijat "View mmijat's Profile")* on topic *[Stock not updating on Confirmed](/forum/2-general-talk-about-hikashop/81394-stock-not-updating-on-confirmed#102583 "Hi, I have set my stock to update when on &quot;confirmed&quot; status (Configuration&gt; system&gt; product&gt;update product on confirmed status).  When a customer selects to pay via Bank Transfer, the status automatically sets to &quot;pending&quot; (rather than &quot;created&quot;) until we confirm the money has cleared into the account. Whereby we manually adjust the order status to &quot;Confirmed&quot;. However, the stock is not updating once the status is changed to confirmed.  Can you please advise? Thank you in advance.")*

That would be great to have the option of going from pending to confirmed in later editions. I look forward to it!

Thanks for your help.

Marisa

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

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