[`Compare products`]

{literal} {/literal} {if count($products)} {$td_width = round((100-25)/max(1,count($products)))} {$product_names = ''} {foreach $products as $p name=product_names} {/foreach} {foreach $products as $p} {/foreach} {foreach $features as $f_id=>$f} {foreach $products as $p} {/foreach} {/foreach}
{$wa->shop->productImgHtml($p, '96x96', ['itemprop' => 'image', 'id' => 'product-image', 'default' => "`$wa_theme_url`img/dummy96.png", 'title' => $p.name|cat:' ':strip_tags($p.summary)|escape])} {$product_names = $product_names|cat:($p.name)} {if !$smarty.foreach.product_names.last}{$product_names = $product_names|cat:', '}{/if}
[`Price`] {if $p.min_price < $p.max_price}
{shop_currency_html($p.min_price, ['extended_format' => '%t', 'format' => true])} — {shop_currency_html($p.max_price)}
{else} {shop_currency_html($p.price)} {/if}
{$f.name} {if $f.type !== 'divider'} {if isset($p.features[$f_id])} {if is_array($p.features[$f_id])} {implode('
', $p.features[$f_id])} {else} {$p.features[$f_id]} {/if} {else} {/if} {/if}
{$wa->title( sprintf('[`Compare %s`]', $product_names) )} {else}

[`Product comparison list is empty.`]

{/if}