Browse Source

changed 'add to cart' button text on pricing page

bach 3 years ago
parent
commit
4fe9f08b67

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js


BIN
web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 7 - 34
web/themes/custom/materiotheme/vuejs/components/Content/Product.vue

@@ -5,7 +5,6 @@
     </header>
     <section class="content">
       <div class="description" v-html="product.body"/>
-      <!-- <div class="price-description" v-html="product.price_description"/> -->
     </section>
     <aside v-if="!isAdherent">
       <div
@@ -19,40 +18,19 @@
           name="addtocart"
           @click.stop="checkaddtocart($event, variation.id)"
         >
-          {{ $t("default.Add to cart") }}
+          {{ $t(variation_btn_txt[variation.id]) }}
         </button>
       </div>
 
     </aside>
 
-    <!-- <Modal
-      v-if="showLoginModal"
-      @close="closeModal"
-      :styles="{width:'500px', height:'350px'}"
-    >
-      <section id="pricing-modal-login-register">
-        <h2>{{ $t("materio.Please login or create a new account") }}</h2>
-        <LoginRegister
-          :callbackargs="showLoginModal"
-          @onLogedIn="onLogedIn"
-          @onRegistered="onRegistered"
-        />
-      </section>
-    </Modal> -->
-
   </article>
 </template>
 
 <script>
 
-// import { REST } from 'vuejs/api/rest-axios'
 import router from 'vuejs/route'
-// import { mapState, mapActions } from 'vuex'
 import productsMixins from 'vuejs/components/productsMixins'
-// import Modal from 'vuejs/components/Helper/Modal'
-// import LoginRegister from 'vuejs/components/Helper/LoginRegister'
-
-// let basePath = drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix;
 
 export default {
   name: "Product",
@@ -63,19 +41,14 @@ export default {
     return {
       quantity: 1,
       // showLoginModal:false
+      variation_btn_txt: {
+        3: 'Yeees!',
+        4: 'Yay!',
+        5: 'Great!',
+        6: 'OKAY!'
+      }
     }
   }
-  // ,
-  // methods:{
-  //   // ...mapActions({
-  //   //   userLogin: 'User/userLogin'
-  //   // })
-  // }
-  // ,
-  // components: {
-  //   Modal,
-  //   LoginRegister
-  // }
 }
 </script>
 

Some files were not shown because too many files changed in this diff