In Notifications, sended to users after successfull checkout, we can display affiliate bonus from plugin Flexdiscount.
Let's see notification "Order was placed (Customer)". Go to page
Shop - Marketing - Notifications - Order was placed (Customer)
1) Find construction:
{if $add_affiliate_bonus}
BEFORE construction add code:
{if class_exists('shopFlexdiscountPluginHelper') && shopFlexdiscountPlugin::isEnabled()} {$add_affiliate_bonus = shopFlexdiscountPluginHelper::calculateBonus($add_affiliate_bonus, $order)} {/if}