RE: Inventory Management for ecommerce store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Matt Schroebel [mailto:matthew.schroebel@xxxxxxxxxx]
> 
> What if I abandon my cart?  Are you using transactions to make sure
all
> updates are atomic?

All cart records are stored to the database with a timestamp. On each
call to the cart_script, I check to see if any records are older than 24
hours and if they are, I dump the quantity back into inventory and
remove the entry from the DB.

A

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux