andre 4 年之前
父節點
當前提交
6ee4361052
共有 3 個文件被更改,包括 12 次插入10 次删除
  1. 2 2
      configure_groupware.tpl
  2. 6 0
      js/base.js
  3. 4 8
      sidebar-price.tpl

+ 2 - 2
configure_groupware.tpl

@@ -91,7 +91,7 @@ var _localLang = {
                             <div class="field-container">
                             <div class="field-container">
                                 <div class="form-group">
                                 <div class="form-group">
                                     <label for="inputBillingcycle">{$LANG.cartchoosecycle}</label><br />
                                     <label for="inputBillingcycle">{$LANG.cartchoosecycle}</label><br />
-                                    <select name="billingcycle" id="inputBillingcycle" class="form-control" onchange="{if $configurableoptions}updateConfigurableOptions({$i}, this.value);{else}recalctotals();{/if}">
+                                    <select name="billingcycle" id="inputBillingcycle" class="form-control" onchange="{if $configurableoptions}updateConfigurableOptions({$i}, this.value);{else}recalctotals();updateProductTotalMessage({$billingcycle});{/if}">
                                         {if $pricing.monthly}
                                         {if $pricing.monthly}
                                             <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}>
                                             <option value="monthly"{if $billingcycle eq "monthly"} selected{/if}>
                                                 {$pricing.monthly}
                                                 {$pricing.monthly}
@@ -372,7 +372,7 @@ var _localLang = {
 	{include file="templates/orderforms/{$carttpl}/layouts/foot.tpl"}
 	{include file="templates/orderforms/{$carttpl}/layouts/foot.tpl"}
 {/if}
 {/if}
 <script language="javascript">
 <script language="javascript">
-	recalculateRenewalTotals();
+	recalctotals();
 </script>
 </script>
 <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/js/ResizeSensor.js"></script>
 <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/js/ResizeSensor.js"></script>
 <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/js/jquery.sticky-sidebar.min.js"></script>
 <script type="text/javascript" src="{$WEB_ROOT}/templates/orderforms/{$carttpl}/js/jquery.sticky-sidebar.min.js"></script>

+ 6 - 0
js/base.js

@@ -1878,3 +1878,9 @@ function validate_captcha(form)
         }
         }
     });
     });
 }
 }
+
+function updateProductTotalMessage(billingcycle) {
+    if (billingcycle == 'annually') {
+        jQuery('#producttotalmessage').html('Test');
+    }
+}

+ 4 - 8
sidebar-price.tpl

@@ -12,20 +12,16 @@
                         <h2>{$LANG.ordersummary}</h2>
                         <h2>{$LANG.ordersummary}</h2>
                         <div class="summary-container" id="producttotal"></div>
                         <div class="summary-container" id="producttotal"></div>
                     </div>
                     </div>
-                    <div class="text-center">
+                    <div class="text-center" id='producttotalmessage'>
                         {capture name=currentDate}  {$smarty.now|date_format:"%Y-%m-%d"}  {/capture}
                         {capture name=currentDate}  {$smarty.now|date_format:"%Y-%m-%d"}  {/capture}
                         {capture name=dayOfMonth}  {$smarty.now|date_format:"%e"|trim}  {/capture}
                         {capture name=dayOfMonth}  {$smarty.now|date_format:"%e"|trim}  {/capture}
                         {capture name=endOfMonth} {date("t")} {/capture}
                         {capture name=endOfMonth} {date("t")} {/capture}
                         {assign var=daysInBetween value="`$smarty.capture.endOfMonth-$smarty.capture.dayOfMonth`"}
                         {assign var=daysInBetween value="`$smarty.capture.endOfMonth-$smarty.capture.dayOfMonth`"}
 
 
                         {if $smarty.capture.dayOfMonth < 20}
                         {if $smarty.capture.dayOfMonth < 20}
-                            {if $billingcycle == 'quarterly'}
-                                Blubb
-                            {else}
-                                Der Preis bezieht sich auf die verbleibende<br />
-                                Anzahl der Tage ({$daysInBetween}) zwischen der<br />
-                                Bestellung und dem Ende des Monats<br />
-                            {/if}
+                            Der Preis bezieht sich auf die verbleibende<br />
+                            Anzahl der Tage ({$daysInBetween}) zwischen der<br />
+                            Bestellung und dem Ende des Monats<br />
                         {else}
                         {else}
                             Da die Bestellung nach dem 20. des Monats <br />
                             Da die Bestellung nach dem 20. des Monats <br />
                             getätigt wurde, wird der Folgemonat automatisch<br />
                             getätigt wurde, wird der Folgemonat automatisch<br />