Hi
We have purchased a SocialEngine PHP package and we need other currencies than those available in Social Engine. Most of the currencies in provided are not even used in our website at all. Currently, there are no Iranian Rial or Iranian Toman (two currencies used in Iran) in the list.
Will you please add these two currencies to SocialEngine or can you guide me how I can modify SocialEngine PHP's code to add these two currencies by myself?
Are those both supported by Paypal or 2Checkout? I ask because from what I recall (and I could be wrong) the list is from the supported currencies of both of those.
SEAO offers this --> https://www.socialengineaddons.com/socialengine-multi-currency-currency-switcher-plugin
You may have to contact them to find out about those specific currencies since their ADMIN Demo doesn't include this Plugin, and the description page doesn't list supported currencies.
If you are correct that Paypal doesn't support those currencies you may also need to use this by SEAO as well --> https://www.socialengineaddons.com/advanced-payment-gateways-plugin
It would be a core edit. Those are overwritten on upgrades so you need to reapply them if that area is worked on. The currencies now are the Paypal and 2checkout according to the code I saw when someone asked for another one to be added.
I found them in /Applications/MAMP/htdocs/phpv4/application/libraries/Engine/Payment/Gateway/PayPal.php and there's probably one in there for 2checkout. We don't recommend modifying source files and are not responsible for any issues if you decide to. We recommend getting a third party expert to make a plugin for you or a customization.
Is there a way to change the way USD is displayed i.e. `$` to another thing e.g. "ریال". I want to keep my default currency in social engine settings on USD and then display it another way on the website. Is that possible? If yes, which file should I modify?
from what I am seeing, the currency symbols are in the language xml file.
application/libraries/Zend/Locale/Data/ check there for the language xml file.
This file has the ISO for each one application/libraries/Zend/Locale/Data/supplementalData.xml
There are a lot of files that are returning the USD.
Looking further, I found it for English language in application/libraries/Zend/Locale/Data/en.xml
around lines 4604 to 4609 and it did work to change the symbol. Perhaps this will point you in the right direction to add one. I'm not sure. However, source edits are overwritten on upgrades like I mentioned.
This post is extremely informative!
I wish to see multiple currencies in social engine one day.