[Laravel Aimeos] Stock Level Deduction - Checkout Process

Help for integrating the Laravel package
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!
JacksonDG
Posts: 1
Joined: 30 Oct 2019, 11:35

[Laravel Aimeos] Stock Level Deduction - Checkout Process

Post by JacksonDG » 30 Oct 2019, 11:49

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

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: [Laravel Aimeos] Stock Level Deduction - Checkout Process

Post by aimeos » 31 Oct 2019, 08:51

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply