From 11c9dd17bf028d02a97c2fddebef295817cd4502 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Wed, 9 Apr 2025 23:44:07 +0200 Subject: [PATCH] =?UTF-8?q?Zaktualizowano=20zapytanie=20o=20obraz=20produk?= =?UTF-8?q?tu,=20aby=20sortowa=C4=87=20wyniki=20wed=C5=82ug=20kolejno?= =?UTF-8?q?=C5=9Bci.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v1/product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/product.php b/api/v1/product.php index 1adcdbb..7fc6de5 100644 --- a/api/v1/product.php +++ b/api/v1/product.php @@ -23,7 +23,7 @@ if ($sku) { $product = $mdb->get('pp_shop_products', '*', ['sku' => $sku]); if ($product) { - $image = $mdb->get('pp_shop_products_images', '*', ['product_id' => $product['id']]); + $image = $mdb->get('pp_shop_products_images', '*', ['product_id' => $product['id'], 'ORDER' => [ 'o' => 'ASC' ] ]); $productDescription = $mdb->get('pp_shop_products_langs', '*', ['product_id' => $product['id'], 'lang_id' => 'pl']); $productArr = [