I need to change currency symbol as super scripted to price value. I have checked this and this but it changes formats on a particular pages or price instances.

I want to change in throughout my whole frontend site. Currently it shows as enter image description here

I want to display it as

enter image description here

Please guide.

1 Answer 1


I think the best thing you can do is to use jQuery. Try with below code.

<script type="text/javascript">
    var currencySymbol = "<?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?>"
        jQuery(this).html(jQuery(this).html().replace(currencySymbol, '<sup>'+currencySymbol+'</sup>'));

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.