|
|
@@ -3820,7 +3820,8 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
switch(billingcycle) {
|
|
|
case 'monthly':
|
|
|
console.log(billingcycle);
|
|
|
- console.log(days);
|
|
|
+ daysM = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
|
|
|
+ console.log(daysM);
|
|
|
jQuery('#producttotalmessage').html('Monatlich');
|
|
|
break;
|
|
|
case 'quarterly':
|
|
|
@@ -3833,8 +3834,8 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
break;
|
|
|
case 'annually':
|
|
|
console.log(billingcycle);
|
|
|
- days = daysIntoYear(new Date(now.getFullYear(), 12, 31)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
|
|
|
- console.log(days);
|
|
|
+ daysY = daysIntoYear(new Date(now.getFullYear(), 12, 31)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
|
|
|
+ console.log(daysY);
|
|
|
jQuery('#producttotalmessage').html('Jährlich');
|
|
|
break;
|
|
|
}
|