Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hello @wailtwairy ,

    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! ??

    Thread Starter wailtwairy

    (@wailtwairy)

    Hi Yordan
    Yes, I have installed the PDF Invoices & Packing Slips extension and the Arabic currency symbol is working properly
    I appreciate your help and support
    Thank you so much

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @wailtwairy,

    I’m glad to know that it worked!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Arabic currency symbol is not displaying properly’ is closed to new replies.