You are here:  » adding Logos to Make/brands

adding Logos to Make/brands

Submitted by safari45 on Mon, 2024-03-18 04:33 in

Hi David. I am trying to add logos to brands in one of my websites. it posible to add logos to merchants but not to brands. How can this be done to brands too? Thanks for your everlasting support.

Submitted by support on Mon, 2024-03-18 12:25


Upload your brand logos (in any usual format e.g. gif/jpg/png etc.) to the /logos/ folder (same location as Merchant logos) using the filename:

brand_Brand Name.img

(where .img is the same extension used for merchant logos as set by $config_logoExtension in config.advanced.php)

Then edit brands.php and look for the following code at line 16:

        $item["name"] = $product["brand"];

...and REPLACE with:

        $item["name"] = $product["brand"];
        if (file_exists("logos/brand_".$product["brand"].$config_logoExtension))
          $item["logo"] = $config_baseHREF."logos/brand_".str_replace(" ","%20",$product["brand"]).$config_logoExtension;