Stock is not decrease
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- Muhammad-Nawlo
- Posts: 20
- Joined: 16 Jul 2024, 02:03
Stock is not decrease
PHP:8.1
aimeos-site:2024.10
aimeos-laravel:2024.10
aimeos-core:2024.10
Hey, How are you doing?
I want to ask you about stock.
My stock is not decreamenting when the order payment status change to authorized (I changed manually).
I tried to clear cache,run jobs (order/service/async),check the database which updated
But the stock was not decrease.
I am using Cash on delivery for payment and custom delivery that has fixed price only (there is no api)
aimeos-site:2024.10
aimeos-laravel:2024.10
aimeos-core:2024.10
Hey, How are you doing?
I want to ask you about stock.
My stock is not decreamenting when the order payment status change to authorized (I changed manually).
I tried to clear cache,run jobs (order/service/async),check the database which updated
But the stock was not decrease.
I am using Cash on delivery for payment and custom delivery that has fixed price only (there is no api)
Re: Stock is not decrease
You are right, stock level is currently not decreased if you set the payment status of an order to "authorized" manually in the admin backend. We will see how we can implement that safely.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- Muhammad-Nawlo
- Posts: 20
- Joined: 16 Jul 2024, 02:03
Re: Stock is not decrease
I implement a webhook for my payment gateway
Cause I use nextjs as frontend and laravel aimeos as backend
How can I update status of order and decrease the stock
Cause I use nextjs as frontend and laravel aimeos as backend
How can I update status of order and decrease the stock
Re: Stock is not decrease
When changing the payment status in the admin backend or from the web hook?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- Muhammad-Nawlo
- Posts: 20
- Joined: 16 Jul 2024, 02:03
Re: Stock is not decrease
I want to implement both
Re: Stock is not decrease
The order manager has an update() method which accepts the order item. It will update stock levels based on the payment status: https://github.com/aimeos/aimeos-core/b ... e.php#L101
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
