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 = [