{* * This template is included in ReportSales.html as a subtemplate, * as well as used separately to load additional rows via XHR. *} {foreach $table_data as $row} {strip} {$abt_rows = []} {foreach $abtest_variants as $v}{if isset($v.data[ifset($row.orig_name, $row.name)])} {$abt_rows[$v.name] = $v.data[ifset($row.orig_name, $row.name)]} {/if}{/foreach} {/strip} {$chart_num = min($row@index, $max_n_graphs)} {strip} {if !empty($details_graph_data)} {/if} {if !empty($row.icon_class)} {/if} {if !isset($filter.name)} {$row.name|escape} {else} {$row.name|escape} {/if} {/strip} {$row.order_count} {foreach $abt_rows as $abt_variant_name => $abt_row}
{$abt_variant_name|escape}: {$abt_row.order_count} {/foreach} {wa_currency($row.sales, $def_cur, '%2{h}')} {foreach $abt_rows as $abt_variant_name => $abt_row}
{$abt_variant_name|escape}: {wa_currency($abt_row.sales, $def_cur, '%2{h}')} {/foreach} {if $row.order_count > 0}{wa_currency($row.sales/$row.order_count, $def_cur, '%2{h}')}{else}{/if} {foreach $abt_rows as $abt_variant_name => $abt_row}
{$abt_variant_name|escape}: {if $abt_row.order_count > 0}{wa_currency($abt_row.sales/$abt_row.order_count, $def_cur, '%2{h}')}{else}{/if} {/foreach} {wa_currency($row.profit, $def_cur, '%2{h}')} {foreach $abt_rows as $abt_variant_name => $abt_row}
{$abt_variant_name|escape}: {wa_currency($abt_row.profit, $def_cur, '%2{h}')} {/foreach} {if $roi_enabled}
{if $row.cost}{wa_currency($row.cost, $def_cur, '%2{h}')}{else}{/if} {if $row.cost}{round($row.roi)}%{else}{/if} {if $row.cost && !empty($row.lifetime_roi)}{$row.lifetime_roi}%{else}{/if} {/if} {/foreach}