FranciscoPrado_PrecoParcelado - Version 1.1.0.1

Version Notes

Terceira versão estável.

Download this release

Release Info

Developer Francisco Prado
Extension FranciscoPrado_PrecoParcelado
Version 1.1.0.1
Comparing to
See all releases


Code changes from version 1.1.0.0 to 1.1.0.1

app/code/community/FranciscoPrado/PrecoParcelado/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <FranciscoPrado_PrecoParcelado>
5
- <version>1.1.0.0</version>
6
  </FranciscoPrado_PrecoParcelado>
7
  </modules>
8
  <global>
@@ -72,4 +72,4 @@
72
  </franciscoprado_precoparcelado>
73
  </sales>
74
  </default>
75
- </config>
2
  <config>
3
  <modules>
4
  <FranciscoPrado_PrecoParcelado>
5
+ <version>1.1.0.1</version>
6
  </FranciscoPrado_PrecoParcelado>
7
  </modules>
8
  <global>
72
  </franciscoprado_precoparcelado>
73
  </sales>
74
  </default>
75
+ </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FranciscoPrado_PrecoParcelado</name>
4
- <version>1.1.0.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>M&#xF3;dulo para mostrar o pre&#xE7;o do produto em forma de parcelas, que &#xE9; um tipo de pagamento comum no Brasil.</summary>
10
  <description>Com esta extens&#xE3;o &#xE9; poss&#xED;vel voc&#xEA; mostrar o pre&#xE7;o parcelado do seu produto. Atrav&#xE9;s do painel de administra&#xE7;&#xE3;o &#xE9; poss&#xED;vel configurar os modos de exibi&#xE7;&#xE3;o (tabela de parcelas ou em texto espec&#xED;fico), n&#xFA;mero de meses, valor do juros, juro simples ou composto, parcela m&#xED;nima, entre outros.</description>
11
- <notes>Corre&#xE7;&#xF5;es no m&#xE9;todo Javascript para c&#xE1;lculo em produtos configur&#xE1;veis e op&#xE7;&#xE3;o no admin para carregamento de jQuery externo.</notes>
12
  <authors><author><name>Francisco Prado</name><user>fr_prado</user><email>franciscontato@gmail.com</email></author></authors>
13
  <date>2014-08-06</date>
14
- <time>02:20:09</time>
15
- <contents><target name="magecommunity"><dir name="FranciscoPrado"><dir name="PrecoParcelado"><dir name="etc"><file name="config.xml" hash="06ee31dcc94bd4b39faa90277748269c"/><file name="system.xml" hash="dcf2d6a5c24cb16d191a96eb04ceb0b9"/></dir><dir name="Helper"><file name="Data.php" hash="5b7d4cccefd84b8f1095179ea7120cb4"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="franciscoprado_precoparcelado.xml" hash="2e78e3b82b16ca71f4f678ae89c6930e"/></dir><dir name="template"><dir name="precoparcelado"><file name="jsdata.phtml" hash="c1cbd480b4839ac5681d58f7090f46f9"/><file name="table.phtml" hash="5375174d15dc910bf48cff5f55c88eed"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FranciscoPrado_PrecoParcelado.xml" hash="ff2352dd5dcf370b98b77782ac230e5f"/></dir></target><target name="magelocale"><dir name="pt_BR"><file name="FranciscoPrado_PrecoParcelado.csv" hash="20d484ae51b10f0bda926502b383a61d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="precoparcelado.css" hash="8b127443908efc0529ff9953e4d1402e"/></dir><dir name="js"><file name="precoparcelado.js" hash="b196d04a0062ecbde3bf82a2b95c65da"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FranciscoPrado_PrecoParcelado</name>
4
+ <version>1.1.0.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>M&#xF3;dulo para mostrar o pre&#xE7;o do produto em forma de parcelas, que &#xE9; um tipo de pagamento comum no Brasil.</summary>
10
  <description>Com esta extens&#xE3;o &#xE9; poss&#xED;vel voc&#xEA; mostrar o pre&#xE7;o parcelado do seu produto. Atrav&#xE9;s do painel de administra&#xE7;&#xE3;o &#xE9; poss&#xED;vel configurar os modos de exibi&#xE7;&#xE3;o (tabela de parcelas ou em texto espec&#xED;fico), n&#xFA;mero de meses, valor do juros, juro simples ou composto, parcela m&#xED;nima, entre outros.</description>
11
+ <notes>Terceira vers&#xE3;o est&#xE1;vel.</notes>
12
  <authors><author><name>Francisco Prado</name><user>fr_prado</user><email>franciscontato@gmail.com</email></author></authors>
13
  <date>2014-08-06</date>
14
+ <time>12:00:39</time>
15
+ <contents><target name="magecommunity"><dir name="FranciscoPrado"><dir name="PrecoParcelado"><dir name="etc"><file name="config.xml" hash="b3848abc429b5560a7613f7936fc6fd5"/><file name="system.xml" hash="dcf2d6a5c24cb16d191a96eb04ceb0b9"/></dir><dir name="Helper"><file name="Data.php" hash="5b7d4cccefd84b8f1095179ea7120cb4"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="franciscoprado_precoparcelado.xml" hash="2e78e3b82b16ca71f4f678ae89c6930e"/></dir><dir name="template"><dir name="precoparcelado"><file name="jsdata.phtml" hash="c1cbd480b4839ac5681d58f7090f46f9"/><file name="table.phtml" hash="5375174d15dc910bf48cff5f55c88eed"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FranciscoPrado_PrecoParcelado.xml" hash="ff2352dd5dcf370b98b77782ac230e5f"/></dir></target><target name="magelocale"><dir name="pt_BR"><file name="FranciscoPrado_PrecoParcelado.csv" hash="20d484ae51b10f0bda926502b383a61d"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="precoparcelado.css" hash="8b127443908efc0529ff9953e4d1402e"/></dir><dir name="js"><file name="precoparcelado.js" hash="ea630f0ab4b7be6efc08cb40150194b7"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/frontend/base/default/js/precoparcelado.js CHANGED
@@ -23,9 +23,7 @@ $pp(document).ready(function() {
23
  };
24
 
25
  var getCompoundInterest = function(value, interest, parcels) {
26
- console.log(value,interest,parcels)
27
-
28
- interest = interest / 100;
29
  var parcelValue = value * Math.pow((1 + interest), parcels);
30
  var parcelValue = parcelValue / parcels;
31
 
@@ -76,13 +74,9 @@ $pp(document).ready(function() {
76
  var ppCurrencyFormat = optionsPrice.priceFormat.pattern.replace('%s', '');
77
  var ppDecimalSymbol = optionsPrice.priceFormat.decimalSymbol;
78
  var ppGroupSymbol = optionsPrice.priceFormat.groupSymbol;
79
- var ppCurrent = parseFloat(ppTotalPrice.replace(ppCurrencyFormat, '').replace(ppDecimalSymbol, '.').replace(ppGroupSymbol, '.'));
80
 
81
- console.log(ppTotalPrice, ppCurrencyFormat, ppDecimalSymbol, ppGroupSymbol);
82
- console.log(ppCurrent);
83
  getPrice(ppCurrent);
84
-
85
- console.log(ppTotalPrice, ppCurrent);
86
  };
87
 
88
  $pp('*[name^=super_attribute], *[name^=options]').on('change', onPriceChange);
23
  };
24
 
25
  var getCompoundInterest = function(value, interest, parcels) {
26
+ interest = interest / 100;
 
 
27
  var parcelValue = value * Math.pow((1 + interest), parcels);
28
  var parcelValue = parcelValue / parcels;
29
 
74
  var ppCurrencyFormat = optionsPrice.priceFormat.pattern.replace('%s', '');
75
  var ppDecimalSymbol = optionsPrice.priceFormat.decimalSymbol;
76
  var ppGroupSymbol = optionsPrice.priceFormat.groupSymbol;
77
+ var ppCurrent = parseFloat(ppTotalPrice.replace(ppCurrencyFormat, '').replace(ppGroupSymbol, '').replace(ppDecimalSymbol, ','));
78
 
 
 
79
  getPrice(ppCurrent);
 
 
80
  };
81
 
82
  $pp('*[name^=super_attribute], *[name^=options]').on('change', onPriceChange);