fixed issue for no of product listed

This commit is contained in:
gusaindeepak54 2020-09-22 15:24:27 +05:30
parent ede9acad1c
commit f12c2d4fb0
4 changed files with 8 additions and 8 deletions

View File

@ -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',

View File

@ -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;
}
@ -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;
}

View File

@ -17,7 +17,7 @@
<div class="carousel-products vc-full-screen {{ $direction }}" v-if="!isMobileView">
<carousel-component
slides-per-page="6"
slides-per-page="{{$count}}"
navigation-enabled="hide"
pagination-enabled="hide"
id="fearured-products-carousel"

View File

@ -29,7 +29,7 @@
<div class="row {{ $direction }}">
<div class="col-9 no-padding carousel-products vc-full-screen with-recent-viewed" v-if="!isMobileView">
<carousel-component
slides-per-page="5"
slides-per-page="{{$count}}"
navigation-enabled="hide"
pagination-enabled="hide"
id="new-products-carousel"
@ -77,7 +77,7 @@
@else
<div class="carousel-products vc-full-screen {{ $direction }}" v-if="!isMobileView">
<carousel-component
slides-per-page="6"
slides-per-page="{{$count}}"
navigation-enabled="hide"
pagination-enabled="hide"
id="new-products-carousel"