【发布时间】:2015-12-21 11:35:00
【问题描述】:
我向 catalog/products/list.phtml 添加了一个函数来更改特定类别的样式。它在类别列表上运行良好,但在搜索页面上却不行。
错误
Fatal error: Call to a member function getId() on a non-object in ../catalog/product/list.phtml
产品图片部分新增功能
if(Mage::registry('current_category')->getId() == 94))
请问我怎样才能使用这个功能,但让搜索工作?
【问题讨论】:
标签: search magento-1.9 getid3