Poprawa kolejności pobierania obrazów produktów w metodzie get_product_sku

This commit is contained in:
2025-04-09 23:43:27 +02:00
parent adeacbc11b
commit f5ce822e4f

View File

@@ -25,7 +25,7 @@ if ($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 = [