fixed issue for no of product listed
This commit is contained in:
parent
ede9acad1c
commit
f12c2d4fb0
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue