• Resolved airtite

    (@airtite)


    Hi. Thanks for the great plugin.

    Is there a way to get the three letter currency code (i.e. EUR) that the order was placed in in a template?

    Thanks.

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

    (@yordansoares)

    Hello @airtite,

    Try adding this code snippet to your site:

    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 ) {	
    		$currency_symbol = $currency;
    	return $currency_symbol;
    }

    Let me know if it worked ??

Viewing 1 replies (of 1 total)
  • The topic ‘Order currency code’ is closed to new replies.