瀏覽代碼

added ask for a quote

bach 3 年之前
父節點
當前提交
b27f1afa45

文件差異過大導致無法顯示
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.css


二進制
web/themes/custom/materiotheme/assets/dist/main.css.gz


文件差異過大導致無法顯示
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js


二進制
web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz


文件差異過大導致無法顯示
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 6 - 1
web/themes/custom/materiotheme/assets/styles/main.scss

@@ -2277,6 +2277,10 @@ article.card{
           background-color: #fff;
         }
       }
+			a.btn{
+				@include btn;
+				background-color: #fff;
+			}
     }
     &:nth-child(1){
       background-color: $color-base;
@@ -2292,7 +2296,8 @@ article.card{
     }
 		&:nth-child(3){
       background-color: $color-showrooms;
-      aside .variation button{
+      aside .variation button,
+			a.btn{
         color: $color-showrooms;
       }
     }

+ 1 - 1
web/themes/custom/materiotheme/templates/content/commerce-product--4--home-summary.html.twig

@@ -28,6 +28,6 @@
 <article{{ attributes }}>
   {{- product|without('variation_attributes') -}}
   <a href="mailto:info@materio.com?subject=Multi-Joueurs" class="btn">
-    {% trans %}Demander un devis{% endtrans %}
+    {% trans %}Ask for a quote.{% endtrans %}
   </a>
 </article>

+ 8 - 1
web/themes/custom/materiotheme/vuejs/components/Content/Product.vue

@@ -21,7 +21,11 @@
           {{ $t(variation_btn_txt[variation.id]) }}
         </button>
       </div>
-
+      <div v-if="product.id == 4">
+        <a href="mailto:info@materio.com?subject=Multi-Joueurs" class="btn">
+          {{ $t("default.Ask for a quote.") }}
+        </a>
+      </div>
     </aside>
 
   </article>
@@ -48,6 +52,9 @@ export default {
         6: 'OKAY!'
       }
     }
+  },
+  created(){
+    console.log('this.product', this.product)
   }
 }
 </script>

部分文件因文件數量過多而無法顯示