How to Change and Customize Currency Symbol in Woocommerce WordPress Store
HTML-код
- Опубликовано: 26 авг 2024
- The following are the codes mentioned in the video for reference:
========
/**
* Change a currency symbol
*/
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case 'SGD': $currency_symbol = 'SGD$'; break;
}
return $currency_symbol;
}
========
More useful tutorials:
============================
Install WordPress on Cloudways (fast & powerful hosting) - • How to install WordPre...
Install WordPress on your PC or Mac - • How To Install WordPre...
Detect WordPress security issues - • How to Detect WordPres...
Learn WordPress 2024 theme for Beginners - • WordPress 6.4 Theme fo...
Other references:
============================
For WordPress maintenance services - webbuddy.sg/pr...