- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2016
03:59 PM
08-16-2016
03:59 PM
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
Labels:
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2016
02:36 AM
08-17-2016
02:36 AM
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.
Magento Programmer | Was my answer helpful? You can accept it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2016
02:40 AM
08-17-2016
02:40 AM
Re: I need to move arabic currency name "QAR149.00" from left to "149.00QAR"
Sure ill test this code. Will update you.