This commit is contained in:
rahulshukla-home 2020-04-09 17:31:00 +05:30
parent 172310bfd1
commit a1fa3f64e0
8 changed files with 25 additions and 7 deletions

View File

@ -411,6 +411,7 @@ return [
'your-customization' => 'التخصيص الخاص بك',
'total-amount' => 'المبلغ الإجمالي',
'none' => 'لا شيء',
'available' => 'Available'
],
// 'reviews' => [

View File

@ -410,7 +410,8 @@ return [
'choose-selection' => 'Choose a selection',
'your-customization' => 'Your Customization',
'total-amount' => 'Total Amount',
'none' => 'None'
'none' => 'None',
'available' => 'Available'
],
// 'reviews' => [

View File

@ -381,7 +381,8 @@ return [
'out-of-stock' => 'Sin estoc',
'view-all' => 'Ver todo',
'select-above-options' => 'Primero selecciona las opciones de arriba.',
'less-quantity' => 'La cantidad no debe ser inferior a uno.'
'less-quantity' => 'La cantidad no debe ser inferior a uno.',
'available' => 'Available'
],
// 'reviews' => [

View File

@ -410,7 +410,8 @@ return [
'choose-selection' => 'انتخابی را انتخاب کنید',
'your-customization' => 'شخصی سازی شما',
'total-amount' => 'مقدار کل',
'none' => 'هیچ یک'
'none' => 'هیچ یک',
'available' => 'Available'
],
// 'reviews' => [

View File

@ -415,7 +415,8 @@ return [
'choose-selection' => 'Kies een selectie',
'your-customization' => 'Uw maatwerk',
'total-amount' => 'Totale hoeveelheid',
'none' => 'Geen'
'none' => 'Geen',
'available' => 'Available'
],
// 'reviews' => [

View File

@ -398,7 +398,8 @@ return [
'choose-selection' => 'Escolha uma seleção',
'your-customization' => 'Sua personalização',
'total-amount' => 'Valor total',
'none' => 'Nenhum'
'none' => 'Nenhum',
'available' => 'Available'
],
// 'reviews' => [

View File

@ -1,7 +1,13 @@
{!! view_render_event('bagisto.shop.products.view.stock.before', ['product' => $product]) !!}
<div class="stock-status {{! $product->haveSufficientQuantity(1) ? '' : 'active' }}">
{{ $product->haveSufficientQuantity(1) ? __('shop::app.products.in-stock') : __('shop::app.products.out-of-stock') }}
@if ( $product->haveSufficientQuantity(1) === true )
{{ __('shop::app.products.in-stock') }}
@elseif ( $product->haveSufficientQuantity(1) > 0 )
{{ __('shop::app.products.available') }}
@else
{{ __('shop::app.products.out-of-stock') }}
@endif
</div>
{!! view_render_event('bagisto.shop.products.view.stock.after', ['product' => $product]) !!}

View File

@ -4,7 +4,13 @@
<button
type="button"
class="{{! $product->haveSufficientQuantity(1) ? '' : 'active' }} disable-box-shadow">
{{ $product->haveSufficientQuantity(1) ? __('shop::app.products.in-stock') : __('shop::app.products.out-of-stock') }}
@if ( $product->haveSufficientQuantity(1) === true )
{{ __('shop::app.products.in-stock') }}
@elseif ( $product->haveSufficientQuantity(1) > 0 )
{{ __('shop::app.products.available') }}
@else
{{ __('shop::app.products.out-of-stock') }}
@endif
</button>
</div>