]> _ Git - pmi.git/commitdiff
wip #3505 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Mar 2020 19:02:25 +0000 (20:02 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Mar 2020 19:02:25 +0000 (20:02 +0100)
resources/js/components/CartAdd.vue
resources/js/components/ProductsFilters.vue
resources/styles/components/products.styl
resources/views/partials/product-link.blade.php

index f0f4f2d00011351c99605815879c541ce6c2dd4e..140e893268555e95b6b8fd4ad6feae6ee4e5285e 100644 (file)
@@ -31,6 +31,7 @@
 
         methods: {
             addToCart() {
+                console.warn(':)');
                 eventBus.$emit('add-item', {
                     id: this.productId,
                     quantity: 1,
index 0675f63f2aadfe7b8a80fc3e068c5dd1cb9d138f..334d42a0729a1ce1f6a1ac7cdbd3e501f75a1b7c 100644 (file)
     import 'ie-array-find-polyfill'
     import 'es7-object-polyfill'
     import VueSlider from 'vue-slider-component' // See vue-slider.styl for CSS
+    import CartAdd from "./CartAdd";
+
 
     export default {
 
         components: {
-            VueSlider
+            VueSlider,
+            CartAdd
         },
 
         props: {
index ae178768c9ceae4331cf67fecded688bd6b6b6b3..f2d818430ffc09e1828e5706db7b7a1ead4e8ec1 100644 (file)
       +below(960px)
         grid-template-columns: repeat(auto-fill, minmax(225px, 1fr))
 
+    .btn
+      width 100%;
+      padding-top 0.7rem
+      padding-bottom 0.7rem
+
     .links
       white-space nowrap;
       font-size 14px
index 9eb7eaa6f8587c3437697690de726f0d973562c1..cf176701b7142c339841cb9353a384c7e3fcf33e 100644 (file)
         <h3><a class="text-navy" href="{{ $product->getEntity()->URL }}">{{ $product->get('reference') }}</a>
         </h3>
         <div class="product-highlights text-sm">
-            <cart-add :product-id="{{ $id }}" class="align-middle">
-                {{ __('Ajouter à ma sélection') }}
-                <template v-slot:success-message>
-                    @svg('tick', 'w-4 mr-3') {{ __('Produit ajouté') }}
-                </template>
-            </cart-add>
+            @if(config('features.quote'))
+                <cart-add :product-id="{{ $product->id }}" class="align-middle">
+                    {{ __('Ajouter à ma sélection') }}
+                    <template v-slot:success-message>
+                        @svg('tick', 'w-4 mr-3') {{ __('Produit ajouté') }}
+                    </template>
+                </cart-add>
+            @endif
         </div>
         <div class="links mt-4">
             <div class="link">
@@ -38,7 +40,4 @@
             @endif
         </div>
     </div>
-
-    @include('partials.product-schema')
-
 </div>