{* supreme 1.7.3 *}

[`Affiliate program`]

{$balance = round($customer.affiliate_bonus, 2)|wa_format_number:false} {if $customer.affiliate_bonus >= 0}{$balance = '+'|cat:$balance}{/if}

{sprintf('[`Your current affiliate bonus: %s`]', $balance)}

{$_aff_plugins_active = 0} {if empty($theme_settings.debug_disable_shop_frontend_my_affiliate) && empty($theme_settings.debug_disable_shop_all) && empty($theme_settings.debug_disable_all_hooks)} {* @event frontend_my_affiliate.%plugin_id% *} {foreach $frontend_my_affiliate as $_}{$_}{$_aff_plugins_active = 1}{/foreach} {/if} {if $_aff_plugins_active}

[`Bonus activity log`]

{/if} {if !empty($affiliate_history)} {foreach $affiliate_history as $h} {/foreach} {else} {/if}
[`Credit`] [`Debit`] [`Balance`]
{$h.create_datetime|wa_date:'humandatetime'} {if $h.order_id && !empty($h.order_url)} [`Order`] {$wa->shop->orderId($h.order_id)} {if $h.comment}
{/if} {/if} {if $h.comment} {$h.comment|escape} {/if}
{if $h.amount > 0} {round($h.amount,2)|wa_format_number:false} {/if} {if $h.amount < 0} {round(abs($h.amount),2)|wa_format_number:false} {/if} {round($h.balance,2)|wa_format_number:false}
[`You have no affiliate history yet.`]
{$wa->globals('isMyAccount', true)}