cancel
Showing results for 
Search instead for 
Did you mean: 

Change "welcome, NAME HERE" in top links

Change "welcome, NAME HERE" in top links

Hey everyone,

 

So i know where to edit the "welcome, CUSTOMER NAME" in the top links on website, however I want to make a quick tweak.

 

I want to edit it to where if the customer is in customer group "2", which is my wholesale group, then it will display the company name from their billing address, but if they're NOT customer group 2, then I want it to work as default.

 

Any thoughts here?

1 REPLY

Re: Change "welcome, NAME HERE" in top links

You should use simple check in code, where you are changing the block’s content. I hope you are doing this in template or observer:

 

   $customerGroupId = Mage::getSingleton('customer/session')->getCustomerGroupId();
        if ($customerGroupId === 2) {
            // wholesale group
        } else {
            // not wholesale group
        }

If you are using the layout or something else to implement this – please tell us about it.

______________________________________________________________
Innovative, top-performing Magento Extensions (with an array of FREE tools).