根据标题,有谁知道我该如何禁用此功能?我尝试了两种方法,两种都不行。
在/catalog/controller/product/product.php
查找方法:
$this->data['popup'] = $this->model_tool_image->resize($image, $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height'));
更改为:
$this->data['popup'] = 'image/' . $image;
在同一文件中查找
:
'popup' => $this->model_tool_image->resize($result['image'] , $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')),
更改为:
'popup' => 'image/' . $result['image'] ,
方法2在catalog/view/theme/default/template/product/product.tpl
发现:
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"> <img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>
更改为:
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"></a><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /> </div>
方法2 在目录/视图/主题/默认/模板/产品/ product.tpl 查找: