[Laravel Aimeos] Stock Level Deduction - Checkout Process
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
[Laravel Aimeos] Stock Level Deduction - Checkout Process
Hi,
May I know where should I check / change the logic for the checkout process?
Currently the logic for my requirement is wrong where:
For example: i have 100 stock in a product
- User clicked on 'Buy Now' the stock level deduct (99 left)
- If the user cancelled or unfinished the payment process, the stock level didn't add in back (still 99 left, it should be 100)
I had checked in the /Client/Html/Checkout/Standard/Process/Standard.php and /Client/Html/Checkout/Confirm/Standard.php but still not right
May I know where should I check / change the logic for the checkout process?
Currently the logic for my requirement is wrong where:
For example: i have 100 stock in a product
- User clicked on 'Buy Now' the stock level deduct (99 left)
- If the user cancelled or unfinished the payment process, the stock level didn't add in back (still 99 left, it should be 100)
I had checked in the /Client/Html/Checkout/Standard/Process/Standard.php and /Client/Html/Checkout/Confirm/Standard.php but still not right
Re: [Laravel Aimeos] Stock Level Deduction - Checkout Process
It can't be done immediately because the notification about the payment can be deferred. There's a job controller (order/cleanup/unpaid) you have to execute regularly to remove unfinished orders and make stock and coupon available again:
https://aimeos.org/docs/Laravel/Configu ... Once_a_day
https://aimeos.org/docs/Laravel/Configu ... Once_a_day
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star