Save cart in checkout?

chenster
Pathfinder
122 4 17

During Shopify store checkout, how can someone saves a cart, and come back later to finish?

I don't mean abandoned cart recovery, instead customers/visitors intentionally save the cart for later checkout. Ideally the person can be provided with a cart link that can be also shared. 

I have searched discussion groups, couldn't find anything. Appreciate any tips! 

Cartoo
Reply 1 (1)
john12
Excursionist
22 0 4

The only way I see possible is custom code or the app store.

 

Custom code would involve adding a "save cart on this device" button that stores the current cart object in local storage. This would involve javascript knowledge.

 

Save the cart to local storage 

localStorage.setItem('userSavedCart', <the cart object here>);

 

Then retrieve the local storage item

localStorage.getItem('userSavedCart');

 

And add all the line items from the stored data to a new cart via the cart.js api.