Currency Symbol Error

WCMp PDF Invoice

Currency Symbol Error Open

Viewing 1 reply thread
  • Author
    Posts
    • #79137
      sumanth
      Participant

      In WCMP- PDF Invoices, currency symbol is broken (displays: ?).

      when i tried this code it displays ₱ :

      function wpdocs_dequeue_script() {
         if(class_exists('WCMp') && is_vendor_dashboard()) {
             if(wp_script_is( 'fashstore-pro-common', $list = 'enqueued' )) {
              wp_dequeue_script( 'fashstore-pro-common' );    
             }
         }
      }
      add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 );
      add_filter( 'woocommerce_currency_symbol', 'func_test', 10, 2 );
      function func_test( $currency_symbol, $currency ) {
      $currency_symbol = '<span style="font-family: DejaVu Sans; sans-serif;">₱</span>';
      return $currency_symbol;
      }
      copy

      Help me in fixing that.

    • #79142

      Can you please add this code and check :

      add_filter('woocommerce_currency_symbols', 'woocommerce_currency_symbols');
      function woocommerce_currency_symbols($currency){
         if(isset($currency['INR'])){
             $currency['INR'] = '<span style="font-family: DejaVu Sans;">&#x20b9;</span>';
         }
         return $currency;
      }
      copy
Viewing 1 reply thread

Please LOGIN to reply to this topic

WCMp bundle is available at a slashed price

Grab It Now