• Resolved scody

    (@scody)


    How can we display the tax amount for each order item, not necessarily in a new column, just want to display it along with tax rate similar to SKU or weight per item.

    Also is it possible to get ‘regular price’ and ‘sale price’ per item, using $item[‘single_price’] gives the sale price if the item is in sale. In such cases how can we get the regular price of the item.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @scody,

    The easiest way for all these things is using our Premium Templates extension. This will give you access to the customizer that will let you add this data in separate columns.

    If you really want to add this underneath the product title you will have to create a custom template or use the ‘wpo_wcpdf_after_item_meta’ hook.

    add_action ( 'wpo_wcpdf_after_item_meta', 'wpo_wcpdf_after_item_meta', 10, 3);
    function wpo_wcpdf_before_item_meta ( $template_type, $item, $order ) {
    	//Your code goes here...
    }
    • This reply was modified 6 years, 2 months ago by kluver.
    Thread Starter scody

    (@scody)

    Hi @kluver,

    If I had to use ‘wpo_wcpdf_after_item_meta’ hook, how can I access the values of Regular price, Sale price and Tax amount of the order item? Is it possible to get these values like we get the SKU or the Weight of the item using $item[] array element?

    Thanks!

    Plugin Contributor Ewout

    (@pomegranate)

    Yes more details can be found in that same $item array. If you need more help with that, I recommend hiring a developer since we can’t offer that support for the free version (that would defeat the point of having the premium version). I hope you understand!

    Thread Starter scody

    (@scody)

    I understand, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display Tax amount per order item’ is closed to new replies.