可以在节点下显示字段吗?
示例:
<order>
<id><![CDATA[10]]></id>
<date_add><![CDATA[2016-07-06 15:35:04]]></date_add>
<date_upd><![CDATA[2016-07-06 15:35:05]]></date_upd>
<shipping_number notFilterable="true"></shipping_number>
<id_shop_group><![CDATA[1]]></id_shop_group>
<id_shop><![CDATA[1]]></id_shop>
<secure_key><![CDATA[b5cec1a208cf42f01eb8558e220740c1]]></secure_key>
<payment><![CDATA[Virement bancaire]]></payment>
...
<total_paid_tax_incl><![CDATA[238.400000]]></total_paid_tax_incl>
<total_paid_tax_excl><![CDATA[198.670000]]></total_paid_tax_excl>
<total_paid_real><![CDATA[238.400000]]></total_paid_real>
<total_products><![CDATA[200.000000]]></total_products>
<total_products_wt><![CDATA[240.000000]]></total_products_wt>
<reference><![CDATA[GTCXVOMWO]]></reference>
<associations>
<order_rows nodeType="order_row" virtualEntity="true">
<order_row>
<id><![CDATA[20]]></id>
<product_id><![CDATA[8]]></product_id>
<product_name><![CDATA[Vélo 1]]></product_name>
<product_reference><![CDATA[Vel01]]></product_reference>
...
</order_row>
</order_rows>
</associations>
</order>
我想付款,参考, total_paid_tax , product_name , product_reference 。 所以我写道:
$opt['display'] = '[payment, reference, total_paid_tax, product_name, product_reference]';
但 product_name &amp; product_reference 位于:
<associations>
<order_rows nodeType="order_row" virtualEntity="true">
<order_row>
...
</order_row>
</order_rows>
</associations>
谢谢你,抱歉我的不好意思。