Payment_Reembolso - Version 0.1.3

Version Notes

* Adds the custom text message in the control panel.

CHANGES:
->U app/code/local/Mage/Reembolso/Model/Reembolso.php
->U app/code/local/Mage/Reembolso/etc/system.xml
->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.3
Comparing to
See all releases


Code changes from version 0.1.2 to 0.1.3

app/code/local/Mage/Reembolso/Model/Reembolso.php CHANGED
@@ -36,4 +36,8 @@ class Mage_Reembolso_Model_Reembolso extends Mage_Payment_Model_Method_Abstract
36
public function getValSupFix(){
37
return $this->getConfigData('valsupfix');
38
}
39
}
36
public function getValSupFix(){
37
return $this->getConfigData('valsupfix');
38
}
39
+ public function getCustomText()
40
+ {
41
+ return $this->getConfigData('customtext');
42
+ }
43
}
app/code/local/Mage/Reembolso/etc/system.xml CHANGED
@@ -98,6 +98,14 @@
98
<show_in_website>1</show_in_website>
99
<show_in_store>0</show_in_store>
100
</valsupfix>
101
</fields>
102
</reembolso>
103
</groups>
98
<show_in_website>1</show_in_website>
99
<show_in_store>0</show_in_store>
100
</valsupfix>
101
+ <customtext translate="label">
102
+ <label>Custom text for checkout page</label>
103
+ <frontend_type>text</frontend_type>
104
+ <sort_order>90</sort_order>
105
+ <show_in_default>1</show_in_default>
106
+ <show_in_website>1</show_in_website>
107
+ <show_in_store>0</show_in_store>
108
+ </customtext>
109
</fields>
110
</reembolso>
111
</groups>
app/design/frontend/default/default/template/reembolso/info.phtml CHANGED
@@ -1 +1,5 @@
1
- <p><?php echo $this->__('Pago contra reembolso') ?></p>
1
+ <p><?php echo $this->__('Pago contra reembolso' ) ?><br />
2
+ <?php if ($this->getMethod()->getCustomText()): ?>
3
+ <?php echo $this->getMethod()->getCustomText() ?><br />
4
+ <?php endif; ?>
5
+ </p>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Payment_Reembolso</name>
4
- <version>0.1.2</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,17 +10,16 @@
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>* Changes: set from control panel the "Certain amount", "low value" and "top value". Last these can be formed like fixed or percentages.
14
15
- CHANGES:
16
- -&gt;U app/code/local/Mage/Reembolso/Model/Quote.php
17
- -&gt;U app/code/local/Mage/Reembolso/Model/Reembolso.php
18
- -&gt;U app/code/local/Mage/Reembolso/etc/system.xml
19
- -&gt;U app/code/local/Mage/Reembolso/etc/config.xml</notes>
20
<authors><author><name>Sophie</name><user>auto-converted</user><email>lalyostres@gmail.com</email></author></authors>
21
- <date>2008-11-28</date>
22
- <time>13:13:03</time>
23
- <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="ce75a81d61ec34a17aafc9f8c3b22dcc"/><file name="info.phtml" hash="57dfa8759788a77326a833603cb978e6"/></dir></dir></dir></dir></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="73c38c018475f948b5a1813ba9f90de7"/><file name="system.xml" hash="f07e5ae4fe9c2abfee4fc9c1eb2b461c"/></dir><dir name="Model"><file name="Quote.php" hash="184e58bdc10e73a0ade664e55d43b7ec"/><file name="Reembolso.php" hash="fdcd844693227fe26b3272ba3052819b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reembolso.xml" hash="a5a370ae7cb7f2b0f72b15e7d500f47d"/></dir></target></contents>
24
<compatible/>
25
<dependencies/>
26
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Payment_Reembolso</name>
4
+ <version>0.1.3</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>* Adds the custom text message in the control panel.
14
15
+ CHANGES:
16
+ -&gt;U app/code/local/Mage/Reembolso/Model/Reembolso.php
17
+ -&gt;U app/code/local/Mage/Reembolso/etc/system.xml
18
+ -&gt;U app/design/frontend/default/default/template/reembolso/info.phtml</notes>
19
<authors><author><name>Sophie</name><user>auto-converted</user><email>lalyostres@gmail.com</email></author></authors>
20
+ <date>2008-12-01</date>
21
+ <time>11:36:53</time>
22
+ <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="ce75a81d61ec34a17aafc9f8c3b22dcc"/><file name="info.phtml" hash="95c8db91eb3230388d2a807d3117fbbe"/></dir></dir></dir></dir></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="73c38c018475f948b5a1813ba9f90de7"/><file name="system.xml" hash="5b97356ec1b91229cceda5960cf121db"/></dir><dir name="Model"><file name="Quote.php" hash="184e58bdc10e73a0ade664e55d43b7ec"/><file name="Reembolso.php" hash="b3a1eb16a323a49431f43f00fb5f437b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reembolso.xml" hash="a5a370ae7cb7f2b0f72b15e7d500f47d"/></dir></target></contents>
23
<compatible/>
24
<dependencies/>
25
</package>