当我点击“添加到购物车”按钮时,它不起作用。
此消息“无法将商品添加到购物车。”显示。
当我检查日志时,会出现此异常:
Exception message: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'website_ids' in 'where clause', query was:
SELECT `main_table`.* FROM `salesrule` AS `main_table` WHERE (is_active=1) AND (find_in_set(1, website_ids)) AND
(find_in_set(0, customer_group_ids)) AND
(main_table.coupon_type = 1) AND
(from_date is null or from_date<='2015-08-20')
AND (to_date is null or to_date>='2015-08-20') ORDER BY `sort_order` ASC
请推荐我。
谢谢
特里洛克·古普塔
最佳答案
您正在运行非常旧的 Magento 版本或与 Magento 1.7+ 不兼容的代码。
- Magento 1.1.1 中添加了
website_ids
列*。某些不向后兼容的代码会在低于该版本的版本上引发错误。 - 该列已在 Magento 1.7.0.0 中再次删除**。为 Magento 1.6 或更早版本编写且尚未与 1.7 兼容的代码也会抛出此错误。
关于mysql - Magento+ 添加到购物车不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32219107/