|
|
@@ -3817,19 +3817,19 @@ function validate_captcha(form)
|
|
|
|
|
|
function updateProductTotalMessage(billingcycle) {
|
|
|
var now = new Date();
|
|
|
+ var orderDay = daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
|
|
|
switch(billingcycle) {
|
|
|
case 'monthly':
|
|
|
console.log(billingcycle);
|
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0));
|
|
|
- orderDay = daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
|
|
|
console.log(billingDay - orderDay);
|
|
|
jQuery('#producttotalmessage').html('Monatlich');
|
|
|
break;
|
|
|
case 'quarterly':
|
|
|
console.log(billingcycle);
|
|
|
if (now.getMonth() < 4) {
|
|
|
- billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31));
|
|
|
- console.log(now.getMonth());
|
|
|
+ billingDay = daysIntoYear(new Date(now.getFullYear(), 2, 31));
|
|
|
+ console.log(billingDay - orderDay);
|
|
|
}
|
|
|
jQuery('#producttotalmessage').html('4teljährlich');
|
|
|
break;
|
|
|
@@ -3840,7 +3840,6 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
case 'annually':
|
|
|
console.log(billingcycle);
|
|
|
billingDay = daysIntoYear(new Date(now.getFullYear(), 11, 31));
|
|
|
- orderDay = daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
|
|
|
console.log(billingDay - orderDay);
|
|
|
jQuery('#producttotalmessage').html('Jährlich');
|
|
|
break;
|