on 2019 Jul 05 3:19 PM
Hi All, we are currently using hybris 6.4 with OCC v2. We are calling the following API to transfer the anonymous cart (with coupon applied) to the registered user:
POST /v2/mysite/users/user@mail.com/carts
Param: oldCartId=c1185754-52b5-4057-9b02-abd24d0db576
The cart entries and promotions get moved to the registered user cart but this is not happening for the coupons.
Any suggestion?
Thanks, Riccardo
Request clarification before answering.
Hi Riccardo,
we had the same issue and solved it by overriding the CartsController/DefaultCartFacade to use this method:
de.hybris.platform.commercefacades.order.impl.DefaultCartFacade.restoreAnonymousCartAndTakeOwnership(String)
It does not clone the given cart, but (really) takes the ownership as the method signature says 😉
Kind regards
Eddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.