Jump to content

[Solved] Change hook for contact block to displayTop


Recommended Posts

Hi

 

I have followed a couple posts now and I seem to be missing something I have addid this to my blockcontact.php just before the last closing } and nothing shows at all not even in firebug.

public function hookDisplayTop($params){
        return $this->display(__FILE__, 'nav.tpl');
    }

I have tried this one as well it works fine but not the right info (Contact Us Our support hotline is available 24/7.)

public function hookDisplayTop($params){
        return $this->display(__FILE__, 'blockcontact.tpl');
    }

If anyone knows what I am doing wrong I will surely appreciate the help, thanks

 

------------------------------

 

I have worked it out it is quite simple to do all I have done is followed the first string:
 

public function hookDisplayNav($params)
	{
		$params['blockcontact_tpl'] = 'nav';
		return $this->hookDisplayRightColumn($params);
	}

and added this just underneath it:

public function hookDisplayNav($params)
	{
		$params['blockcontact_tpl'] = 'nav';
		return $this->hookDisplayRightColumn($params);
	}
public function hookDisplayTop($params)
	{
		$params['blockcontact_tpl'] = 'nav';
		return $this->hookDisplayRightColumn($params);
	}

can be found on line 104

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

  • 1 year later...

Hi,
 
I have same requirement to display "Call us now: 0123-456-789" on displayTop.

public function hookDisplayTop($params)
	{
		$params['blockcontact_tpl'] = 'nav';
		return $this->hookDisplayRightColumn($params);
	}

Above solution fix issue. but it come with "Contact Us" menu link. Is it possible to display only "Call us now: 0123-456-789".

 

Your help will be appreciate.

 

Thanks.

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...