protected function createCustomerItem( \Aimeos\MShop\Context\Item\Iface $context, $email, $password )
	{
		$manager = \Aimeos\MShop::create( $context, 'customer' );

		try {
			$item = $manager->findItem( $email );
		} catch( \Aimeos\MShop\Exception $e ) {
			$item = $manager->createItem();
		}

		$item->setCode( $email );
		$item->setLabel( $email );
		$item->getPaymentAddress()->setEmail( $email );
		$item->setPassword( $password );
		$item->setStatus( 1 );

		$manager->saveItem( $item );

		return $item;
	}
protected function createCustomerItem( \Aimeos\MShop\Context\Item\Iface $context, $email, $password )
	{
		$manager = \Aimeos\MShop::create( $context, 'customer' );

		try {
			$item = $manager->findItem( $email );
		} catch( \Aimeos\MShop\Exception $e ) {
			$item = $manager->createItem();
		}

		$item->setCode( $email );
		$item->setLabel( $email );
		$item->getPaymentAddress()->setEmail( $email );
		$item->setPassword( $password );
		$item->setStatus( 1 );

		$manager->saveItem( $item );

		return $item;
	}
protected function createCustomerItem ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context , $ email , $ password ) { $ manager = \ Aimeos \ MShop :: create ( $ context , 'customer' ) ; try { $ item = $ manager -> findItem ( $ email ) ; } catch ( \ Aimeos \ MShop \ Exception $ e ) { $ item = $ manager -> createItem ( ) ; } $ item -> setCode ( $ email ) ; $ item -> setLabel ( $ email ) ; $ item -> getPaymentAddress ( ) -> setEmail ( $ email ) ; $ item -> setPassword ( $ password ) ; $ item -> setStatus ( 1 ) ; $ manager -> saveItem ( $ item ) ; return $ item ; }
Returns the customer item for the given e-mail and set its password

If the customer doesn't exist yet, it will be created.

@param \Aimeos\MShop\Context\Item\Iface $context Aimeos context object
@param string $email Unique e-mail address
@param string $password New user password
@return \Aimeos\MShop\Customer\Item\Iface Aimeos customer item object
Returns the customer item for the given e - mail and set its password