Jump to content

duplicat cart without reserving a cart id - improve re-order


Recommended Posts



Im improving re-ordering and I want only to show "re-order" button if re-ordering is actually possible.


I reached my goal, BUT i have one problem left.

my function reorderingPossible() reserves a cart id everytime its executed (which is every time i want to show a re-order button) so cart id is growing way to fast.


Here is my code on github


I hope that someone is able to tell me how to reach my goal, to create a cart duplication without reserving a cart id


Thank You very much



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...