title: Get Woocommerce currency symbol from order in YITH invoice plugin
body: <p>Our WooCommerce site has 2 currencies. The primary currency is the Indian <strong>rupee</strong> and the secondary currency is <strong>USD</strong> (using currency switcher). I tried placing an order in USD but the YITH invoice shows the primary Indian rupee symbol in the invoice.</p>
  
  <p>I have tried changing to all sorts of currency switcher plugins available but the symbol won't change in the invoice, it simply takes the default currency symbol.</p>
  
  <p>I even tried adding 'get_woocommerce_currency_symbol()' to currency arg array to the YITH function. I Need help. The plugin used is YITH Invoice ver: 1.3.11.</p>
  
  <pre><code>function yith_get_formatted_price ( $price, $args = array () ) {
      extract ( apply_filters ( 'wc_price_args', wp_parse_args ( $args, array (
          'ex_tax_label'       =&gt; false,
          'currency'           =&gt; get_woocommerce_currency_symbol (),
          'decimal_separator'  =&gt; wc_get_price_decimal_separator (),
          'thousand_separator' =&gt; wc_get_price_thousand_separator (),
          'decimals'           =&gt; wc_get_price_decimals (),
          'price_format'       =&gt; get_woocommerce_price_format (),
      ) ) ) );
  
      $negative = $price &lt; 0;
      $price    = apply_filters ( 'raw_woocommerce_price', floatval ( $negative ? $price * - 1 : $price ) );
      $price    = apply_filters ( 'formatted_woocommerce_price', number_format ( $price, $decimals, $decimal_separator, $thousand_separator ), $price, $decimals, $decimal_separator, $thousand_separator );
  
      if ( apply_filters ( 'woocommerce_price_trim_zeros', false ) &amp;&amp; $decimals &gt; 0 ) {
          $price = wc_trim_zeros ( $price );
      }
  
      $formatted_price = ( $negative ? '-' : '' ) . sprintf ( $price_format, get_woocommerce_currency_symbol ( $currency ), $price );
      $return          = $formatted_price;
  
      return apply_filters ( 'wc_price', $return, $price, $args );
  }
  </code></pre>