Hello @wpjoey,
You can fix this issue in two ways:
1. Adding this code snippet to your site in order to display the three-letter currency code:
add_action( 'wpo_wcpdf_before_html', function ( $document_type, $document ) {
add_filter( 'woocommerce_currency_symbol','wpo_wcpdf_currency_symbol_text', 999, 2);
}, 10, 2 );
add_action( 'wpo_wcpdf_after_html', function ( $document_type, $document ) {
remove_filter( 'woocommerce_currency_symbol','wpo_wcpdf_currency_symbol_text', 999, 2);
}, 10, 2 );
function wpo_wcpdf_currency_symbol_text( $currency_symbol, $currency ) {
if ( $currency == 'AED' ) {
$currency_symbol = $currency;
}
return $currency_symbol;
}
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
2. Install a PDF Invoices & Packing Slips extension that not only supports currencies, but all Arabic characters
By default, we use the dompdf engine, which is not RTL-compatible. This extension replaces it with mpdf which adds support for right-to-left writing. So, in addition to seeing the currency, you’ll also be able to see addresses and other data in Arabic that your customers type in. Even better, don’t you think?
Here it is: WooCommerce PDF Invoices & Packing Slips + mPDF. To get this extension working, you just install and activate it as you would any other plugin.
Let me know if it works! ??