|
@@ -3822,7 +3822,6 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
switch(billingcycle) {
|
|
switch(billingcycle) {
|
|
|
case 'monthly':
|
|
case 'monthly':
|
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0));
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0));
|
|
|
- jQuery('#producttotalmessage').html('Monatlich');
|
|
|
|
|
break;
|
|
break;
|
|
|
case 'quarterly':
|
|
case 'quarterly':
|
|
|
if (now.getMonth() < 3) {
|
|
if (now.getMonth() < 3) {
|
|
@@ -3834,7 +3833,6 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
} else {
|
|
} else {
|
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31)); // 31.12.
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31)); // 31.12.
|
|
|
}
|
|
}
|
|
|
- jQuery('#producttotalmessage').html('4teljährlich');
|
|
|
|
|
break;
|
|
break;
|
|
|
case 'semiannually':
|
|
case 'semiannually':
|
|
|
if (now.getMonth() < 6) {
|
|
if (now.getMonth() < 6) {
|
|
@@ -3842,11 +3840,9 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
} else {
|
|
} else {
|
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31)); // 31.12.
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31)); // 31.12.
|
|
|
}
|
|
}
|
|
|
- jQuery('#producttotalmessage').html('Halbjährlich');
|
|
|
|
|
break;
|
|
break;
|
|
|
case 'annually':
|
|
case 'annually':
|
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31));
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31));
|
|
|
- jQuery('#producttotalmessage').html('Jährlich');
|
|
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
console.log(billingDay - orderDay);
|
|
console.log(billingDay - orderDay);
|