How to Implement the product list page attribute filtering area brand filtering in the form of Logo display, the most template summary ecshop/'> ecshop tutorial entry:
1. Modify the category. php file (about 215 rows)
$sql = "SELECT b.brand_id,b.brand_logo, b.brand_name, COUNT(*) AS goods_num ".
In (approximately 227 rows)
$brands[$temp_key][‘brand_name‘] = $val[‘brand_name‘];
Add
$brands[$temp_key][‘brand_logo‘] = $val[‘brand_logo‘];
In (approximately 242 rows)
$brands[0][‘brand_name‘] = $_LANG[‘all_attribute‘];
Add
$brands[0][‘brand_logo‘]=‘‘;
2. Modify the category. DWT file
<span>{$brand.brand_name}</span>
Change
<span>{if $brand.brand_logo}{else}{$brand.brand_name}{/if}</span>
Set
<a href="{$brand.url}">{$brand.brand_name}</a>
Change
<div class="akl" style="margin-left:2px;min-height:0px; margin-top:5px; width:178px; height:60px; border:1px dotted #009900;display: -moz-inline-stack;display: inline-block; vertical-align:bottom;text-align:center;zoom:1;*display:inline;"><a href="{$brand.url}" style="">{if $brand.brand_logo}{else}{$brand.brand_name}{/if}</a></div>
3. Add a CSS style
div.akl:hover{filter:alpha(opacity=50);-moz-opacity: 0.5;opacity: 0.5;}
4. Complete. The brand filtering of the repair ecshop is displayed in the logo image format!