Display Customer Company Name top left

Rob

Active Member
Hi

I'd like to display the logged in customer company name in the top left corner instead of "CUSTOMER AREA"

What is the syntax to pull that info?

I appreciate it is changing the core of MW but I can live with that for now.

Many Thanks

Rob
 
In this case, it should be pretty simple:
PHP:
if (Yii::app()->customer->getModel() && ($company = Yii::app()->customer->getModel()->company)) {
     echo $company->name;
}
 
  • Like
Reactions: Rob
Back
Top