andre 4 years ago
parent
commit
cbce68d3ff
1 changed files with 15 additions and 4 deletions
  1. 15 4
      js/scripts.js

+ 15 - 4
js/scripts.js

@@ -3631,7 +3631,7 @@ function updateConfigurableOptions(i, billingCycle) {
         }
         }
     );
     );
     recalctotals();
     recalctotals();
-    updateProductTotalMessage();
+    updateProductTotalMessage(billingCycle);
 }
 }
 
 
 function recalctotals() {
 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;
     }
     }
 }
 }