1. I want to add some additional description to the cart item at the time of adding it to invoice through programming interface. This description will be specific to the invoice. Description in item except is shown on all invoices.
2. I am creating invoice against my bookings ( my custom post type). I want to add the booking reference to the invoice. May be close to invoice number.
I am using public notes right now. But these notes are visible only in the email body. They are not shown on pdf/web version of invoice.
Currently, there is no way of adding a custom description for each item in the invoice. Here is an array of allowed arguments.
'quantity' => 1,
'id' => false, // Required
'name' => '', // Defaults to the item's name but can be used to specify a different name
'custom_price' => '',
'discount' => 0,
'tax' => 0.00,
'meta' => array(),
'fees' => array()
The only way to accomplish what you are trying is by specifying your custom description in the item’s meta. You can then hook into the
and replace the item’s excerpt with your custom description.
To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on Core Plugin support and click on the "New Post" Button.