andre 4 سال پیش
والد
کامیت
0c7d18f943
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      sidebar-price.tpl

+ 5 - 5
sidebar-price.tpl

@@ -13,14 +13,14 @@
                         <div class="summary-container" id="producttotal"></div>
                     </div>
                     <div class="text-center">
-{*}                        {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=endOfMonth} {date("t")} {/capture}
-                        {assign var=daysInBetween value="`$smarty.capture.endOfMonth-$smarty.capture.dayOfMonth`"} *}
-{debug}
-                        {if $smarty.now|date_format:"%e"|trim < 20}
+                        {assign var=daysInBetween value="`$smarty.capture.endOfMonth-$smarty.capture.dayOfMonth`"}
+
+                        {if $smarty.capture.dayOfMonth < 20}
                             Der Preis bezieht sich auf die verbleibende<br />
-                            Anzahl der Tage ({date("t") - $smarty.now|date_format:"%e"|trim}) zwischen der<br />
+                            Anzahl der Tage ({$daysInBetween}) zwischen der<br />
                             Bestellung und dem Ende des Monats<br />
                         {else}
                             Da die Bestellung nach dem 20. des Monats <br />