• Resolved tibeau

    (@tibeau)


    (1) How can I add empty lines between the end of the address (cpost – city – country) and the VAT number on the PDF invoice ?
    (2) Ho can I change the label on the invoice “VAT #” to “Numéro de TVA ” on the checkout ?

    Thank you beforehand for a prompt feedback.
    B rgds
    Thierry

Viewing 1 replies (of 1 total)
  • Plugin Author Diego

    (@daigo75)

    1. Customisation of billing address
    The VAT number is appended to the billing address using the following filters:
    – woocommerce_order_formatted_billing_address
    – woocommerce_formatted_address_replacements
    – woocommerce_localisation_address_formats

    If you need to add empty lines before the VAT number, you should probably write a filter for woocommerce_localisation_address_formats. In your filter, you should look for the {vat_number} placeholder and add some “line feed” before it (each line feed adds an empty line).

    You can see how the EU VAT Assistant alters the address in file plugin-main.php, function woocommerce_localisation_address_formats().

    Alternatively, if the PDF Invoices plugin you use wraps the lines of the billing address in separate elements, you could simply alter the styles used for the invoice, so that the “VAT Number” element has a wider top margin. You should contact the developers of the PDF Invoices plugin to check if this is possible.

    2. Translation of “VAT Number”
    The “VAT Number” label is passed to the standard translation functions provided by WordPress. You can simply create your own .PO/.MO files, and add your custom text in it. A plugin like Loco Translate might help, it will make it easier to find the text and translate it.

    • This reply was modified 8 years ago by Diego.
    • This reply was modified 8 years ago by Diego.
Viewing 1 replies (of 1 total)
  • The topic ‘VAT number placement on the pdf invoice’ is closed to new replies.