Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /**
  2. * Get Subaccount Customer ID
  3. * @param $subaccountId
  4. * @return int
  5. */
  6. public function getCustomerID($subaccountId)
  7. {
  8. $collection = $this->_subaccounts->load($subaccountId)
  9. ->addFieldToSelect('customer_id')
  10. ->addFieldToFilter('entity_id', array('eq' => $subaccountId));
  11. return $collection->getData()[0]['customer_id'];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement