Ver código fonte

use AddTrials value

andre 4 anos atrás
pai
commit
ce731a7449
3 arquivos alterados com 2 adições e 3 exclusões
  1. 1 1
      checkout.tpl
  2. 1 1
      products.tpl
  3. 0 1
      viewcart.tpl

+ 1 - 1
checkout.tpl

@@ -1632,7 +1632,7 @@
 								{include file="$template/includes/captcha.tpl"}
 							</div>
                         {/if}
-                        {if ((count($clientActiveFree) + count($clientCardFree)) > 2)}
+                        {if ((count($clientActiveFree) + count($clientCardFree)) > (2 + $clientsdetails.notes|strstr:"AddTrials="|truncate:11:""|replace:"AddTrials=":""))}
                             {include file="templates/orderforms/{$carttpl}/removetrial.tpl"}
                         {else if (count($clientCradDoubleFree) > 0)}
                             {include file="templates/orderforms/{$carttpl}/removedoubletrial.tpl"}

+ 1 - 1
products.tpl

@@ -248,7 +248,7 @@
 								</td>
 							</tr>
 						</table>
-						{if ($product.pricing.type eq 'free') && ((count($clientActiveFree) + count($clientCardFree)) > 1)}
+						{if ($product.pricing.type eq 'free') && ((count($clientActiveFree) + count($clientCardFree)) > (1 + $clientsdetails.notes|strstr:"AddTrials="|truncate:11:""|replace:"AddTrials=":""))}
 							<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>

+ 0 - 1
viewcart.tpl

@@ -194,7 +194,6 @@
     {/if}
 
     <div id="order-standard_cart">
-            {$clientsdetails.notes|strstr:"AddTrials="|truncate:11:""|replace:"AddTrials=":"" + 1}<hr>
 
         {if $cartitems > 0}
             <div class="row">