Support » Plugin: WooCommerce Print Invoice & Delivery Note » How to show only customer’s name

  • Resolved tom89

    (@tom89)


    Hi. I am glad to see your good plugin.
    Now, I want to show only customer’s name in Billing Address.
    How can I do it?
    I think I should change something in woocommerce-delivery-notes/templates/print-order/print-content.php,especially this “<h3><?php _e( ‘Billing Addres’, ‘woocommerce-delivery-notes’ ); ?></h3>”
    But I have no idea how I should do.
    Please advice to me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • komal-maru

    (@komal-maru)

    Hi @tom89,

    Yes, you are correct that the custom changes can be done in the mentioned file which is ‘print-content.php’. But alternatively, you can use the below hook in the functions.php file of the theme which is currently active on your site.

    add_filter( 'wcdn_address_billing', 'wcdn_address_billing_function' ); – This hook provides the billing address which you custom it according to your requirement in the ‘wcdn_address_billing_function’. Then the output will be then listed on the print invoice.

    Regards,
    Komal Maru

    tom89

    (@tom89)

    Thanks a lot. I could change the appearance!

    Hi @tom89,

    You are welcome. 🙂

    I am glad to know that the provided information helped you to achieve your requirement. Please let me know if you have any further queries.

    Regards,
    Komal Maru

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.