Modification Invoice
-
Dear support team,
this is what I’m planing to do:
Include an addional line in invoice.php with rates:
“Payable now: 20 % of Total”
“Payable at ….: 80 % of Total”My approach was something like that:
<?php
$sum = $total[‘value’];
…
– converting in float without currency
– str_replace seems to be unconfortable here
Does any build-in function exist?
…
$rate1 = $sum / 5 ;
$rate2 = $sum / 1.25 ;
…
echo Payable 20 %: $rate1;
echo Payable 20 %: $reate1;
?>
My questions:
Is this the best way to realize this?
If I put “clear” php in invoice.php, all formating is gone.
Do I have to go the way through functions.php?I would appreciate any help and will post the complete code, if it is working.
Thank you,
Elisahttps://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
- The topic ‘Modification Invoice’ is closed to new replies.