Trying to add a new variable to email template (20% down payment for C.O.D.).
There is a {total_paid} variable at src/Adapter/MailTemplate/MailPreviewVariablesBuilder.php:
'{total_paid}' => $this->locale->formatPrice($order->total_paid, $this->context->currency->iso_code)
I added
'{total_paid_20}' => $this->locale->formatPrice($order->total_paid*0.2, $this->context->currency->iso_code)
but it has no effect. In fact if I remove the {total_paid} from this file, it is still showing the correct total in the email.
Where is this {total_paid} variable coming from, or how shall I achieve it, tho have the 20% of the amount in email template?