From: soufiane Date: Wed, 6 Sep 2023 08:15:03 +0000 (+0200) Subject: wait #6245 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b1c79dec54f122e06d4db07690fc09adc38f2d55;p=pmi.git wait #6245 @0:05 --- diff --git a/resources/views/components/item-cart-order.blade.php b/resources/views/components/item-cart-order.blade.php index f59ab00..ca150d0 100644 --- a/resources/views/components/item-cart-order.blade.php +++ b/resources/views/components/item-cart-order.blade.php @@ -38,14 +38,14 @@

{{ __('Prix catalogue') }} : @if(floatval($product['price'])) - {{ $product['price'] }} + {{ \App\Models\ECommerceCommon::formatPrice($product['price']) }} @else - {{ $product['basic_selling_price'] }} + {{ \App\Models\ECommerceCommon::formatPrice($product['basic_selling_price']) }} @endif € HT

{{ __('Votre prix') }} : {{ - number_format(\App\Models\ECommerceCommon::priceWithDiscount($product['basic_selling_price'], $product['discount']), 2) }} € HT + \App\Models\ECommerceCommon::formatPrice(\App\Models\ECommerceCommon::priceWithDiscount($product['basic_selling_price'], $product['discount']), 2) }} € HT

@endif @else @@ -54,9 +54,9 @@

{{ __('Prix unitaire') }} : @if(floatval($product['price'])) - {{ $product['price'] }} + {{ \App\Models\ECommerceCommon::formatPrice($product['price']) }} @else - {{ $product['basic_selling_price'] }} + {{ \App\Models\ECommerceCommon::formatPrice($product['basic_selling_price']) }} @endif € HT

@@ -70,7 +70,7 @@ @if(floatval($product['price']))

- {{ number_format(\App\Models\ECommerceCommon::priceWithDiscount($product['price'],$product['discount']) * $product['quantity'], 2) }}€ HT + {{ \App\Models\ECommerceCommon::formatPrice(\App\Models\ECommerceCommon::priceWithDiscount($product['price'],$product['discount']) * $product['quantity'], 2) }}€ HT

@else

@@ -99,10 +99,10 @@ @if($item['total'])

-

{{ __('Frais de port HT') }} : {{ $prices < 1000 ? 20 : 0 }}€

-

{{ __('Total HT') }} : {{ $prices += ($prices < 1000 ? 20 : 0) }}€

-

{{ __('Montant TVA') }} : {{ $prices * 0.2 }}€

-

{{ __('Total TTC') }} : {{ $item['total'] }}€

+

{{ __('Frais de port HT') }} : {{ \App\Models\ECommerceCommon::formatPrice($prices < 1000 ? 20 : 0) }}€

+

{{ __('Total HT') }} : {{ \App\Models\ECommerceCommon::formatPrice($prices += ($prices < 1000 ? 20 : 0)) }}€

+

{{ __('Montant TVA') }} : {{ \App\Models\ECommerceCommon::formatPrice($prices * 0.2) }}€

+

{{ __('Total TTC') }} : {{ \App\Models\ECommerceCommon::formatPrice($item['total']) }}€

@endif