Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Get Subaccount Customer ID
- * @param $subaccountId
- * @return int
- */
- public function getCustomerID($subaccountId)
- {
- $collection = $this->_subaccounts->load($subaccountId)
- ->addFieldToSelect('customer_id')
- ->addFieldToFilter('entity_id', array('eq' => $subaccountId));
- return $collection->getData()[0]['customer_id'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement