{* $Id: products.tpl 2439 2006-11-02 13:07:04Z imac $ *} {if $products} {if $smarty.capture.js_loaded != "Y"} {capture name="js_loaded"}Y{/capture} {/if} {capture name="mainbox"} {if !$no_pagination} {include file="common_templates/pagination.tpl"} {/if} {if !$no_sorting} {include file="products_pages/sorting.tpl"} {/if} {foreach from=$products item=product key=key}
{include file="common_templates/image.tpl" image_width=$settings.Appearance.thumbnail_width obj_id=$product.product_id images=$product.main_pair object_type="product"} {$lang.view_details} ››    {$product.product|escape:html}
{if $product.product_code}
{$lang.sku}: {$product.product_code}

{/if}
{$product.short_description|truncate:280:"... `$lang.more_link`"}

{************************************ Discount label ****************************} {if $product.discounts && $product.price|floatval} {/if} {* / Discount label *} {else} {/if}
{if !($settings.Modules.product_configurator == 'Y' && $product.product_type == 'C')} {******************************* List price, Old Price **************************} {if $product.discounts && $product.price|floatval}
{$lang.old_price}: {include file="common_templates/price.tpl" value=$product.price span_id="original_price_`$product.product_id`" class="list-price"}
{else} {if $product.list_price > $product.price && $product.price != 0}
{$lang.list_price}: {include file="common_templates/price.tpl" value=$product.list_price span_id="list_price_`$product.product_id`" class="list-price"}
{/if} {/if} {************************ Discounted Price, Our Price, Price ********************} {if ($settings.Modules.product_configurator == 'Y' && $product.product_type == 'C')}  {elseif $product.price != 0 || $product.zero_price_action == 'P'} {if $product.discounts && $product.price|floatval}{$lang.discounted_price} {include file="common_templates/price.tpl" value=$product.discounted_price span_id="discounted_price_`$product.product_id`"} {else} {if $product.list_price > $product.price}{$lang.our_price}{else}{$lang.price}{/if}: {include file="common_templates/price.tpl" value=$product.price span_id="original_price_`$product.product_id`"} {/if} {/if} {if $product.tax != ""}  ({$lang.including_tax} {include file="common_templates/price.tpl" value=$product.tax}) {/if} {************************************* You Save: *******************************} {if $product.discounts && $product.price|floatval}
{$lang.you_save}: {include file="common_templates/price.tpl" value=$product.discounts.total span_id="save_`$product.product_id`" class="list-price"}
{else} {if $product.list_price > $product.price && $product.price|floatval} {math equation="list_price - price" list_price=$product.list_price price=$product.price assign="absolute_discount"} {math equation="100 - ((price / list_price) * 100)" list_price=$product.list_price price=$product.price format="%d" assign="percent_discount"}
{$lang.you_save}: {include file="common_templates/price.tpl" value=$absolute_discount span_id="save_`$product.product_id`" class="list-price"}({$percent_discount}%)
{/if} {/if}
   
  {include file="common_templates/modifier.tpl" mod_type="P" mod_value=$product.discount_amount non_zeros='Y' spanm_id="discount_label_`$product.product_id`" class="discount-label-text"} 
 

{include file="products_pages/buy_now.tpl"}    {$lang.top} 


{/foreach} {if !$no_pagination} {include file="common_templates/pagination.tpl"} {/if} {/capture} {if !$title} {$smarty.capture.mainbox} {else} {include file="common_templates/mainbox.tpl" title=$title content=$smarty.capture.mainbox} {/if} {/if}