Is there any way to get CommerceApi.order.getShippingAddress(), on Shopping domain? It's working for checkout, but not supported for Logged in Shopping domain, Is there any alternative way to do so?
04/11/2022, 11:20 AM
Normally, if you want the customer's address you can just use Profile.Model
04/11/2022, 12:08 PM
Thanks, I am able to get the addresses using CommerceApi.customer.getAddressBook();
Actually, I need this addressee on sublist changed event, it is good idea to set in Object and get it in sublist changed event? I have Scriptbale cart on.
Also, It is possible for SS2 to include 'SC.Models.Init' as dependency?
04/11/2022, 12:26 PM
The method the profile model and the commerce API uses will probably by the same, so if that's a valid commerce API method then you should be fine.
I can't answer your second question.
And no, to your third question. That file is SS1 and you can't mix SS1 and SS2