andre 4 лет назад
Родитель
Сommit
cbce68d3ff
1 измененных файлов с 15 добавлено и 4 удалено
  1. 15 4
      js/scripts.js

+ 15 - 4
js/scripts.js

@@ -3631,7 +3631,7 @@ function updateConfigurableOptions(i, billingCycle) {
         }
     );
     recalctotals();
-    updateProductTotalMessage();
+    updateProductTotalMessage(billingCycle);
 }
 
 function recalctotals() {
@@ -3815,8 +3815,19 @@ function validate_captcha(form)
     });
 }
 
-function updateProductTotalMessage() {
-    if (billingCycle == 'annually') {
-        jQuery('#producttotalmessage').html('Test');
+function updateProductTotalMessage(billingcycle) {
+    switch(billingcycle) {
+        case 'monthly':
+            jQuery('#producttotalmessage').html('Monatlich');
+            break;
+        case 'quarterly':
+            jQuery('#producttotalmessage').html('4teljährlich');
+            break;
+        case 'semiannually':
+            jQuery('#producttotalmessage').html('Halbjährlich');
+            break;
+        case 'annually':
+            jQuery('#producttotalmessage').html('Jährlich');
+            break;
     }
 }