Simple way to change your current currency symbol in woocommerce code. Use below code in the function.php file to change symbol befor the actual values of price.
add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
case ‘EUR’: $currency_symbol = ‘EUR ‘; break;
case ‘USD’: $currency_symbol = ‘USD ‘; break;
case ‘AUD’: $currency_symbol = ‘AUD ‘; break;
}
return $currency_symbol;
}
You must be logged in to post a comment.
Make an Enquiry
Categories
- Algorithm Update
- Articles Submission
- Canonicalization urls
- Dedicated Web Server
- Digital Marketing
- Frameworks
- Google Adsense
- Google Webmaster
- HTML
- Industrial Training projects for MCA/Engineering
- internet Marketing
- Job Openings
- Joomla Development
- MCA Live Projects
- MLM Software
- Newspaper Theme 8.5
- Notices
- Others
- Pay Per Click Advertising
- Paypal Integration
- PHP Development
- PHP MySQL
- PHP Professional Training
- Related Posts
- Search Engine Optimization
- Social Bookmarking
- Social Media Marketing
- Software Testing
- W3cValidation
- Wordpress

