|
@@ -3818,20 +3818,26 @@ function validate_captcha(form)
|
|
|
function updateProductTotalMessage(billingcycle) {
|
|
function updateProductTotalMessage(billingcycle) {
|
|
|
switch(billingcycle) {
|
|
switch(billingcycle) {
|
|
|
case 'monthly':
|
|
case 'monthly':
|
|
|
- console.log("init: " + billingcycle);
|
|
|
|
|
|
|
+ console.log(billingcycle);
|
|
|
|
|
+ let days = Date(date.getFullYear(), date.getMonth() + 1, 0) - Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
|
|
|
+ console.log(days);
|
|
|
jQuery('#producttotalmessage').html('Monatlich');
|
|
jQuery('#producttotalmessage').html('Monatlich');
|
|
|
break;
|
|
break;
|
|
|
case 'quarterly':
|
|
case 'quarterly':
|
|
|
- console.log("init: " + billingcycle);
|
|
|
|
|
|
|
+ console.log(billingcycle);
|
|
|
jQuery('#producttotalmessage').html('4teljährlich');
|
|
jQuery('#producttotalmessage').html('4teljährlich');
|
|
|
break;
|
|
break;
|
|
|
case 'semiannually':
|
|
case 'semiannually':
|
|
|
- console.log("init: " + billingcycle);
|
|
|
|
|
|
|
+ console.log(billingcycle);
|
|
|
jQuery('#producttotalmessage').html('Halbjährlich');
|
|
jQuery('#producttotalmessage').html('Halbjährlich');
|
|
|
break;
|
|
break;
|
|
|
case 'annually':
|
|
case 'annually':
|
|
|
- console.log("init: " + billingcycle);
|
|
|
|
|
|
|
+ console.log(billingcycle);
|
|
|
jQuery('#producttotalmessage').html('Jährlich');
|
|
jQuery('#producttotalmessage').html('Jährlich');
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+function daysIntoYear(date){
|
|
|
|
|
+ return (Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) - Date.UTC(date.getFullYear(), 0, 0)) / 24 / 60 / 60 / 1000;
|
|
|
|
|
+}
|