Version Notes
stable release
Download this release
Release Info
Developer | Jurij |
Extension | ET_CurrencyManager |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/code/community/ET/CurrencyManager/Block/Adminhtml/Catalog/Product/Edit/Tab/Options/Option.php +44 -0
- app/code/community/ET/CurrencyManager/Helper/Data.php +3 -1
- app/code/community/ET/CurrencyManager/Helper/Tax.php +50 -0
- app/code/community/ET/CurrencyManager/etc/config.xml +10 -2
- app/code/community/ET/CurrencyManager/etc/system.xml +1 -1
- app/code/community/ET/ET_CurrencyManager_ChangeLog.txt +0 -93
- app/code/community/ET/ET_CurrencyManager_Description.txt +0 -88
- app/code/community/ET/ET_CurrencyManager_LICENSE.txt +0 -60
- app/design/frontend/{default → base}/default/layout/et_currencymanager.xml +6 -4
- app/design/frontend/{default → base}/default/template/et_currencymanager/js.phtml +0 -0
- {skin/frontend/default/default/et_currencymanager → js/et/currencymanager}/et_currencymanager.js +0 -0
- {skin/frontend/default/default/et_currencymanager → js/et/currencymanager}/et_currencymanager_round.js +0 -0
- package.xml +6 -10
app/code/community/ET/CurrencyManager/Block/Adminhtml/Catalog/Product/Edit/Tab/Options/Option.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* You may not sell, sub-license, rent or lease
|
6 |
+
* any portion of the Software or Documentation to anyone.
|
7 |
+
*
|
8 |
+
* DISCLAIMER
|
9 |
+
*
|
10 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
11 |
+
* versions in the future.
|
12 |
+
*
|
13 |
+
* @category ET
|
14 |
+
* @package ET_CurrencyManager
|
15 |
+
* @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
|
16 |
+
* @contacts support@etwebsolutions.com
|
17 |
+
* @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
|
18 |
+
*/
|
19 |
+
class ET_CurrencyManager_Block_Adminhtml_Catalog_Product_Edit_Tab_Options_Option
|
20 |
+
extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Option
|
21 |
+
{
|
22 |
+
/**
|
23 |
+
* Rewrite to use custom precision (http://support.etwebsolutions.com/issues/466)
|
24 |
+
*
|
25 |
+
* @param $value
|
26 |
+
* @param $type
|
27 |
+
* @return string
|
28 |
+
*/
|
29 |
+
public function getPriceValue($value, $type)
|
30 |
+
{
|
31 |
+
$options = Mage::helper('currencymanager')->getOptions(array());
|
32 |
+
|
33 |
+
if (isset($options["input_admin"]) && isset($options['precision'])) {
|
34 |
+
if ($type == 'percent') {
|
35 |
+
return number_format($value, $options['precision'], null, '');
|
36 |
+
} elseif ($type == 'fixed') {
|
37 |
+
return number_format($value, $options['precision'], null, '');
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
return parent::getPriceValue($value, $type);
|
42 |
+
}
|
43 |
+
|
44 |
+
}
|
app/code/community/ET/CurrencyManager/Helper/Data.php
CHANGED
@@ -132,7 +132,9 @@ class ET_CurrencyManager_Helper_Data extends Mage_Core_Helper_Abstract
|
|
132 |
}
|
133 |
|
134 |
if (isset($config['input_admin'])) {
|
135 |
-
$
|
|
|
|
|
136 |
}
|
137 |
|
138 |
$optionsAdvanced['excludecheckout'] = $config['excludecheckout'];
|
132 |
}
|
133 |
|
134 |
if (isset($config['input_admin'])) {
|
135 |
+
if ($config['input_admin'] > 0) {
|
136 |
+
$optionsAdvanced['input_admin'] = (int)$config['input_admin'];
|
137 |
+
}
|
138 |
}
|
139 |
|
140 |
$optionsAdvanced['excludecheckout'] = $config['excludecheckout'];
|
app/code/community/ET/CurrencyManager/Helper/Tax.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* You may not sell, sub-license, rent or lease
|
6 |
+
* any portion of the Software or Documentation to anyone.
|
7 |
+
*
|
8 |
+
* DISCLAIMER
|
9 |
+
*
|
10 |
+
* Do not edit or add to this file if you wish to upgrade to newer
|
11 |
+
* versions in the future.
|
12 |
+
*
|
13 |
+
* @category ET
|
14 |
+
* @package ET_CurrencyManager
|
15 |
+
* @copyright Copyright (c) 2012 ET Web Solutions (http://etwebsolutions.com)
|
16 |
+
* @contacts support@etwebsolutions.com
|
17 |
+
* @license http://shop.etwebsolutions.com/etws-license-free-v1/ ETWS Free License (EFL1)
|
18 |
+
*/
|
19 |
+
|
20 |
+
class ET_CurrencyManager_Helper_Tax extends Mage_Tax_Helper_Data
|
21 |
+
{
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Get product price with all tax settings processing CM wrapper
|
25 |
+
*
|
26 |
+
* @param Mage_Catalog_Model_Product $product
|
27 |
+
* @param float $price inputed product price
|
28 |
+
* @param bool $includingTax return price include tax flag
|
29 |
+
* @param null|Mage_Customer_Model_Address $shippingAddress
|
30 |
+
* @param null|Mage_Customer_Model_Address $billingAddress
|
31 |
+
* @param null|int $ctc customer tax class
|
32 |
+
* @param mixed $store
|
33 |
+
* @param bool $priceIncludesTax flag what price parameter contain tax
|
34 |
+
* @return float
|
35 |
+
*/
|
36 |
+
public function getPrice($product, $price, $includingTax = null, $shippingAddress = null, $billingAddress = null,
|
37 |
+
$ctc = null, $store = null, $priceIncludesTax = null
|
38 |
+
) {
|
39 |
+
if (!$price) {
|
40 |
+
return $price;
|
41 |
+
}
|
42 |
+
$store = Mage::app()->getStore($store);
|
43 |
+
if (!$this->needPriceConversion($store)) {
|
44 |
+
return $price;
|
45 |
+
}
|
46 |
+
return parent::getPrice($product, $price, $includingTax, $shippingAddress, $billingAddress, $ctc,
|
47 |
+
$store, $priceIncludesTax);
|
48 |
+
|
49 |
+
}
|
50 |
+
}
|
app/code/community/ET/CurrencyManager/etc/config.xml
CHANGED
@@ -22,11 +22,11 @@
|
|
22 |
<modules>
|
23 |
<ET_CurrencyManager>
|
24 |
<name>ET Currency Manager</name>
|
25 |
-
<version>1.0.
|
26 |
<descr>
|
27 |
<ru_RU><![CDATA[Модуль позволяет владельцу магазина просто и удобно управлять отображением цены: указывать свой символ валюты, количество знаков после запятой, позицию символа и др.]]>
|
28 |
</ru_RU>
|
29 |
-
<en_US><![CDATA[
|
30 |
</en_US>
|
31 |
</descr>
|
32 |
<permanentlink>
|
@@ -54,6 +54,11 @@
|
|
54 |
<currencymanager>
|
55 |
<class>ET_CurrencyManager_Helper</class>
|
56 |
</currencymanager>
|
|
|
|
|
|
|
|
|
|
|
57 |
</helpers>
|
58 |
<models>
|
59 |
<directory>
|
@@ -81,6 +86,9 @@
|
|
81 |
<rewrite>
|
82 |
<catalog_product_helper_form_price>ET_CurrencyManager_Block_Adminhtml_Formprice</catalog_product_helper_form_price>
|
83 |
</rewrite>
|
|
|
|
|
|
|
84 |
</adminhtml>
|
85 |
</blocks>
|
86 |
<resources>
|
22 |
<modules>
|
23 |
<ET_CurrencyManager>
|
24 |
<name>ET Currency Manager</name>
|
25 |
+
<version>1.0.3</version>
|
26 |
<descr>
|
27 |
<ru_RU><![CDATA[Модуль позволяет владельцу магазина просто и удобно управлять отображением цены: указывать свой символ валюты, количество знаков после запятой, позицию символа и др.]]>
|
28 |
</ru_RU>
|
29 |
+
<en_US><![CDATA[Currency Manager lets shop owner manage price display in an easy and convenient way: show custom currency symbol, change its position, change number of decimals and etc.]]>
|
30 |
</en_US>
|
31 |
</descr>
|
32 |
<permanentlink>
|
54 |
<currencymanager>
|
55 |
<class>ET_CurrencyManager_Helper</class>
|
56 |
</currencymanager>
|
57 |
+
<tax>
|
58 |
+
<rewrite>
|
59 |
+
<data>ET_CurrencyManager_Helper_Tax</data>
|
60 |
+
</rewrite>
|
61 |
+
</tax>
|
62 |
</helpers>
|
63 |
<models>
|
64 |
<directory>
|
86 |
<rewrite>
|
87 |
<catalog_product_helper_form_price>ET_CurrencyManager_Block_Adminhtml_Formprice</catalog_product_helper_form_price>
|
88 |
</rewrite>
|
89 |
+
<rewrite>
|
90 |
+
<catalog_product_edit_tab_options_option>ET_CurrencyManager_Block_Adminhtml_Catalog_Product_Edit_Tab_Options_Option</catalog_product_edit_tab_options_option>
|
91 |
+
</rewrite>
|
92 |
</adminhtml>
|
93 |
</blocks>
|
94 |
<resources>
|
app/code/community/ET/CurrencyManager/etc/system.xml
CHANGED
@@ -124,7 +124,6 @@
|
|
124 |
<show_in_website>1</show_in_website>
|
125 |
<show_in_store>1</show_in_store>
|
126 |
</enabledadm>
|
127 |
-
|
128 |
<input_admin translate="label">
|
129 |
<label>Enable for Inputs</label>
|
130 |
<frontend_type>select</frontend_type>
|
@@ -133,6 +132,7 @@
|
|
133 |
<show_in_default>1</show_in_default>
|
134 |
<show_in_website>1</show_in_website>
|
135 |
<show_in_store>1</show_in_store>
|
|
|
136 |
</input_admin>
|
137 |
|
138 |
|
124 |
<show_in_website>1</show_in_website>
|
125 |
<show_in_store>1</show_in_store>
|
126 |
</enabledadm>
|
|
|
127 |
<input_admin translate="label">
|
128 |
<label>Enable for Inputs</label>
|
129 |
<frontend_type>select</frontend_type>
|
132 |
<show_in_default>1</show_in_default>
|
133 |
<show_in_website>1</show_in_website>
|
134 |
<show_in_store>1</show_in_store>
|
135 |
+
<depends><enabledadm>1</enabledadm></depends>
|
136 |
</input_admin>
|
137 |
|
138 |
|
app/code/community/ET/ET_CurrencyManager_ChangeLog.txt
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
=====================================
|
2 |
-
This file describes changes between versions of module ET_CurrencyManager for Magento.
|
3 |
-
|
4 |
-
Legend:
|
5 |
-
* bug fix
|
6 |
-
+ added functionality
|
7 |
-
- removed functionality
|
8 |
-
|
9 |
-
=====================================
|
10 |
-
TODO:
|
11 |
-
+ Добавить возможность менять/Add the ability to change:
|
12 |
-
group symbol (разделитель тысяч/thousands separator)
|
13 |
-
decimal separator (, or .)
|
14 |
-
Так как в ядре Магенто это не реализовано, то придётся писать на прямую в файлы /lib/Zend/Locale/Data/
|
15 |
-
Since it is not implemented in the Magento core, it will have to write directly to files in /lib/Zend/Locale/Data/
|
16 |
-
* Reallocate js files (from skin to js folder)
|
17 |
-
=====================================
|
18 |
-
|
19 |
-
ver. 1.0.2 (28/09/2012)
|
20 |
-
* Fixed problem with entering configuration in Magento 1.4.0.0
|
21 |
-
* Fixed problem in JS for configurable products (in some cases price was XX.0000001 or xx.9999999)
|
22 |
-
* Fixed JS for error with disabled Module output
|
23 |
-
* Fixed JS Stackoverflow in IE
|
24 |
-
|
25 |
-
ver. 1.0.1 (13/09/2012)
|
26 |
-
* BOM in helper removed
|
27 |
-
|
28 |
-
ver. 1.0.0 (31/08/2012)
|
29 |
-
+ Changed license type from AFL to ETWS Free License v1
|
30 |
-
+ Refactored code for Magento standards
|
31 |
-
+ Added link to extension settings in Currency Options Section
|
32 |
-
+ Added additional information about extension support in settings section
|
33 |
-
+ Added default values for specific currency section
|
34 |
-
* Some errors fixed
|
35 |
-
|
36 |
-
ver. 0.3.0 (19/08/2012)
|
37 |
-
+ Added custom events for currency conversion
|
38 |
-
+ Added phpUnit tests (beta version)
|
39 |
-
* Fixed problem with -0
|
40 |
-
* Fixed problem displaying 0 with positive precisions (some times displayed 0 instead of 0.00 for precision 2)
|
41 |
-
|
42 |
-
ver. 0.2.9 (17/04/2012)
|
43 |
-
* fixed rounding for JS with negative precision
|
44 |
-
|
45 |
-
ver. 0.2.8 (23/02/2012)
|
46 |
-
* fixed rounding for JS (bug was when rounding 9.9999999 or 9.00000001)
|
47 |
-
|
48 |
-
ver. 0.2.7 (06/02/2012)
|
49 |
-
* fixed param initialisations for JS (bug was for multicurrency stores)
|
50 |
-
|
51 |
-
ver. 0.2.6 (23/01/2012)
|
52 |
-
* fixed bug in function, which replaces zero decimals with custom suffix (for currency without currency symbol)
|
53 |
-
|
54 |
-
ver. 0.2.5 (20/01/2012)
|
55 |
-
* fixed bug in function, which replaces zero decimals with custom suffix (it was only in locales, where group separator is unbreakable whitespace - chr160)
|
56 |
-
|
57 |
-
ver. 0.2.4 (28/11/2011)
|
58 |
-
* fixed bug for displaying price instead zero text in configurable products when total price is zero
|
59 |
-
|
60 |
-
ver. 0.2.3 (29/09/2011)
|
61 |
-
* fixed bug for displaying 2 different currencies in checkout
|
62 |
-
* fixed bug for displaying negative precision using javascript
|
63 |
-
* added type="text/javascript" for scrypt tag (w3c validation is ok now)
|
64 |
-
|
65 |
-
ver. 0.2.2 (17/08/2011)
|
66 |
-
+ Replace zero decimals with suffix. Example: display 49,- instead of 49.00 or 49, but 49.99 remains unchanged.
|
67 |
-
+ Enable/Disable price rounding (precision parameter) on product input\edit page
|
68 |
-
* small bug fixes
|
69 |
-
|
70 |
-
ver. 0.2.1 (22/07/2011)
|
71 |
-
* Fixed skipping currency formatting for admin dashboard
|
72 |
-
|
73 |
-
ver. 0.2.0
|
74 |
-
+ restyled configuration
|
75 |
-
+ added ability to set currency specific options (all, not only symbol replace/ Actual for multi currency stores without store views).
|
76 |
-
+ added ability to disable precision change for checkout process (exclude checkout)
|
77 |
-
+ added ability to replace zero prices with any string. Example: instead 0.00 display FREE
|
78 |
-
* changed Cut Zero Decimal algorithm (now it's work fine with any currency precision, not only precision=2)
|
79 |
-
|
80 |
-
ver. 0.1.5
|
81 |
-
+ Added ability to cut zero decimals if it = 0. (price == floor(price))
|
82 |
-
|
83 |
-
ver. 0.1.4
|
84 |
-
* Added support for dynamic prices (Bundled, Configurable, Simple with custom options).
|
85 |
-
|
86 |
-
ver. 0.1.2
|
87 |
-
* Added separate configurations for enable/disable module for frontend and admin.
|
88 |
-
|
89 |
-
ver. 0.1.1
|
90 |
-
* repacking for Magento Connect
|
91 |
-
|
92 |
-
ver. 0.1.0
|
93 |
-
+ stable release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/ET/ET_CurrencyManager_Description.txt
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
==== Description / Для чего этот модуль? ====
|
2 |
-
|
3 |
-
EN:
|
4 |
-
|
5 |
-
ET Currency Manager lets shop owner manage display of prices on website in simple and convenient way.
|
6 |
-
With this extension you can:
|
7 |
-
* Specify number of decimal digits. For price rounding Magento internal algorithm is used. Example: instead of 49.99 you can display 50 or 49.9900.
|
8 |
-
* Display prices without zero decimals. Example: display 49 instead of 49.00, but 49.99 remains unchanged.
|
9 |
-
* Replace zero decimals with suffix. Example: display 49,- instead of 49.00 or 49, but 49.99 remains unchanged.
|
10 |
-
* Specify position of currency symbol: before the price or after. Example: $ 49.99 or 49.99 $
|
11 |
-
* Specify what to use as currency symbol. Example: nothing, use currency code (EUR, USD), use currency symbol (€, $), use currency name (Euro, US Dollar)
|
12 |
-
* Change currency symbol to your own (text only). Example: display Money instead of $
|
13 |
-
* Change zero price to your own text. Example: FREE instead of 0.00
|
14 |
-
* Use separate settings for every store view
|
15 |
-
* Use separate settings for every currency
|
16 |
-
* Enable and disable extension for frontend and admin panel separately
|
17 |
-
* Disable price rounding on checkout page
|
18 |
-
* Enable price rounding on product input page
|
19 |
-
|
20 |
-
Important note: this extension changes only currency display, not the price itself. Example: Product's price is 49.99, you can show it's price as 50, but during the payment client will be charged 49.99, because it is the real price.
|
21 |
-
|
22 |
-
Additional note: You can change currency display even without this extension. For this you must change relevant localization files in Zend Framework (/lib/Zend/Locale/Data/*.xml). But in this case you can lose all of your changes while updating Magento.
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
RU:
|
27 |
-
Модуль ET Currency Manager позволяет владельцу магазина просто и удобно управлять отображением цены на своём сайте.
|
28 |
-
|
29 |
-
|
30 |
-
С помощью модуля вы можете:
|
31 |
-
|
32 |
-
* Указать количество знаков после запятой для отображения цен на сайте (для округления используется встроенный алгоритм Магенто). Пример: вместо 49.99 показывать или 50 или 49.9900
|
33 |
-
* Отображать цены без "копеек". Пример: Вместо 49.00 показывать 49, но цену 49.99 не изменять.
|
34 |
-
* Показывать суффикс для цены без "копеек". Вместо 49.00 или 49 показывать 49,- , но цену 49.99 не изменять.
|
35 |
-
* Указать позицию символа валюты: перед ценой или после. Пример: $ 49.99 или 49.99 $
|
36 |
-
* Указать, что использовать в качестве символа валюты. Пример: (не использовать; использовать код - EUR, USD; использовать символ - €, $; использовать название - Евро, Американский доллар)
|
37 |
-
* Заменять символ валюты на свой (только текстовый). Пример: Вместо $ выводить Money.
|
38 |
-
* Заменять нулевую цену на свой текст. Например: вместо 0.00 выводить БЕСПЛАТНО
|
39 |
-
* Использовать различные настройки для каждого представления магазина.
|
40 |
-
* Использовать различные настройки для каждой валюты отдельно.
|
41 |
-
* Включать и отключать модуль для пользовательской части и панели администрирования независимо друг от друга.
|
42 |
-
* Отключать округление цены на странице заказа.
|
43 |
-
* Включать округление цены на странице ввода товара.
|
44 |
-
|
45 |
-
Важно: модуль меняет исключительно отображение валюты, а не саму цену. (Пример: Товар стоит 49.99; Можно показывать цену клиентам как 50; Но при оплате с клиента будет удержано 49.99, так как это реальная стоимость товара).
|
46 |
-
|
47 |
-
Дополнительно: Без этого модуля у вас есть возможность влиять на отображение валюты только редактируя значения в файлах локализации Zend Framework (/lib/Zend/Locale/Data/*.xml). Но при обновлении версии Магенто изменения могут быть утеряны (так как может обновиться Zend Framework).
|
48 |
-
|
49 |
-
|
50 |
-
====Features / Особенности модуля====
|
51 |
-
|
52 |
-
* Open source code (no encryption and obfuscation)
|
53 |
-
* Code follows Magento development standards
|
54 |
-
* Extension is available on 2 languages (ru_RU, en_US) and you can easy add your own
|
55 |
-
* All extension settings are available on admin panel
|
56 |
-
|
57 |
-
* Открытый исходный код
|
58 |
-
* Код написан придерживаясь принятых стандартов в разработке для Магенто
|
59 |
-
* Доступен на 2-ух языках (ru_RU, en_US) и легко добавляются новые переводы
|
60 |
-
* Все настройки модуля доступны в панели администрирования
|
61 |
-
|
62 |
-
====Version Compatibility / Совместимость версий====
|
63 |
-
1.3.х (tested in 1.3.2.4.)
|
64 |
-
1.4.x (tested in 1.4.1.1.)
|
65 |
-
1.5.x (tested in 1.5.0.1. 1.5.1.0)
|
66 |
-
|
67 |
-
====Module tags====
|
68 |
-
price precision, round price, hide decimal, currency symbol, zero price replace, price format
|
69 |
-
|
70 |
-
символ валюты, настройка отображения валюты, валюта, цена, количество знаков после запятой
|
71 |
-
|
72 |
-
====Установка/Installation====
|
73 |
-
|
74 |
-
* Disable Compiler, if it is enabled (System -> Tools -> Compilation)
|
75 |
-
* Disable cache, if it is enabled (System -> Cache Management)
|
76 |
-
* Install the extension (just unpack archive to magento root folder)
|
77 |
-
* Log off admin panel (Log Out)
|
78 |
-
* Log into admin panel (enter your login and password)
|
79 |
-
* Set filter display parameters (System -> Configuration -> Currency Manager)
|
80 |
-
* Run compilation process and enable cache if needed
|
81 |
-
|
82 |
-
* Отключите компиляцию, если включена (Система -> Инструменты -> Компиляция)
|
83 |
-
* Отключите кэш, если включён (Система -> Управление кэшем)
|
84 |
-
* Установите модуль (распакуйте архив в корневую папку с Магенто)
|
85 |
-
* Выйдите из панели администрирования (Выйти)
|
86 |
-
* Войдите в панель администрирования (введите логин/пароль)
|
87 |
-
* Настройте параметры отображения фильтра (Система -> Конфигурация -> Currency Manager)
|
88 |
-
* Если необходимо запустите процесс компиляции и включите кэш
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/ET/ET_CurrencyManager_LICENSE.txt
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
=========en_US============
|
2 |
-
ETWS Free License (EFL1)
|
3 |
-
shop.etwebsolutions.com/eng/etws-license-free-v1
|
4 |
-
|
5 |
-
THIS LICENSE AGREEMENT (HEREINAFTER AGREEMENT) IS AN AGREEMENT BETWEEN
|
6 |
-
YOU (THE PERSON OR COMPANY WHO IS BEING LICENSED TO USE THE SOFTWARE OR DOCUMENTATION)
|
7 |
-
AND ET STUDIO CO.
|
8 |
-
|
9 |
-
1. By purchasing the Software you agree with the content of this Agreement
|
10 |
-
and agree to use the Software in compliance with this Agreement.
|
11 |
-
|
12 |
-
2. You are a user of this Software and ET Studio Co is an owner.
|
13 |
-
|
14 |
-
3. You may not sell, resell, sub-license or lease any fragment of the Software or its Documentation to anyone.
|
15 |
-
|
16 |
-
4. If you distribute original or changed version of the Software, you must include
|
17 |
-
this Agreement without any changes and original version of the Software.
|
18 |
-
|
19 |
-
5. We do not and will not bear responsibility for any damages (including any loss of your profit or savings)
|
20 |
-
caused to you, your business and your information by use or inability to use this Software.
|
21 |
-
|
22 |
-
6. We are not liable for prosecution arising from use of the Software against law or for any illegal use.
|
23 |
-
|
24 |
-
7. In case of failure to comply with any condition of this Agreement, your license to use the Software is revoked.
|
25 |
-
|
26 |
-
8. Agreement remains effective without any time limits until it is terminated.
|
27 |
-
|
28 |
-
9. ET Studio Co reserves the right to change Agreement type for future versions of Software.
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
=========ru_RU============
|
33 |
-
ETWS Свободная лицензия (EFL1)
|
34 |
-
shop.etwebsolutions.com/rus/etws-license-free-v1
|
35 |
-
|
36 |
-
ЭТО ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ (ДАЛЕЕ ЛИЦЕНЗИЯ) ЯВЛЯЕТСЯ СОГЛАШЕНИЕМ МЕЖДУ
|
37 |
-
ВАМИ (ФИЗИЧЕСКИМ ИЛИ ЮРИДИЧЕСКИМ ЛИЦОМ, КОТОРОМУ ВЫДАНА ЛИЦЕНЗИЯ НА ИСПОЛЬЗОВАНИЕ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ)
|
38 |
-
И КОМПАНИЕЙ ET STUDIO.
|
39 |
-
|
40 |
-
1. Используя копию программного обеспечения (ПО) вы соглашаетесь с условиями,
|
41 |
-
изложенными в данной лицензии и обязуетесь их соблюдать.
|
42 |
-
|
43 |
-
2. Вы являетесь пользователем ПО. Владельцем ПО является компания ET Studio.
|
44 |
-
|
45 |
-
3. Вы не имеете права продавать, выдавать подлицензии, сдавать в аренду любую часть данного ПО или Документации
|
46 |
-
кому бы то ни было.
|
47 |
-
|
48 |
-
4. При распространении оригинальной или изменённой версии данного ПО вы обязаны включить в неё
|
49 |
-
данное лицензионное соглашение без внесения изменений и оригинальную версию данного ПО.
|
50 |
-
|
51 |
-
5. Мы не несём ответственность за любые причинённые вам, вашему бизнесу или информации убытки и недополученную прибыль,
|
52 |
-
связанные с использованием или невозможностью использования данного ПО.
|
53 |
-
|
54 |
-
6. Мы не несём ответственность за использование данного ПО в противозаконных целях.
|
55 |
-
|
56 |
-
7. В случае нарушения любых пунктов этой лицензии она будет отозвана и вы потеряете право на использование данного ПО.
|
57 |
-
|
58 |
-
8. Данная лицензия действует без ограничения по времени, пока не будет отозвана.
|
59 |
-
|
60 |
-
9. Компания ET Studio имеет право менять тип лицензии для последующих версий ПО.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/{default → base}/default/layout/et_currencymanager.xml
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
/**
|
4 |
* NOTICE OF LICENSE
|
5 |
*
|
@@ -22,9 +22,11 @@
|
|
22 |
<layout version="0.1.0">
|
23 |
<default>
|
24 |
<reference name="head">
|
25 |
-
<block
|
26 |
-
|
27 |
-
|
|
|
|
|
28 |
</reference>
|
29 |
</default>
|
30 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
/**
|
4 |
* NOTICE OF LICENSE
|
5 |
*
|
22 |
<layout version="0.1.0">
|
23 |
<default>
|
24 |
<reference name="head">
|
25 |
+
<block type="currencymanager/js" name="currencymanager.js.config">
|
26 |
+
<action ifconfig="currencymanager/general/enabled" method="setTemplate"><name>et_currencymanager/js.phtml</name></action>
|
27 |
+
</block>
|
28 |
+
<action ifconfig="currencymanager/general/cutzerodecimal" method="addItem"><type>js</type><name>et/currencymanager/et_currencymanager.js</name></action>
|
29 |
+
<action ifconfig="currencymanager/general/enabled" method="addItem"><type>js</type><name>et/currencymanager/et_currencymanager_round.js</name></action>
|
30 |
</reference>
|
31 |
</default>
|
32 |
</layout>
|
app/design/frontend/{default → base}/default/template/et_currencymanager/js.phtml
RENAMED
File without changes
|
{skin/frontend/default/default/et_currencymanager → js/et/currencymanager}/et_currencymanager.js
RENAMED
File without changes
|
{skin/frontend/default/default/et_currencymanager → js/et/currencymanager}/et_currencymanager_round.js
RENAMED
File without changes
|
package.xml
CHANGED
@@ -1,22 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ET_CurrencyManager</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://shop.etwebsolutions.com/eng/etws-license-free-v1">ETWS Free License (EFL1)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Currency Manager
|
10 |
-
<description>
|
11 |
-
* symbol
|
12 |
-
* precision
|
13 |
-
* symbol position
|
14 |
-
* symbol type (name, short name/code, symbol)</description>
|
15 |
<notes>stable release</notes>
|
16 |
<authors><author><name>Jurij</name><user>niro</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>zlojd</user><email>support@etwebsolutions.com</email></author></authors>
|
17 |
-
<date>2012-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="ET"><dir name="CurrencyManager"><dir name="Block"><dir name="Adminhtml"><file name="Formprice.php" hash="787bb8c6466fd5b58edff9119aeca6f0"/><file name="Heading.php" hash="0282201202dfbe3c2a9a7f0e3016bbd4"/><file name="Support.php" hash="c6a46702557a855dbdedd370f8981551"/><file name="Symbolreplace.php" hash="575dd05525aaa2fba90fa17703db373b"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Linktooptions.php" hash="254eef26e1ae0edecc76a31541b244ae"/></dir></dir></dir></dir></dir><file name="Js.php" hash="086a2b3e70400c840615fd499ab5883e"/></dir><dir name="Helper"><file name="Data.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ET_CurrencyManager</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://shop.etwebsolutions.com/eng/etws-license-free-v1">ETWS Free License (EFL1)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Currency Manager lets shop owner manage price display in an easy and convenient way: show custom currency symbol, change its position, change number of decimals and etc.</summary>
|
10 |
+
<description>_Currency Manager lets shop owner manage price display in an easy and convenient way: show custom currency symbol, change its position, change number of decimals and etc._</description>
|
|
|
|
|
|
|
|
|
11 |
<notes>stable release</notes>
|
12 |
<authors><author><name>Jurij</name><user>niro</user><email>support@etwebsolutions.com</email></author><author><name>Andrej</name><user>zlojd</user><email>support@etwebsolutions.com</email></author></authors>
|
13 |
+
<date>2012-12-18</date>
|
14 |
+
<time>08:54:07</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="ET"><dir name="CurrencyManager"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><dir name="Options"><file name="Option.php" hash="3c8ebb1d4539a0cad43a247336c2ed2b"/></dir></dir></dir></dir></dir><file name="Formprice.php" hash="787bb8c6466fd5b58edff9119aeca6f0"/><file name="Heading.php" hash="0282201202dfbe3c2a9a7f0e3016bbd4"/><file name="Support.php" hash="c6a46702557a855dbdedd370f8981551"/><file name="Symbolreplace.php" hash="575dd05525aaa2fba90fa17703db373b"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Linktooptions.php" hash="254eef26e1ae0edecc76a31541b244ae"/></dir></dir></dir></dir></dir><file name="Js.php" hash="086a2b3e70400c840615fd499ab5883e"/></dir><dir name="Helper"><file name="Data.php" hash="6d9aabf9c789c1b42741d62271d9d7ed"/><file name="Tax.php" hash="46abce595a7a809facf1c4d45db5043e"/></dir><dir name="Model"><file name="Currency.php" hash="6cb15c536e758b727dcb291f5bb6d0d6"/><file name="Locale.php" hash="5f4d8d523f8d7a351f5afc952cdc9dd5"/><file name="Store.php" hash="c4894be6525eca58ef8efa909f87f959"/><file name="Typeposition.php" hash="9132477fac1f0bc56be36e18613ff23c"/><file name="Typesymboluse.php" hash="50b7bdd60eb040007f1b8f5bd9486b19"/></dir><dir name="etc"><file name="config.xml" hash="c1529784f179de7004bd70524ec890c9"/><file name="system.xml" hash="eb917d8b2320082c266af46a000acd9b"/></dir></dir></dir></target><target name="magelocale"><dir name="ru_RU"><file name="ET_Currencymanager.csv" hash="4e3660d05aeb3623031169a55d34d649"/></dir><dir name="en_US"><file name="ET_Currencymanager.csv" hash="c763398c9a2bcba295fe3ba623b6614f"/></dir></target><target name="mageetc"><dir name="modules"><file name="ET_CurrencyManager.xml" hash="3c6bef9710e3c4922e45f962a41e1f9e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="et_currencymanager.xml" hash="8f5344b2377c45da3ec2b0cc3199040e"/></dir><dir name="template"><dir name="et_currencymanager"><file name="js.phtml" hash="0274f020be65ff87521d1ba053a31ad3"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="et"><dir name="currencymanager"><file name="et_currencymanager.js" hash="4eccc0024cae9c67123584d2cac2f38a"/><file name="et_currencymanager_round.js" hash="a57cee1500b4ab851110982fcaea4f36"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|