• Resolved JeanP

    (@jeanp)


    Hi there,

    Is it possible to use two different templates with your plugin? One template for the invoice and one template for the delivery note?

    I currently use one template in my child theme but the invoice and delivery note look the same.

    Hope you can help me out with this.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Upendra Kapse

    (@wpupen)

    Hi Jean,

    Yes, right now we have the same template for both invoice and the delivery note.

    But if you want to customize the look of either Invoice or delivery note they both have a unique class i.e. .invoice and .delivery-note that you can use and customize the look of both invoice and delivery note using CSS.

    Kind Regards,
    Upendra.

    @jeanp Hoping this might be useful for others who are reading the thread:

    Currently the only way we have to customise the template is to copy the file templates/print-order/print-content.php to our theme directory /woocommerce/print-order.

    And within the template, we could use the following to determine which action has been called and then customise the output accordingly:

    if ( wcdn_get_template_type() === ‘invoice’ ) {
    //our customised output
    }

    if ( wcdn_get_template_type() === ‘delivery-note’ ) {
    //our customised output
    }

    if ( wcdn_get_template_type() === ‘receipt’ ) {
    //our customised output
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Seperate template for delivery note and invoice’ is closed to new replies.