Post by rocketninjin » Sun Sep 06, 2020 3:21 pm

Hi,
I tried to change order status from pending the a custom payment name (create in opencart admin). Once I change the order status from pending to waiting for payment, the deducted quantity amount released back to the total stock.
Is there any script that update stock status causing the deducted quantity released?

New member

Posts

Joined
Mon Jul 20, 2020 9:53 pm

Post by straightlight » Sun Sep 06, 2020 7:40 pm

Not a bug. Yes, there are extensions that can interfere with order status updates. Which is why, extension developers should not work directly in the core to update the order statuses but rather to create events.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by letxobnav » Sun Sep 06, 2020 8:11 pm

When you change an order's status from one belonging to the "processing" or "completed" sets in admin to a status not belonging to those sets, the stock deduction is reversed, that is normal processing.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by kestas » Sun Sep 06, 2020 8:35 pm

Not a bug. You can set statuses in admin dashboard System->Settings. Edit settings and in Option tab find Processing Order Status where you can set on which status product can be subtracted...

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by rocketninjin » Sun Sep 06, 2020 9:30 pm

straightlight wrote:
Sun Sep 06, 2020 7:40 pm
Not a bug. Yes, there are extensions that can interfere with order status updates. Which is why, extension developers should not work directly in the core to update the order statuses but rather to create events.
Thank you very much for your reply. I didn't use any extension to manage the order status, I'm using the built-in order status, create a new status call waiting for payment. When I try to update the status, it happened.

New member

Posts

Joined
Mon Jul 20, 2020 9:53 pm

Post by straightlight » Mon Sep 07, 2020 3:07 am

OC version?

What are your order statuses settings on each stores?

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 7 guests