Răsfoiți Sursa

producttotalmessage

andre 3 ani în urmă
părinte
comite
ec5912740e
2 a modificat fișierele cu 2 adăugiri și 6 ștergeri
  1. 2 6
      js/scripts.js
  2. 0 0
      js/scripts.min.js

+ 2 - 6
js/scripts.js

@@ -3631,6 +3631,7 @@ function updateConfigurableOptions(i, billingCycle) {
         }
         }
     );
     );
     recalctotals();
     recalctotals();
+    updateProductTotalMessage(billingCycle);
 }
 }
 
 
 function recalctotals() {
 function recalctotals() {
@@ -3849,12 +3850,7 @@ function updateProductTotalMessage(billingcycle) {
             break;
             break;
     }
     }
     billingDay = daysIntoYear(billingDate);
     billingDay = daysIntoYear(billingDate);
-    if ((billingDay - orderDay) < 12) {
-        jQuery('#producttotalmessage').html('<i class="fa fa-info-circle" aria-hidden="true"></i> Der Preis summiert sich aus den verbleibenden<br><b>' + (billingDay - orderDay) + ' Tagen</b> bis zum Ende dieses ' + periodString + ' und des nächsten ' + periodString + '.<br>Nächste Fälligkeit ist am ' + billingDate.toLocaleDateString());
-    } else {
-        jQuery('#producttotalmessage').html('<i class="fa fa-info-circle" aria-hidden="true"></i> Der Preis berechnet die verbleibenden<br><b>' + (billingDay - orderDay) + ' Tage</b> dieses ' + periodString + '.<br>Nächste Fälligkeit ist am ' + billingDate.toLocaleDateString());
-    }
-//    console.log((billingDay - orderDay)) + 'Zahltag: ' + billingDate;
+    jQuery('#producttotalmessage').html('<i class="fa fa-info-circle" aria-hidden="true"></i> Der Preis berechnet die verbleibenden<br><b>' + (billingDay - orderDay) + ' Tage</b> dieses ' + periodString + '.<br>Nächste Fälligkeit ist am ' + billingDate.toLocaleDateString());
 }
 }
 
 
 function daysIntoYear(date){
 function daysIntoYear(date){

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
js/scripts.min.js


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff