Skip to content

Add a incomplete cart purge setting? #7

@lukeholder

Description

@lukeholder

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions