Przeglądaj źródła

redirect already used trial version

andre 4 lat temu
rodzic
commit
af10d9dabc
2 zmienionych plików z 10 dodań i 4 usunięć
  1. 9 1
      checkout.tpl
  2. 1 3
      configureproduct.tpl

+ 9 - 1
checkout.tpl

@@ -1,4 +1,12 @@
-{if $smarty.post.onepageorder == "1" && $smarty.post.checkcredit == "0"}
+{foreach from=$products item=product}
+    {$product.billingcycle}<hr>
+    {if ($product.billingcycle eq 'free') && in_array($product.pid, $clientPids)}
+        {assign var=doubleTrials value=$doubleTrials+' '+$product.productinfo.name}
+    {/if}
+{/foreach}
+{if isset($doubleTrials)}
+    {include file="./removedoubletrial.tpl"}
+{elseif $smarty.post.onepageorder == "1" && $smarty.post.checkcredit == "0"}
 
     <script>
         // Define state tab index value

+ 1 - 3
configureproduct.tpl

@@ -14,9 +14,7 @@ ThurVCloud Business		=> gid=9
 ThurFiles Business Hosting	=> gid=10
 
 *}
-{if ($productinfo.paytype eq 'free') && in_array($productinfo.pid, $clientPids)}
-    {include file="./nodoubletrial.tpl"}
-{else}
+{if}
     {if $productinfo.gid === 1 || $productinfo.gid === 8}
         {include file='./configure_privat_mail.tpl'}
         {include file='./check_configure_privat_mail.tpl'}