{$tmpl='products_multicolumns'} {if !$comparison_data}

{__("no_products_selected")}

{include file="buttons/continue_shopping.tpl" but_href=$continue_url|fn_url but_role="text"}
{else} {script src="js/tygh/exceptions.js"} {assign var="return_current_url" value=$config.current_url|escape:url}
{foreach from=$comparison_data.products item=product} {/foreach}
{$compare_product_id = $product.product_id} {hook name="product_features:product_compare"} {/hook} {assign var="obj_id" value=$product.product_id} {include file="common/product_data.tpl" product=$product show_old_price=true show_price_values=true show_price=true show_clean_price=true show_list_discount=$settings.abt__ut2.product_list.$tmpl.show_you_save[$settings.abt__device] == 'Y'}
{assign var="old_price" value="old_price_`$obj_id`"} {if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price nofilter}{/if} {assign var="price" value="price_`$obj_id`"} {$smarty.capture.$price nofilter}
{assign var="list_discount" value="list_discount_`$obj_id`"} {$smarty.capture.$list_discount nofilter} {assign var="clean_price" value="clean_price_`$obj_id`"} {$smarty.capture.$clean_price nofilter}
{include file="blocks/list_templates/simple_list.tpl" product=$product min_qty=false show_qty=false show_add_to_cart=true show_discount_label=true show_rating=true but_role="action" hide_price=true}
{foreach from=$comparison_data.product_features item="group_features" key="group_id" name="feature_groups"} {foreach from=$group_features item="_feature" key=id name="product_features"} {foreach from=$comparison_data.products item=product} {/foreach} {/foreach}
{$_feature}: {if $product.product_features.$id} {assign var="feature" value=$product.product_features.$id} {else} {assign var="feature" value=$product.product_features[$group_id].subfeatures.$id} {/if} {strip} {if $feature.prefix && $feature.feature_type != "ProductFeatures::MULTIPLE_CHECKBOX"|enum}{$feature.prefix}{/if} {if $feature.feature_type == "ProductFeatures::SINGLE_CHECKBOX"|enum} {if $feature.value == "Y"}{/if} {elseif $feature.feature_type == "ProductFeatures::DATE"|enum} {$feature.value_int|date_format:"`$settings.Appearance.date_format`"} {elseif $feature.feature_type == "ProductFeatures::MULTIPLE_CHECKBOX"|enum && $feature.variants}
    {foreach from=$feature.variants item="var"} {if $var.selected}
  •  {$feature.prefix} {$var.variant} {$feature.suffix}
  • {/if} {/foreach}
{elseif in_array($feature.feature_type, ["ProductFeatures::TEXT_SELECTBOX"|enum, "ProductFeatures::EXTENDED"|enum, "ProductFeatures::NUMBER_SELECTBOX"|enum])} {foreach from=$feature.variants item="var"} {if $var.selected}{$var.variant}{/if} {/foreach} {elseif $feature.feature_type == "ProductFeatures::NUMBER_FIELD"|enum} {$feature.value_int|floatval|default:"-"} {else} {$feature.value|default:"-"} {/if} {if $feature.suffix && $feature.feature_type != "ProductFeatures::MULTIPLE_CHECKBOX"|enum}{$feature.suffix}{/if} {/strip} {/foreach}
{assign var="r_url" value=""|fn_url} {include file="buttons/continue_shopping.tpl" but_href=$continue_url|fn_url but_role="text"} {include file="buttons/button.tpl" but_text=__("clear_list") but_href="product_features.clear_list?redirect_url=`$r_url`" but_meta="ty-btn__tertiary"}
{if $comparison_data.hidden_features} {include file="common/subheader.tpl" title=__("add_feature")}
{html_checkboxes name="add_features" options=$comparison_data.hidden_features columns="4"}
{include file="buttons/button.tpl" but_text=__("add") but_name="dispatch[product_features.add_feature]"}
{/if} {/if} {capture name="mainbox_title"}{__("compare")}{/capture}