English 中文(简体)
检索Magento API客户的UPS账户号
原标题:Retrieve the UPS Account number of a customer in Magento API
  • 时间:2012-01-14 00:22:01
  •  标签:
  • magento

在Magento,客户可以将“UPS”账户与其账户挂钩,允许他们携带和支付其装运的私人UPS账户号码。

需通过Magento API(V2)。 是否有任何人知道这种数据是可以通过V2APIC来提取的? 我试图避免直接击中Magento DB。

增 编

问题回答

该信息载于“系统分类”(Mage:getStoreConfig()。 我不认为,普森系统使你能够进入系统配置,你将不得不使用密码:

$userid      = Mage::getStoreConfig( carriers/ups/username );
$userid_pass = Mage::getStoreConfig( carriers/ups/password );
$access_key  = Mage::getStoreConfig( carriers/ups/access_license_number );

Good luck.

<><><>EDIT>/em> based on comment:

因此,如果您有客户物体($customer = Mage:getModel(客户/客户)->load($customerId);,你可以做$customer->getShippingAccount(); (或称号) 你们不想直接问一下var。 如果你通过客户重新居住,你会这样做。

Mage::getModel( customer/customer )->getCollection()
    ->addAttributeToSelect( shipping_account )
    ;




相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签