Poprawa sortowania obrazów produktów w metodzie get_product_sku
This commit is contained in:
@@ -23,7 +23,7 @@ if ($sku) {
|
|||||||
$product = $mdb->get('pp_shop_products', '*', ['sku' => $sku]);
|
$product = $mdb->get('pp_shop_products', '*', ['sku' => $sku]);
|
||||||
|
|
||||||
if ($product) {
|
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']);
|
$productDescription = $mdb->get('pp_shop_products_langs', '*', ['product_id' => $product['id'], 'lang_id' => 'pl']);
|
||||||
|
|
||||||
$productArr = [
|
$productArr = [
|
||||||
|
|||||||
Reference in New Issue
Block a user