{capture name="shop_information_block_content"} {loop name="amp_seller_link_admin" type="amp_seller_link_admin" admin_id={admin attr="id"}}

{count type="ampseller_product" visible="*" amp_seller_id=$SELLER_ID backend_context="1"}

{intl l="Products" d='hookadminhome.bo.default'}

{count type="ampseller_product" visible="true" amp_seller_id=$SELLER_ID backend_context="1"}

{intl l="Online products" d='hookadminhome.bo.default'}

{count type="ampseller_product" visible="false" amp_seller_id=$SELLER_ID backend_context="1"}

{intl l="Offline products" d='hookadminhome.bo.default'}

{count type="ampseller_order" amp_seller_id=$SELLER_ID backend_context="1"}

{intl l="Orders" d='hookadminhome.bo.default'}

{/loop} {/capture} {if trim($smarty.capture.shop_information_block_content) ne ""}
{$smarty.capture.shop_information_block_content nofilter}
{/if} {capture name="sell_information_block_content"} {loop name="amp_seller_link_admin" type="amp_seller_link_admin" admin_id={admin attr="id"}}

{intl l="Today" d='hookadminhome.bo.default'}

{assign "todayOverallSales" 0} {loop type="ampseller_order" name="order-todayOverallSales" amp_seller_id="$SELLER_ID" interval_creation_order="today"} {assign "todayOverallSales" $todayOverallSales+$TOTAL_TAXED_AMOUNT_POSTAGE} {assign "todayOverallSalesCounter" $todayOverallSalesCounter+1} {/loop} {assign "todayOverallSalesExcludingShipping" 0} {assign "todayOverallSalesExcludingShippingCounter" 0} {loop type="ampseller_order" name="order-todayOverallSalesExcludingShipping" amp_seller_id=$SELLER_ID interval_creation_order="today"} {assign "todayOverallSalesExcludingShipping" $todayOverallSalesExcludingShipping+$TOTAL_TAXED_AMOUNT} {assign "todayOverallSalesExcludingShippingCounter" $todayOverallSalesExcludingShippingCounter+1} {/loop} {assign "yesterdayOverallSales" 0} {loop type="ampseller_order" name="order-yesterdayOverallSales" amp_seller_id="$SELLER_ID" interval_creation_order="yesterday"} {assign "yesterdayOverallSales" $yesterdayOverallSales+$TOTAL_TAXED_AMOUNT} {/loop}
{intl l="Overall sales" d='hookadminhome.bo.default'}{format_money number=$todayOverallSales symbol=$defaultCurrency}
{intl l="Sales excluding shipping" d='hookadminhome.bo.default'}{format_money number=$todayOverallSalesExcludingShipping symbol=$defaultCurrency}
{intl l="Yesterday sales" d='hookadminhome.bo.default'}{format_money number=$yesterdayOverallSales symbol=$defaultCurrency}
{intl l="Orders" d='hookadminhome.bo.default'} {count type="ampseller_order" amp_seller_id="$SELLER_ID" interval_creation_order="today"}
{intl l="Average cart" d='hookadminhome.bo.default'} {if $todayOverallSalesExcludingShippingCounter == 0} {format_money number=0 symbol=$defaultCurrency} {else} {format_money number={($todayOverallSalesExcludingShipping/$todayOverallSalesExcludingShippingCounter)|round:"2"} symbol=$defaultCurrency} {/if}

{intl l="This month" d='hookadminhome.bo.default'}

