Sunnysideup\Ecommerce\Model\Order::CreateOrReturnExistingMember
Returns a member linked to the order.
If a member is already linked, it will return the existing member. Otherwise it will return a new Member. Any new member is NOT written, because we dont want to create a new member unless we have to! We will not add a member to the order unless a new one is created in the checkout OR the member is logged in / logs in. Also note that if a new member is created, it is not automatically written
Signature
public function CreateOrReturnExistingMember([boolean
$forceCreation = false] )
Parameters
$forceCreation
— boolean- - if set to true then the member will always be saved in the database
Returns
- Member