LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » WordPress / WordPress ECommerce » How To Add Pakistani Currency- (PKR/Rs) In WooCommerce Plugin?

How To Add Pakistani Currency- (PKR/Rs) In WooCommerce Plugin?

Add-Pakistani-Currency-PKR-Rs-In-WooCommerce-Plugin
Many are running there ECommerce site with WordPress and WooCommerce but for Pakistan, there is no officially added current in WooCommerce plugin to vie in Cart and prices to sum up. But there are many sellers that are doing business only in Pakistan.

So for them, they want to add Pakistani currency so that there customers can easily see that how much they are going to pay and what is the rate so its important if you have your business in Pakistan only to get more customers.

So now by adding a simple filter shared by WooCommerce staff will add Pakistan Currency Rs in your Currency option setting of WooCommerce plugin. So now add this filet and set your Pakistani currency there easily.

Features:

1.) Theme Function(function.php) file code.
2.) Not to edit any WordPress core file.
3.) Not to edit any WooCommerce Plugin core file.
4.) PKR currency in Rs will be added.
5.) Easy To Add.

Add Pakistani Currency- (PKR/Rs) In WooCommerce Plugin:

Step 1:) Copy the below code and Paste in in your Theme Function(function.php) file.

/* ------------------------------------------------------------------------- *
 * Add Pakistani Currency- (PKR/Rs) In WooCommerce Plugin
/* ------------------------------------------------------------------------- */
add_filter( 'woocommerce_currencies', 'add_custom_currency' );
function add_custom_currency( $currencies ) {
  $currencies["PKR"] = 'Pakistani Rupee';
  return $currencies;
}

add_filter('woocommerce_currency_symbol', 'add_custom_currency_symbol', 10, 2);
function add_custom_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {
  case 'PKR': $currency_symbol = 'Rs.'; break;
}
return $currency_symbol;
}

Step 2:) Save and you are done.

Recommended For You:
Keyword Research Best Practices For SEO That Delivers

How-To-Add-Pakistani-Currency-PKR-Rs-In-WooCommerce-Plugin

Customization:

1.) You do not have to change anything in it.

Theme Files Editing Warning:

Keep in mind that every code that you will add in your themes files will be removed when you will change the theme. So after changing your theme, you have to follow this article again and you will get everything back same as it is now.

Last Words:

This is what we have and shared in easy steps for newbies so that they can easily know how it works. Stay with us because we are going to share a whole guide step by step about WordPress and make it easy for you. If you liked it then share it and be with us to get next tutorial. If you have any problem then feel free to ask us. We will help you with what we can or have.

You Like It, Please Share This Recipe With Your Friends Using...

2 Responses to “How To Add Pakistani Currency- (PKR/Rs) In WooCommerce Plugin?”

  1. crash says:

    where tf is step 2??

Leave a Reply

Your email address will not be published. Required fields are marked *