我正在尝试加载image popup
类别页面,现在只有image thumb
我可以访问。
<div class="image">
<a href="<?php echo $product['popup']; ?>">
<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" />
</a>
</div>
我从产品复制代码
if ($category_info['image']) {
$this->data['popup'] = $this->model_tool_image->resize($category_info['image'], $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height'));
} else {
$this->data['popup'] = '';
}
并粘贴在 controller/product/category.php 下,但我只是收到错误消息
<b>Notice</b>: Undefined index: popup in <b>/home ...
Opencart 版本:v1.5.5.1