Posted on

Assign a customer cart to another customer programmatically Magento 2

I want to assign a customer product on the cart to another customer cart in Magento 2.

Somewhere is saw that we can achieve the same on Magento 1.x from


I first tried the same on Magento 1.x it assigned the cart to another customer but the problem was, after assigning when the customer removed the product from the cart the product will be removed from other customer cart too.

Can anyone help me out here? How can I achieve this on Magento 2?


Leave a Reply

Your email address will not be published. Required fields are marked *