Extra Fee – Print
-
Hey @lawrenceowen,
I’m trying to include the extra fee (Tips) to print in a separate row as i’m trying to do below. I’ve had this issue since the beginning when I started using the plugin. This is also related to the sub-total printing together with the extra fee. In the woocommerce order email. it’s all separated. But in the receipt. I’m not sure how to print it. Your help is much appreciated.
$formatted_overall_subtotal = number_format($order_meta[‘_order_tax’][0], 2, ‘.’, ”) / 0.13;
$printer->add_text_line(“SUBTOTAL “.star_cloudprnt_get_codepage_currency_symbol().number_format($formatted_overall_subtotal, 2, ‘.’, ”));
$formatted_tip = number_format($order_meta[‘_fees’][0], 2, ‘.’, ”);
$printer->add_text_line(“TIP “.star_cloudprnt_get_codepage_currency_symbol().$formatted_tip);
$formatted_overall_total_taxes = number_format($order_meta[‘_order_tax’][0], 2, ‘.’, ”);
$printer->add_text_line(“HST “.star_cloudprnt_get_codepage_currency_symbol().$formatted_overall_total_taxes);
$formatted_overall_total_price = number_format($order_meta[‘_order_total’][0], 2, ‘.’, ”);
$printer->add_text_line(“TOTAL “.star_cloudprnt_get_codepage_currency_symbol().$formatted_overall_total_price);
$printer->set_text_left_align();
- The topic ‘Extra Fee – Print’ is closed to new replies.