Post by krazy4sales » Tue Jun 10, 2014 7:46 am

Hi,

I am looking for some help on how to show a different logo on a per category bases. Example I have 5 main categorys Fashion , Pets, Art, and so on. So lets say some clicks on fashion instead of the main Store logo it would show a different store logo under that main Fashion category and all the sub category of fashion.

Thanks in advance for the help with this. ;D

New member

Posts

Joined
Thu Mar 08, 2012 11:37 pm

Post by krazy4sales » Wed Jun 11, 2014 8:38 am

Hello,

Any advice on how to do this?

Thanks

New member

Posts

Joined
Thu Mar 08, 2012 11:37 pm

Post by qahar » Wed Jun 11, 2014 10:33 am

It would require some works if you need to choose logo from admin.

But if you need to do it quick and dirty:

Code: Select all

if (isset($this->request->get['path'])) {
    $cats = explode('_', $this->request->get['path']);

    switch ($cats[0]) {
        case '20': // parent category id
            // show store logo A
            break;

        case '28':
            // show store logo B
            break;
      
        default:
            // show default logo
            break;
    }
}
You can try code above at header.tpl

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia
Who is online

Users browsing this forum: Amazon [Bot] and 24 guests