include with variable update
This commit is contained in:
parent
0b54fbfa72
commit
6bc3b2e5f3
|
|
@ -1795,12 +1795,12 @@
|
|||
}
|
||||
|
||||
.product-price .regular-price {
|
||||
font-weight: 600;
|
||||
margin-right: 10px;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.product-price .special-price {
|
||||
text-decoration: line-through;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
#app {
|
||||
|
|
@ -2901,10 +2901,6 @@ body::after {
|
|||
padding-right: 10%;
|
||||
}
|
||||
|
||||
.footer .top-brands .top-brands-body {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.footer .top-brands .top-brands-body ul {
|
||||
width: 85%;
|
||||
display: inline-block;
|
||||
|
|
|
|||
|
|
@ -36487,7 +36487,7 @@ var render = function() {
|
|||
]
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
!(_vm.viewAll == "false" || _vm.viewAll == "") && false
|
||||
!(_vm.viewAll == "false" || _vm.viewAll == "")
|
||||
? [
|
||||
_c("div", { staticClass: "mr15" }, [
|
||||
_c(
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ class ConfigurationController extends Controller
|
|||
}
|
||||
|
||||
$params['advertisement'] = json_encode($params['advertisement']);
|
||||
$params['home_page_content'] = str_replace('=>', '=>', $params['home_page_content']);
|
||||
|
||||
unset($params['images']);
|
||||
unset($params['slides']);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<template v-if="(! (viewAll == 'false' || viewAll == '')) && false">
|
||||
<template v-if="(! (viewAll == 'false' || viewAll == ''))">
|
||||
<div class="mr15">
|
||||
<a :href="viewAll" :title="`View all ${headerHeading}`" class="default">
|
||||
<h2 class="fs14 fw6 cursor-pointer tab">View All</h2>
|
||||
|
|
|
|||
|
|
@ -1056,12 +1056,12 @@
|
|||
}
|
||||
|
||||
.regular-price {
|
||||
font-weight: 600;
|
||||
margin-right: 10px;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.special-price {
|
||||
text-decoration: line-through;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,8 +156,6 @@
|
|||
padding-right: 10%;
|
||||
|
||||
.top-brands-body {
|
||||
padding: 15px;
|
||||
|
||||
ul {
|
||||
width: 85%;
|
||||
display: inline-block;
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
@php
|
||||
$newProducts = app('Webkul\Product\Repositories\ProductRepository')->getNewProducts(6)->items();
|
||||
|
||||
$products = array_merge(array_merge($newProducts, $newProducts), $newProducts);
|
||||
@endphp
|
||||
|
||||
<div class="container-fluid accessories">
|
||||
<card-list-header
|
||||
heading="Accessories"
|
||||
scrollable="accessories-carousel"
|
||||
></card-list-header>
|
||||
|
||||
<div class="row flex-nowrap">
|
||||
<carousel-component
|
||||
:slides-count="{{ sizeof($products) }}"
|
||||
slides-per-page="6"
|
||||
id="accessories-carousel">
|
||||
|
||||
@foreach ($products as $index => $product)
|
||||
|
||||
<slide slot="slide-{{ $index }}">
|
||||
@include ('shop::products.list.card', ['product' => $product])
|
||||
</slide>
|
||||
|
||||
@endforeach
|
||||
|
||||
</carousel-component>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
@inject ('productRepository', 'Webkul\Product\Repositories\ProductRepository')
|
||||
|
||||
@php
|
||||
$categoryDetails = app('Webkul\Category\Repositories\CategoryRepository')->findByPath($category);
|
||||
@endphp
|
||||
|
||||
@if ($categoryDetails)
|
||||
@php
|
||||
$products = $productRepository->getAll($categoryDetails->id);
|
||||
@endphp
|
||||
|
||||
@if ($products->count())
|
||||
<div class="container-fluid accessories">
|
||||
<card-list-header
|
||||
view-all="{{ route('shop.productOrCategory.index', ['slug' => $categoryDetails->slug]) }}"
|
||||
heading="{{ $categoryDetails->name }}">
|
||||
</card-list-header>
|
||||
|
||||
<div class="row flex-nowrap">
|
||||
<carousel-component
|
||||
:slides-count="{{ sizeof($products) }}"
|
||||
slides-per-page="6"
|
||||
id="accessories-carousel">
|
||||
|
||||
@foreach ($products as $index => $product)
|
||||
|
||||
<slide slot="slide-{{ $index }}">
|
||||
@include ('shop::products.list.card', ['product' => $product])
|
||||
</slide>
|
||||
|
||||
@endforeach
|
||||
|
||||
</carousel-component>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
Loading…
Reference in New Issue