Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up abandoned shopping carts and their cart quantity items so carts can be reused later #109

Open
cbmarcum opened this issue Mar 5, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cbmarcum
Copy link
Owner

cbmarcum commented Mar 5, 2022

In many cases this is being caused by client pages (usually in layouts) using the ShoppingCartService to get an item count usually for display in the menubar.
ex.
a call to shoppingCartService.getItems()?.size()
getItems calls getShoppingCart() which in turn calls createShoppingCart() if a current cart is not found which creates the mystery carts.

add a scheduled task to reset the session id to a fake value and try to use these first before creating new carts.

@cbmarcum cbmarcum self-assigned this Mar 5, 2022
@cbmarcum
Copy link
Owner Author

cbmarcum commented Mar 5, 2022

Refs #65.

@cbmarcum cbmarcum added the enhancement New feature or request label Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant