From 9d6f19eeafaaeb6dd988d169e1d4cc42ecbe919c Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 15 Mar 2022 14:55:21 +0100 Subject: [PATCH] switched to new commerce product type with mutliple variation types --- ...o_product_licence_variatio.add_to_cart.yml | 44 +++++++++++++++ ...terio_product_licence_variatio.default.yml | 29 ++++++---- ...product_licence_variatio.order_summary.yml | 51 +++++++++++++++++ ...terio_product_licence_variatio.summary.yml | 52 ++++++++++++++++++ config/sync/views.view.pricing_products.yml | 35 +++++++++++- .../custom/materiotheme/assets/dist/main.js | 2 +- .../materiotheme/assets/dist/main.js.gz | Bin 141611 -> 141610 bytes ...le-pricing.46c403a3723d5309dc4b.bundle.js} | 2 +- ...-pricing.46c403a3723d5309dc4b.bundle.js.gz | Bin 0 -> 991 bytes ...-pricing.f39149436228499ed25f.bundle.js.gz | Bin 990 -> 0 bytes .../vuejs/components/Content/Product.vue | 11 ++-- 11 files changed, 206 insertions(+), 20 deletions(-) create mode 100644 config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.add_to_cart.yml create mode 100644 config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.order_summary.yml create mode 100644 config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.summary.yml rename web/themes/custom/materiotheme/assets/dist/{module-pricing.f39149436228499ed25f.bundle.js => module-pricing.46c403a3723d5309dc4b.bundle.js} (91%) create mode 100644 web/themes/custom/materiotheme/assets/dist/module-pricing.46c403a3723d5309dc4b.bundle.js.gz delete mode 100644 web/themes/custom/materiotheme/assets/dist/module-pricing.f39149436228499ed25f.bundle.js.gz diff --git a/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.add_to_cart.yml b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.add_to_cart.yml new file mode 100644 index 0000000..a6b8397 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.add_to_cart.yml @@ -0,0 +1,44 @@ +uuid: ab56fa3c-d61f-4654-85a2-a8573936df9f +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_variation_type.materio_product_licence_variatio + - core.entity_view_mode.commerce_product_variation.add_to_cart + - field.field.commerce_product_variation.materio_product_licence_variatio.field_description + - field.field.commerce_product_variation.materio_product_licence_variatio.license_expiration + - field.field.commerce_product_variation.materio_product_licence_variatio.license_type + module: + - commerce_variation_cart_form + - text +third_party_settings: + commerce_variation_cart_form: + combine: false +id: commerce_product_variation.materio_product_licence_variatio.add_to_cart +targetEntityType: commerce_product_variation +bundle: materio_product_licence_variatio +mode: add_to_cart +content: + commerce_variation_cart_form: + settings: { } + third_party_settings: { } + weight: 1 + region: content + field_description: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + langcode: true + license_expiration: true + license_type: true + list_price: true + price: true + product_id: true + search_api_excerpt: true + sku: true + synonyms: true + title: true diff --git a/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.default.yml b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.default.yml index 2696123..d6f14bd 100644 --- a/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.default.yml +++ b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.default.yml @@ -9,44 +9,51 @@ dependencies: - field.field.commerce_product_variation.materio_product_licence_variatio.license_type module: - commerce_price + - commerce_variation_cart_form - text +third_party_settings: + commerce_variation_cart_form: + combine: true id: commerce_product_variation.materio_product_licence_variatio.default targetEntityType: commerce_product_variation bundle: materio_product_licence_variatio mode: default content: + commerce_variation_cart_form: + settings: { } + third_party_settings: { } + weight: 3 + region: content field_description: type: text_default - label: above + label: hidden settings: { } third_party_settings: { } weight: 1 region: content - list_price: + price: type: commerce_price_default - label: above + label: hidden settings: strip_trailing_zeroes: false currency_display: symbol third_party_settings: { } - weight: -1 + weight: 2 region: content - price: - type: commerce_price_default - label: above + title: + type: string + label: hidden settings: - strip_trailing_zeroes: false - currency_display: symbol + link_to_entity: false third_party_settings: { } weight: 0 region: content hidden: - commerce_variation_cart_form: true langcode: true license_expiration: true license_type: true + list_price: true product_id: true search_api_excerpt: true sku: true synonyms: true - title: true diff --git a/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.order_summary.yml b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.order_summary.yml new file mode 100644 index 0000000..0108237 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.order_summary.yml @@ -0,0 +1,51 @@ +uuid: c6ddd2e5-87c0-438b-a7a7-369a443addb5 +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_variation_type.materio_product_licence_variatio + - core.entity_view_mode.commerce_product_variation.order_summary + - field.field.commerce_product_variation.materio_product_licence_variatio.field_description + - field.field.commerce_product_variation.materio_product_licence_variatio.license_expiration + - field.field.commerce_product_variation.materio_product_licence_variatio.license_type + module: + - text +id: commerce_product_variation.materio_product_licence_variatio.order_summary +targetEntityType: commerce_product_variation +bundle: materio_product_licence_variatio +mode: order_summary +content: + field_description: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 2 + region: content + product_id: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: order_summary + link: false + third_party_settings: { } + weight: 0 + region: content + title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 1 + region: content +hidden: + commerce_variation_cart_form: true + langcode: true + license_expiration: true + license_type: true + list_price: true + price: true + search_api_excerpt: true + sku: true + synonyms: true diff --git a/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.summary.yml b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.summary.yml new file mode 100644 index 0000000..798fec6 --- /dev/null +++ b/config/sync/core.entity_view_display.commerce_product_variation.materio_product_licence_variatio.summary.yml @@ -0,0 +1,52 @@ +uuid: 64366592-bee7-4ed3-ae6a-4b3982d7ccd3 +langcode: en +status: true +dependencies: + config: + - commerce_product.commerce_product_variation_type.materio_product_licence_variatio + - core.entity_view_mode.commerce_product_variation.summary + - field.field.commerce_product_variation.materio_product_licence_variatio.field_description + - field.field.commerce_product_variation.materio_product_licence_variatio.license_expiration + - field.field.commerce_product_variation.materio_product_licence_variatio.license_type + module: + - commerce_price +id: commerce_product_variation.materio_product_licence_variatio.summary +targetEntityType: commerce_product_variation +bundle: materio_product_licence_variatio +mode: summary +content: + price: + type: commerce_price_default + label: hidden + settings: + strip_trailing_zeroes: false + currency_display: symbol + third_party_settings: { } + weight: 2 + region: content + product_id: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 0 + region: content + title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 1 + region: content +hidden: + commerce_variation_cart_form: true + field_description: true + langcode: true + license_expiration: true + license_type: true + list_price: true + search_api_excerpt: true + sku: true + synonyms: true diff --git a/config/sync/views.view.pricing_products.yml b/config/sync/views.view.pricing_products.yml index 34e666b..5e4adf0 100644 --- a/config/sync/views.view.pricing_products.yml +++ b/config/sync/views.view.pricing_products.yml @@ -3,7 +3,7 @@ langcode: en status: true dependencies: config: - - commerce_product.commerce_product_type.materio_product_type + - commerce_product.commerce_product_type.materio_product_license_type - field.storage.commerce_product.body - system.menu.header module: @@ -405,14 +405,45 @@ display: id: type table: commerce_product_field_data field: type + relationship: none + group_type: group + admin_label: '' entity_type: commerce_product entity_field: type plugin_id: commerce_entity_bundle + operator: in value: - materio_product_type: materio_product_type + materio_product_license_type: materio_product_license_type + group: 1 + exposed: false expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' operator_limit_selection: false operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + hide_single_bundle: true + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } langcode: id: langcode table: commerce_product_field_data diff --git a/web/themes/custom/materiotheme/assets/dist/main.js b/web/themes/custom/materiotheme/assets/dist/main.js index 7fb75d3..0dd44b3 100644 --- a/web/themes/custom/materiotheme/assets/dist/main.js +++ b/web/themes/custom/materiotheme/assets/dist/main.js @@ -29,4 +29,4 @@ } } ${n} - `;s.Z.post("",{query:(0,c.S)(a)}).then((t=>{e(r,{items:t.data.data.materiaux,callBackArgs:o})})).catch((e=>{console.warn("Issue with loadMaterials",e),Promise.reject(e)}))}}}})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e].call(n.exports,n,n.exports,o),n.exports}o.m=i,e=[],o.O=(t,n,i,r)=>{if(!n){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(s=!1,r0&&e[l-1][2]>r;l--)e[l]=e[l-1];e[l]=[n,i,r]},o.F={},o.E=e=>{Object.keys(o.F).map((t=>{o.F[t](e)}))},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>({67:"module-blabla",204:"module-showrooms",282:"module-thematique",665:"module-pricing",694:"module-base",790:"module-article"}[e]+"."+{67:"d2a190261f0858b2929c",204:"f4e99dc6af9efd6ef724",282:"8b067b3da8f434cd4886",665:"f39149436228499ed25f",694:"7a080824c1dd865ba888",790:"86caee458383dab87430"}[e]+".bundle.js"),o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="materio.com:",o.l=(e,i,r,a)=>{if(t[e])t[e].push(i);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(p);var r=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(i))),n)return n(i)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/themes/custom/materiotheme/assets/dist/",(()=>{var e={179:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,r)=>i=e[t]=[n,r]));n.push(i[2]=r);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,i[1](s)}}),"chunk-"+t,t)}},o.F.j=t=>{if(!o.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");o.nc&&n.setAttribute("nonce",o.nc),n.rel="prefetch",n.as="script",n.href=o.p+o.u(t),document.head.appendChild(n)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[a,s,c]=n,l=0;for(i in s)o.o(s,i)&&(o.m[i]=s[i]);for(c&&c(o),t&&t(n);l[694,282,67,790,204,665].map(o.E)),5);var a=o.O(void 0,[289],(()=>o(470)));a=o.O(a)})(); \ No newline at end of file + `;s.Z.post("",{query:(0,c.S)(a)}).then((t=>{e(r,{items:t.data.data.materiaux,callBackArgs:o})})).catch((e=>{console.warn("Issue with loadMaterials",e),Promise.reject(e)}))}}}})}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e].call(n.exports,n,n.exports,o),n.exports}o.m=i,e=[],o.O=(t,n,i,r)=>{if(!n){var a=1/0;for(l=0;l=r)&&Object.keys(o.O).every((e=>o.O[e](n[c])))?n.splice(c--,1):(s=!1,r0&&e[l-1][2]>r;l--)e[l]=e[l-1];e[l]=[n,i,r]},o.F={},o.E=e=>{Object.keys(o.F).map((t=>{o.F[t](e)}))},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>({67:"module-blabla",204:"module-showrooms",282:"module-thematique",665:"module-pricing",694:"module-base",790:"module-article"}[e]+"."+{67:"d2a190261f0858b2929c",204:"f4e99dc6af9efd6ef724",282:"8b067b3da8f434cd4886",665:"46c403a3723d5309dc4b",694:"7a080824c1dd865ba888",790:"86caee458383dab87430"}[e]+".bundle.js"),o.miniCssF=e=>{},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="materio.com:",o.l=(e,i,r,a)=>{if(t[e])t[e].push(i);else{var s,c;if(void 0!==r)for(var l=document.getElementsByTagName("script"),u=0;u{s.onerror=s.onload=null,clearTimeout(p);var r=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((e=>e(i))),n)return n(i)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/themes/custom/materiotheme/assets/dist/",(()=>{var e={179:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,r)=>i=e[t]=[n,r]));n.push(i[2]=r);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,i[1](s)}}),"chunk-"+t,t)}},o.F.j=t=>{if(!o.o(e,t)||void 0===e[t]){e[t]=null;var n=document.createElement("link");o.nc&&n.setAttribute("nonce",o.nc),n.rel="prefetch",n.as="script",n.href=o.p+o.u(t),document.head.appendChild(n)}},o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[a,s,c]=n,l=0;for(i in s)o.o(s,i)&&(o.m[i]=s[i]);for(c&&c(o),t&&t(n);l[694,282,67,790,204,665].map(o.E)),5);var a=o.O(void 0,[289],(()=>o(470)));a=o.O(a)})(); \ No newline at end of file diff --git a/web/themes/custom/materiotheme/assets/dist/main.js.gz b/web/themes/custom/materiotheme/assets/dist/main.js.gz index 9f88ca94854201d1d6c89eca2f7486d37a8e2385..76dbc8dcdf13f84c9ab6e5d3d3b62bb6eea80368 100644 GIT binary patch delta 1022 zcmV>32!MnEv;sjTf3|mr+wHAnYp=UC+SzJD2ixarXnRR}zrEkx9(G2f z{oS4OWPg8Ojd6c>m`J(3v%j?uy`JyyZEv;pNZAdj^#PTZuw8-kKPrmngh#kIm$4tK zy%sY6ay&Ut#wX}msIbYFP;vstNBZ^_uWz604g=>^5QR=e{iYAG8Id0}e|L`gasdxD zw$}2?`T5*UT3y_`nEf%9II48iB|ccmuyKq6mnCklVGe6Lywr|k=^p`{NK5kew)zIo znvGBL{08-DP$k2h+eJLme|}5=|8R(uGjx2S`MzEa(GD!4_@b!P52oeC24GSF5)1ih z$DM8)Y0YqLt-u=-X9O9>C=2LiB&sjH;RzfZR>_AHCKHbv%>Bh?=V3;I-K=O$GRoo- z<1ah}*_M=?ZMEC@jS0M<_8l;QI9~gtJOqz0f8~0J!Ex5sax1#w zH4!W}O4KI05^{IqCU!j5FO;tcj)~Dg%t$#CC|Cu8ZHIdWP}WXYZo^4p=H#|ErI9dG zt-i;?NC4Q);-TvXh9{EQNY4Wu$yzz>-=>IBI?-D_uiIiWUaw2$Xj7P`N>8{jAcquz zJ%R$=Y_-h?z)c+7f8{ln6aeaC6FA6nGZ1Wvz!55EoxOuzd)|kGp!FfvVz$cbO2<+e z9ZEPFd%P-$6}UrFbQeq`oQY7+#As%J;l=_~Q|6O#p!82G!>eibaV1zU*8^n*+4>16@p{g=8k6-P!mZ9J zg^sW?w&Y}-NCGfwNG>pv7Mzqt87Cq=?F>SW`4Uj?8_>Hb84;hu@|23((*U@=wc$Py z0yCOFd9qege@9nn(-`BdM13Yb**d2J1XOe zyy1!HL93{s9_GQJaheD?6ksv}IaxdnQe>M7Vw(zqF^B*Ut}){wnuxH=D@PE=&u zECL2NaT(w|PLSng=pkE+xqbQH)Aj%ps-I$o0eldKaEU(p8IY*)MN5%dT10)<1;^Z- zFEQ>Z-nuC=SUMD_jkJ)1>$$~Tqzcevhfd@-ARwK>CLQp$Jp~R0c^k32ha3rVK*-Mw sh?5027rNfDo9T@@QpIU^U-vKxxA$NKQJ*U$^r8O$0V6ng<+f@E0KBU0-2eap delta 1023 zcmV^42!MnEv;sjTe=fETI@<@^Tf5!v{`SFv9Cddt)X?^l_I`W6yFKiT zM*F)v=gI#5z8d5H?l6&ZduM-ZA9_9C-`n15>yfe>Q0oIKEn&L?=YLcb&k2ukaV}#& zR(maE{^fXbo{Ue>vru7^EurKDj*s;1EneR~*Bu7Vs~`%Ui26+*VlyH?e`xL;^W_2_ zYHY3Lm-F+vo3y&PcQN~8tS`|~BTMDu;U8loLoMDayYsUJ+siw(e}0wfml z(~djcHqx5m+FF4(Ce8>lj8PWQ%ScpTdczYqIINNnDNH6FH<sp9 z!)qc~Y?P=?bS32O#7*pYtY0W!5gZevftZnUCQz^n1ltbx3ZSf=uH1%`#LUTUZAv3y zrdoZEg^>WTo5e%d4Gd2tvyq+$I+C?=+P_T^qjaLTdS181WV~LN%+aPWO_iQ-VL%Qk z0(%4ny4h-*4}hCEf4IwQEGYog#U^l&E^5G!zprsyu1M#>vLg|pb%&YTm|8kc0msH8FWgJ*LNr%c~z3j4j!>cP41P&$Sj>!%iKfnWx0PjtPe@@JAf@@B(lqj3!VE|(* z@Hpym0XY+)o{7=S{=$s~sHV&(<3Q=3R)$y8?BhzXUakkq3bOSRP~!ERb2TRGL4;eK zQwkknWo*gGIFSTk)R0_YBrP~8i!x3`dfFL;9P=fh-Z!9kQ8FSvhvg|1x2FMcduzje zA_QhMfAVClf25AC(55lQS&8~gda}Dn4;iDz!3~CQfFlL3T@t)$W#T53SFN*bi+5DU z6M4fE(Sue|K|RcaL*q0Na45iJ1ah)?8l=cJ6~s0b0%H&X9$aI_Lo^X#msgm~Fr28! zwpj!WaN;t+d7L22%g{r%7IXXZzo+d1CR9Jg3Iq5caSRiE^fMq)2iJ3pxkweD$qt>!Z$Lmgg-tr(ZF>qF3i38$cMmxdi{"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(" "),3==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 +(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(" "),8==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:{6:"Yeees!",7:"Yay!",8:"Great!",9:"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.46c403a3723d5309dc4b.bundle.js.gz b/web/themes/custom/materiotheme/assets/dist/module-pricing.46c403a3723d5309dc4b.bundle.js.gz new file mode 100644 index 0000000000000000000000000000000000000000..7a6fcf6d2e52836a2b54adc16a90621d793eca15 GIT binary patch literal 991 zcmV<510eh#iwFP!000021Fcp6Zre5xeieu4A0o=pcIu@G4Ydf0VFT7-0k(e{&kz{# z9I=*3m89GRvVc9!9&Ast(+|r|>J9}q8!+hO9q+r3-yI_l`HFvryF#YxcUfuH8yUc9 zo1}IV|J&wnw^&kMls=0Vi;Iizm#msjCa**k7%)%cHx(&8jC^o94P@@Qi-0oERRpY3 zu##mSM1+3Zn$EY|Sh(o45gE;UPsRK;?Lk=4-fq66~Ex07z?O^U8 zl+KKNM3mkVR>=^Y7nN3m6qsI{ds5eI5qROOD%0S34(2{&Z}FHsI+$5BKnS!toO;vk z7y6oHqeR;*9b$BIzbw5C)HAbgNPr|)v-!NP{QYMolI7^CDne z#|nSnIsg6VUxZS+Y`*NA)^o>`&pKqkA*DqDDn6UE#OeQoIOz~<4$pD-)%CbDkO~~> z)>HIVc7xm$4cEqi`|0;z-iyAVK9UC=a-c}glCrj7G9su0Bmr8?&oidh1ccgWJVB)b zpCSQW>^A_ov+D7S{DEtKtuk$12}5q z3E(06>opB7-+fzkz>oZz;+|4_B7k<;OS)F(V2slAme^=j5mlyf3zi( zj+{b&68p7Zk5<-=?27rrBc2&Zf+idCtgWbp_|s*=y4Nr*p+^t8dSfWTkV62|h*Rkl`rvFFzD#o?i_F8CH;fdDVgulDTb2X?#ngEhw@ zze-e`b1b3Y&d_K-{=EqCo4{}6Jq)FLd=S3E%Kib`?ON+SgdU=gFlGZGv&tVbnJs2I zaza>5qVbW5w8@6jMb&SJvcG|3;5}#V3Ga7G&1P^8d)|}(%zKBfr|y{bZJg{`uj?h9 N{{v2<3s-*#006hI>qr0q literal 0 HcmV?d00001 diff --git a/web/themes/custom/materiotheme/assets/dist/module-pricing.f39149436228499ed25f.bundle.js.gz b/web/themes/custom/materiotheme/assets/dist/module-pricing.f39149436228499ed25f.bundle.js.gz deleted file mode 100644 index 79413d3408570d12e38fee0a9f03e4ea3633753f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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{DEtKqgLQBRjmSunwyheD`;=#L>C-M)v``_st`C;NQ<*p2XNHJ zGr)cHmuu=>zWKW9fS>r)#XYC?Oa|G2_8o+WB7}zePQ+oCgXpbBZt$N}D%cctfic#I zGR<_l7Jd2tSU&f`<~30HC|emKoOA{0x<4aAIU+F#wd!z6O-!PCj1qgM`=f(*OKG29>){lOMc zIC2jCS?o7{Jy=>dkb{qf4M0u-w{S(Py1KIw`AnbhZ5#V&IvssanZea~I=Q4X><}LY zGA`SD>W7oF1x{yS`8~@U)y(_$U9gRQ(gsb2-!GVwK{m5DDnAy|V2kd=n0>~zD93`l z2LOLT*aVkyhl@)=eyoQIE~kS0`t!~E3sNhvoiqw(P(6JP%vV)YM_Qx59*rndaWrBn zzo(I8n#~vNV$4jDWsHoL*Dx7Rza!0mI#b*>`u03YmO6u&;8QdVD;#Bhm=-9y&9Hlr z8sl(Vzz5v1o7@`gYd^egXUXvH(8mRkj=myR9G-IPf^Puk2=HohePA~`vfI8NtUea` zRifmaV+lEThDL|+??s5;1b!zUp)cLzgYX4b4iC_N-&h|ZbP#=nF&hXgtNbyO* zCxlfe8lIR)ldLaYl--6Xx*JG(-ZSQ&@&2IHbP5wV@Sgl<-dl7Xb*HRv -
+
{{ $t("default.Ask for a quote") }} @@ -44,14 +44,15 @@ export default { props: ['product'], mixins: [productsMixins], data(){ + // thoose should be on a field of the variation return { quantity: 1, // showLoginModal:false variation_btn_txt: { - 1: 'Yeees!', - 2: 'Yay!', - 3: 'Great!', - 4: 'OKAY!' + 6: 'Yeees!', + 7: 'Yay!', + 8: 'Great!', + 9: 'OKAY!' } } },