Browse Source

redirect already used trial version

andre 4 years ago
parent
commit
e0694a8562
2 changed files with 5 additions and 2 deletions
  1. 0 1
      checkout.tpl
  2. 5 1
      products.tpl

+ 0 - 1
checkout.tpl

@@ -1,4 +1,3 @@
-{debug}
 {if $smarty.post.onepageorder == "1" && $smarty.post.checkcredit == "0"}
 
     <script>

+ 5 - 1
products.tpl

@@ -242,7 +242,11 @@
 								</td>
 							</tr>
 						</table>
-						{if ($product.pricing.type eq 'free') && in_array($product.pid, $clientPids)}
+						{if ($product.pricing.type eq 'free') && (count($clientActiveFree) > 1)}
+							<a href="{$WEB_ROOT}/submitticket.php?step=2&deptid=1&subject={$LANG.moretrials} {$product.name}" class="btn btn-primary btn-block" style="position:absolute; left:20px; bottom:10px; right:20px; height:40px; width:unset;padding-top:6.5px;">
+								{$LANG.tomuchtrials}
+							</a>
+						{elseif ($product.pricing.type eq 'free') && in_array($product.pid, $clientPids)}
 							<a href="{$WEB_ROOT}/submitticket.php?step=2&deptid=1&subject={$LANG.tryagain} {$product.name}" class="btn btn-primary btn-block" style="position:absolute; left:20px; bottom:10px; right:20px; height:40px; width:unset;padding-top:6.5px;">
 								{$LANG.tryagain}
 							</a>