I compute sales taxes from TAXNow and I am trying to figure out how to add a line item in the totals for this. It looks like I may need to edit the totals array:
$totals = apply_filters( ‘wcdn_raw_order_totals’, $wcdn->print->get_order()->get_order_item_totals() );
but I tried it with a label and a value using wcdn_get_order_custom_field and the tax field from TAXNow, but with no luck.
Any suggestions on alternative or syntax?
- The topic ‘Insert taxes from TAXNow?’ is closed to new replies.