0
我想在類別頁面加載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'] = '';
}
複製代碼,並在控制器/產品/ category.php粘貼,但我只是得到錯誤信息
<b>Notice</b>: Undefined index: popup in <b>/home ...
Opencart的版本:v1.5.5。 1
所以接受(通過點擊刻度上答案的左邊)你自己的答案知道這個問題被正確地回答。 – shadyyx 2013-04-12 10:04:43