每当我尝试更新目录中产品的任何字段时,我都会遇到错误:
Notice: Undefined index: points in /home/xxx/public_html/admin/model/catalog/product.php on line 130
Notice: Undefined index: price in /home/xxxx/public_html/admin/model/catalog/product.php on line 177
Notice: Undefined index: price_prefix in /home/xxxx/public_html/admin/model/catalog/product.php on line 177
Notice: Undefined index: points in /home/xxxx/public_html/admin/model/catalog/product.php on line 177
Notice: Undefined index: points_prefix in /home/xxxx/public_html/admin/model/catalog/product.php on line 177
Notice: Undefined index: weight in /home/xxxx/public_html/admin/model/catalog/product.php on line 177
Notice: Undefined index: weight_prefix in /home/xxxx/public_html/admin/model/catalog/product.php on line 177Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/admin/controller/startup/error.php:34) in /home/xxxx/public_html/system/library/response.php on line 12
答案 0 :(得分:0)
是否从代码或数据库中删除了积分字段?
打开admin / model / catalog / product.php并查找:
public function getProductOptions($product_id) {
在该功能中,您应该看到:
'points' => $product_option_value['points'],
'points_prefix' => $product_option_value['points_prefix'],
'weight' => $product_option_value['weight'],
'weight_prefix' => $product_option_value['weight_prefix']
同时检查 admin / controller / catalog / product / product.php也适用于他们。
编辑: 还要检查product.tpl中的javascript(或者cart.tpl;无论你遇到什么问题)
如果按钮移动到指定的类之外,它的触发器将不再起作用。 例如;如果您移动搜索框,它的目标是"标题"不再被调用,因此搜索不起作用 - 您需要更改'标题'的实例。 (在js调用中)div搜索现在驻留在。
可能是您遇到的类似问题?