diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php index b3b75b617..6c39223bf 100755 --- a/packages/Webkul/Admin/src/Resources/lang/en/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -1252,8 +1252,8 @@ return [ 'system' => [ 'catalog' => 'Catalog', 'homepage' => 'Homepage configuration', - 'allow-no-of-new-product-homepage' => 'Allowed No of New Product homepage', - 'allow-no-of-featured-product-homepage' => 'Allowed No of Featured Product homepage', + 'allow-no-of-new-product-homepage' => 'Allowed No of New Product in homepage', + 'allow-no-of-featured-product-homepage' => 'Allowed No of Featured in Product homepage', 'products' => 'Products', 'guest-checkout' => 'Guest Checkout', 'allow-guest-checkout' => 'Allow Guest Checkout', diff --git a/packages/Webkul/Product/src/Repositories/ProductRepository.php b/packages/Webkul/Product/src/Repositories/ProductRepository.php index 30056c71a..8245ea1e3 100755 --- a/packages/Webkul/Product/src/Repositories/ProductRepository.php +++ b/packages/Webkul/Product/src/Repositories/ProductRepository.php @@ -332,7 +332,7 @@ class ProductRepository extends Repository ->where('product_flat.channel', $channel) ->where('product_flat.locale', $locale) ->inRandomOrder(); - })->paginate(isset($count) ? $count : 4); + })->paginate($count ? $count : 4); return $results; } @@ -344,7 +344,7 @@ class ProductRepository extends Repository */ public function getFeaturedProducts() { - $count = core()->getConfigData('catalog.products.homepage.no_of_featured_product_homepage'); + $count = core()->getConfigData('catalog.products.homepage.no_of_featured_product_homepage'); $results = app(ProductFlatRepository::class)->scopeQuery(function ($query) { $channel = request()->get('channel') ?: (core()->getCurrentChannelCode() ?: core()->getDefaultChannelCode()); @@ -359,7 +359,7 @@ class ProductRepository extends Repository ->where('product_flat.channel', $channel) ->where('product_flat.locale', $locale) ->inRandomOrder(); - })->paginate(isset($count) ? $count : 4); + })->paginate($count ? $count : 4); return $results; } diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/home/featured-products.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/home/featured-products.blade.php index 20ad0e629..b0b4a9fcf 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/home/featured-products.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/home/featured-products.blade.php @@ -17,7 +17,7 @@