我对magento很新。我想从Magento下载WSI合规模式的订单列表,我可以将开始和结束日期传递给复杂过滤器。 对于Ex:
$filters = array(
'complex_filter' => array(
array(
'key' => 'created_at',
'value' => array('key' => 'from', 'value' => "2015-01-05 00:00:00")
),
array(
'key' => 'created_at',
'value' => array('key' => 'to', 'value' => "2016-02-05 23:59:59")
)
)
);

但是当我在Magento文件中调试它:app / code / core / Mage / Sales / Model / Order / Api.php时,会收到以下过滤器:
stdClass Object
(
[complex_filter] => Array
(
[created_at] => stdClass Object
(
[key] => to
[value] => 2016-02-05 23:59:599
)
)
)

从日期开始就没有出现在magento结束
答案 0 :(得分:0)
我在stackoverflow的以下链接上找到了答案:
Combined complex filter for ranges
我使用了以下代码:
$complex_filter' => array(
array(
'key' => 'CREATED_AT',
'value' => array('key' => 'from', 'value' => "2016-02-01 00:00:00")
),
array(
'key' => 'created_at',
'value' => array('key' => 'to', 'value' => "2016-02-05 23:59:59")
)
);