From c84638e58337b2cf8a8a1cebfdb7917153925529 Mon Sep 17 00:00:00 2001 From: Bas Bezemer Date: Fri, 26 Apr 2019 00:15:23 +0200 Subject: [PATCH] Retrieve customer prices Adding 'price' to $params-array makes it possible to read customer prices that include taxes or any reductions as described by: http://doc.prestashop.com/display/PS15/Chapter+10+-+Price+management --- src/PrestashopWebServiceLibrary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PrestashopWebServiceLibrary.php b/src/PrestashopWebServiceLibrary.php index 7e326af..160f2fa 100644 --- a/src/PrestashopWebServiceLibrary.php +++ b/src/PrestashopWebServiceLibrary.php @@ -350,7 +350,7 @@ public function get($options) $url .= '/'.$options['id']; } - $params = array('filter', 'display', 'sort', 'limit', 'id_shop', 'id_group_shop','date'); + $params = array('filter', 'display', 'sort', 'limit', 'id_shop', 'id_group_shop','date', 'price'); foreach ($params as $p) { foreach ($options as $k => $o) { if (strpos($k, $p) !== false) {