-
Notifications
You must be signed in to change notification settings - Fork 175
Description
Right now all carts are persisted if something is added to the cart. When left for a long time they become abandoned.
Add a
purgeIncompletedCartDuration
field to orderType model??
allow a string set to any valid PHP interval specification (http://php.net/manual/en/dateinterval.construct.php). e.g "P3M" (3 months)
make a controller action and service that deletes any order with no completedAt Date and a lastUpdated date older than the purgeIncompletedCartDuration
from time time the action is run.??
Then in a new tab on orderType edit called 'actions', make a button that triggers the controller action. Put a count of how many orders meet the criteria in the button.??
Also need to think about if they are associated with a logged in member, maybe the should never be (like wishlists)