Support » Plugin: Star CloudPRNT for WooCommerce » exclude Tax in receipt

  • Hello,

    What strings do I need to add/change in my PHP file if I want the TAX to exclude per item and show as a single total? format was:

    `Product Name 1 :
    Qty.1 x Cost$— $—(Price excluding tax)

    Product Name 2 :
    Qty.1 x Cost$— $—(Price excluding tax)

    TAX:$
    TOTAL: (Price including tax)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @sarsi02

    To get you started, in the file order-handler.php, find the function star_cloudprnt_print_items, and change the following lines:

    $item_total_price = floatval(wc_get_order_item_meta($item_id, "_line_total", true))
        +floatval(wc_get_order_item_meta($item_id, "_line_tax", true));

    to:
    item_total_price = floatval(wc_get_order_item_meta($item_id, “_line_total”, true));

    This will change the item prices to exclude tax. But I expect that you will also want to modify the totals area to show the tax (or taxes) charged too, and maybe other parts need to be modified?

    The plugin currently is primarily designed with kitchen order handling or warehouse order picking in mind, rather than printing a legal receipt, as well as initially focussed on the UK/EU market in which VAT is generally included in all pricing already. We will provide options to change that in the future, but it is likely to be a next year that we make the next release.

    Thread Starter sarsi02

    (@sarsi02)

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘exclude Tax in receipt’ is closed to new replies.