ecshop Template Displays the branding of the Product List Page Properties filter area as a logo
Product List Page Properties filter area brand display in logo form
1. Modify the category.php file
Will (about 215 lines)
"".
Revision changed to
"".
Add the field of the product logo,
In (about 227 lines)
$brands [$temp _key]['brand_name'] = $val ['brand_name' ];
Add below
$brands [$temp _key]['brand_logo'] = $val ['brand_logo'];
In (about 242 lines)
$brands [0] ['brand_name'] = $_lang['all_attribute' ];
Add below
$brands [0] ['brand_logo']= ';
2. Modify the Category.dwt file
Will
<span>{$brand .brand_name}</span>
Revision changed to
<span>{if $brand. brand_logo}<img src="/data/brandlogo/{$brand. Brand_logo} " width="40px" height="40px">{Else} {$brand. Brand_Name} {/if}</span>
Will
<a href="{$brand. URL}">{$brand .brand_name}</a>
Revision changed to
<a href="{$brand. URL}">{if $brand. brand_logo}<img src=" /data/brandlogo/{$brand. Brand_logo}" width="40px "height=" 40px ">{Else} {$brand. brand_name}{/If}</a>
Ecshop template Displays the branding of the Product List Page Properties filter area as a logo