php - Prestashop API order product -


i want products detail order. try like:

 $opt = array('resource' => 'orders', 'filter[id]' => '[' . $id_order . ']');            $xml = $webservice->get($opt); 

i know product inside order->associations->order_rows->order_row

but how data? can't node associations.

could explain me it?

when performing query filter on prestashop webservice return id attribute of entities matched query. avoid can add additional parameter "display=full" force prestashop return informations each entity found, in case means product list associated order.

your request needs become:

$opt = array('resource' => 'orders', 'filter[id]' => $id_order, 'display' => 'full'); $xml = $webservice->get($opt); 

as can see i've omitted square bracket $id_order parameter, if you're searching single order it's not needed.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -