Replies: 1
function pw_rcp_custom_currency( $currencies ) {
$currencies['IDR'] = 'Indonesian Rupiah (Rp.)';
return $currencies;
}
function ag_rcp_idr_currency_filter_before($formatted_price, $currency_code, $price) {
return 'Rp'. ' '.$price;
}
function ag_rcp_idr_currency_filter_after($formatted_price, $currency_code, $price) {
return $price.' '.'IDR';
}
add_filter( 'rcp_currencies', 'pw_rcp_custom_currency' );
add_filter( 'rcp_idr_currency_filter_after', 'ag_rcp_idr_currency_filter_after', 10, 3 );
add_filter( 'rcp_idr_currency_filter_before', 'ag_rcp_idr_currency_filter_before', 10, 3 );
I have pasted the code above in (functions.php) and it worked.
But that’s not true,How to change Rp 100000 to Rp 100.000