Version Notes
No notes
Download this release
Release Info
| Developer | Yireo |
| Extension | Yireo_CheckoutTester |
| Version | 0.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 0.0.4 to 0.0.5
app/code/community/Yireo/CheckoutTester/controllers/IndexController.php
CHANGED
|
@@ -50,6 +50,13 @@ class Yireo_CheckoutTester_IndexController extends Mage_Core_Controller_Front_Ac
|
|
| 50 |
|
| 51 |
// Load the layout
|
| 52 |
$this->loadLayout();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
$this->renderLayout();
|
| 54 |
}
|
| 55 |
}
|
| 50 |
|
| 51 |
// Load the layout
|
| 52 |
$this->loadLayout();
|
| 53 |
+
|
| 54 |
+
// Optionally dispatch an event
|
| 55 |
+
if((bool)Mage::getStoreConfig('checkouttester/settings/checkout_onepage_controller_success_action')) {
|
| 56 |
+
Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($orderId)));
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
// Render the layout
|
| 60 |
$this->renderLayout();
|
| 61 |
}
|
| 62 |
}
|
app/code/community/Yireo/CheckoutTester/etc/config.xml
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
|
| 14 |
<modules>
|
| 15 |
<Yireo_CheckoutTester>
|
| 16 |
-
<version>0.0.
|
| 17 |
</Yireo_CheckoutTester>
|
| 18 |
</modules>
|
| 19 |
|
|
@@ -35,18 +35,6 @@
|
|
| 35 |
<class>Yireo_CheckoutTester_Model</class>
|
| 36 |
</checkouttester>
|
| 37 |
</models>
|
| 38 |
-
|
| 39 |
-
<events>
|
| 40 |
-
<controller_action_predispatch>
|
| 41 |
-
<observers>
|
| 42 |
-
<checkouttester_controller_action_predispatch>
|
| 43 |
-
<type>singleton</type>
|
| 44 |
-
<class>Yireo_CheckoutTester_Model_Observer</class>
|
| 45 |
-
<method>controllerActionPredispatch</method>
|
| 46 |
-
</checkouttester_controller_action_predispatch>
|
| 47 |
-
</observers>
|
| 48 |
-
</controller_action_predispatch>
|
| 49 |
-
</events>
|
| 50 |
</global>
|
| 51 |
|
| 52 |
<frontend>
|
|
@@ -73,6 +61,7 @@
|
|
| 73 |
<settings>
|
| 74 |
<order_id>0</order_id>
|
| 75 |
<ip></ip>
|
|
|
|
| 76 |
</settings>
|
| 77 |
</checkouttester>
|
| 78 |
</default>
|
| 13 |
|
| 14 |
<modules>
|
| 15 |
<Yireo_CheckoutTester>
|
| 16 |
+
<version>0.0.5</version>
|
| 17 |
</Yireo_CheckoutTester>
|
| 18 |
</modules>
|
| 19 |
|
| 35 |
<class>Yireo_CheckoutTester_Model</class>
|
| 36 |
</checkouttester>
|
| 37 |
</models>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
</global>
|
| 39 |
|
| 40 |
<frontend>
|
| 61 |
<settings>
|
| 62 |
<order_id>0</order_id>
|
| 63 |
<ip></ip>
|
| 64 |
+
<checkout_onepage_controller_success_action>0</checkout_onepage_controller_success_action>
|
| 65 |
</settings>
|
| 66 |
</checkouttester>
|
| 67 |
</default>
|
app/code/community/Yireo/CheckoutTester/etc/system.xml
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
<tabs>
|
| 14 |
<yireo translate="label" module="checkouttester">
|
| 15 |
<label>Yireo</label>
|
| 16 |
-
<sort_order>
|
| 17 |
</yireo>
|
| 18 |
</tabs>
|
| 19 |
<sections>
|
|
@@ -21,7 +21,7 @@
|
|
| 21 |
<label>Checkout Tester</label>
|
| 22 |
<tab>yireo</tab>
|
| 23 |
<frontend_type>text</frontend_type>
|
| 24 |
-
<sort_order>
|
| 25 |
<show_in_default>1</show_in_default>
|
| 26 |
<show_in_website>1</show_in_website>
|
| 27 |
<show_in_store>1</show_in_store>
|
|
@@ -52,6 +52,16 @@
|
|
| 52 |
<show_in_website>1</show_in_website>
|
| 53 |
<show_in_store>1</show_in_store>
|
| 54 |
</ip>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
</fields>
|
| 56 |
</settings>
|
| 57 |
</groups>
|
| 13 |
<tabs>
|
| 14 |
<yireo translate="label" module="checkouttester">
|
| 15 |
<label>Yireo</label>
|
| 16 |
+
<sort_order>1000</sort_order>
|
| 17 |
</yireo>
|
| 18 |
</tabs>
|
| 19 |
<sections>
|
| 21 |
<label>Checkout Tester</label>
|
| 22 |
<tab>yireo</tab>
|
| 23 |
<frontend_type>text</frontend_type>
|
| 24 |
+
<sort_order>1000</sort_order>
|
| 25 |
<show_in_default>1</show_in_default>
|
| 26 |
<show_in_website>1</show_in_website>
|
| 27 |
<show_in_store>1</show_in_store>
|
| 52 |
<show_in_website>1</show_in_website>
|
| 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>
|
| 61 |
+
<show_in_default>1</show_in_default>
|
| 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>
|
app/design/frontend/base/default/layout/checkouttester.xml
CHANGED
|
@@ -10,12 +10,6 @@
|
|
| 10 |
-->
|
| 11 |
<layout version="0.1.0">
|
| 12 |
<checkouttester_index_success translate="label">
|
| 13 |
-
<
|
| 14 |
-
<reference name="root">
|
| 15 |
-
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
|
| 16 |
-
</reference>
|
| 17 |
-
<reference name="content">
|
| 18 |
-
<block type="checkouttester/success" name="checkout.success" template="checkout/success.phtml"/>
|
| 19 |
-
</reference>
|
| 20 |
</checkouttester_index_success>
|
| 21 |
</layout>
|
| 10 |
-->
|
| 11 |
<layout version="0.1.0">
|
| 12 |
<checkouttester_index_success translate="label">
|
| 13 |
+
<update handle="checkout_onepage_success" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
</checkouttester_index_success>
|
| 15 |
</layout>
|
package.xml
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
-
<package><name>Yireo_CheckoutTester</name><version>0.0.
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
+
<package><name>Yireo_CheckoutTester</name><version>0.0.5</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-06-25</date><time>8:17:29</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="ace44506644a6bb2ed297fad63d28af4"/><file name="system.xml" hash="8e1520e370f90fae4f8d4217b03aaa31"/></dir><dir name="controllers"><file name="IndexController.php" hash="497df6e9d7c4c54635ffc9c727d93d1e"/></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="4b908f748d9f003b5f3cc23f7dbcb9b3"/></dir><dir name="Block"><file name="Success.php" hash="a069a62e023e121238126212ca24601e"/></dir></dir></dir></dir></dir></dir></target></contents></package>
|
