cancel
Showing results for 
Search instead for 
Did you mean: 

I need to move arabic currency name "QAR149.00" from left to "149.00QAR"

I need to move arabic currency name "QAR149.00" from left to "149.00QAR"

 
Hi All,
I need to move arabic currency name "QAR149.00" from left to "149.00QAR" in my magento 1.9.2.4. Have tried several techniques but none working.
Urgent responce is highly appricated.
Thank you

2 REPLIES 2

Re: I need to move arabic currency name "QAR149.00" from left to "149.00QAR"

@TMDesignz You need to track "currency_display_options_forming" event for this...  Make observer class and write below code.

config.xml

 

 <events>
            <currency_display_options_forming>
                <observers>
                    <namespace_module_format_price>
                        <type>singleton</type>
                        <class>Namespace_Module_Model_Observer_FormatPrice</class>
                        <method>formatPrice</method>
                    </namespace_module_format_price>
                </observers>
            </currency_display_options_forming>
  </events>

observer.php

 

class Namespace_Module_Model_Observer_FormatPrice
{
    public function formatPrice(Varien_Event_Observer $observer)
    {
        $event   = $observer->getEvent();
        $options = $event->getCurrencyOptions();

        $options->setData(array(
            'position' => Zend_Currency::RIGHT
        ));
    }
}

Cheers 

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.

Re: I need to move arabic currency name "QAR149.00" from left to "149.00QAR"

Sure ill test this code. Will update you.