Jump to content

hookDisplayCarrierList How is it used?


hugoromor

Recommended Posts

How is hookDisplayCarrierList used? I've tried the following in PS 1.7 but nothing happens on the page of carrier selection:

public function hookDisplayCarrierList() {
		return "Test";
	}

! $this->registerHook( 'displayCarrierList' )

Hi..

 

where is use this hook your custom module  ?

 

Thanks

 

Link to comment
Share on other sites

 

Inside 

class MyModuleShipping extends Module {
}

Hi..

 

then you need register hook in module install method and use the module function like as

 

 

class MyModuleShipping extends Module {


public function install()
    {
return parent::install() && $this->registerHook('displayCarrierList');
    }
    
    public function hookDisplayCarrierList() {
return "Test";
}
}

Thanks

Edited by Nishith (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...