https://netsuiteprofessionals.com logo
#suitecommerce
Title
# suitecommerce
l

Lucas

04/11/2022, 11:14 AM
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?
s

Steve Goldberg

04/11/2022, 11:20 AM
Normally, if you want the customer's address you can just use Profile.Model
l

Lucas

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?
s

Steve Goldberg

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
l

Lucas

04/11/2022, 12:29 PM
Thanks Much..
2 Views