[`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])} {$p.name|escape} {$product_names = $product_names|cat:($p.name|escape)} {if !$smarty.foreach.product_names.last}{$product_names = $product_names|cat:', '}{/if}
[`Price`] {shop_currency_html($p.price)}
{$f.name} {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}
{$wa->title( sprintf('[`Compare %s`]', $product_names) )} {else}

[`Product comparison list is empty.`]

{/if}