From 0fdd1ced4abff98df515deb0133b81c06365d687 Mon Sep 17 00:00:00 2001 From: bach Date: Sun, 1 Aug 2021 09:54:30 +0200 Subject: [PATCH] fixed new product variations ids add to cart btn text --- .../assets/dist/module-pricing.bundle.js | 2 +- .../assets/dist/module-pricing.bundle.js.gz | Bin 991 -> 990 bytes .../custom/materiotheme/assets/dist/report.html | 4 ++-- .../vuejs/components/Content/Product.vue | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js b/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js index 1f174ccf..c350a894 100644 --- a/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js +++ b/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js @@ -1 +1 @@ -(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[665],{1003:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>v});var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"pricing"}},[t.products.length?t._l(t.products,(function(t){return s("Product",{key:t.uuid,attrs:{product:t}})})):s("div",{staticClass:"loading"},[s("span",[t._v(t._s(t.$t("default.Loading…")))])])],2)};r._withStripped=!0;var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{staticClass:"product"},[s("header",[s("h1",{domProps:{innerHTML:t._s(t.product.title)}})]),t._v(" "),s("section",{staticClass:"content"},[s("div",{staticClass:"description",domProps:{innerHTML:t._s(t.product.body)}})]),t._v(" "),t.isAdherent?t._e():s("aside",[t._l(t.product.variations,(function(e){return s("div",{key:e.id,staticClass:"variation"},[s("div",{staticClass:"variation-description",domProps:{innerHTML:t._s(e.description)}}),t._v(" "),s("div",{staticClass:"actions"},[s("button",{attrs:{type:"button",name:"addtocart"},on:{click:function(s){return s.stopPropagation(),t.checkaddtocart(s,e.id)}}},[t._v("\n "+t._s(t.$t("default."+t.variation_btn_txt[e.id]))+"\n ")])])])})),t._v(" "),4==t.product.id?s("div",[s("a",{staticClass:"btn",attrs:{href:"/pricing/multijoueur"}},[t._v("\n "+t._s(t.$t("default.Ask for a quote"))+"\n ")])]):t._e()],2)])};i._withStripped=!0;var o=s(4408),n=s(1423);const a={name:"Product",router:o.Z,props:["product"],mixins:[n.Z],data:()=>({quantity:1,variation_btn_txt:{3:"Yeees!",4:"Yay!",5:"Great!",6:"OKAY!"}}),created(){this.product}};var c=s(1900),d=(0,c.Z)(a,i,[],!1,null,"0f9e2147",null);d.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/Product.vue";const u=d.exports;var p=s(629);const l={name:"Pricing",computed:{...(0,p.rn)({products:t=>t.Pages.products})},created(){this.products.length||this.getProducts()},methods:{...(0,p.nv)({getProducts:"Pages/getProducts"})},components:{Product:u}};var _=(0,c.Z)(l,r,[],!1,null,"bdd44e2e",null);_.options.__file="web/themes/custom/materiotheme/vuejs/components/Pages/Pricing.vue";const v=_.exports}}]); \ No newline at end of file +(self.webpackChunkmaterio_com=self.webpackChunkmaterio_com||[]).push([[665],{1003:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>v});var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"pricing"}},[t.products.length?t._l(t.products,(function(t){return s("Product",{key:t.uuid,attrs:{product:t}})})):s("div",{staticClass:"loading"},[s("span",[t._v(t._s(t.$t("default.Loading…")))])])],2)};r._withStripped=!0;var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("article",{staticClass:"product"},[s("header",[s("h1",{domProps:{innerHTML:t._s(t.product.title)}})]),t._v(" "),s("section",{staticClass:"content"},[s("div",{staticClass:"description",domProps:{innerHTML:t._s(t.product.body)}})]),t._v(" "),t.isAdherent?t._e():s("aside",[t._l(t.product.variations,(function(e){return s("div",{key:e.id,staticClass:"variation"},[s("div",{staticClass:"variation-description",domProps:{innerHTML:t._s(e.description)}}),t._v(" "),s("div",{staticClass:"actions"},[s("button",{attrs:{type:"button",name:"addtocart"},on:{click:function(s){return s.stopPropagation(),t.checkaddtocart(s,e.id)}}},[t._v("\n "+t._s(t.$t("default."+t.variation_btn_txt[e.id]))+"\n ")])])])})),t._v(" "),4==t.product.id?s("div",[s("a",{staticClass:"btn",attrs:{href:"/pricing/multijoueur"}},[t._v("\n "+t._s(t.$t("default.Ask for a quote"))+"\n ")])]):t._e()],2)])};i._withStripped=!0;var o=s(4408),n=s(1423);const a={name:"Product",router:o.Z,props:["product"],mixins:[n.Z],data:()=>({quantity:1,variation_btn_txt:{1:"Yeees!",2:"Yay!",3:"Great!",4:"OKAY!"}}),created(){this.product}};var c=s(1900),d=(0,c.Z)(a,i,[],!1,null,"0f9e2147",null);d.options.__file="web/themes/custom/materiotheme/vuejs/components/Content/Product.vue";const u=d.exports;var p=s(629);const l={name:"Pricing",computed:{...(0,p.rn)({products:t=>t.Pages.products})},created(){this.products.length||this.getProducts()},methods:{...(0,p.nv)({getProducts:"Pages/getProducts"})},components:{Product:u}};var _=(0,c.Z)(l,r,[],!1,null,"bdd44e2e",null);_.options.__file="web/themes/custom/materiotheme/vuejs/components/Pages/Pricing.vue";const v=_.exports}}]); \ No newline at end of file diff --git a/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz b/web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz index 5c8864a612aaf48c91139e713ead296c081676e9..1e9ded58ed298b600eca664a0014a63cff953c3e 100644 GIT binary patch literal 990 zcmV<410nn$iwFP!000021FcotZW}ic{S}$W!xCYsi&eL#un7#KXo04vf%YXV9i<4+N`OEOXEM1+3Ziq5vu4P3k|Od7N`5iM&&h{H;I265o8QU{p&hYU7g0`q7}8gNOv-^0v7 zD4ZGih$y`!tdt=*FG{Th$uYe)kEE*DJn-CERiwf549sI#y~Sg)=xAn94$ zuE*%B>;}2XYp#s}_tWpcyc1nPT_g`WWI&Oe1!YaaWI#{{NCGsNUuI0L2?({zc!o*^ zK1BlB*slQaVAbxk{DEtKqgLQBRjmS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KSFvc2D zrMXVmVkqAq%I7}Vq5&%JWhX;~lV*^vhchCSBNBs9>t6Td4>KA* zcnFK;m?fnzkK#$!BTf4q@i2?y!wqWncF#*wzkE&)o=)~1ojF(uGVUkGc!OBQgBVw&O>P{L~B;TwVzB>$|HDXQWYJH)#~kpl15)nXl`%j0EK!>f7@qS?L^Nf=|&nWH`$FI4x0hn{odj zwZ`$bgpasmH-$CW*M5B6&64rWzK=^FJ$+@YI6M^A1>XWJ5a7l6<(}RAz;5?`u;y6g zSBZ*qjwKY_85-@!zZW5X6Znn1hoN+j55iYi**`$LU2DCE&_nbQ#%v&DR{29Fv&BqD zP6(?>G(IwsHrY_RsQL|2_BW6Wyywh4;r&jj*$mEM&wKKpdGFBm)E%?Fjgvj=b-kqX Ne*h|VbBBKj008L7-75e9 diff --git a/web/themes/custom/materiotheme/assets/dist/report.html b/web/themes/custom/materiotheme/assets/dist/report.html index 78b2864f..c3f22179 100644 --- a/web/themes/custom/materiotheme/assets/dist/report.html +++ b/web/themes/custom/materiotheme/assets/dist/report.html @@ -3,7 +3,7 @@ - materio.com [28 Jul 2021 at 20:06] + materio.com [1 Aug 2021 at 07:53] diff --git a/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue b/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue index 68864561..93eac3b6 100644 --- a/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue +++ b/web/themes/custom/materiotheme/vuejs/components/Content/Product.vue @@ -48,10 +48,10 @@ export default { quantity: 1, // showLoginModal:false variation_btn_txt: { - 3: 'Yeees!', - 4: 'Yay!', - 5: 'Great!', - 6: 'OKAY!' + 1: 'Yeees!', + 2: 'Yay!', + 3: 'Great!', + 4: 'OKAY!' } } },