过滤产品与品牌,制造商,价格在magento

时间:2015-07-14 10:03:33

标签: android magento ksoap2

您好我正在开发android中的magento电子商务应用程序。我想过滤制造商,品牌,价格等产品。 这是否可能使用magento" catalogProductList" ksoap2 api?

以下是我的代码,适用于单个过滤器"价格"。

SoapObject filterResult = new SoapObject(NAMESPACE, "catalogProductList");
filterResult.addProperty("sessionId",sessionID);

SoapObject value = new SoapObject(NAMESPACE, "associativeEntity");
value.addProperty("key", "in");
value.addProperty("value", "50.0000");

SoapObject complexFilter = new SoapObject(NAMESPACE, "complexFilter");
complexFilter.addProperty("key","price");
complexFilter.addProperty("value",value);

SoapObject filterArray = new SoapObject(NAMESPACE, "complexFilterArray");
filterArray.addProperty("item",complexFilter);

SoapObject filters=new SoapObject(NAMESPACE, "filters");
filters.addProperty("complex_filter", filterArray);
filterResult.addProperty("filters", filters);

对于上面的代码我该如何发送过滤器数组? 例如:价格(100到200),(300到400)      品牌(Brand1,Brand2,Brand3等)?

0 个答案:

没有答案