Module Extension in PE

Hi,

I would like to ask that is there a special way to extend a class in PE version??

I have developed a small module that sends an email to the owner of the shop when a user registers itself. It is working perfect under CE version. but when I extend the both classes (oxcmp_user and oxemail) under PE then it doesnt work.

So that is why I am asking if there is any special way to do that.

Thanks,

Hi,

CE and PE do not differ except of some slight stuff which has nothing to do with your extension. So actually, it shall work :wink:

Regards

Thats what I thought, but it doesn’t. Here is my code for oxcmp_user::createUser

public function createUser()
{
	
	$Ret = parent::createUser();
	
	if ( $Ret != false && $this->_blIsNewUser ) {
		
		$userId = oxSession::getVar( 'usr' );

		$oUser = oxNew( 'oxuser' );
		$oUser->load( $userId );
		$oUser->save();
		
		$oxemail = oxNew( 'oxemail' );
		$oxemail->sendRegisterEmailToOwner( $oUser );
		
	}

	return $Ret;
}

is there any type of cache issue or something like that… ???

nothing different than in CE - try flushing /tmp and maybe re-CREATE VIEWS (Service -> Tools)

but same as in CE

Done everything…the same code is working in a same version CE 4.5.9…