• Resolved mohammedmalleck

    (@mohammedmalleck)


    I’ll get straight to the point , I want to configure they way states are shown in the pdf (https://postimg.cc/JH5pPc2f)…
    for instance currently it shows AE_ALL but i want to show “United Arab Emirates” … I am basically looking forwards to create an array which will see what the state is ie:. AE_ALL then assign it the correct name to be displayed in the pdf…

    Is there a good way to do this in functions.php ? In the invoice.php file I see this code maybe responsible for the state
    ??<p><?php $this->billing_address(); ?></p>
    I am not sure how to modify this directly …

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mohammedmalleck

    (@mohammedmalleck)

    Update : Although changing the state keys solves this Issue BUT I assume woo-commerce makes state keys all capital and there are some casing issues , so it is not Ideal solution.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @mohammedmalleck,

    Please note that we use the default output coming from WooCommerce. Therefore, if you filter the billing format, e.g. using the woocommerce_localisation_address_formats filter hook, you will see the changes reflected in the PDF documents.

    See: Changing the address format

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