Magento – Own / new / insert fictitious currency

We needed a new project for a new currency in Magento, We were able to freely determine. One would naturally use to change an existing currency, and, But then it was their own beautiful.

What was even more beautiful but: The excellent tutorial from Carsten forester, which this topic was accepted and this has saved for posterity. The complete guide can be found HERE.

We wanted to create a new currency, the

BFD hot and should use it as a symbol BF $. Furthermore, it should be used only in Germany.

For this purpose we have made the following:

1. The directory lib / Zend / Locale / Data the file supplementalData.xml find and open.

2. After

<fractions>

the line

<info iso4217="BFD" digits="0" rounding="0"/>

added. (To make beautiful things I've paid attention to alphabetical sorting, So after

<info iso4217="AMD" digits="0" rounding="0"/>

and before

<info iso4217="BHD" digits="3" rounding="0"/>

)

3. In the same file has now added even more respect for the country. In my case this would be for Germany. So I scroll down a few lines and look for

<region iso3166="DE">
<currency iso4217="EUR" from="1999-01-01"/>
<currency iso4217="THE" from="1948-06-20" to="2002-02-28"/>
</region>

and make it

<region iso3166="DE">
<currency iso4217="BFD" from="1999-01-01"/>
<currency iso4217="EUR" from="1999-01-01"/>
<currency iso4217="THE" from="1948-06-20" to="2002-02-28"/>
</region>

4. Now the file can be saved and closed. remember Upload 😉

5. Next, the file de.xml in the same folder and open near the bottom after <currencies> search. There, for each currency is the advertised version stored. Thus we find the right spot and then add in alphabetical order

<currency type="BFD">
<displayName>BF Dollar</displayName>
<displayName count="other">BF Dollar</displayName>
</currency>

a.

6. Magento is the new currency report. This may well also be made through the backend, I have it but in the folder app/code/core/Mage/Directory/etc with the config.xml made. There simply when

<currency>

at the correct site BFD Insert the eighth and the comma.

7. Now in the Magento backend clear the cache once and then System > Configuration > General > Setting up the currency Select the new currency. Ready!

8. Anyone have a custom icon, how the deposit would €, this may in the file characters.xml in the folder /lib / Zend / Locale / Data and do e.g..

<character value = "BF$">
<substitute>BFD</substitute>
</character>

incorporate. Furthermore, in the same directory of file root.xml

<currency type="BFD">
<symbol>BF$</symbol>
</currency>

Now is displayed as a currency symbol $ BF.

Even as an indication: These changes have all been made in the Core, so that the serious risk of, that must be for an update all changes made new!

One Final Note: It sometimes reaches not only to clear the cache. It sometimes has the cache storage is deleted.

Used in Magento Version 1.6.2.0 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

3 comments on “Magento – Own / new / insert fictitious currency”

  1. The article helped me!
    Unfortunately, that's enough right at Magento 2 not made.
    It is me simply displayed in the admin area, no new currency.

    Small note: The sites, you should change, you can not see, unfortunately,, because the browser will interpret something like HTML so.
    These bodies should perhaps rather ind [code]-Blocks are set.

    1. Thanks for the tip. The very old items had the HTML problem still. I've adjusted only piece by piece, where it struck. Here it is now done.

Leave a Reply

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