So you’ve figured out how to pull a list of products from Magento, but you don’t see any of your custom attributes. The problem: You’ve got to ask for them.
First, get a list of the attributes you’ve defined. The list you get from here can be cut and pasted into your code.
Here’s the code that pulls products AND requested attributes.
MagentoService client = new MagentoService();
sessionID = client.login(…);
//filters… see Magento V2 API Filters in C# – Simple Example
catalogProductEntity[] productList = client.catalogProductList(sessionID, filters, null);
catalogProductRequestAttributes attributes =
new catalogProductRequestAttributes()
{
additional_attributes = new string[] {
“attribute_1”
,”attribute_2″
,”attribute_3″
.
.
.
};
foreach (catalogProductEntity entity in productList)
{
catalogProductReturnEntity productInfo = client.catalogProductInfo(sessionID, entity.product_id, null, attributes, null);
}