Combined complex filter for ranges

后端 未结 3 1873
别那么骄傲
别那么骄傲 2020-12-14 20:05

On Magento 1.7 SOAP APIv2, i\'m looking for a way to get a date range to retrieve information from the SOAP API.

$complexFilter = new filters();
$complexFilt         


        
3条回答
  •  感情败类
    2020-12-14 20:27

    After googling a lot more i finally come to some explanation.

    Obviously, the implementation of the complex filters does not allow more then one attribute to be present. This is also what I noticed during my tests: only the last attribute used influences the result. I therefore need to find another way of doing what I want. It's somehow sad to see that Magento does not provide an easy way to do this with ther SOAP API.

    The final approach I used now is to determine a date that comes closest to what I want. Then just iterate through the results that that are in the daterange I want. This way (at least with our product data), I keep the load and results to a minumum and still get the desired products.

    edit seems like the original link is down and the site doesn't exist anymore. The text above should be enough information. The blog merely showed some code examples with the faulty implementation.

提交回复
热议问题