소스 검색

use free value instead price of 0.00 for checking trials

andre 4 년 전
부모
커밋
688f3312b7
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      products.tpl

+ 4 - 4
products.tpl

@@ -170,7 +170,7 @@
 							    <tr style="height:60px;">
 								<td> <!-- Price -->
 									{if $product.bid}
-								    {elseif $product.pricing.minprice.price->toNumeric() == 0.00}
+								    {elseif $product.pricing.type eq 'free'}
 									<mark style="font-size:160%;background-color:#2368AD;">{$LANG.orderfree}</mark>
 								    {elseif $product.paytype eq "onetime"}
 									<span>{$product.pricing.onetime} </span>{$LANG.orderpaymenttermonetime}
@@ -245,15 +245,15 @@
 								</td>
 							</tr>
 						</table>
-						{if ($product.pricing.minprice.price->toNumeric() == 0.00) && ((count($clientActiveFree) + count($clientCardFree)) > (1 + $clientsdetails.notes|strstr:"AddTrials="|truncate:11:""|replace:"AddTrials=":""))}
+						{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.request}
 							</a>
-						{elseif ($product.pricing.minprice.price->toNumeric() == 0.00) && in_array($product.pid, $clientPids && !in_array($product.pid, $clientActiveFree))}
+						{elseif ($product.pricing.type eq 'free') && 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.minprice.price->toNumeric() == 0.00) && in_array($product.pid, $clientCardFree)}
+						{elseif ($product.pricing.type eq 'free') && 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>