4

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.

I have already try below code but it's not working:

Method - PUT 
{URL}/rest/V1/guest-carts/{guest-card-id} 
Param - { 
"customerId": 3, 
"storeId": 1 
} 
Authorization -"Bearer {user-token}"

Not found any solution yet. if anyone know about this then please help me.

2

To bring some light on it, I think the method you mentioned should work after the fix of https://github.com/magento/magento2/issues/24808.

I created an extension to fix this issue for the Magento version < 2.3.4. https://github.com/troublediehard/plab-cartsmergefix

4
  • if you check name then, this issue is posted by me :-) Nov 1 '19 at 4:46
  • Yes, I did. But it will be useful for new people looking for this question. Nov 1 '19 at 6:47
  • @SangeetaJain I created an extension which uses this fix for the Magento version < 2.3.4 Nov 1 '19 at 18:07
  • Also, thank you for raising this issue on the GitHub, now we have solution because of your effort. Nov 4 '19 at 10:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.