Hakeem Haki
Hakeem Haki

Reputation: 21

i need to remove currency symbol in magento 1.9

the price must not come with any symbols. How can I remove the currency symbol from price? I want to remove symbols field. But don't know how to do? and I can't even leave it blank i remove currency symbol in root.xml file. | but that's not working properly

Upvotes: 1

Views: 901

Answers (2)

Key Shang
Key Shang

Reputation: 917

Solution 1 (whole site)

In the Magento admin -> system -> manage currency -> symbols, you could change the Currency Symbol to anything else, but can't leave it blank, but after my try, I found we could set it as  , it is the escaped character of the space, then you could set the price css to fix the extra space width, a little trick :)

Solution 2

Change the codes in theme files which you are using.

Change Mage::helper('core')->currency($_product->getFinalPrice(), true, false) to Mage::helper('core')->currency($_product->getFinalPrice(), false, false)

Other codes about price could change to without currency too like above.

If you want whole site without currency, you need change all the price codes appear.

Upvotes: 1

Bachcha Singh
Bachcha Singh

Reputation: 3944

Base on this link

Mage::getModel('directory/currency')->format(
    $product->getFinalPrice(), 
    array('display'=>Zend_Currency::NO_SYMBOL), 
    false
);

Upvotes: 0

Related Questions