• Resolved thorin19

    (@thorin19)


    Hi,

    I made my customized template, but can’t find the piece of code to display the price of 1 unit – if I order 3 units, I only get the total for those 3 units, if I use $item['order_price'];.
    Please let mw know, what to use, to get the price of 1 item.

    Is there a list of all the codes available somewhere that I couldn’t find?

    Thanks.

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

    (@pomegranate)

    Hi! That would be $item[‘single_price’].

    If you want more control over this, you need the Premium Templates extension. With this installed, you can set the prices exactly how you need them even display multiple ‘versions’ of the price for each line: including/excluding tax, unit price/total price, before/after discount.
    Amongst many other useful features ??

    Let me know if you have any other questions!

    Ewout

    Thread Starter thorin19

    (@thorin19)

    Hi,

    thank you for your answer. I have bought the WooCommerce PDF Invoices & Packing Slips Professional plugin and it works great.
    Regarding templates, I would also need to display tax total for various tax classes at the end of the proforma invoice, can this be done?
    For example:
    VAT 9%: 5 EUR
    VAT 20%: 7 EUR

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘code for single item price’ is closed to new replies.