Based on this link, to follow schema.org formatting, the price must not come with any symblos. How can I remove the currency symbol from price?


Thanks for the tips, the SEO solution I applied is

<div class="no-display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">       
   <span itemprop="price"><?php echo Mage::helper('core')->currency($_product->getFinalPrice(), false, false); ?></span>

3 Answers 3


Based on this link, below code worked for me

Mage::helper('core')->currency($_yourPriceToFormat, false, false);
  • You have to use this on all page where symbol is showing like list,detail,cart,checkout,and all like order template etc Commented May 12, 2016 at 10:59
  • I just added to product view page to fix the SEO warning issue
    – Zinat
    Commented May 12, 2016 at 11:27
  • Do you want to remove only from view page ? Commented May 12, 2016 at 11:31

No need to update your code!.

Go to System->Manage Currency -> Symbols , add 3 Letter currency code there in the text fields

Even that works with any text that you feeds in.


After struggling for a long time with this problem I found this fix -

<meta itemprop="price" content="<?php echo preg_replace('/[^0-9.]+/', '',strip_tags(Mage::helper('core')->currency($_product->getFinalPrice()))); ?>">

Just insert that line above this one -

<span class="price"><?php echo $_coreHelper->currency($_price,true,false) ?></span>

All credit goes to -


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.