ソートされたリスト/データで顧客、製品の他の詳細を取得するためにmagento SOAPAPIを使用する事前定義された関数/メソッドはありますか?Magento SOAP APIを使用して、顧客の詳細を電子メール、姓、名、またはその他の詳細で並べ替えたい。
3 に答える
1
チェックインする必要があります
app/code/core/Mage/Customer/Model/Customer/Api.php
items()
顧客情報を含むテーブルを取得するのに役立つと呼ばれる関数があります。
:を呼び出し'customer.list'
、必要なフィルターを引数の配列として渡すことで使用できます。
于 2013-01-22T10:14:04.333 に答える
0
これはあなたを助けることができます。
$collection = Mage::getModel("xxx")->getCollection()
->addAttributeToSelect('*')
->addAttributeToSort('last_name', 'ASC');
于 2013-01-22T11:00:10.097 に答える
0
if(isset($_REQUEST['field_name']))
{
$collection = Mage::getModel('customer/customer')->getCollection()->addAttributeToSelect('*');
$collection->setOrder($_REQUEST['field_name'],'ASC');
$collection->load();
$data=$collection->toArray();
}
上記のコードを使用しましたが、機能します。field_nameの代わりに、名、姓、メールアドレスなどを入力できます。これに応じて短縮されます。
于 2013-01-24T10:38:56.453 に答える