]> _ Git - pmi.git/commitdiff
wait #6390 @0:15
authorsoufiane <soufiane@cubedesigners.com>
Tue, 10 Oct 2023 14:49:45 +0000 (16:49 +0200)
committersoufiane <soufiane@cubedesigners.com>
Tue, 10 Oct 2023 14:49:45 +0000 (16:49 +0200)
resources/js/app.js
resources/views/pages/product-detail.blade.php

index 62d92e8bdd985711d23b15deec89f7b22fdae6da..8bc1322048ad37ebef209987880fc38221484dde 100644 (file)
@@ -758,6 +758,7 @@ $(document).on('click', 'button.cart-add', function () {
 
 $(document).on("click", "#open-configurator", function () {
     $(this).hide()
+    $("#pre-info").hide()
     $("#product-price-container, #features-quotes").removeClass("hidden")
 })
 
index 54b658c92c93d4e072ae106cd8fc90deaaf909f1..a955b79f800c1381a296df6086f235a88caf0350 100644 (file)
 
                 @auth('web-clients')
                     @if($options)
+                        <div id="pre-info" class="mb-6">
+                            <div class="opt-ref text-navy" v-cloak>{{ __('Référence') }} : <span ref="refProduct" data-ref="{{ $product->reference }}">@{{ ref }}</span></div>
+                            <div class="opt-price text-navy">
+                                @if($discount)
+                                    <div>
+                                        {{ __('Prix catalogue') }} :
+                                        <span class="line-through" ref="optprice" v-cloak data-default="{{ $product->basic_selling_price }}">
+                                                @{{ formatPrice(price) }}
+                                            </span>
+                                        {{ "€ ".__('HT') }}
+                                    </div>
+                                    <div>
+                                        {{ __('Votre prix') }} :
+                                        <span ref="discount" data-value="{{ $discount }}"></span>
+                                        <span v-cloak data-default="{{ $product->basic_selling_price }}">
+                                                @{{ formatPrice(priceDiscount) }}
+                                            </span>
+                                        {{ "€ ".__('HT') }}
+                                    </div>
+                                @else
+                                    {{ __('Prix unitaire') }} :
+                                    <span ref="optprice" v-cloak data-default="{{ \App\Models\ECommerceCommon::formatPrice($product->basic_selling_price) }}">
+                                            @{{ price }}
+                                        </span>{{ "€ ".__('HT') }}
+                                @endif
+                            </div>
+                        </div>
                         <button id="open-configurator" class="btn">
                             Configurer le produit
                         </button>