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

How to destroy cart after purchase? #34

Open
chateaux opened this issue Jan 14, 2015 · 2 comments
Open

How to destroy cart after purchase? #34

chateaux opened this issue Jan 14, 2015 · 2 comments

Comments

@chateaux
Copy link

Once a user has made a purchase, I want to destroy / remove the cart and all related items.

What is the process to do this?

Thanks!

@Xerkus
Copy link
Contributor

Xerkus commented Jan 14, 2015

look at emptycart() method in cart service. It will not destroy cart, but it will remove its content

@chateaux
Copy link
Author

Thanks Xerkus, I have used the emptyCart method. I also wrote a delete cart method too in order to allow for guest purchases, I am linking cart to my order table and then using the cart id as a means to identify a session cart to a saved order...

Works nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants