ET_CurrencyManager - Version 0.1.3

Version Notes

stable release

Download this release

Release Info

Developer Magento Core Team
Extension ET_CurrencyManager
Version 0.1.3
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.3

app/code/community/ET/CurrencyManager/Helper/Data.php CHANGED
@@ -40,10 +40,17 @@ class ET_CurrencyManager_Helper_Data extends Mage_Core_Helper_Abstract
40
  if (!isset($this->_options[$storeId])) {
41
  $this->setOptions();
42
  }
 
 
 
 
 
 
 
43
  if (count($options) > 0)
44
- return $this->_options[$storeId] + $options;
45
  else
46
- return $this->_options[$storeId];
47
  }
48
 
49
 
40
  if (!isset($this->_options[$storeId])) {
41
  $this->setOptions();
42
  }
43
+ $newOptions=$this->_options[$storeId];
44
+ // For JavaScript prices: Strange Symbol extracting in function getOutputFormat in file app/code/core/Mage/Directory/Model/Currency.php
45
+ // For Configurable, Bundle and Simple with custom options
46
+ // This causes problem if any currency has by default NO_SYMBOL
47
+ // with this module can't change display value in this case
48
+ if(isset($options["display"]))if($options["display"]==Zend_Currency::NO_SYMBOL)unset($newOptions["display"]);
49
+
50
  if (count($options) > 0)
51
+ return $newOptions + $options;
52
  else
53
+ return $newOptions;
54
  }
55
 
56
 
app/code/community/ET/CurrencyManager/Model/Locale.php CHANGED
@@ -30,4 +30,15 @@ class ET_CurrencyManager_Model_Locale extends Mage_Core_Model_Locale
30
  return $admcurrency;
31
  }
32
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
30
  return $admcurrency;
31
  }
32
 
33
+
34
+ public function getJsPriceFormat()
35
+ {
36
+ // For JavaScript prices
37
+ $parentFormat=parent::getJsPriceFormat();
38
+ $options = Mage::helper('currencymanager')->getOptions();
39
+ if (isset($options["precision"]))
40
+ $parentFormat["requiredPrecision"] = $options["precision"];
41
+
42
+ return $parentFormat;
43
+ }
44
  }
app/code/community/ET/CurrencyManager/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <ET_CurrencyManager>
25
- <version>0.1.2</version>
26
  <descr>
27
  <ru_RU>
28
  Позволяет управлять значениями локализации для валюты. Например: кол-во знаков после запятой для цены или символ валюты.
22
  <config>
23
  <modules>
24
  <ET_CurrencyManager>
25
+ <version>0.1.3</version>
26
  <descr>
27
  <ru_RU>
28
  Позволяет управлять значениями локализации для валюты. Например: кол-во знаков после запятой для цены или символ валюты.
app/code/community/ET/ET_CurrencyManager_ChangeLog.txt CHANGED
@@ -16,10 +16,12 @@ TODO:
16
 
17
 
18
  =====================================
 
 
 
19
  ver. 0.1.2
20
  * Added separate configurations for enable/disable module for frontend and admin.
21
 
22
-
23
  ver. 0.1.1
24
  * repacking for Magento Connect
25
 
16
 
17
 
18
  =====================================
19
+ ver. 0.1.3
20
+ * Added support for dynamic prices (Bundled, Configurable, Simple with custom options).
21
+
22
  ver. 0.1.2
23
  * Added separate configurations for enable/disable module for frontend and admin.
24
 
 
25
  ver. 0.1.1
26
  * repacking for Magento Connect
27
 
package.xml CHANGED
@@ -1,13 +1,13 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ET_CurrencyManager</name>
4
- <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/afl-3.0.php">AFL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Changes:
10
- Added separate configurations for enable/disable module for frontend and admin.</summary>
11
  <description>Currency Manager module allow to change in admin currency's display parametrs:
12
  * symbol
13
  * precision
@@ -15,9 +15,9 @@ Added separate configurations for enable/disable module for frontend and admin.<
15
  * symbol type (name, short name/code, symbol)</description>
16
  <notes>stable release</notes>
17
  <authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
18
- <date>2011-03-04</date>
19
- <time>13:08:02</time>
20
- <contents><target name="magelocale"><dir name="en_US"><file name="ET_Currencymanager.csv" hash="c41fcaff10fe6023a2696341bb147c25"/></dir><dir name="ru_RU"><file name="ET_Currencymanager.csv" hash="a7b43d416473671fac03692bdb4797cc"/></dir></target><target name="magecommunity"><dir name="ET"><dir name="CurrencyManager"><dir name="Block"><dir name="Adminhtml"><file name="Symbolreplace.php" hash="675718a8640ede89e87edb3b6652f85d"/></dir></dir><dir name="etc"><file name="config.xml" hash="6b9a02876f97ecd59f88bfa068980dd1"/><file name="system.xml" hash="70021f48efb3a3290bfd3e60e1c641d3"/></dir><dir name="Helper"><file name="Data.php" hash="b900d8f61891ad99bd409d0118a266c7"/></dir><dir name="Model"><file name="Currency.php" hash="36e1836c0c3e5fd49dd80f8c8fe734d5"/><file name="Locale.php" hash="74ba11dfdb66b39feb242ef330819f8c"/><file name="Typeposition.php" hash="3c8655f73d39f74d0a0dc0efa4cf0be3"/><file name="Typesymboluse.php" hash="973fa7feb75aa4cf846ffb3cd21d8fa4"/></dir></dir><file name="ET_CurrencyManager_ChangeLog.txt" hash="b35eabffc91ae970dec4f4d94229abcd"/><file name="ET_CurrencyManager_Description.txt" hash="58eb12ef28d5a34916935799f0a5b983"/><file name="ET_CurrencyManager_LICENSE.txt" hash="b799504264c23c11a941473d7a3e3ab7"/></dir></target><target name="mageetc"><dir name="modules"><file name="ET_CurrencyManager.xml" hash="e2631245590a94c04438246a5827625f"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies/>
23
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ET_CurrencyManager</name>
4
+ <version>0.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/afl-3.0.php">AFL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Changes:
10
+ Added support for dynamic prices (Bundled, Configurable, Simple with custom options).</summary>
11
  <description>Currency Manager module allow to change in admin currency's display parametrs:
12
  * symbol
13
  * precision
15
  * symbol type (name, short name/code, symbol)</description>
16
  <notes>stable release</notes>
17
  <authors><author><name>Jurij</name><user>auto-converted</user><email>support@etwebsolutions.com</email></author></authors>
18
+ <date>2011-03-08</date>
19
+ <time>10:21:31</time>
20
+ <contents><target name="magelocale"><dir name="en_US"><file name="ET_Currencymanager.csv" hash="c41fcaff10fe6023a2696341bb147c25"/></dir><dir name="ru_RU"><file name="ET_Currencymanager.csv" hash="a7b43d416473671fac03692bdb4797cc"/></dir></target><target name="magecommunity"><dir name="ET"><dir name="CurrencyManager"><dir name="Block"><dir name="Adminhtml"><file name="Symbolreplace.php" hash="675718a8640ede89e87edb3b6652f85d"/></dir></dir><dir name="etc"><file name="config.xml" hash="525acc329f60f6a94fd4614c2b555f3d"/><file name="system.xml" hash="70021f48efb3a3290bfd3e60e1c641d3"/></dir><dir name="Helper"><file name="Data.php" hash="14cc334fb7ec7ede7f0c67836c7b38eb"/></dir><dir name="Model"><file name="Currency.php" hash="36e1836c0c3e5fd49dd80f8c8fe734d5"/><file name="Locale.php" hash="537658bce8df32f185b48b156d950f51"/><file name="Typeposition.php" hash="3c8655f73d39f74d0a0dc0efa4cf0be3"/><file name="Typesymboluse.php" hash="973fa7feb75aa4cf846ffb3cd21d8fa4"/></dir></dir><file name="ET_CurrencyManager_ChangeLog.txt" hash="feec6913558d19abb93e32c60108f8ba"/><file name="ET_CurrencyManager_Description.txt" hash="58eb12ef28d5a34916935799f0a5b983"/><file name="ET_CurrencyManager_LICENSE.txt" hash="b799504264c23c11a941473d7a3e3ab7"/></dir></target><target name="mageetc"><dir name="modules"><file name="ET_CurrencyManager.xml" hash="e2631245590a94c04438246a5827625f"/></dir></target></contents>
21
  <compatible/>
22
  <dependencies/>
23
  </package>