我的system.log中有很多次出现此错误消息。 我正在查看此消息,当您从列表页面进入产品页面并且大小(m,xl,8,10)超出STOCK时,似乎正在发生这种情况。 任何想法如何解决这个可配置的色板错误?因为在system.log文件中很烦人。谢谢!
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: m in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 145
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: m in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 151
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: xl in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 145
2015-12-08T10:20:16+00:00 ERR (3): Notice: Undefined index: xl in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 151
2015-12-08T10:22:42+00:00 ERR (3): Notice: Undefined offset: 10 in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 145
2015-12-08T10:22:42+00:00 ERR (3): Notice: Undefined offset: 10 in /app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php on line 151
答案 0 :(得分:2)
如果存在密钥,则需要添加其他检查。在github上查看我的要点:
https://gist.github.com/Stasevi4/d991f541e117301e070cd7eb0d4ffffc