Multilanguage PDF Invoice Example

If you want to create different invoices for users from different billing countries – just add billing_country or not_billing_country parameters to any shortcode. E.g. to create three different invoices – one for customers from France and Belgium, another for customers from Germany, and third one for customers from the rest of the world, you should create template similar to this:

<h1>
[wcj_text billing_country="FR,BE"]Facture[/wcj_text]
[wcj_text billing_country="DE"]Rechnung[/wcj_text]
[wcj_text not_billing_country="FR,BE,DE"]Invoice[/wcj_text]
</h1>
<p>
<table class="pdf_invoice_heading_table">
<tbody>
	<tr><td>
	[wcj_order_number billing_country="FR,BE" before="Numéro de commande: "]
	[wcj_order_number billing_country="DE" before="Bestellnummer: "]
	[wcj_order_number not_billing_country="FR,BE,DE" before="Order number: "]
	</td></tr>
</tbody>
</table>
</p>
<p>
[wcj_order_items_table table_class="pdf_invoice_items_table" billing_country="FR,BE"
	columns="item_number|item_name|item_quantity|line_total_tax_excl"
	columns_titles="|Produit|Quantité|Total"
	columns_styles="width:5%;|width:75%;|width:5%;|width:15%;text-align:right;"]
[wcj_order_items_table table_class="pdf_invoice_items_table" billing_country="DE"
	columns="item_number|item_name|item_quantity|line_total_tax_excl"
	columns_titles="|Produkt|Menge|Gesamt"
	columns_styles="width:5%;|width:75%;|width:5%;|width:15%;text-align:right;"]
[wcj_order_items_table table_class="pdf_invoice_items_table" not_billing_country="FR,BE,DE"
	columns="item_number|item_name|item_quantity|line_total_tax_excl"
	columns_titles="|Product|Qty|Total"
	columns_styles="width:5%;|width:75%;|width:5%;|width:15%;text-align:right;"]
</p>