Conditionally add a line to invoice
-
Hello! A customer of mine needs to print a legal disclaimer on the invoices where client was eligible for VIES tax exemption (something like “no taxes were applied because of x law”).
What I think I need to do is to check, in our custom template (ips pro user), if tax total is 0 and, if so, print that disclaimer.What I could figure out is this:
if ( count( $order->get_tax_totals() ) === 0 ) {
echo ‘<br>’ . __( ‘LEGAL NOTE HERE’ );
return true;
}which appears to work, but I don’t know if there is a different/more correct way to do this. Any suggestion?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conditionally add a line to invoice’ is closed to new replies.