我是Opencart的新手,我从之前的设计师那里继承了一个客户端网站。我不知道PHP,但我在带有大小或颜色选项的产品页面上收到以下错误(在Opencart中):
Notice: Undefined variable: result in /home/mobility/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 274Notice: Undefined variable: result in /home/mobility/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 274.
上面错误中引用的代码如下所示:
$option_value_data[] = array(
'product_option_value_id' => $option_value['product_option_value_id'],
'option_value_id' => $option_value['option_value_id'],
'name' => $option_value['name'],
'image' => $this->model_tool_image->resize($option_value['image'], 50, 50),
'price' => $price,
'quantity' => $result['quantity'],
'price_prefix' => $option_value['price_prefix']
);
}
}
答案 0 :(得分:0)
vQmod文件导致的错误。通过将vQmod文件重命名为vqmod_file.xml_来禁用它。 资料来源:http://www.opencartnews.com/tutorials/common-opencart-errors-and-how-to-solve-them/