From e08ca8f36613273b0e3dbf5a1eed3c8f5056a8d4 Mon Sep 17 00:00:00 2001 From: "shubhammehrotra.symfony@webkul.com" Date: Thu, 2 Jan 2020 10:50:01 +0530 Subject: [PATCH] minor updates --- .../publishable/assets/css/velocity.css | 217 ++++++++++++++ .../src/Providers/VelocityServiceProvider.php | 4 - .../Resources/assets/sass/components/app.scss | 14 + .../admin/settings/channels/edit.blade.php | 282 ------------------ .../Resources/views/products/index.blade.php | 38 ++- .../list/layered-navigation.blade.php | 16 +- .../admin/settings/channels/edit.blade.php | 249 ---------------- 7 files changed, 266 insertions(+), 554 deletions(-) delete mode 100644 packages/Webkul/Velocity/src/Resources/views/admin/settings/channels/edit.blade.php delete mode 100644 resources/views/vendor/admin/settings/channels/edit.blade.php diff --git a/packages/Webkul/Velocity/publishable/assets/css/velocity.css b/packages/Webkul/Velocity/publishable/assets/css/velocity.css index 7d6434c4e..de2ec38a9 100644 --- a/packages/Webkul/Velocity/publishable/assets/css/velocity.css +++ b/packages/Webkul/Velocity/publishable/assets/css/velocity.css @@ -1785,11 +1785,224 @@ position: relative; } +.grouped-product-container .grouped-product-list { + padding: 15px 0; + border-top: solid 1px rgba(162, 162, 162, 0.2); +} + +.grouped-product-container .grouped-product-list ul li { + margin-bottom: 15px; + width: 100%; + display: inline-block; +} + +.grouped-product-container .grouped-product-list ul li:last-child { + margin-bottom: 0; +} + +.grouped-product-container .grouped-product-list ul li:first-child span { + font-weight: 600; +} + +.grouped-product-container .grouped-product-list ul li:first-child span:last-child { + float: right; + width: 50px; + text-align: left; +} + +.grouped-product-container .grouped-product-list ul li .name { + vertical-align: middle; + display: inline-block; +} + +.grouped-product-container .grouped-product-list ul li .name .product-price { + margin-top: 5px; + margin-bottom: 0; + font-size: 14px; +} + +.grouped-product-container .grouped-product-list ul li .name .product-price .special-price { + font-size: 16px; +} + +.grouped-product-container .grouped-product-list ul li .qty { + float: right; +} + +.grouped-product-container .grouped-product-list ul li .qty .control-group { + max-width: initial; + width: auto; + text-align: center; + margin-bottom: 0; + border-top: 0; + padding-top: 0; +} + +.grouped-product-container .grouped-product-list ul li .qty .control-group label { + display: none; +} + +.grouped-product-container .grouped-product-list ul li .qty .control-group .control { + height: 38px; + width: 60px; + text-align: center; + line-height: 38px; +} + +.bundle-options-wrapper .bundle-option-list { + padding: 15px 0; + border-top: solid 1px rgba(162, 162, 162, 0.2); +} + +.bundle-options-wrapper .bundle-option-list h3 { + font-size: 16px; + margin: 0; + color: #242424; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item { + border-bottom: solid 1px rgba(162, 162, 162, 0.2); + padding: 15px 0; + width: 100%; + display: inline-block; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item:last-child { + border-bottom: 0; + padding-bottom: 0; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item .control-group { + margin-bottom: 0; + color: #5E5E5E; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item .control-group label { + color: #242424; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item .control-group .control { + color: #5E5E5E; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item .quantity { + border-top: 0; + padding-bottom: 0; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item .quantity.has-error button { + border-color: #FC6868; + color: #FC6868; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item .control-error { + float: left; + width: 100%; +} + +.bundle-options-wrapper .bundle-option-list .bundle-option-item.has-error button { + border-color: #FC6868; + color: #FC6868; +} + +.bundle-options-wrapper .bundle-summary { + padding: 15px 0; + border-top: solid 1px rgba(162, 162, 162, 0.2); +} + +.bundle-options-wrapper .bundle-summary h3 { + font-size: 16px; + margin: 0; + color: #242424; +} + +.bundle-options-wrapper .bundle-summary .quantity { + border-top: 0; +} + +.bundle-options-wrapper .bundle-summary .bundle-price { + font-weight: 600; + font-size: 24px; + color: #FF6472; + margin-top: 10px; +} + +.bundle-options-wrapper .bundle-summary ul.bundle-items li { + margin-bottom: 20px; +} + +.bundle-options-wrapper .bundle-summary ul.bundle-items li:last-child { + margin-bottom: 0; +} + +.bundle-options-wrapper .bundle-summary ul.bundle-items li .selected-products { + color: #5E5E5E; +} + .category-container .grid-card, .search-container .grid-card { width: 22rem; } +.downloadable-container .sample-list { + padding: 15px 0; + border-top: solid 1px rgba(162, 162, 162, 0.2); +} + +.downloadable-container .sample-list h3 { + font-size: 16px; + margin-top: 0; +} + +.downloadable-container .sample-list ul li { + margin-bottom: 5px; +} + +.downloadable-container .sample-list ul li:last-child { + margin-bottom: 0; +} + +.downloadable-container .link-list { + padding: 15px 0; + border-top: solid 1px rgba(162, 162, 162, 0.2); +} + +.downloadable-container .link-list h3 { + font-size: 16px; + margin-top: 0; +} + +.downloadable-container .link-list ul li { + margin-bottom: 15px; +} + +.downloadable-container .link-list ul li:last-child { + margin-bottom: 0; +} + +.downloadable-container .link-list ul li .checkbox input[type=checkbox] { + width: 15px !important; + height: 15px !important; + margin-left: -24px; +} + +.downloadable-container .link-list ul li a { + float: right; + margin-top: 3px; +} + +.category-container .hero-image { + height: 100%; + max-width: 500px; + max-height: 400px; + display: inline-block; +} + +.category-container .hero-image img { + width: 100%; + height: 100%; +} + /* @author Shubham Mehrotra */ body { overflow-x: hidden; @@ -2780,6 +2993,10 @@ body::after { margin-left: 0px; } +.ml10 { + margin-left: 10px !important; +} + .ml15, .advertisement-two-container .ad-2-rt { margin-left: 15px !important; } diff --git a/packages/Webkul/Velocity/src/Providers/VelocityServiceProvider.php b/packages/Webkul/Velocity/src/Providers/VelocityServiceProvider.php index 74ace0799..47c82d084 100644 --- a/packages/Webkul/Velocity/src/Providers/VelocityServiceProvider.php +++ b/packages/Webkul/Velocity/src/Providers/VelocityServiceProvider.php @@ -76,10 +76,6 @@ class VelocityServiceProvider extends ServiceProvider $this->mergeConfigFrom( dirname(__DIR__) . '/Config/admin-menu.php', 'menu.admin' ); - - // $this->mergeConfigFrom( - // dirname(__DIR__) . '/Config/acl.php', 'acl' - // ); } /** diff --git a/packages/Webkul/Velocity/src/Resources/assets/sass/components/app.scss b/packages/Webkul/Velocity/src/Resources/assets/sass/components/app.scss index 98e28a094..35b81ca36 100644 --- a/packages/Webkul/Velocity/src/Resources/assets/sass/components/app.scss +++ b/packages/Webkul/Velocity/src/Resources/assets/sass/components/app.scss @@ -1314,4 +1314,18 @@ } } } +} + +.category-container { + .hero-image { + height: 100%; + max-width: 500px; + max-height: 400px; + display: inline-block; + + img { + width: 100%; + height: 100%; + } + } } \ No newline at end of file diff --git a/packages/Webkul/Velocity/src/Resources/views/admin/settings/channels/edit.blade.php b/packages/Webkul/Velocity/src/Resources/views/admin/settings/channels/edit.blade.php deleted file mode 100644 index dec4b1045..000000000 --- a/packages/Webkul/Velocity/src/Resources/views/admin/settings/channels/edit.blade.php +++ /dev/null @@ -1,282 +0,0 @@ -@extends('admin::layouts.content') - -@section('page_title') - {{ __('admin::app.settings.channels.edit-title') }} -@stop - -@section('content') -
- -
- - - -
-
- @csrf() - - - {!! view_render_event('bagisto.admin.settings.channel.edit.before') !!} - - - -
- -
- - - - - - - - @{{ errors.first('code') }} -
- -
- - - @{{ errors.first('name') }} -
- -
- - -
- -
- - inventory_sources->pluck('id')->toArray() ?> - - @{{ errors.first('inventory_sources[]') }} -
- -
- - root_category_id ?> - - @{{ errors.first('root_category_id') }} -
- -
- - -
- -
-
- - -
- -
- - locales->pluck('id')->toArray() ?> - - @{{ errors.first('locales[]') }} -
- -
- - default_locale_id ?> - - @{{ errors.first('default_locale_id') }} -
- -
- - currencies->pluck('id')->toArray() ?> - - @{{ errors.first('currencies[]') }} -
- -
- - base_currency_id ?> - - @{{ errors.first('base_currency_id') }} -
- -
-
- - -
-
- - - theme ?> - - -
- - @if ($selectedOption == "velocity") -
- - -
- @endif - -
- - -
- -
- - -
- -
-
- -
-
- -
-
- - @php - $seo = json_decode($channel->home_seo); - @endphp - - -
-
- - - @{{ errors.first('seo_title') }} -
- -
- - - - - @{{ errors.first('seo_description') }} -
- -
- - - - - @{{ errors.first('seo_keywords') }} -
-
-
- - {!! view_render_event('bagisto.admin.settings.channel.edit.after') !!} -
-
-
-
-@stop - -@push('scripts') - - - -@endpush \ No newline at end of file diff --git a/packages/Webkul/Velocity/src/Resources/views/products/index.blade.php b/packages/Webkul/Velocity/src/Resources/views/products/index.blade.php index 41f871a5d..14677f00d 100755 --- a/packages/Webkul/Velocity/src/Resources/views/products/index.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/products/index.blade.php @@ -7,17 +7,20 @@ @stop @section('seo') - - + + @stop @section('content-wrapper') -
{!! view_render_event('bagisto.shop.productOrCategory.index.before', ['category' => $category]) !!}
+ @if (in_array($category->display_mode, [null, 'products_only', 'products_and_description'])) + @include ('shop::products.list.layered-navigation') + @endif + @php $isDisplayMode = in_array( $category->display_mode, [ @@ -30,15 +33,28 @@ $products = $productRepository->getAll($category->id); @endphp -

{{ $category->name }}

+
+
+

{{ $category->name }}

+ + @if ($isDisplayMode && $products->count()) + @if ($category->description) +
+ {!! $category->description !!} +
+ @endif + @endif +
+ +
+ {{--
+ @if (!is_null($category->image)) + + @endif +
--}} +
+
- @if ($isDisplayMode && $products->count()) - @if ($category->description) -
- {!! $category->description !!} -
- @endif - @endif @if ($products->count())
diff --git a/packages/Webkul/Velocity/src/Resources/views/products/list/layered-navigation.blade.php b/packages/Webkul/Velocity/src/Resources/views/products/list/layered-navigation.blade.php index 03bf0dcf2..ce8d392cc 100644 --- a/packages/Webkul/Velocity/src/Resources/views/products/list/layered-navigation.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/products/list/layered-navigation.blade.php @@ -1,10 +1,8 @@ +@inject ('productRepository', 'Webkul\Product\Repositories\ProductRepository') @inject ('attributeRepository', 'Webkul\Attribute\Repositories\AttributeRepository') - @inject ('productFlatRepository', 'Webkul\Product\Repositories\ProductFlatRepository') -@inject ('productRepository', 'Webkul\Product\Repositories\ProductRepository') - -getFilterAttributes(); } -?> +@endphp
{!! view_render_event('bagisto.shop.products.list.layered-nagigation.before') !!} - {{-- --}} + {!! view_render_event('bagisto.shop.products.list.layered-nagigation.after') !!} @@ -46,7 +44,9 @@ - - -@endpush \ No newline at end of file