diff --git a/packages/Webkul/Product/src/Repositories/ProductRepository.php b/packages/Webkul/Product/src/Repositories/ProductRepository.php index a68aaa0a0..711207976 100755 --- a/packages/Webkul/Product/src/Repositories/ProductRepository.php +++ b/packages/Webkul/Product/src/Repositories/ProductRepository.php @@ -264,7 +264,7 @@ class ProductRepository extends Repository ->where('product_flat.new', 1) ->where('product_flat.channel', $channel) ->where('product_flat.locale', $locale) - ->orderBy('product_id', 'desc'); + ->inRandomOrder(); })->paginate(4); return $results; @@ -289,7 +289,7 @@ class ProductRepository extends Repository ->where('product_flat.featured', 1) ->where('product_flat.channel', $channel) ->where('product_flat.locale', $locale) - ->orderBy('product_id', 'desc'); + ->inRandomOrder(); })->paginate(4); return $results;