Payment_Reembolso - Version 0.1.5

Version Notes

* Fix error, not work version 0.1.4
* Change message text

CHANGES:
->U app/code/local/Mage/Reembolso/Model/Reembolso.php
->U app/code/local/Mage/Reembolso/Model/Quote.php
->U app/design/frontend/default/default/template/reembolso/form.phtml
->U app/design/frontend/default/default/template/reembolso/info.phtml

Download this release

Release Info

Developer Magento Core Team
Extension Payment_Reembolso
Version 0.1.5
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.5

app/code/local/Mage/Reembolso/Model/Reembolso.php CHANGED
@@ -6,14 +6,35 @@ class Mage_Reembolso_Model_Reembolso extends Mage_Payment_Model_Method_Abstract
6
  protected $_formBlockType = 'reembolso/form';
7
  protected $_infoBlockType = 'reembolso/info';
8
 
9
- protected function __contruct(){
10
- $this->setReembolsoTitle($this->getConfigData('title'));
11
- $this->setValorTope($this->getConfigData('montotope'));
12
- $this->setValorInferior($this->getConfigData('valorinferior'));
13
- $this->setValorSuperior($this->getConfigData('valorsuperior'));
14
- $this->setValInfFix($this->getConfigData('valinffix'));
15
- $this->setValSupFix($this->getConfigData('valsupfix'));
16
- $this->setCustomTextForm($this->getConfigData('customtextform'));
17
- $this->setCustomTextInfo($this->getConfigData('customtextinfo'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  }
19
  }
6
  protected $_formBlockType = 'reembolso/form';
7
  protected $_infoBlockType = 'reembolso/info';
8
 
9
+ public function getReembolsoTitle(){
10
+ return $this->getConfigData('title');
11
+ }
12
+
13
+ public function getValorTope(){
14
+ return $this->getConfigData('montotope');
15
+ }
16
+
17
+ public function getValorInferior(){
18
+ return $this->getConfigData('valorinferior');
19
+ }
20
+
21
+ public function getValorSuperior(){
22
+ return $this->getConfigData('valorsuperior');
23
+ }
24
+
25
+ public function getValInfFix() {
26
+ return $this->getConfigData('valinffix');
27
+ }
28
+
29
+ public function getValSupFix(){
30
+ return $this->getConfigData('valsupfix');
31
+ }
32
+
33
+ public function getCustomTextForm(){
34
+ return $this->getConfigData('customtextform');
35
+ }
36
+
37
+ public function getCustomTextInfo(){
38
+ return $this->getConfigData('customtextinfo');
39
  }
40
  }
app/design/frontend/default/default/template/reembolso/form.phtml CHANGED
@@ -1,12 +1,13 @@
1
  <div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none;">
2
  <table>
 
3
  <tr>
4
- <td><?php echo $this->__('El pago ser&aacute; realizado en la direcci&oacute;n de destino') ?></td>
5
  </tr>
6
- <?php if ($this->getMethod()->getCustomTextForm()): ?>
7
  <tr>
8
- <td><?php echo $this->getMethod()->getCustomTextForm() ?></td>
9
  </tr>
10
- <?php endif; ?>
11
  </table>
12
  </div>
1
  <div id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none;">
2
  <table>
3
+ <?php if ($this->getMethod()->getCustomTextForm()){ ?>
4
  <tr>
5
+ <td><?php echo $this->getMethod()->getCustomTextForm() ?></td>
6
  </tr>
7
+ <?php } else { ?>
8
  <tr>
9
+ <td><?php echo $this->__('El pago ser&aacute; realizado en la direcci&oacute;n de destino') ?></td>
10
  </tr>
11
+ <?php } ?>
12
  </table>
13
  </div>
app/design/frontend/default/default/template/reembolso/info.phtml CHANGED
@@ -1,4 +1,4 @@
1
- <p><?php echo $this->__('Pago contra reembolso' ) ?><br />
2
  <?php if ($this->getMethod()->getCustomTextInfo()): ?>
3
  <?php echo $this->getMethod()->getCustomTextInfo() ?><br />
4
  <?php endif; ?>
1
+ <p><?php echo $this->getMethod()->getReembolsoTitle() ?><br />
2
  <?php if ($this->getMethod()->getCustomTextInfo()): ?>
3
  <?php echo $this->getMethod()->getCustomTextInfo() ?><br />
4
  <?php endif; ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Payment_Reembolso</name>
4
- <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,20 +10,18 @@
10
  <description>It establishes different amount for the amount of the purchase. If it is minor that the Certain amount, the amount of the service will be a fixed value; if the amount is major that the Certain amount, the amount of the service will be a percentage of the same one.
11
  To do:
12
  Set from the control panel the fixed value, the value percentage and the Certain amount.</description>
13
- <notes>* Add translate file
14
- * Adds different custom message
15
 
16
  &lt;b&gt;CHANGES:&lt;/b&gt;
