Parcourir la source

redirect already used trial version

andre il y a 4 ans
Parent
commit
b2dd95943d
3 fichiers modifiés avec 4 ajouts et 27 suppressions
  1. 1 9
      checkout.tpl
  2. 3 1
      configureproduct.tpl
  3. 0 17
      removedoubletrial.tpl

+ 1 - 9
checkout.tpl

@@ -1,12 +1,4 @@
-{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"}
+{if $smarty.post.onepageorder == "1" && $smarty.post.checkcredit == "0"}
 
     <script>
         // Define state tab index value

+ 3 - 1
configureproduct.tpl

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

+ 0 - 17
removedoubletrial.tpl

@@ -1,17 +0,0 @@
-<div class="alert alert-danger" style="width:60%;">
-    {$LANG.noAdditionalTrial}
-</div>
-<table width="60%" border="0">
-    <tr>
-        <td style="text-align: center;">
-            <a href="{$WEB_ROOT}/submitticket.php?step=2&deptid=1&subject={$LANG.tryagain} {$product.name}" class="btn btn-primary">
-                {$LANG.tryagain}
-            </a>
-        </td>
-        <td style="text-align: center;">
-            <a href="{$WEB_ROOT}/cart.php?gid={$productinfo.gid}" class="btn btn-primary">
-                {$LANG.buyFullVersion}
-            </a>
-        </td>
-    </tr>
-</table>