• Resolved Swetha B Chandran

    (@swethabc9)


    Hello,

    I’m using the WooCommerce PDF Invoices & Packing Slips plugin to generate invoices. I need to customize the invoice number based on the client’s location. To achieve this, I’m using the wpo_wcpdf_invoice_number filter hook.

    However, I’m facing an issue where I cannot access the order details within this hook, specifically the client’s location. Could you please guide me on how to retrieve the client’s location (e.g., billing country) when using this filter?

    Thank you in advance for your help!

Viewing 1 replies (of 1 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    You can get those details with using the methods from the order object. There’s a guide here that’s pretty good as a reference for the methods.

Viewing 1 replies (of 1 total)

The topic ‘Customizing Invoice Number Based on Client Location’ is closed to new replies.