, sessions. session_id DATETIME TIME last_activity.
, carts, (, product_id quantity) session_id. 2 :
- , ""
carts, . - The user leaves the basket, a cronjob is called, which checks if the value
last_activityis greater than what you want it to be (say, more than an hour ago). Have the script re-stock your stock with the amount that was in the basket.
Note that you will need to update the field last_activityin your bootloader / bootloader (the mechanism that runs on each loaded page).
source
share