17
- -&gt;A app/locale/es_ES/Mage_Reembolso.csv
18
- -&gt;U app/code/local/Mage/Reembolso/etc/system.xml
19
  -&gt;U app/code/local/Mage/Reembolso/Model/Reembolso.php
20
- -&gt;U app/code/local/Mage/Reembolso/etc/config.xml
21
  -&gt;U app/design/frontend/default/default/template/reembolso/form.phtml
22
  -&gt;U app/design/frontend/default/default/template/reembolso/info.phtml</notes>
23
  <authors><author><name>Sophie</name><user>auto-converted</user><email>lalyostres@gmail.com</email></author><author><name>Manuel</name><user>auto-converted</user><email>manuelcanepa@gmail.com</email></author></authors>
24
- <date>2008-12-03</date>
25
- <time>14:57:46</time>
26
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="reembolso"><file name="form.phtml" hash="ce75a81d61ec34a17aafc9f8c3b22dcc"/><file name="info.phtml" hash="57dfa8759788a77326a833603cb978e6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="reembolso"><file name="form.phtml" hash="5f5fbdb3061101cbb748a01268a6c29a"/><file name="info.phtml" hash="19d5379474940351367f3459822c1810"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="es_ES"><file name="Mage_Reembolso.csv" hash="42e01f656ee2d0223e95e10ed54b26ce"/></dir></target><target name="magelocal"><dir name="Mage"><dir name="Reembolso"><dir name="Block"><file name="Form.php" hash="21f1e325029d98571ec884bca2234e65"/><file name="Info.php" hash="33f48eab752f05362c553b63de5d9c42"/></dir><dir name="etc"><file name="config.xml" hash="7c46dc9ef3f9811fe3cf40de917a6656"/><file name="system.xml" hash="8e1bf64b00d65ed46452f359e9b8ae01"/></dir><dir name="Helper"><file name="Data.php" hash="1445d2b92929e66446fe0c1ae4620d55"/></dir><dir name="Model"><file name="Quote.php" hash="6059126218ee9aa9f3a6c18e41ef6255"/><file name="Reembolso.php" hash="783d6cd48a4350c7cb196b2f834dab7a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reembolso.xml" hash="a5a370ae7cb7f2b0f72b15e7d500f47d"/></dir></target></contents>
27
  <compatible/>
28
  <dependencies/>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Payment_Reembolso</name>
4
+ <version>0.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>It establishes different amount for the amount of the purchase. If it is minor that the Certain amount, the amount of the service will be a fixed value; if the amount is major that the Certain amount, the amount of the service will be a percentage of the same one.
11
  To do:
12
  Set from the control panel the fixed value, the value percentage and the Certain amount.</description>
13
+ <notes>* Fix error, not work version 0.1.4
14
+ * Change message text
15
 
16
  &lt;b&gt;CHANGES:&lt;/b&gt;
 
 
17
  -&gt;U app/code/local/Mage/Reembolso/Model/Reembolso.php
18
+ -&gt;U app/code/local/Mage/Reembolso/Model/Quote.php
19
  -&gt;U app/design/frontend/default/default/template/reembolso/form.phtml
20
  -&gt;U app/design/frontend/default/default/template/reembolso/info.phtml</notes>
21
  <authors><author><name>Sophie</name><user>auto-converted</user><email>lalyostres@gmail.com</email></author><author><name>Manuel</name><user>auto-converted</user><email>manuelcanepa@gmail.com</email></author></authors>
22
+ <date>2008-12-05</date>
23
+ <time>09:18:18</time>
24
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="reembolso"><file name="form.phtml" hash="ce75a81d61ec34a17aafc9f8c3b22dcc"/><file name="info.phtml" hash="57dfa8759788a77326a833603cb978e6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="reembolso"><file name="form.phtml" hash="cdc021084d6bdf947fb5119242bae56e"/><file name="info.phtml" hash="65dad5a1fdbd665a48652ed66abc5cb6"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="es_ES"><file name="Mage_Reembolso.csv" hash="42e01f656ee2d0223e95e10ed54b26ce"/></dir></target><target name="magelocal"><dir name="Mage"><dir name="Reembolso"><dir name="Block"><file name="Form.php" hash="21f1e325029d98571ec884bca2234e65"/><file name="Info.php" hash="33f48eab752f05362c553b63de5d9c42"/></dir><dir name="etc"><file name="config.xml" hash="7c46dc9ef3f9811fe3cf40de917a6656"/><file name="system.xml" hash="8e1bf64b00d65ed46452f359e9b8ae01"/></dir><dir name="Helper"><file name="Data.php" hash="1445d2b92929e66446fe0c1ae4620d55"/></dir><dir name="Model"><file name="Quote.php" hash="6059126218ee9aa9f3a6c18e41ef6255"/><file name="Reembolso.php" hash="c12f04e6c635318e0fb1e8c35ecb5093"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reembolso.xml" hash="a5a370ae7cb7f2b0f72b15e7d500f47d"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies/>
27
  </package>