Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $customer = $this->customerRepository->get('xxx@xxx.com');
- $shippingAddressId = $customer->getDefaultShipping();
- $shippingAddress = $this->addressRepository->getById($shippingAddressId);
- $shippingAddress->getRegion();
Add Comment
Please, Sign In to add comment