Jump to content

Change position block top user information


Recommended Posts

Hello
All you need to do is replace line 33-49 within blockuserinfo.php then reinstall this module:
Top is set to be default on line 20 just change this to LeftColumn if needed. With the extra code added to this function transplanting this block to the left column should now work. really all these modules should have flexibility for different position's a simple bit a code here & there makes this possible ;-)

function hookTop($params)
{
global $smarty, $cookie, $cart;
$smarty->assign(array(
'cart' => $cart,
'cart_qties' => $cart->nbProducts(),
'logged' => $cookie->isLogged(),
'customerName' => ($cookie->logged ? $cookie->customer_firstname.' '.$cookie->customer_lastname : false)
));
return $this->display(__FILE__, 'blockuserinfo.tpl');
}

function hookLeftColumn($params)
{
return $this->hookTop($params);
}
}

Link to comment
Share on other sites

  • 1 year later...

Is this a different module than the standard "blockuserinfo" module? The php adjustment I made was to line 21 to specify leftcolumn instead of top. I reinstalled and there is no module showing.

Thanks in advance for any help
Jason

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