]> _ Git - pmi.git/commitdiff
wait #6139 1:00
authorsoufiane <soufiane@cubedesigners.com>
Tue, 18 Jul 2023 10:42:46 +0000 (12:42 +0200)
committersoufiane <soufiane@cubedesigners.com>
Tue, 18 Jul 2023 10:42:46 +0000 (12:42 +0200)
app/Models/Product.php
resources/views/partials/header.blade.php

index aa0b545f2687c3d4503efc6da48c7606daae7acd..fc4b2a60e9ae7eae7bfc5169f36b64fc3c6ff9f1 100644 (file)
@@ -530,9 +530,12 @@ class Product extends CubistMagicPageModel
         $optDetails = [];
 
         $explodeRef = explode("|", $refs);
-
         if (sizeof($explodeRef) > 1) {
             $options = json_decode($productsInfosBase[$id][0]['json'], true);
+            if(!$options) {
+                return false;
+            }
+
             foreach ($explodeRef as $key => $ref) {
                 $key -= 1;
                 if ($key > -1) {
index 97c9969471f67a83c7d055073ac9cbe2a9dbeedf..2303287a79315fd850487c72420a8513317fb139 100644 (file)
                     <link-button class="block text-center" :href="$nav->getHrefByName('cart')">
                         {{ __('Obtenir un devis') }}
                     </link-button>
+                    @if(Auth::guard('web-clients')->check())
+                        <div class="text-center">
+                            <a href="" class="animated-underline mt-5 inline-block" @click.prevent="storeCart()">{{ __('Enregistrer ce panier') }}</a>
+                        </div>
+                    @endif
                 </div>
                 <div class="cart-header-popout-footer" v-cloak v-else-if="cartItemCount > 0 && cartItemCount === cartItemHasPriceCount">
                     <div class="cart-total text-navy text-center mb-5 text-2xl">