WordPress.org

Forums

WooCommerce - excelling eCommerce
Turkish lira currency not found ? (1 post)

  1. Genc Medya
    Member
    Posted 1 year ago #

    Is this your code but does not work without our icon.

    add_filter( 'woocommerce_currencies', 'add_turk_lirasi' );
    
    function add_my_currency( $currencies ) {
         $currencies['ABC'] = __( 'Türk Lirası', 'woocommerce' );
         return $currencies;
    }
    
    add_filter('woocommerce_currency_symbol', 'add_turk_lirasi_symbol', 10, 2);
    
    function add_turk_lirasi_symbol( $currency_symbol, $currency ) {
         switch( $currency ) {
              case 'TL': $currency_symbol = 'tl'; break;
         }
         return $currency_symbol;
    }

    May I have to add the latest version. There are plugins that work here, but the extra load. We have a request to add to the main core WooCommerce.

    http://wordpress.org/plugins/woocommerce-tl-birimi/

    https://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic