opencart 2.0.3.1中类别页面中的子类别图像

时间:2016-03-08 06:36:58

标签: php opencart opencart2.x

编辑opencart 2.0.3.1后,我无法看到任何更改,我没有获取图像,也没有编辑category.php(catlog> controller> product)和category.tpl(catlog> view> theme&gt)中的文件; *>模板>产品)并替换

$data['categories'][] = array(    

<?php if ($categories) { ?> 

if ($result['image']) {
                $image = $this->model_tool_image-        >resize($result['image'], 100, 100);
            } else {
                $image = $this->model_tool_image-        >resize('placeholder.png', 100, 100);
            }

            $data['categories'][] = array(
                'name'  => $result['name'] . ($this->config-    >get('config_product_count') ? ' (' . $this->model_catalog_product-    >getTotalProducts($filter_data) . ')' : ''),
                'href'  => $this->url->link('product/category', 'path='     . $this->request->get['path'] . '_' . $result['category_id'] . $url),
                'thumb' => $image
            ); 

<?php if ($categories) { ?>
<div class="col-sm-12">
  <div>
    <h3><?php echo $text_refine; ?></h3>
  </div>
  <div style="text-align: center;">
    <div class="row">
    <?php foreach ($categories as $category) { ?>
      <div class="col-sm-2 col-xs-6" style="margin-bottom: 20px;">
        <a href="<?php echo $category['href']; ?>"><img src="<?php echo     $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a>
        <a href="<?php echo $category['href']; ?>"><?php echo     $category['name']; ?></a>
      </div>
    <?php } ?>
    </div>
  </div>
</div>
<?php } ?>

分别但不能得到任何东西!高度赞赏

0 个答案:

没有答案