Jump to content

how do i merge two carts into one?


fransjaeger

Recommended Posts

Hi

Im working on improving the reorder function. I will share when Im finished.

 

My challenge is:

how do i merge two carts content? 

Lets say I have

$cart1

and

$cart2

 

And I want to add products from $cart1 to $cart2,

and then delete $cart1 (i think thats just $cart1->delete() isnt it?)

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...