Page 2 of 2

Re: Stock Level not decreasing

Posted: Thu Feb 20, 2020 10:02 pm
by straightlight
OC version? Which extensions do you use? More information is needed.

Re: Stock Level not decreasing

Posted: Fri Feb 21, 2020 6:09 am
by brickmodder
OC 3.0.3.2 as stated in OP
Is there a way to easily give you a list of extensions used?

Maybe this:
Image

*edit* - have now removed Square from the above list.

Re: Stock Level not decreasing

Posted: Fri Feb 21, 2020 11:29 am
by letxobnav
add order history:

// If current order status is not in the processing or complete status settings but new status is then commence completing the order
(includes subtracting stock)

// If old order status is in the processing or complete status settings but new status is not then commence restock, and remove coupon, voucher and reward history
(includes re-stock)

you could check by adding

Code: Select all

$this->log->write('Order history add: processing order '.$order_id.' with old status '.$order_info['order_status_id'].' and new status '.$order_status_id);
before

Code: Select all

if (!in_array($order_info['order_status_id'], array_merge($this->config->get('config_processing_status'), $this->config->get('config_complete_status'))) && in_array($order_status_id, array_merge($this->config->get('config_processing_status'), $this->config->get('config_complete_status')))) {
and

Code: Select all

$this->log->write('Order history add: subtracting stock for order '.$order_id.' with old status '.$order_info['order_status_id'].' and new status '.$order_status_id);
after the same line in catalog/model/checkout/order.php

Re: Stock Level not decreasing

Posted: Fri Feb 21, 2020 5:49 pm
by paulfeakins
brickmodder wrote:
Fri Jan 31, 2020 6:41 am
I've been trying to fix this for almost a year now to no avail.
Probably time to pay a professional: Commercial Support.

Re: Stock Level not decreasing

Posted: Wed Apr 22, 2020 8:26 pm
by glolar
straightlight wrote:
Fri Jan 31, 2020 11:38 am
Added order statuses steps to FAQ. Thanks.
Could you please add a link to the FAQ where it discusses the proper way to set order statuses?

Thank you

Re: Stock Level not decreasing

Posted: Wed Apr 22, 2020 8:30 pm
by straightlight
glolar wrote:
Wed Apr 22, 2020 8:26 pm
straightlight wrote:
Fri Jan 31, 2020 11:38 am
Added order statuses steps to FAQ. Thanks.
Could you please add a link to the FAQ where it discusses the proper way to set order statuses?

Thank you
Followed is the location: viewtopic.php?f=134&t=215776&start=20#p775757

Re: Stock Level not decreasing

Posted: Wed Apr 22, 2020 9:05 pm
by glolar
straightlight wrote:
Wed Apr 22, 2020 8:30 pm
glolar wrote:
Wed Apr 22, 2020 8:26 pm
straightlight wrote:
Fri Jan 31, 2020 11:38 am
Added order statuses steps to FAQ. Thanks.
Could you please add a link to the FAQ where it discusses the proper way to set order statuses?

Thank you
Followed is the location: viewtopic.php?f=134&t=215776&start=20#p775757
In that post, where you stated:
Also take note that the shipped option shows as check marked from the screenshot. This option does not need to be checked if the store does use shipping options.
Did you MEAN to say:
This option does not need to be checked if the store does NOT use shipping options.
Otherwise, I would expect that sentence to be:
This option does not need to be checked if the store uses shipping options.
Would appreciate the clarification.

Regards

Re: Stock Level not decreasing

Posted: Wed Apr 22, 2020 9:07 pm
by straightlight
This option does not need to be checked if the store does NOT use shipping options.
Thanks. Definitely unexpected. It has now been fixed. :)