mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 22:20:29 +01:00
Prestashop: Tracking and shipping costs w/o tax
This commit is contained in:
parent
4eac5fbbdc
commit
406811872c
@ -162,7 +162,11 @@ class Shopimporter_Presta extends ShopimporterBase
|
|||||||
|
|
||||||
$this->prestaRequest('POST', 'order_histories', $obj->asXML());
|
$this->prestaRequest('POST', 'order_histories', $obj->asXML());
|
||||||
|
|
||||||
//TODO Tracking
|
$req = $this->prestaRequest('GET', "order_carriers?filter[order_id]=$auftrag&display=[id]");
|
||||||
|
$orderCarrierId = strval($req->order_carriers->order_carrier[0]->id);
|
||||||
|
$req = $this->prestaRequest('GET', "order_carriers/$orderCarrierId");
|
||||||
|
$req->order_carrier->tracking_number = $this->data['tracking'];
|
||||||
|
$this->prestaRequest('PUT', "order_carriers/$orderCarrierId", $req->asXML());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ImportGetAuftraegeAnzahl()
|
public function ImportGetAuftraegeAnzahl()
|
||||||
@ -199,7 +203,7 @@ class Shopimporter_Presta extends ShopimporterBase
|
|||||||
$cart['auftrag'] = strval($order->id);
|
$cart['auftrag'] = strval($order->id);
|
||||||
$cart['onlinebestellnummer'] = strval($order->reference);
|
$cart['onlinebestellnummer'] = strval($order->reference);
|
||||||
$cart['gesamtsumme'] = strval($order->total_paid);
|
$cart['gesamtsumme'] = strval($order->total_paid);
|
||||||
$cart['versandkostenbrutto'] = strval($order->total_shipping);
|
$cart['versandkostennetto'] = strval($order->total_shipping_tax_excl);
|
||||||
$cart['bestelldatum'] = strval($order->date_add);
|
$cart['bestelldatum'] = strval($order->date_add);
|
||||||
|
|
||||||
$carrier = $this->prestaRequest('GET', "carriers/$order->id_carrier");
|
$carrier = $this->prestaRequest('GET', "carriers/$order->id_carrier");
|
||||||
|
Loading…
Reference in New Issue
Block a user