Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function Address()
- {
- $customerId = "8";
- $customer = $this->customerRepository->getById($customerId);
- $addresses = $customer->getAddresses();
- $billingAddress = $customer->getDefaultBilling();
- $shippingAddress = $customer->getDefaultShipping();
- return $billingAddress;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement