4

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.

3

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(".price").each(function(){
        jQuery(this).html(jQuery(this).html().replace(currencySymbol, '<sup>'+currencySymbol+'</sup>'));
    });
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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