diff --git a/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php b/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php
index 686a82463..4f666f839 100644
--- a/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php
+++ b/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php
@@ -7,7 +7,7 @@
@section('content')
get('locale') ?: app()->getLocale(); ?>
- get('channel') ?: core()->getCurrentChannelCode(); ?>
+ get('channel') ?: core()->getDefaultChannelCode(); ?>
+
+
+
+@push('scripts')
+
+
+
+@endpush
+
diff --git a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php
index 50be3f6b3..672238048 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php
@@ -54,48 +54,5 @@
@stop
-@push('scripts')
-
-@endpush
diff --git a/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php b/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php
index 880f46a3c..eeae1ad03 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/reviews/index.blade.php
@@ -104,7 +104,7 @@
{{ __('shop::app.products.by', ['name' => $review->customer->name]) }}
- {{ $reviewHelper->formatDate($review->created_at) }}
+ {{ core()->formatDate($review->created_at) }}
diff --git a/packages/Webkul/Shop/src/Resources/views/products/view.blade.php b/packages/Webkul/Shop/src/Resources/views/products/view.blade.php
index dcec1ea95..9fd492848 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/view.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/view.blade.php
@@ -80,3 +80,4 @@
@endsection
+
diff --git a/packages/Webkul/Shop/src/Resources/views/products/view/gallery.blade.php b/packages/Webkul/Shop/src/Resources/views/products/view/gallery.blade.php
index 40ecc4717..63ea3288d 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/view/gallery.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/view/gallery.blade.php
@@ -3,9 +3,17 @@
+
+
+
+
@include ('shop::products.product-add')
+
+
+
+
@push('scripts')
diff --git a/packages/Webkul/Shop/src/Resources/views/products/view/reviews.blade.php b/packages/Webkul/Shop/src/Resources/views/products/view/reviews.blade.php
index f877278f7..8fc334b12 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/view/reviews.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/view/reviews.blade.php
@@ -60,7 +60,7 @@
- {{ $reviewHelper->formatDate($review->created_at) }}
+ {{ core()->formatDate($review->created_at) }}
diff --git a/packages/Webkul/Shop/src/Resources/views/products/view/up-sells.blade.php b/packages/Webkul/Shop/src/Resources/views/products/view/up-sells.blade.php
index e9b561e75..64f4aaa14 100644
--- a/packages/Webkul/Shop/src/Resources/views/products/view/up-sells.blade.php
+++ b/packages/Webkul/Shop/src/Resources/views/products/view/up-sells.blade.php
@@ -7,7 +7,7 @@
-
+
@foreach ($product->up_sells()->paginate(4) as $up_sell_product)
@include ('shop::products.list.card', ['product' => $up_sell_product])
diff --git a/packages/Webkul/Ui/src/DataGrid/ProductGrid.php b/packages/Webkul/Ui/src/DataGrid/ProductGrid.php
index 47be52540..0a35ee711 100644
--- a/packages/Webkul/Ui/src/DataGrid/ProductGrid.php
+++ b/packages/Webkul/Ui/src/DataGrid/ProductGrid.php
@@ -200,7 +200,7 @@ class ProductGrid
public function __construct(AttributeRepository $attributes) {
- $this->channel = request()->get('channel') ?: core()->getCurrentChannelCode();
+ $this->channel = request()->get('channel') ?: core()->getDefaultChannelCode();
$this->locale = request()->get('locale') ?: app()->getLocale();
$this->attributes = $attributes;
diff --git a/public/themes/default/assets/css/shop.css b/public/themes/default/assets/css/shop.css
index 162f941e2..494f20b4d 100644
--- a/public/themes/default/assets/css/shop.css
+++ b/public/themes/default/assets/css/shop.css
@@ -13,8 +13,8 @@
.icon-menu-close {
background-image: URL("../images/icon-menu-close.svg");
- width: 8px;
- height: 8px;
+ width: 24px;
+ height: 24px;
margin-left: auto;
margin-bottom: 2px;
}
@@ -341,6 +341,10 @@ body {
margin-bottom: 90px;
}
+.mt-5 {
+ margin-top: 5px;
+}
+
.mt-10 {
margin-top: 10px;
}
@@ -750,10 +754,6 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
user-select: none;
}
-.header .search-suggestion {
- display: none;
-}
-
.header .header-top {
margin-bottom: 16px;
display: -webkit-box;
@@ -1078,6 +1078,10 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
position: relative;
}
+.header .header-bottom .nav li > .icon {
+ display: none;
+}
+
.header .header-bottom .nav {
vertical-align: top;
display: inline-block;
@@ -1097,6 +1101,10 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
margin-bottom: 1px;
}
+.header .header-bottom .nav > li > a .icon {
+ display: none;
+}
+
.header .header-bottom .nav > li:last-child {
display: -webkit-box;
display: -ms-flexbox;
@@ -1106,6 +1114,7 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
align-items: center;
border-radius: 0 0 4px 0;
float: right;
+ display: none;
}
.header .header-bottom .nav > li:last-child img {
@@ -1162,6 +1171,41 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
right: 10px;
}
+.header .search-responsive {
+ display: none;
+}
+
+.header .search-responsive .search-content {
+ border-bottom: 1px solid #e8e8e8;
+ height: 48px;
+}
+
+.header .search-responsive .search-content .search {
+ width: 70%;
+ margin-left: 20px;
+ height: 30px;
+ border: none;
+ font-size: 16px;
+ position: absolute;
+}
+
+.header .search-responsive .search-content .right {
+ float: right;
+}
+
+.header .search-responsive .search-content .suggestion {
+ position: absolute;
+ margin-left: 20px;
+}
+
+.header .search-responsive .search-content:first-child {
+ border-top: 1px solid #e8e8e8;
+}
+
+.header .responsive-nav {
+ display: none;
+}
+
@media all and (max-width: 720px) {
.header-bottom {
display: none !important;
@@ -1180,6 +1224,40 @@ section.slider-block div.slider-content div.slider-control .light-right-icon {
display: -ms-flexbox !important;
display: flex !important;
}
+ .responsive-nav {
+ margin-top: 20px;
+ display: none;
+ }
+ .responsive-nav .nav a {
+ display: inline-block;
+ color: #242424;
+ text-decoration: none;
+ padding: 12px 4.8px 12px 8px;
+ text-transform: uppercase;
+ letter-spacing: 2px;
+ position: relative;
+ width: 90%;
+ }
+ .responsive-nav .nav li > .icon {
+ float: right;
+ }
+ .responsive-nav .nav li a > .icon {
+ display: none;
+ }
+ .responsive-nav .nav > li {
+ border-bottom: 1px solid #E8E8E8;
+ }
+ .responsive-nav .nav li:first-child {
+ border-top: 1px solid #E8E8E8;
+ }
+ .responsive-nav .nav > li:last-child {
+ float: none;
+ height: 45px;
+ display: none;
+ }
+ .responsive-nav .nav > li:last-child img {
+ margin-right: 6px;
+ }
}
.footer {
@@ -1616,6 +1694,44 @@ section.product-detail div.layouter form {
section.product-detail div.layouter form div.product-image-group {
margin-right: 30px;
+ width: 604px;
+ height: 650px;
+ max-width: 604px;
+}
+
+section.product-detail div.layouter form div.product-image-group .loader {
+ border: 16px solid #f3f3f3;
+ border-top: 16px solid #3498db;
+ border-radius: 50%;
+ width: 50px;
+ height: 50px;
+ -webkit-animation: spin 2s linear infinite;
+ animation: spin 2s linear infinite;
+ margin-left: 20%;
+ position: absolute;
+ margin-top: 200px;
+}
+
+@-webkit-keyframes spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
+
+@keyframes spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
}
section.product-detail div.layouter form div.product-image-group div {
@@ -1637,20 +1753,20 @@ section.product-detail div.layouter form div.product-image-group div .thumb-list
-ms-flex-direction: column;
flex-direction: column;
margin-right: 4px;
- height: 480px;
min-width: 120px;
overflow: hidden;
position: relative;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
+ max-height: 480px;
}
section.product-detail div.layouter form div.product-image-group div .thumb-list .thumb-frame {
border: 2px solid transparent;
background: #F2F2F2;
width: 120px;
- height: 120px;
+ max-height: 120px;
}
section.product-detail div.layouter form div.product-image-group div .thumb-list .thumb-frame.active {
@@ -1698,55 +1814,67 @@ section.product-detail div.layouter form div.product-image-group div .product-he
background: #F2F2F2;
width: 100%;
max-height: 480px;
+ height: 100%;
}
section.product-detail div.layouter form div.product-image-group div .product-hero-image img {
width: 100%;
- height: 480px;
+ height: auto;
max-height: 480px;
}
-section.product-detail div.layouter form div.product-image-group div .product-hero-image .wishlist-icon {
- position: absolute;
- height: 32px;
- width: 32px;
- top: 15px;
- right: 15px;
+section.product-detail div.layouter form div.product-image-group div .product-hero-image .whishlist-icon {
+ margin-top: -480px;
+ float: right;
+ margin-right: 10px;
}
section.product-detail div.layouter form div.product-image-group div .product-hero-image .share-icon {
+ margin-top: -480px;
+ float: right;
+ margin-right: 40px;
+}
+
+section.product-detail div.layouter form div.product-image-group div .product-hero-image .wishlist {
position: absolute;
- height: 32px;
- width: 32px;
- top: 15px;
- right: 48px;
+ top: 10px;
+ right: 12px;
+}
+
+section.product-detail div.layouter form div.product-image-group div .product-hero-image .share {
+ position: absolute;
+ top: 10px;
+ right: 45px;
}
section.product-detail div.layouter form div.product-image-group .add-to-buttons {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
+ display: none;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
margin-top: 10px;
+ -webkit-box-pack: justify;
+ -ms-flex-pack: justify;
+ justify-content: space-between;
}
section.product-detail div.layouter form div.product-image-group .add-to-buttons .addtocart {
border-radius: 0px;
width: 49%;
background: black;
+ white-space: nowrap;
}
section.product-detail div.layouter form div.product-image-group .add-to-buttons .buynow {
border-radius: 0px;
width: 49%;
float: right;
+ white-space: nowrap;
}
section.product-detail div.layouter form .details {
- width: 47.5%;
+ width: 50%;
}
section.product-detail div.layouter form .details .product-price {
@@ -1816,6 +1944,66 @@ section.product-detail div.layouter form .details .attributes {
border-bottom: solid 1px rgba(162, 162, 162, 0.2);
}
+@media only screen and (max-width: 720px) {
+ section.product-detail div.layouter form {
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: normal;
+ -ms-flex-direction: column;
+ flex-direction: column;
+ }
+ section.product-detail div.layouter form div.product-image-group {
+ margin-right: 0px;
+ max-width: none;
+ width: auto;
+ }
+ section.product-detail div.layouter form div.product-image-group .loader {
+ margin-left: 47%;
+ }
+ section.product-detail div.layouter form div.product-image-group div {
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: reverse;
+ -ms-flex-direction: column-reverse;
+ flex-direction: column-reverse;
+ }
+ section.product-detail div.layouter form div.product-image-group div .thumb-list {
+ height: 120px;
+ margin-top: 5px;
+ -webkit-box-orient: horizontal;
+ -webkit-box-direction: normal;
+ -ms-flex-direction: row;
+ flex-direction: row;
+ overflow-x: scroll;
+ margin-right: 0px;
+ }
+ section.product-detail div.layouter form div.product-image-group div .thumb-list .thumb-frame img {
+ height: 100%;
+ width: auto;
+ }
+ section.product-detail div.layouter form div.product-image-group div .thumb-list .gallery-control {
+ display: none;
+ }
+ section.product-detail div.layouter form div.product-image-group div .product-hero-image {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ }
+ section.product-detail div.layouter form div.product-image-group div .product-hero-image img {
+ margin-left: auto;
+ margin-right: auto;
+ width: 480px;
+ }
+ section.product-detail div.layouter form .details {
+ width: 100%;
+ margin-top: 20px;
+ }
+}
+
+@media only screen and (max-width: 510px) {
+ section.product-detail div.layouter form div.product-image-group .product-hero-image img {
+ width: 100% !important;
+ }
+}
+
.rating-reviews .rating-header {
font-weight: 600;
padding: 20px 0;
@@ -2017,11 +2205,6 @@ section.cart .cart-content .right-side {
color: #0041FF;
}
-.cart-item-list .item .item-details .error-message {
- color: #ff5656;
- margin-top: 17px;
-}
-
.order-summary h3 {
font-size: 16px;
margin-top: 0;
@@ -2252,14 +2435,6 @@ section.cart .cart-content .right-side {
padding-left: 40px;
}
-.order-success-content {
- padding: 40px 0;
-}
-
-.order-success-content .btn {
- display: inline-block;
-}
-
@media only screen and (max-width: 770px) {
.checkout-process .col-main {
width: 100%;
diff --git a/public/themes/default/assets/js/shop.js b/public/themes/default/assets/js/shop.js
index c51a232d6..268ddbaa4 100644
--- a/public/themes/default/assets/js/shop.js
+++ b/public/themes/default/assets/js/shop.js
@@ -30701,10 +30701,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
-
// define the item component
/* harmony default export */ __webpack_exports__["default"] = ({
-
props: {
categories: {
type: [Array, String, Object],
@@ -30715,14 +30713,12 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
},
url: String
},
-
data: function data() {
return {
items_count: 0
};
},
-
computed: {
items: function items() {
return JSON.parse(this.categories);
@@ -30846,27 +30842,41 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
-
+//
+//
+//
+//
// define the item component
-
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
item: Object,
url: String
},
-
data: function data() {
return {
- items_count: 0
+ items_count: 0,
+ show: false
};
},
+ mounted: function mounted() {
+ if (window.innerWidth > 770) {
+ this.show = true;
+ }
+ },
+
computed: {
haveChildren: function haveChildren() {
return this.item.children.length ? true : false;
}
+ },
+
+ methods: {
+ showOrHide: function showOrHide() {
+ this.show = !this.show;
+ }
}
});
@@ -30886,7 +30896,18 @@ var render = function() {
: _vm._e()
]),
_vm._v(" "),
- _vm.haveChildren
+ _vm.haveChildren || _vm.item.parent_id == null
+ ? _c("i", {
+ class: [
+ _vm.show
+ ? "icon arrow-down-icon mt-15"
+ : "icon dropdown-right-icon mt-15"
+ ],
+ on: { click: _vm.showOrHide }
+ })
+ : _vm._e(),
+ _vm._v(" "),
+ _vm.haveChildren && _vm.show
? _c(
"ul",
_vm._l(_vm.item.children, function(child, index) {