I'm Albanian and our Currency is Lek with the symbol L is not listet on the woo commerce. I have this filter that I used with my previous theme and worked fine but I dont know where to put it on my woo cart theme the filter is
add_filter( 'woocommerce_currencies', 'add_my_currency' );
function add_my_currency( $currencies ) {
$currencies['ABC'] = __( 'Albanian Lek', 'woocommerce' );
return $currencies;
}
add_filter('woocommerce_currency_symbol', 'add_my_currency_symbol', 10, 2);
function add_my_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'ABC': $currency_symbol = 'L'; break;
}
return $currency_symbol;
}
Thank you