Friday, June 14, 2013

get Store currency code And symbol in magento

to do this you need to select your store number first , the default store is number 1 so we will say : $S_id = 1 ;

//store id
$S_id = 1 ;

// gets currency code:

$C_Code = Mage::app()->getStore($S_id)->getCurrentCurrencyCode(); 

//gets  Currency Symbol 
$C_Symbol = Mage::app()->getLocale()->currency($C_Code)->getSymbol(); 


No comments:

Post a Comment