magento-1.9.2.4


Show currency code and currency symbol in magento


Hi i am new to magento at very basic level.I am facing an issue regarding currency.Right now only the currency symbol is shown e.g $50.But i want to show the currency name and currency code e.g. US $50 or A$50 to differentiate among different symbols.
I have found that using the below way one can get the desired things
Currency Code :
<?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>
Currency Symbol :
<?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?>
But i cant understand where should i implent this.Currency converter is present in the header.I want that if user selects "USD" the price of each product display as "US $20".....Please help me to fix this
You can set this from admin :-
Go to admin -> system -> Manage Currency ->symbols
And set your code and symbol here.

Related Links

Show currency code and currency symbol in magento
In configurable product I am able to select the disabled options also

Categories

HOME
polymer
object
rsa
static
yahoo-finance
nuget
access
edge
parameters
hpc
pearson-correlation
settings
spring-session
python-multithreading
iis-6
gluon-mobile
banner
angularfire2
openstreetmap
pega
text-mining
watson-conversation
plist
android-securityexception
bitnami
package-managers
dimensional-modeling
red5
html5-appcache
gmm
windows-xp
postscript
opentk
fable-f#
flooding
delimiter
inversion-of-control
browser-sync
testcomplete
boost-asio
complex-numbers
mockjax
database-comparison
deltaspike
wacom
clickjacking
jett
contacts
openwhisk
vue-chartjs
imx6
hivemq
google-knowledge-graph
zoomify
graphhopper
ideascript
xdocreport
bc
gdata
unordered-map
subclipse
avcapturedevice
pom.xml
openresty
swingworker
structuremap4
testrail
rmongo
materialized-path-pattern
rocks
centrifuge
signalr.client
model-associations
php-socket
query-by-example
hadoop-partitioning
nullable
asyncdisplaykit
spring-retry
atan2
vhosts
linklabel
grgit
ess
sql-server-data-tools
ansi
omnifaces
entity-framework-4.3
java-security
document-repository
ghcjs
metatrader5
jqmodal
synapse
mongohq
virtual-pc
resource-management
booksleeve
cakephp-1.2
pyunit
subgraph
thttpd
httponly
mysql-error-1205
listactivity
clrstoredprocedure
collectionviewsource
objective-j
load-time
office-2007
burndowncharts
feasibility
visualj#
windows-identity
fault-tolerance
firefox-3
business-model

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App