{* $Id: products_multicolumns.tpl 1604 2006-04-28 07:38:09Z zeke $ *} {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} {split data=$products size=$columns|default:"2" assign="splitted_products"} {math equation="floor(100/x)" x=$columns|default:"2" assign="cell_width"}
| {include file="products_pages/product_image.tpl" product=$product image_width=$settings.Appearance.thumbnail_width obj_id=$product.product_id} | {else}{/if} {/foreach} |
|
{$product.product} {if $product.product_code} {$lang.sku}: {$product.product_code}
{/if}
|
{else}
{/if} {/foreach} |
|
{*if $product.list_price > $product.price && $product.price != 0}
{math equation="list_price - price" list_price=$product.list_price price=$product.price assign="absolute_discount"}
{$lang.list_price}: {include file="common_templates/price.tpl" value=$product.list_price}
{/if*}
{if $product.price != 0 || $settings.General.zero_price_action == 'permit'}
{if $product.discount && $product.price != 0}{$lang.discounted_price}
{math equation="price - discount" discount=$product.discount price=$product.price assign="our_price"}
{if $our_price>=0}
{include file="common_templates/price.tpl" value=$our_price span_id="discounted_price_`$product.product_id`"}
{else}
{include file="common_templates/price.tpl" value=0 span_id="discounted_price_`$product.product_id`"}
{/if}
{else}
{$lang.price}: {include file="common_templates/price.tpl" value=$product.price span_id="original_price_`$product.product_id`"}
{/if}
{/if}
{*if $product.list_price > $product.price && $product.price != 0}
{$lang.you_save}: {include file="common_templates/price.tpl" value=$absolute_discount}
{/if*}
{if $settings.General.inventory_tracking == 'Y' && $product.amount <= 0 && $product.is_edp != 'Y' && $product.tracking == 'B'}
{$lang.text_out_of_stock}
{else}
{include file="products_pages/buy_now.tpl" product=$product form_prefix=$form_prefix but_style="text" hide_wishlist_button="Y"} |
{/if}
{else}
{/if} {/foreach} |