FranciscoPrado_PrecoParcelado - Version 3.0.0.2

Version Notes

- Não-exibição de tabela de parcelas caso não haja parcela.

Download this release

Release Info

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


Code changes from version 3.0.0.1 to 3.0.0.2

app/design/frontend/base/default/template/precoparcelado/table.phtml CHANGED
@@ -9,6 +9,11 @@ if ($isActive && $showTable):
9
  $interest = $helper->getInterest();
10
  $productPrice = Mage::registry('current_product')->getFinalPrice();
11
  ?>
 
 
 
 
 
12
  <table class="precoparcelado-table">
13
  <thead>
14
  <tr>
@@ -53,6 +58,6 @@ if ($isActive && $showTable):
53
  </tbody>
54
  </table>
55
  <?php
56
-
57
 
58
  endif;
9
  $interest = $helper->getInterest();
10
  $productPrice = Mage::registry('current_product')->getFinalPrice();
11
  ?>
12
+ <?php
13
+ $parcel = $helper->getParcelsValue($productPrice, $interest, 2);
14
+
15
+ if ($parcel > $minParcelValue):
16
+ ?>
17
  <table class="precoparcelado-table">
18
  <thead>
19
  <tr>
58
  </tbody>
59
  </table>
60
  <?php
61
+ endif;
62
 
63
  endif;
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>FranciscoPrado_PrecoParcelado</name>
4
- <version>3.0.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl- 3.0.php">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, parcela m&#xED;nima, entre outros.</description>
11
- <notes>- Corre&#xE7;&#xE3;o no m&#xF3;dulo</notes>
12
  <authors><author><name>Francisco Prado</name><user>fr_prado</user><email>franciscontato@gmail.com</email></author></authors>
13
- <date>2016-01-04</date>
14
- <time>20:36:18</time>
15
- <contents><target name="magecommunity"><dir name="FranciscoPrado"><dir name="PrecoParcelado"><dir name="Helper"><file name="Data.php" hash="723424a15f473eec46cc4d47583e6e07"/></dir><dir name="etc"><file name="config.xml" hash="7a9d0a2cafc2e8650c2191e1de77a15a"/><file name="system.xml" hash="28074728f78b3083b41f78dcd3f39a80"/></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="004256a8e1c4fd5f6a7ddf91ca59fd7a"/></dir><dir name="template"><dir name="precoparcelado"><file name="jsdata.phtml" hash="7c05341c50664fc28ee9b5027e5bcc5e"/><file name="table.phtml" hash="e1d3f82ccbca6586755a53f5a58b5568"/></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="4955e05a351fd096833bd4624e573ecc"/></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="9d048b9ee02ef4b9c62b0d0c2b8bb846"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.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>3.0.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl- 3.0.php">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, parcela m&#xED;nima, entre outros.</description>
11
+ <notes>- N&#xE3;o-exibi&#xE7;&#xE3;o de tabela de parcelas caso n&#xE3;o haja parcela.</notes>
12
  <authors><author><name>Francisco Prado</name><user>fr_prado</user><email>franciscontato@gmail.com</email></author></authors>
13
+ <date>2016-02-15</date>
14
+ <time>19:04:07</time>
15
+ <contents><target name="magecommunity"><dir name="FranciscoPrado"><dir name="PrecoParcelado"><dir name="Helper"><file name="Data.php" hash="723424a15f473eec46cc4d47583e6e07"/></dir><dir name="etc"><file name="config.xml" hash="7a9d0a2cafc2e8650c2191e1de77a15a"/><file name="system.xml" hash="28074728f78b3083b41f78dcd3f39a80"/></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="004256a8e1c4fd5f6a7ddf91ca59fd7a"/></dir><dir name="template"><dir name="precoparcelado"><file name="jsdata.phtml" hash="7c05341c50664fc28ee9b5027e5bcc5e"/><file name="table.phtml" hash="7d1cf9a77ad916fb297b7430d155d985"/></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="4955e05a351fd096833bd4624e573ecc"/></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="9d048b9ee02ef4b9c62b0d0c2b8bb846"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>