为什么我的愿望清单仅限于一项? [英] Why is my wish list limited to one item?
问题描述
我正在使用magento 1.9,并且我的愿望清单存在问题,由于某种原因,它只会让我在愿望清单中有一个项目,而当我向愿望清单中添加另一个项目时,它将替换我的愿望清单中已经存在的项目,配置中没有任何限制愿望清单的项目,只是有点困惑为什么会这样做,有什么想法吗?
Im using magento 1.9 and im having an issue with the wishlist, for some reason it will only let me have one item in my wishlist and when I goto add another item to the wishlist it replaces the item that was already in my wishlist, there is nothing in the configuration to limit the wishlist item im just a bit confused at why it would be doing this, any ideas ?
推荐答案
正确!,在网上寻找解决方案后,我找到了解决方案,您必须编辑文件app/code/core/Mage/Wishlist/Model/Wishlist.php
Right!!, after hunting the web to try and find a solution I have found a solution, you have to edit the file app/code/core/Mage/Wishlist/Model/Wishlist.php
找到:
public function getItemCollection()
并更改
$this->_itemCollection = Mage::getResourceModel('wishlist/item_collection')
->addWishlistFilter($this)
->addStoreFilter($this->getSharedStoreIds($currentWebsiteOnly))
->setVisibilityFilter();
到
$this->_itemCollection = Mage::getResourceModel('wishlist/item_collection')
->addWishlistFilter($this)
->addStoreFilter($this->getSharedStoreIds($currentWebsiteOnly));
这适用于我和我使用magento 1.9.0.1
this worked for me and im using magento 1.9.0.1
此修补程序的来源位于: http://www.magentocommerce.com/boards /viewthread/291225/
the source for this fix is here: http://www.magentocommerce.com/boards/viewthread/291225/
这篇关于为什么我的愿望清单仅限于一项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!