Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public function Address()
  2. {
  3. $customerId = "8";
  4. $customer = $this->customerRepository->getById($customerId);
  5. $addresses = $customer->getAddresses();
  6. $billingAddress = $customer->getDefaultBilling();
  7. $shippingAddress = $customer->getDefaultShipping();
  8. return $billingAddress;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement