IG_PostePay - Version 1.0.1

Version Notes

Enjoy it ;)

Download this release

Release Info

Developer Magento Core Team
Extension IG_PostePay
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/IG/PostePay/Block/Info.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class IG_PostePay_Block_Info extends Mage_Payment_Block_Info
3
+ {
4
+ protected function _construct()
5
+ {
6
+ parent::_construct();
7
+ $this->setTemplate('ig_postepay/info.phtml');
8
+ }
9
+ }
app/code/community/IG/PostePay/Model/Postepay.php CHANGED
@@ -5,6 +5,7 @@ class IG_PostePay_Model_Postepay extends Mage_Payment_Model_Method_Abstract
5
  protected $_paymentMethod = 'ig_postepay';
6
  protected $_store_config = 'payment/ig_postepay';
7
  protected $_formBlockType = 'ig_postepay/form';
 
8
 
9
  protected $_isGateway = false;
10
  protected $_canAuthorize = true;
5
  protected $_paymentMethod = 'ig_postepay';
6
  protected $_store_config = 'payment/ig_postepay';
7
  protected $_formBlockType = 'ig_postepay/form';
8
+ protected $_infoBlockType = 'ig_postepay/info';
9
 
10
  protected $_isGateway = false;
11
  protected $_canAuthorize = true;
app/code/community/IG/PostePay/etc/config.xml CHANGED
@@ -1,7 +1,7 @@
1
  <config>
2
  <modules>
3
  <IG_PostePay>
4
- <version>1.0.0</version>
5
  </IG_PostePay>
6
  </modules>
7
 
@@ -73,6 +73,7 @@
73
  <payment>
74
  <ig_postepay>
75
  <active>1</active>
 
76
  <model>ig_postepay/postepay</model>
77
  <order_status>pending</order_status>
78
  <title>Ricarica PostePay</title>
1
  <config>
2
  <modules>
3
  <IG_PostePay>
4
+ <version>1.0.1</version>
5
  </IG_PostePay>
6
  </modules>
7
 
73
  <payment>
74
  <ig_postepay>
75
  <active>1</active>
76
+ <displaycheckout>1</displaycheckout>
77
  <model>ig_postepay/postepay</model>
78
  <order_status>pending</order_status>
79
  <title>Ricarica PostePay</title>
app/code/community/IG/PostePay/etc/system.xml CHANGED
@@ -19,13 +19,22 @@
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
21
  </active>
 
 
 
 
 
 
 
 
 
22
  <title translate="label">
23
  <label>Title</label>
24
  <frontend_type>text</frontend_type>
25
  <sort_order>20</sort_order>
26
  <show_in_default>1</show_in_default>
27
  <show_in_website>1</show_in_website>
28
- <show_in_store>0</show_in_store>
29
  </title>
30
  <order_status translate="label">
31
  <label>New order status</label>
@@ -34,7 +43,7 @@
34
  <sort_order>30</sort_order>
35
  <show_in_default>1</show_in_default>
36
  <show_in_website>1</show_in_website>
37
- <show_in_store>0</show_in_store>
38
  </order_status>
39
  <allowspecific translate="label">
40
  <label>Payment from applicable countries</label>
@@ -43,7 +52,7 @@
43
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
44
  <show_in_default>1</show_in_default>
45
  <show_in_website>1</show_in_website>
46
- <show_in_store>0</show_in_store>
47
  </allowspecific>
48
  <specificcountry translate="label">
49
  <label>Payment from Specific countries</label>
@@ -61,7 +70,7 @@
61
  <sort_order>60</sort_order>
62
  <show_in_default>1</show_in_default>
63
  <show_in_website>1</show_in_website>
64
- <show_in_store>0</show_in_store>
65
  </creditcard>
66
  <creditholder translate="label">
67
  <label>Your PostePay Card Holder</label>
@@ -70,7 +79,7 @@
70
  <sort_order>70</sort_order>
71
  <show_in_default>1</show_in_default>
72
  <show_in_website>1</show_in_website>
73
- <show_in_store>0</show_in_store>
74
  </creditholder>
75
  <freetext translate="label">
76
  <label>Free text</label>
@@ -78,7 +87,7 @@
78
  <sort_order>80</sort_order>
79
  <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
81
- <show_in_store>0</show_in_store>
82
  </freetext>
83
  </fields>
84
  </ig_postepay>
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
21
  </active>
22
+ <displaycheckout translate="label">
23
+ <label>Display credit card info on checkout</label>
24
+ <frontend_type>select</frontend_type>
25
+ <source_model>adminhtml/system_config_source_yesno</source_model>
26
+ <sort_order>15</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>1</show_in_store>
30
+ </displaycheckout>
31
  <title translate="label">
32
  <label>Title</label>
33
  <frontend_type>text</frontend_type>
34
  <sort_order>20</sort_order>
35
  <show_in_default>1</show_in_default>
36
  <show_in_website>1</show_in_website>
37
+ <show_in_store>1</show_in_store>
38
  </title>
39
  <order_status translate="label">
40
  <label>New order status</label>
43
  <sort_order>30</sort_order>
44
  <show_in_default>1</show_in_default>
45
  <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
  </order_status>
48
  <allowspecific translate="label">
49
  <label>Payment from applicable countries</label>
52
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
53
  <show_in_default>1</show_in_default>
54
  <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
  </allowspecific>
57
  <specificcountry translate="label">
58
  <label>Payment from Specific countries</label>
70
  <sort_order>60</sort_order>
71
  <show_in_default>1</show_in_default>
72
  <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
  </creditcard>
75
  <creditholder translate="label">
76
  <label>Your PostePay Card Holder</label>
79
  <sort_order>70</sort_order>
80
  <show_in_default>1</show_in_default>
81
  <show_in_website>1</show_in_website>
82
+ <show_in_store>1</show_in_store>
83
  </creditholder>
84
  <freetext translate="label">
85
  <label>Free text</label>
87
  <sort_order>80</sort_order>
88
  <show_in_default>1</show_in_default>
89
  <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
  </freetext>
92
  </fields>
93
  </ig_postepay>
app/design/frontend/default/default/template/ig_postepay/form.phtml CHANGED
@@ -8,6 +8,8 @@ $_img = $this->getPaymentImageSrc();
8
  <div style="position: relative; left: 14em; top: -2.5em"><a href="http://www.poste.it/" target="_blank"><img src="<?php echo $_img ?>" alt="" /></a></div>
9
  <?php } ?>
10
  <ul id="payment_form_<?php echo $_code ?>" style="display:none;">
 
 
11
  <?php if ($_method->getConfig('creditcard') != '') { ?>
12
  <li>
13
  <?php echo Mage::helper('ig_postepay')->__('Card number to recharge') ?>: <strong><?php echo htmlspecialchars($_method->getConfig('creditcard')) ?></strong>
@@ -23,5 +25,9 @@ $_img = $this->getPaymentImageSrc();
23
  <small><?php echo nl2br(htmlspecialchars($_method->getConfig('freetext'))) ?></small>
24
  </li>
25
  <?php } ?>
 
 
 
 
26
  </ul>
27
  </fieldset>
8
  <div style="position: relative; left: 14em; top: -2.5em"><a href="http://www.poste.it/" target="_blank"><img src="<?php echo $_img ?>" alt="" /></a></div>
9
  <?php } ?>
10
  <ul id="payment_form_<?php echo $_code ?>" style="display:none;">
11
+ <?php if ($_method->getConfig('displaycheckout')) { ?>
12
+
13
  <?php if ($_method->getConfig('creditcard') != '') { ?>
14
  <li>
15
  <?php echo Mage::helper('ig_postepay')->__('Card number to recharge') ?>: <strong><?php echo htmlspecialchars($_method->getConfig('creditcard')) ?></strong>
25
  <small><?php echo nl2br(htmlspecialchars($_method->getConfig('freetext'))) ?></small>
26
  </li>
27
  <?php } ?>
28
+
29
+ <?php } else { ?>
30
+ <li><?php echo Mage::helper('ig_postepay')->__('You will receive further shppoer information via email') ?></li>
31
+ <?php } ?>
32
  </ul>
33
  </fieldset>
app/design/frontend/default/default/template/ig_postepay/info.phtml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $_method = $this->getMethod();
3
+ ?>
4
+ <p><?php echo $this->htmlEscape($this->getMethod()->getTitle()) ?></p>
5
+ <?php echo Mage::helper('ig_postepay')->__('Card number to recharge') ?>:<br /><strong><?php echo htmlspecialchars($_method->getConfig('creditcard')) ?></strong><br />
6
+ <br />
7
+ <?php echo Mage::helper('ig_postepay')->__('Credit card holder') ?>:<br /><strong><?php echo htmlspecialchars($_method->getConfig('creditholder')) ?></strong><br />
8
+ <br />
9
+ <small><?php echo nl2br(htmlspecialchars($_method->getConfig('freetext'))) ?></small>
app/locale/en_US/IG_PostePay.csv CHANGED
@@ -5,4 +5,5 @@
5
  "This will be displayed in payment page","This will be displayed in payment page"
6
  "Free text","Free text"
7
  "Card number to recharge","Card number to recharge"
8
- "Credit card holder","Credit card holder"
 
5
  "This will be displayed in payment page","This will be displayed in payment page"
6
  "Free text","Free text"
7
  "Card number to recharge","Card number to recharge"
8
+ "Credit card holder","Credit card holder"
9
+ "Display credit card info on checkout","Display credit card info on checkout"
app/locale/it_IT/IG_PostePay.csv CHANGED
@@ -5,4 +5,5 @@
5
  "This will be displayed in payment page","Questo verr&agrave; mostrato nella pagina di pagamento"
6
  "Free text","Note aggiuntive"
7
  "Card number to recharge","Numero carta da ricaricare"
8
- "Credit card holder","Titolare della carta"
 
5
  "This will be displayed in payment page","Questo verr&agrave; mostrato nella pagina di pagamento"
6
  "Free text","Note aggiuntive"
7
  "Card number to recharge","Numero carta da ricaricare"
8
+ "Credit card holder","Titolare della carta"
9
+ "Display credit card info on checkout","Mostra informazioni carta nel checkout"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>IG_PostePay</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.idealiagroup.com/magento-modules-license.html">Community</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Modulo molto semplice e pronto all'uso per ricevere pagamenti con ricariche postepay.</description>
11
  <notes>Enjoy it ;)</notes>
12
  <authors><author><name>Riccardo Tempesta</name><user>auto-converted</user><email>tempesta@idealiagroup.com</email></author><author><name>Marco Giorgetti</name><user>auto-converted</user><email>giorgetti@idealiagroup.com</email></author></authors>
13
- <date>2009-09-23</date>
14
- <time>04:41:29</time>
15
- <contents><target name="magelocale"><dir name="en_US"><file name="IG_PostePay.csv" hash="abe9cc312a947f76ece88f897df0da09"/></dir><dir name="it_IT"><file name="IG_PostePay.csv" hash="141b557dc8ce312b311a995de3113184"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="ig_postepay"><file name="logo.png" hash="d64f101cb7d964caeb7a007ba134a327"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ig_postepay"><file name="form.phtml" hash="59217b3de8b5e0621b84d314f88a09ca"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="IG"><dir name="PostePay"><dir name="Block"><file name="Form.php" hash="117863d84645588b44b551a3bd8e4736"/></dir><dir name="etc"><file name="config.xml" hash="4def7ca83764b5c5acb0558262e2db5e"/><file name="system.xml" hash="128558f80b85ad5e4f6796a3f2735209"/></dir><dir name="Helper"><file name="Data.php" hash="bc7149e2cc77e1e2191fca711ee986c1"/></dir><dir name="Model"><file name="Postepay.php" hash="20bb888997447b5ddd965e1c0ed51e5e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="IG_PostePay.xml" hash="7feb712df5d00b003b85a681db6e045f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>IG_PostePay</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.idealiagroup.com/magento-modules-license.html">Community</license>
7
  <channel>community</channel>
10
  <description>Modulo molto semplice e pronto all'uso per ricevere pagamenti con ricariche postepay.</description>
11
  <notes>Enjoy it ;)</notes>
12
  <authors><author><name>Riccardo Tempesta</name><user>auto-converted</user><email>tempesta@idealiagroup.com</email></author><author><name>Marco Giorgetti</name><user>auto-converted</user><email>giorgetti@idealiagroup.com</email></author></authors>
13
+ <date>2009-10-26</date>
14
+ <time>16:08:24</time>
15
+ <contents><target name="magelocale"><dir name="en_US"><file name="IG_PostePay.csv" hash="5aa470b1c547ba1f726e86b0ff3f84fe"/></dir><dir name="it_IT"><file name="IG_PostePay.csv" hash="f8ac20a2ae526a2c275e5d26d0a3126a"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><dir name="ig_postepay"><file name="logo.png" hash="d64f101cb7d964caeb7a007ba134a327"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ig_postepay"><file name="form.phtml" hash="5a588c524c8382f128726684d2d44766"/><file name="info.phtml" hash="f757cbec2d06d0a03864858cb5cae82b"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="IG"><dir name="PostePay"><dir name="Block"><file name="Form.php" hash="117863d84645588b44b551a3bd8e4736"/><file name="Info.php" hash="e0bffb8795124ef1f20a7cec9847db03"/></dir><dir name="etc"><file name="config.xml" hash="d54090740e805018dc91ffc8619baa57"/><file name="system.xml" hash="3fe898665c9fc6cbedd737dc869c0487"/></dir><dir name="Helper"><file name="Data.php" hash="bc7149e2cc77e1e2191fca711ee986c1"/></dir><dir name="Model"><file name="Postepay.php" hash="6f70f684c715696cfd5c12ae3eee4a89"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="IG_PostePay.xml" hash="7feb712df5d00b003b85a681db6e045f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>