andre пре 4 година
родитељ
комит
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;
     }
 }