try adding smthn like this in your functions.php
add_action( 'after_setup_theme', 'enable_thumbs' );
function enable_thumbs() {
add_theme_support( 'post-thumbnails', array( 'post', 'custom_post_type', 'another_custom_post_type', 'one_more_cpt' ) );
}
Thread Starter
eria86
(@eria86)
Thanks, this corrected the calculations a bit but I think there is a mistake in the $order_subtotal_excl_tax. Now invoice looks like this:
Unit price 77
VAT 10% 7,70
Grand Total 123
Unit price should be 100 as this is my net price set in woocommerce, it is displayed correctly in the invoice only after I change line (230) from
$item_unit_price_excl_tax = $item_unit_price_incl_tax - $item_tax;
to this
$item_unit_price_excl_tax = $item_unit_price_incl_tax;
Thread Starter
eria86
(@eria86)
If the calculations are right please tell how to include them right on the pdf invoice. I set 23% VAT in WooCommerce and 10% VAT in WooCommerce PDF Invoices. Net price of the product is 100.
And here’s what is generated in the pdf:
Unit price 77
VAT 10% 11,18
Grand Total 123