我正在开发一个magento项目,我需要根据国家/地区获取值,例如选择地址,其中国家=“尼泊尔”
我们可以在getCollection()
函数中发送where条件
$collection = Mage::getModel('relocator/location')->getCollection();
任何帮助将不胜感激
最佳答案
找到解决办法了 ;P
Mage::getModel('relocator/location')
->getCollection()
->addFilter('country','Nepal');
关于magento getCollection() 我们可以把条件放在哪里吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2415353/