WordPress Tips - How to show Indian or others currencies in AWPCP – Classifieds Plugin?


The ANOTHER WORDPRESS CLASSIFIEDS PLUGIN (AWPCP – Classifieds Plugin) is a great plug-in to work on a classified site. But it supports only a few Currencies (based on currencies supported by Paypal). If you are running a free ad post site, then you might not need payment gateway integration. If you want to replace the default dollar $ currency and show Indian or other currencies, then following the steps below.


Here is a working solution to remove the ‘$’ sign that shows up by default if USD is selected in your setup page. And in my case, the Indian Rupee currency is not in the list to select. So here is how to add one on your own.

  • Navigate to the location “…\site\wp-content\plugins\another-wordpress-classifieds-plugin\classes”.
  • Open the “settings-api.php” file in the location above in a Notepad/Notepad++ or any other text editor.
At line number 810, you will see something like this:
$currency_codes = array('AUD','BRL','CAD','CZK','DKK','EUR',
                                'HKD','HUF','ILS','JPY','MYR','MXN',
                                'NOK','NZD','PHP','PLN','GBP','SGD',
                                'SEK','CHF','TWD','THB',’USD’);
  • Replace USD with INR. OR you can add ‘INR’ at the end to make it look like this.
$currency_codes = array('AUD','BRL','CAD','CZK','DKK','EUR',
                                'HKD','HUF','ILS','JPY','MYR','MXN',
                                'NOK','NZD','PHP','PLN','GBP','SGD',
                                'SEK','CHF','TWD','THB',’USD’, ‘INR’);
another-wordpress-classified-plugin-currency-inr
  • Press CTRL+F and find ‘USD’ in other locations in the same file and replace with INR.
  • After you have made the changes, save the file.
  • Now go to WordPress Dashboard > Classifields > Settings > Payment > And change USD to INR in the ‘AWPCP Payment Settings‘ page and save changes.
Now the price field should show like this: Price: INR3,000.00
Try this and let me know if it works for you.

[Note that updating the plugin will replace the files. So editing the file again after each plugin update may be required].

 

Comment with Facebook

1 comment:

  1. Create your own classified website on this New Year 2014 and get 50% discount

    Buy complete Classified website in just Rs.1500 ($30USD) along with .com .in domain, space and classified
    Earn Money From Google Adsense Account - Buy Now

    !!!Hurry offer valid till 10-January-2014!!!

    To see classified website Demo visit http://scripts.m11.in/classified

    for more details contact: +91-8303213884 or info@m11.in

    ReplyDelete