andre 4 лет назад
Родитель
Сommit
b76ae027ac
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      products.tpl

+ 3 - 4
products.tpl

@@ -1,4 +1,3 @@
-{debug}
 {include file="orderforms/{$carttpl}/common.tpl"}
 
 <!-- Start of Template: orderforms/thurdata/products.tpl -->
@@ -246,15 +245,15 @@
 								</td>
 							</tr>
 						</table>
-						{if ($product.pricing.type eq 'free') && ((count($clientActiveFree) + count($clientCardFree)) > (1 + $clientsdetails.notes|strstr:"AddTrials="|truncate:11:""|replace:"AddTrials=":""))}
+						{if ($product.pricing.minprice.price->toNumeric() == 0.00) && ((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.request}
 							</a>
-						{elseif ($product.pricing.type eq 'free') && in_array($product.pid, $clientPids && !in_array($product.pid, $clientActiveFree))}
+						{elseif ($product.pricing.minprice.price->toNumeric() == 0.00) && in_array($product.pid, $clientPids && !in_array($product.pid, $clientActiveFree))}
 							<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>
-						{elseif ($product.pricing.type eq 'free') && in_array($product.pid, $clientCardFree)}
+						{elseif ($product.pricing.minprice.price->toNumeric() == 0.00) && in_array($product.pid, $clientCardFree)}
 							<a class="btn btn-primary btn-block" style="position:absolute; left:20px; bottom:10px; right:20px; height:40px; width:unset;padding-top:6.5px;pointer-events:none;">
 								{$LANG.alreadyincard}
 							</a>