From 3107ed8f56a8c6eb6a2f3ca8e8f01ae775cff545 Mon Sep 17 00:00:00 2001 From: Serhii Korneliuk Date: Thu, 21 Nov 2024 21:29:25 +0200 Subject: [PATCH] [FIX] Attributes. --- README.md | 2 ++ docs/pages/index.md | 2 ++ views/attrvaluesTab.blade.php | 2 +- views/partials/attributeMultiselect.blade.php | 2 +- views/productTab.blade.php | 4 ++-- views/productsTab.blade.php | 7 ++++--- 6 files changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7fc1071..cfa7550 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,9 @@ of Evolution CMS for seamless and efficient **online commerce**. - [ ] Automated Email Marketing. - [x] Plugin events. - [x] sCommerceManagerAddTabEvent. + - [x] sCommerceFormFieldRender. - [x] sCommerceAfterProductSave. + - [x] sCommerceAfterProductContentSave. - [x] sCommerceAfterProductDuplicate. - [x] Multi-currency Support (ISO 4217). - [ ] Integration with Payment Systems. diff --git a/docs/pages/index.md b/docs/pages/index.md index b611862..98be458 100644 --- a/docs/pages/index.md +++ b/docs/pages/index.md @@ -64,7 +64,9 @@ of Evolution CMS for seamless and efficient **online commerce**. - [ ] Automated Email Marketing. - [x] Plugin events. - [x] sCommerceManagerAddTabEvent. + - [x] sCommerceFormFieldRender. - [x] sCommerceAfterProductSave. + - [x] sCommerceAfterProductContentSave. - [x] sCommerceAfterProductDuplicate. - [x] Multi-currency Support (ISO 4217). - [ ] Integration with Payment Systems. diff --git a/views/attrvaluesTab.blade.php b/views/attrvaluesTab.blade.php index 8d528b5..b9ab5fd 100644 --- a/views/attrvaluesTab.blade.php +++ b/views/attrvaluesTab.blade.php @@ -49,7 +49,7 @@ @push('scripts.bot')
- @if(sCommerce::config('product.show_field_availability', 1) == 1) + @if(sCommerce::config('product.show_field_availability', 1))
@@ -136,7 +136,7 @@
@endif - @if(sCommerce::config('product.quantity_on', 1) == 2)  + @if(sCommerce::config('product.quantity_on', 1) == 2)
diff --git a/views/productsTab.blade.php b/views/productsTab.blade.php index dcbc400..36c9540 100644 --- a/views/productsTab.blade.php +++ b/views/productsTab.blade.php @@ -1,4 +1,5 @@ @php + use Seiger\sCommerce\Models\sProduct; $order = request()->has('order') ? request()->input('order') : 'id'; if (evo()->getConfig('check_sMultisite', false)) { $domains = \Seiger\sMultisite\Models\sMultisite::all(); @@ -78,7 +79,7 @@ class="form-control rounded-left scom-input seiger__search" @endif - @if (sCommerce::config('products.show_field_availability', 1) == 1) + @if (sCommerce::config('products.show_field_availability', 1) && sCommerce::config('product.show_field_availability', 1)) @@ -158,8 +159,8 @@ class="form-control rounded-left scom-input seiger__search" @if (sCommerce::config('products.show_field_quantity', 1) && sCommerce::config('product.quantity_on', 1)) {{$item->quantity}} @endif - @if (sCommerce::config('products.show_field_availability', 1) == 1) - {{$item->availability}} + @if (sCommerce::config('products.show_field_availability', 1) && sCommerce::config('product.show_field_availability', 1)) + {{sProduct::listAvailability()[$item->availability]}} @endif @if (sCommerce::config('products.show_field_category', 1) == 1)