Powered by Blogger.

Responsive Ad Slot

Fiksioner Free Blogger Theme Download

Theme Layout

Theme Translation

Trending Posts Display

Home Layout Display

Posts Title Display

404

We Are Sorry, Page Not Found

Home Page


You can use any kind of custom currency symbol for WooCommerce on your WordPress website. You can even use your short from of your Currency Name instead of Symbol if you want. This process is very straightforward and you can do it within a short time by following these instructions.

Below I am going to present how to do Currency Name TK / BDT instead of Symbol of Bangladeshi TAKA (). Similarly, you can change the currency symbol of any country from this currency list. Even, you can use (USD) instead of $ symbol.

WAY 1: Let's add the Custom Currency Symbol for WooCommerce

Basically to change the custom currency symbol for WooCommerce you need to add some lines of code to the functions.php file in the folder of your current Wordpress Theme. Or add the following lines of code at the end of the functions.php file of your theme's child theme and save the file.

add_filter( 'woocommerce_currencies', 'add_cw_currency' );
function add_cw_currency( $cw_currency ) {
     $cw_currency['BDT'] = __( 'Bangladeshi Taka', 'woocommerce' );
     return $cw_currency;
}
add_filter('woocommerce_currency_symbol', 'add_cw_currency_symbol', 10, 2);
function add_cw_currency_symbol( $custom_currency_symbol, $custom_currency ) {
     switch( $custom_currency ) {
         case 'BDT': $custom_currency_symbol = 'TK '; break;
     }
     return $custom_currency_symbol;
}

Careful in this regard:
Before making any changes, make a duplicate file of the functions.php file, so that you can replace the duplicate file if you make a mistake in adding the code.

WAY 2: Add the Code Using a Plugin

Instead of the manual process above, let's try to add the following line of code using the plugin:

Step 1:  Go to your WordPress Dashboard > Plugins > Add New
Step 2:  Find the "My Custom Functions" plugin to install and activate.
Step 3:  Then click on the plugin settings shown in the image below, which can be seen here  Dashboard Plugins >


Step 4: Now paste the above-mentioned lines of code like the picture below and turn the green button "ON" and press the "Save Change" button.


Step 5: Now, go to the Dashboard of the WordPress website, navigate to the > WooCommerce tab and click on > Settings.


Step 6:
 After scrolling a bit on this WooCommerce settings page, you will see Currency Options, where you will see your newly added custom currency symbol for WooCommerce, which you will select and "Save Change" the new settings.


Step 7: Then visit the shop page and enjoy the changes.

If you go wrong:

Go to your web hosting > File Manager and navigate wp-content > plugins > and rename "my-custom-functions" folder to any name. 


Then go to your Wordpress Dashboard > Plugins again and delete this plugin.

Upon completion,

Hopefully, the Custom Currency Symbol for WooCommerce has been successful. However, if you want to know more details please visit this page of WooCommerce Website or comment below. Thanks for hangout with us today.
Leave A Reply
  1. Thank you for sharing useful information with us. please keep sharing like this. And if you are searching a unique and Top University in India, Colleges discovery platform, which connects students or working professionals with Universities/colleges, at the same time offering information about colleges, courses, entrance exam details, admission notifications, scholarships, and all related topics. Please visit below links:

    Amity University in Mumbai

    Parul University in Vadodara

    Babu Banarasi Das University in Lucknow

    GD Goenka University in Gurugram

    The NorthCap University in Gurugram

    ReplyDelete

Are you the kind of entrepreneur who takes action?

Subscribe Our Newsletter