📌  相关文章
📜  不能将 Customer 类型的对象用作数组 + Prestashop 1.7 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:17.935000             🧑  作者: Mango

代码示例1
I had the same error: "Cannot use object of type Product as array".

In Prestashop 1.7: "Objects are no longer passed to Smarty. We only use arrays now." (http://build.prestashop.com/news/module-development-changes-in-17/#general-information)

In my case, it was a module 'productcomments'. He overwrites the "product" index and changes "array" to "object".