Magento customer get by other attribute such as telephone
来源:互联网 发布:军事机构的因特网域名 编辑:程序博客网 时间:2024/06/10 20:07
$result = Mage::getModel('customer/customer')
->getCollection()
->addAttributeToSelect('rms_id')
->addAttributeToFilter('rms_id',{Val})->load();
if (is_object($result)) {
/* Logic */
->getCollection()
->addAttributeToSelect('rms_id')
->addAttributeToFilter('rms_id',{Val})->load();
if (is_object($result)) {
/* Logic */
}
Mage::getModel('customer/customer')->getCollection()->addFieldToFilter('rms_id', 'youremailhere')->load();
You can get collection of customer through :
$collection = Mage::getModel('customer/customer')->getCollection();
Filter you collection according to attribute :
$collection->addAttributeToFilter('refcode', array('eq' => 1));
Mage::getModel('catalog/product')->loadByAttribute('sku', 'My Sku Value');
0 0
- Magento customer get by other attribute such as telephone
- magento 添加customer attribute的方法
- [Magento] Add custom attribute by SQL
- Italian evenings such as one sees depicted by
- how to get device node name such as /dev/ttyS1.
- Magento移除特定页面的js或者css(remove such as prototype)
- As Other Children Do
- magento中的attribute 总结
- magento Attribute Set Details
- A Rose by Any Other Name Will End Up As a Cabbage
- Magento排序功能(Bestseller,Mostviewed,Recommend) 除了1.3支持的属性排序(Sort By Attribute)
- Magento,sql,setup的方式添加一个select属性,add attribute selet by module sql
- [原创]Magento customer eav属性静态化
- Magento 给用户customer ,添加一个属性
- magento 出生日期下拉框 customer dob
- Magento 默认排序为最新产品在前 How to sort Magento products by date added as default
- read by other session
- read by other session
- 【转】 android-继承BaseAdapter--自定义适配器,getView执行多次的解决方法
- 高性能stun服务器搭建
- Provider sun.tools.attach.WindowsAttachProvider could not be instant
- Linux 下Kill多进程的方法
- $_SERVER['PATH_INFO']
- Magento customer get by other attribute such as telephone
- StringUtils 工具类的常用方法
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- python 递归创建目录
- 筛法 Count Primes
- behavior designer 动态加载
- 基于Solr的HBase多条件查询测试【重要】
- (转载)Spring自定义标签的原理
- 协方差矩阵性质 covariance matrix