{assign "thisMonthOverallSales" 0} {loop type="ampseller_order" name="order-thisMonthOverallSales" amp_seller_id="$SELLER_ID" interval_creation_order="this_month"} {assign "thisMonthOverallSales" $thisMonthOverallSales+$TOTAL_TAXED_AMOUNT_POSTAGE} {/loop} {assign "thisMonthOverallSalesExcludingShipping" 0} {assign "thisMonthOverallSalesExcludingShippingCounter" 0} {loop type="ampseller_order" name="order-thisMonthOverallSalesExcludingShipping" amp_seller_id=$SELLER_ID interval_creation_order="this_month"} {assign "thisMonthOverallSalesExcludingShipping" $thisMonthOverallSalesExcludingShipping+$TOTAL_TAXED_AMOUNT} {assign "thisMonthOverallSalesExcludingShippingCounter" $thisMonthOverallSalesExcludingShippingCounter+1} {/loop} {assign "previousMonthOverallSalesExcludingShipping" 0} {loop type="ampseller_order" name="order-previousMonthOverallSalesExcludingShipping" amp_seller_id=$SELLER_ID interval_creation_order="previous_month"} {assign "previousMonthOverallSalesExcludingShipping" $previousMonthOverallSalesExcludingShipping+$TOTAL_TAXED_AMOUNT} {/loop}
{intl l="Overall sales" d='hookadminhome.bo.default'}{format_money number=$thisMonthOverallSales symbol=$defaultCurrency}
{intl l="Sales excluding shipping" d='hookadminhome.bo.default'}{format_money number=$thisMonthOverallSalesExcludingShipping symbol=$defaultCurrency}
{intl l="Previous month sales" d='hookadminhome.bo.default'}{format_money number=$previousMonthOverallSalesExcludingShipping symbol=$defaultCurrency}
{intl l="Orders" d='hookadminhome.bo.default'} {count type="ampseller_order" amp_seller_id="$SELLER_ID" interval_creation_order="this_month"}
{intl l="Average cart" d='hookadminhome.bo.default'} {if $thisMonthOverallSalesExcludingShippingCounter == 0} {format_money number=0 symbol=$defaultCurrency} {else} {format_money number={($thisMonthOverallSalesExcludingShipping/$thisMonthOverallSalesExcludingShippingCounter)|round:"2"} symbol=$defaultCurrency} {/if}

{intl l="This year" d='hookadminhome.bo.default'}

{assign "thisYearOverallSales" 0} {loop type="ampseller_order" name="order-thisYearOverallSales" amp_seller_id="$SELLER_ID" interval_creation_order="this_year"} {assign "thisYearOverallSales" $thisYearOverallSales+$TOTAL_TAXED_AMOUNT_POSTAGE} {/loop} {assign "thisYearOverallSalesExcludingShipping" 0} {assign "thisYearOverallSalesExcludingShippingCounter" 0} {loop type="ampseller_order" name="order-thisYearOverallSalesExcludingShipping" amp_seller_id=$SELLER_ID interval_creation_order="this_year"} {assign "thisYearOverallSalesExcludingShipping" $thisYearOverallSalesExcludingShipping+$TOTAL_TAXED_AMOUNT} {assign "thisYearOverallSalesExcludingShippingCounter" $thisYearOverallSalesExcludingShippingCounter+1} {/loop} {assign "previousYearOverallSalesExcludingShipping" 0} {loop type="ampseller_order" name="order-previousMonthOverallSalesExcludingShipping" amp_seller_id=$SELLER_ID interval_creation_order="previous_year"} {assign "previousYearOverallSalesExcludingShipping" $previousYearOverallSalesExcludingShipping+$TOTAL_TAXED_AMOUNT} {/loop}
{intl l="Overall sales" d='hookadminhome.bo.default'}{format_money number=$thisMonthOverallSales symbol=$defaultCurrency}
{intl l="Sales excluding shipping" d='hookadminhome.bo.default'}{format_money number=$thisYearOverallSalesExcludingShipping symbol=$defaultCurrency}
{intl l="Previous year sales" d='hookadminhome.bo.default'}{format_money number=$previousYearOverallSalesExcludingShipping symbol=$defaultCurrency}
{intl l="Orders" d='hookadminhome.bo.default'} {count type="ampseller_order" amp_seller_id="$SELLER_ID" interval_creation_order="this_year"}
{intl l="Average cart" d='hookadminhome.bo.default'} {if $thisYearOverallSalesExcludingShippingCounter == 0} {format_money number=0 symbol=$defaultCurrency} {else} {format_money number={($thisYearOverallSalesExcludingShipping/$thisYearOverallSalesExcludingShippingCounter)|round:"2"} symbol=$defaultCurrency} {/if}
{/loop} {/capture} {if trim($smarty.capture.sell_information_block_content) ne ""}
{$smarty.capture.sell_information_block_content nofilter}
{/if}