Yireo_CheckoutTester - Version 0.1.4

Version Notes

No notes

Download this release

Release Info

Developer Yireo
Extension Yireo_CheckoutTester
Version 0.1.4
Comparing to
See all releases


Code changes from version 0.1.3 to 0.1.4

app/code/community/Yireo/CheckoutTester/Block/Field/Link.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Yireo CheckoutTester for Magento
4
+ *
5
+ * @package Yireo_CheckoutTester
6
+ * @author Yireo (http://www.yireo.com/)
7
+ * @copyright Copyright (C) 2014 Yireo (http://www.yireo.com/)
8
+ * @license Open Source License (OSL v3)
9
+ */
10
+
11
+ class Yireo_CheckoutTester_Block_Field_Link extends Mage_Adminhtml_Block_System_Config_Form_Field
12
+ {
13
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
14
+ {
15
+ $link = $this->getFrontendLink();
16
+ $html = '<a href="'.$link.'" target="_new">'
17
+ . $this->__('Open success page in new window')
18
+ . '</a>';
19
+ return $html;
20
+ }
21
+
22
+ public function getFrontendLink()
23
+ {
24
+ $storeId = Mage::app()->getWebsite(true)->getDefaultGroup()->getDefaultStoreId();
25
+ return Mage::app()->getStore($storeId)->getUrl('checkouttester/index/success');
26
+ }
27
+ }
app/code/community/Yireo/CheckoutTester/etc/config.xml CHANGED
@@ -13,7 +13,7 @@
13
 
14
  <modules>
15
  <Yireo_CheckoutTester>
16
- <version>0.1.3</version>
17
  </Yireo_CheckoutTester>
18
  </modules>
19
 
13
 
14
  <modules>
15
  <Yireo_CheckoutTester>
16
+ <version>0.1.4</version>
17
  </Yireo_CheckoutTester>
18
  </modules>
19
 
app/code/community/Yireo/CheckoutTester/etc/system.xml CHANGED
@@ -53,8 +53,8 @@
53
  <show_in_store>1</show_in_store>
54
  </ip>
55
  <checkout_onepage_controller_success_action translate="label">
56
- <label>Enabled</label>
57
- <comment><![CDATA[Generate event checkout_onepage_controller_success_action]]></comment>
58
  <frontend_type>select</frontend_type>
59
  <source_model>adminhtml/system_config_source_yesno</source_model>
60
  <sort_order>3</sort_order>
@@ -62,6 +62,13 @@
62
  <show_in_website>1</show_in_website>
63
  <show_in_store>1</show_in_store>
64
  </checkout_onepage_controller_success_action>
 
 
 
 
 
 
 
65
  </fields>
66
  </settings>
67
  </groups>
53
  <show_in_store>1</show_in_store>
54
  </ip>
55
  <checkout_onepage_controller_success_action translate="label">
56
+ <label>Generate event</label>
57
+ <comment><![CDATA[Event "checkout_onepage_controller_success_action"]]></comment>
58
  <frontend_type>select</frontend_type>
59
  <source_model>adminhtml/system_config_source_yesno</source_model>
60
  <sort_order>3</sort_order>
62
  <show_in_website>1</show_in_website>
63
  <show_in_store>1</show_in_store>
64
  </checkout_onepage_controller_success_action>
65
+ <frontend_link translate="label" module="paypal">
66
+ <frontend_model>checkouttester/field_link</frontend_model>
67
+ <sort_order>0</sort_order>
68
+ <show_in_default>1</show_in_default>
69
+ <show_in_website>1</show_in_website>
70
+ <show_in_store>1</show_in_store>
71
+ </frontend_link>
72
  </fields>
73
  </settings>
74
  </groups>
app/design/adminhtml/default/default/template/checkouttester/field/link.phtml ADDED
@@ -0,0 +1 @@
 
1
+ test
package.xml CHANGED
@@ -1,2 +1,2 @@
1
  <?xml version="1.0"?>
2
- <package><name>Yireo_CheckoutTester</name><version>0.1.3</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2014-09-18</date><time>10:20:58</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_CheckoutTester.xml" hash="5c25ce11fa9c85fa23a32225a674951a"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="checkouttester.xml" hash="9e0113d1d3df1d561c6846fec010f406"/></dir></dir></dir></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="CheckoutTester"><dir name="etc"><file name="adminhtml.xml" hash="e55f7023e0538a0cd564dd5c9327465d"/><file name="config.xml" hash="c12245311dff21637f6f5b0d1d6e308c"/><file name="system.xml" hash="8e1520e370f90fae4f8d4217b03aaa31"/></dir><dir name="controllers"><file name="IndexController.php" hash="ab82e16f098cdd384f5626932234e547"/></dir><dir name="Model"><file name="Feed.php" hash="da5af719014c1cb94daad9cbe5a340b4"/><file name="Observer.php" hash="00c05b283b67c57442aaf0216764e7f3"/></dir><dir name="Helper"><file name="Data.php" hash="f5b4c221436bb54b3707bb90c9083373"/></dir><dir name="Block"><file name="Success.php" hash="a069a62e023e121238126212ca24601e"/></dir></dir></dir></dir></dir></dir></target></contents></package>
1
  <?xml version="1.0"?>
2
+ <package><name>Yireo_CheckoutTester</name><version>0.1.4</version><stability>stable</stability><license>Open Source License</license><channel>community</channel><extends></extends><summary>No summary</summary><description>No description</description><notes>No notes</notes><authors><author><name>Yireo</name><user>yireo</user><email>info@yireo.com</email></author></authors><date>2014-09-30</date><time>9:21:22</time><compatible></compatible><dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies><contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Yireo_CheckoutTester.xml" hash="5c25ce11fa9c85fa23a32225a674951a"/></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="checkouttester.xml" hash="9e0113d1d3df1d561c6846fec010f406"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="checkouttester"><dir name="field"><file name="link.phtml" hash="d8e8fca2dc0f896fd7cb4cb0031ba249"/></dir></dir></dir></dir></dir></dir></dir><dir name="code"><dir name="community"><dir name="Yireo"><dir name="CheckoutTester"><dir name="etc"><file name="adminhtml.xml" hash="e55f7023e0538a0cd564dd5c9327465d"/><file name="config.xml" hash="799df51333839334e51ee1744bd2da2c"/><file name="system.xml" hash="39206a14de6ceb23ec151954fd20bc18"/></dir><dir name="controllers"><file name="IndexController.php" hash="ab82e16f098cdd384f5626932234e547"/></dir><dir name="Model"><file name="Feed.php" hash="da5af719014c1cb94daad9cbe5a340b4"/><file name="Observer.php" hash="00c05b283b67c57442aaf0216764e7f3"/></dir><dir name="Helper"><file name="Data.php" hash="f5b4c221436bb54b3707bb90c9083373"/></dir><dir name="Block"><file name="Success.php" hash="a069a62e023e121238126212ca24601e"/><dir name="Field"><file name="Link.php" hash="bc51eeba95931d81c8ca9098a60eacaf"/></dir></dir></dir></dir></dir></dir></dir></target></contents></package>