• Resolved basena

    (@basena)


    Hello.

    I would like to ask if it′s possible to get one additional line “INVOICE TO” above the customer′s details using free version of the plugin.
    Is there some CSS or it′s only possible in PRO version?

    Thank you.

    Bas

    • This topic was modified 2 years ago by basena.
    • This topic was modified 2 years ago by basena.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @basena,

    Could you describe what you want to achieve? And if it’s not too much trouble you can share a screenshot showing EXACTLY where you want it to appear.

    Thread Starter basena

    (@basena)

    Hello. So basicly I would like to add text BILL TO or INVOICE TO above the customer′s details to indicate that it is a customer section.

    INVOICE TO
    Customer name
    Email adress
    Phone number
    Street adress

    Hi @basena,

    You can try this code snippet:

    /**
     * Add label on the invoices before billig addres
     */
    add_action( 'wpo_wcpdf_before_billing_address', 'wpo_wcpdf_add_label', 10, 2 );
    function wpo_wcpdf_add_label( $document_type, $order )
    {
    	if( !empty($order) && $document_type == 'invoice' ) {
    		echo '<h4>INVOICE TO</h4>';
    	}
    }

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Additional line “INVOICE TO” on the invoice’ is closed to new replies.