このコードを使用して、すべての顧客の詳細を選択しました
function getCustomers() {
/* Magento's Mage.php path
* Mage Enabler users may skip these lines
*/
require_once ("../mysite/app/Mage.php");
umask(0);
Mage::app("default");
/* Magento's Mage.php path */
/* Get customer model, run a query */
$collection = Mage::getModel('customer/customer')
->getCollection()
->addAttributeToSelect('*');
$result = array();
foreach ($collection as $customer) {
$result[] = $customer->toArray();
}
return $result;
}
しかし、フィールド値を確認したい...
つまり、eav_attribute テーブルに「usertypecurrent」という列があります.....
その値が 0 であることを確認する必要があります。
つまり、usertype が 0 のすべての顧客を選択します...
これどうやってするの?