{if $smarty.const.SESS_LOGGED == false} {$block->display('account:user_login')} {else} {assign var=meth value=':'|explode:$VAR._page} {* Since this page can also be rendered via a checkout plugin, we need to change the $meth.0/1 to be account/user_view *} {assign var=meth value=','|explode:'invoice,user_view'} {if $SESS_LOGGED == '1'} {$method->exe($meth.0,$meth.1)} {if ($method->result == false)} {$block->display('core:method_error')} {else} {include file='file:../core/user_view_pre.tpl'} {if $record.billing_status == '0'} {$block->display('invoice:checkoutoptions')} {/if} {if $record}
{/if} {/if} {else} {$block->display('account:login')} {/if} {$method->exe('invoice','drCustomTracking')} {/if}