diff --git a/core/components/minishop2/elements/snippets/snippet.ms_get_order.php b/core/components/minishop2/elements/snippets/snippet.ms_get_order.php index b45745161..73d325aa8 100644 --- a/core/components/minishop2/elements/snippets/snippet.ms_get_order.php +++ b/core/components/minishop2/elements/snippets/snippet.ms_get_order.php @@ -85,7 +85,7 @@ foreach ($thumbs as $thumb) { $leftJoin[$thumb] = [ 'class' => 'msProductFile', - 'on' => "`{$thumb}`.product_id = msProduct.id AND `{$thumb}`.parent != 0 AND `{$thumb}`.path LIKE '%/{$thumb}/%'", + 'on' => "`{$thumb}`.product_id = msProduct.id AND `{$thumb}`.parent != 0 AND `{$thumb}`.path LIKE '%/{$thumb}/%' AND `{$thumb}`.`rank` = 0", ]; $select[$thumb] = "`{$thumb}`.url as '{$thumb}'"; }