├── INSTALL.md ├── LICENSE.txt ├── README.md ├── USAGE.md ├── composer.json ├── modman └── source └── app ├── code └── community │ └── Yireo │ └── CheckoutTester │ ├── Block │ ├── Field │ │ └── Link.php │ └── Success.php │ ├── Helper │ └── Data.php │ ├── Model │ ├── Feed.php │ ├── Ip.php │ ├── Observer.php │ └── Observer │ │ └── AddFeed.php │ ├── controllers │ └── IndexController.php │ └── etc │ ├── adminhtml.xml │ ├── config.xml │ └── system.xml ├── design └── frontend │ └── base │ └── default │ └── layout │ └── checkouttester.xml └── etc └── modules └── Yireo_CheckoutTester.xml /INSTALL.md: -------------------------------------------------------------------------------- 1 | # Installation 2 | You can install this module in various ways: 3 | 4 | 1) Download the MagentoConnect package from our site and upload it into your own Magento 5 | Downloader application. 6 | 7 | 2) Download the Magento source archive from our site, extract the files and upload the 8 | files to your Magento root. Make sure to flush the Magento cache. Make sure to logout 9 | once you're done. 10 | 11 | 3) Use `modman` to install the git repository for you: 12 | 13 | modman init 14 | modman clone https://github.com/yireo/Yireo_CheckoutTester 15 | modman update Yireo_CheckoutTester 16 | 17 | 4) Use `composer` to install the composer package for you. See the file `COMPOSER.md` for hints. 18 | 19 | # Instructions for using composer 20 | 21 | Use composer to install this extension. First make sure to initialize composer with the right settings: 22 | 23 | composer -n init 24 | composer install --no-dev 25 | 26 | Next, modify your local composer.json file: 27 | 28 | { 29 | "require": { 30 | "yireo/magento1-checkout-tester": "*", 31 | "magento-hackathon/magento-composer-installer": "*" 32 | }, 33 | "repositories":[ 34 | { 35 | "type":"composer", 36 | "url":"https://packages.firegento.com" 37 | }, 38 | { 39 | "type":"composer", 40 | "url":"https://satis.yireo.com" 41 | } 42 | ], 43 | "extra":{ 44 | "magento-root-dir":"/path/to/magento", 45 | "magento-deploystrategy":"copy" 46 | } 47 | } 48 | 49 | Make sure to set the `magento-root-dir` properly. Test this by running: 50 | 51 | composer update --no-dev 52 | 53 | Done. 54 | 55 | Bring your towel. 56 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Open Software License ("OSL") v. 3.0 2 | 3 | This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work: 4 | 5 | Licensed under the Open Software License version 3.0 6 | 7 | 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following: 8 | 9 | 1.1. to reproduce the Original Work in copies, either alone or as part of a collective work; 10 | 11 | 1.2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work; 12 | 13 | 1.3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License; 14 | 15 | 1.4. to perform the Original Work publicly; and 16 | 17 | 1.5. to display the Original Work publicly. 18 | 19 | 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works. 20 | 21 | 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work. 22 | 23 | 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license. 24 | 25 | 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c). 26 | 27 | 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work. 28 | 29 | 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer. 30 | 31 | 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation. 32 | 33 | 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c). 34 | 35 | 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware. 36 | 37 | 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License. 38 | 39 | 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License. 40 | 41 | 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 42 | 43 | 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. 44 | 45 | 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You. 46 | 47 | 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Yireo CheckoutTester 2 | Magento extension for testing the Magento checkout sucess page. 3 | 4 | -------------------------------------------------------------------------------- /USAGE.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | When you customize Magento to your needs, conversion is everything. So part of the customization process will definitely include the checkout process, including the success page that is visited once the checkout is completed. But when you refresh the success page, the session is cleaned up and you are redirected back to the cart. 3 | 4 | This extension is ment to solve this specific issue. Instead of hacking the Magento core, you can install our Magento extension in a simple and clean manner, and preview the success-page at any time. You simply point your browser to the preview URL and voila, there's your success page: 5 | 6 | http://MAGENTO/checkouttester/index/success 7 | 8 | You can also test a specific order with the following: 9 | 10 | http://MAGENTO/checkouttester/index/success/order_id/1234 11 | 12 | # Tip 13 | If you like this extension, make sure to view our Email Tester extension. We do not want to build a shop without it. 14 | 15 | # Magento 2 extension available 16 | Please note that this extension is only available under Magento 1 (which is by now a deprecated platform that you should move away from). We have released a new extension for Magento 2, which is listed on our extensions page. 17 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yireo/magento1-checkout-tester", 3 | "license": "OSL-3.0", 4 | "type": "magento-module", 5 | "homepage": "https://www.yireo.com/software/magento-extensions/checkout-tester", 6 | "description": "Test and preview the Magento checkout success page", 7 | "keywords":[ "composer-installer", "magento"], 8 | "authors": [ 9 | { 10 | "name": "Jisse Reitsma (Yireo)", 11 | "email": "jisse@yireo.com" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.0" 16 | }, 17 | "require-dev":{ 18 | "phpunit/phpunit":"*", 19 | "composer/composer":"*@dev" 20 | }, 21 | "repositories": [ 22 | { 23 | "type": "composer", 24 | "url": "http://packages.firegento.com" 25 | } 26 | ], 27 | "extra":{ 28 | "magento-root-dir": "source/" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /modman: -------------------------------------------------------------------------------- 1 | # Modman file 2 | source/app/code/community/Yireo/CheckoutTester app/code/community/Yireo/CheckoutTester 3 | source/app/design/frontend/base/default/layout/checkouttester.xml app/design/frontend/base/default/layout/checkouttester.xml 4 | source/app/etc/modules/Yireo_CheckoutTester.xml app/etc/modules/Yireo_CheckoutTester.xml 5 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/Block/Field/Link.php: -------------------------------------------------------------------------------- 1 | getFrontendLink(); 26 | $html = '' 27 | . $this->__('Open success page in new window') 28 | . ''; 29 | 30 | return $html; 31 | } 32 | 33 | /** 34 | * Return the frontend link 35 | * 36 | * @return string 37 | */ 38 | public function getFrontendLink() 39 | { 40 | $storeId = $this->_getStoreId(); 41 | return Mage::app()->getStore($storeId)->getUrl('checkouttester/index/success'); 42 | } 43 | 44 | /** 45 | * Return store id of current configuration scope 46 | * 47 | * @return int 48 | */ 49 | protected function _getStoreId() 50 | { 51 | $storeId = Mage::getSingleton('adminhtml/config_data')->getStore(); 52 | if ($storeId) { 53 | return $storeId; 54 | } 55 | 56 | $websiteId = Mage::getSingleton('adminhtml/config_data')->getWebsite(); 57 | if ($websiteId) { 58 | return Mage::app()->getWebsite($websiteId)->getDefaultStore()->getId(); 59 | } 60 | 61 | return Mage::app()->getWebsite(true)->getDefaultGroup()->getDefaultStoreId(); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/Block/Success.php: -------------------------------------------------------------------------------- 1 | order = Mage::getModel('sales/order'); 27 | } 28 | 29 | /** 30 | * Switch to determine whether this extension is enabled or not 31 | * 32 | * @return bool 33 | */ 34 | public function enabled() 35 | { 36 | if ((bool)$this->getStoreConfig('advanced/modules_disable_output/Yireo_CheckoutTester')) { 37 | return false; 38 | } 39 | 40 | return true; 41 | } 42 | 43 | /** 44 | * Method to determine whether the current user has access to this page 45 | * 46 | * @return bool 47 | */ 48 | public function hasAccess() 49 | { 50 | $ip = $this->getStoreConfig('checkouttester/settings/ip'); 51 | $ip = trim($ip); 52 | 53 | $realIp = $this->getIpAddress(); 54 | 55 | if (empty($ip) || empty($realIp)) { 56 | return true; 57 | } 58 | 59 | $ips = explode(',', $ip); 60 | 61 | foreach ($ips as $ip) { 62 | $ip = trim($ip); 63 | 64 | if (empty($ip)) { 65 | continue; 66 | } 67 | 68 | if ($ip == $realIp) { 69 | return true; 70 | } 71 | } 72 | 73 | return false; 74 | } 75 | 76 | /** 77 | * Get the current IP address 78 | * 79 | * @return mixed 80 | */ 81 | public function getIpAddress() 82 | { 83 | if (!empty($_SERVER['HTTP_CLIENT_IP'])) { 84 | return $_SERVER['HTTP_CLIENT_IP']; 85 | } 86 | 87 | if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { 88 | return $_SERVER['HTTP_X_FORWARDED_FOR']; 89 | } 90 | 91 | return $_SERVER['REMOTE_ADDR']; 92 | } 93 | 94 | /** 95 | * Return the order ID 96 | * 97 | * @return string 98 | */ 99 | public function getOrderIdFromConfig() 100 | { 101 | return (int)$this->getStoreConfig('checkouttester/settings/order_id'); 102 | } 103 | 104 | /** 105 | * Return the last order ID in this database 106 | * 107 | * @return int 108 | */ 109 | public function getLastInsertedOrderId() 110 | { 111 | /** @var Mage_Sales_Model_Resource_Order_Collection $orders */ 112 | $orders = $this->order->getCollection() 113 | ->setOrder('created_at', 'DESC') 114 | ->setPageSize(1) 115 | ->setCurPage(1); 116 | 117 | if (empty($orders)) { 118 | return 0; 119 | } 120 | 121 | /** @var Mage_Sales_Model_Order $firstOrder */ 122 | $firstOrder = $orders->getFirstItem(); 123 | if (empty($firstOrder)) { 124 | return 0; 125 | } 126 | 127 | return (int)$firstOrder->getEntityId(); 128 | } 129 | 130 | /** 131 | * @param $path 132 | * @param null $default 133 | * 134 | * @return mixed 135 | */ 136 | protected function getStoreConfig($path, $default = null) 137 | { 138 | return Mage::getStoreConfig($path, $default); 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/Model/Feed.php: -------------------------------------------------------------------------------- 1 | customFeedUrl; 30 | } 31 | 32 | /** 33 | * Try to update feed 34 | * 35 | * @return mixed 36 | */ 37 | public function updateIfAllowed() 38 | { 39 | // Is this the backend 40 | if (Mage::app()->getStore()->isAdmin() == false) { 41 | return false; 42 | } 43 | 44 | // Is the backend-user logged-in 45 | if (Mage::getSingleton('admin/session')->isLoggedIn() == false) { 46 | return false; 47 | } 48 | 49 | // Is the feed disabled? 50 | if((bool)Mage::getStoreConfig('yireo/common/disabled')) { 51 | return false; 52 | } 53 | 54 | // Update the feed 55 | $this->checkUpdate(); 56 | } 57 | 58 | /** 59 | * Override the original method 60 | * 61 | * @return SimpleXMLElement 62 | */ 63 | public function getFeedData() 64 | { 65 | // Get the original data 66 | $feedXml = parent::getFeedData(); 67 | 68 | if ($feedXml && $feedXml->channel && $feedXml->channel->item) { 69 | foreach ($feedXml->channel->item as $item) { 70 | 71 | // Add the severity to each item 72 | $feedXml->channel->item->severity = Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE; 73 | } 74 | } 75 | 76 | return $feedXml; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/Model/Ip.php: -------------------------------------------------------------------------------- 1 | __('CSV-list of IP-addresses allowed access.
Your IP is: ' . $_SERVER['REMOTE_ADDR'] . ''); 17 | } 18 | } -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/Model/Observer.php: -------------------------------------------------------------------------------- 1 | 19 | * 20 | * @param Varien_Event_Observer $observer 21 | * @return Yireo_CheckoutTester_Model_Observer 22 | * @deprecated 23 | */ 24 | public function controllerActionPredispatch($observer) 25 | { 26 | return $this; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/Model/Observer/AddFeed.php: -------------------------------------------------------------------------------- 1 | 19 | * 20 | * @param Varien_Event_Observer $observer 21 | * 22 | * @return Yireo_CheckoutTester_Model_Observer_AddFeed 23 | * @event controller_action_predispatch 24 | */ 25 | public function execute($observer) 26 | { 27 | // Run the feed 28 | Mage::getModel('checkouttester/feed')->updateIfAllowed(); 29 | 30 | return $this; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/controllers/IndexController.php: -------------------------------------------------------------------------------- 1 | helper = Mage::helper('checkouttester'); 40 | $this->orderModel = Mage::getModel('sales/order'); 41 | 42 | parent::_construct(); 43 | } 44 | 45 | /** 46 | * @return Mage_Checkout_Model_Session 47 | */ 48 | public function getCheckoutSession() { 49 | if(!$this->checkoutSession) { 50 | $this->checkoutSession = Mage::getModel('checkout/session'); 51 | } 52 | return $this->checkoutSession; 53 | } 54 | 55 | /** 56 | * Empty page action 57 | */ 58 | public function indexAction() 59 | { 60 | // Not implemented 61 | } 62 | 63 | /** 64 | * Success page action 65 | */ 66 | public function successAction() 67 | { 68 | // Check access 69 | if ($this->helper->hasAccess() == false) { 70 | die('Access denied'); 71 | } 72 | // Check if module output is enabled 73 | if (!$this->helper->enabled()) { 74 | die('Module output disabled'); 75 | } 76 | 77 | // Fetch the order 78 | $order = $this->getOrder(); 79 | 80 | // Fail when there is no valid order 81 | if ($order === false) { 82 | die('Invalid order ID'); 83 | } 84 | 85 | // Register this order 86 | $this->registerOrder($order); 87 | 88 | // Load the layout 89 | $this->loadLayout(); 90 | 91 | // Optionally dispatch an event 92 | $this->dispatchEvents($order); 93 | 94 | // Render the layout 95 | $this->renderLayout(); 96 | } 97 | 98 | /** 99 | * Method to fetch the current order 100 | * 101 | * @return Mage_Sales_Model_Order | false 102 | */ 103 | protected function getOrder() 104 | { 105 | $orderIdFromUrl = (int)$this->getRequest()->getParam('order_id'); 106 | $order = $this->loadOrder($orderIdFromUrl); 107 | if ($order) { 108 | return $order; 109 | } 110 | 111 | $orderIdFromConfig = (int)$this->helper->getOrderIdFromConfig(); 112 | $order = $this->loadOrder($orderIdFromConfig); 113 | if ($order) { 114 | return $order; 115 | } 116 | 117 | $lastOrderId = $this->helper->getLastInsertedOrderId(); 118 | $order = $this->loadOrder($lastOrderId); 119 | if ($order) { 120 | return $order; 121 | } 122 | 123 | return false; 124 | } 125 | 126 | /** 127 | * Method to try to load an order from an unvalidated ID 128 | * 129 | * @param int $orderId 130 | * 131 | * @return Mage_Sales_Model_Order | false 132 | */ 133 | protected function loadOrder($orderId) 134 | { 135 | $order = $this->orderModel->load($orderId); 136 | if ($order->getId() > 0) { 137 | return $order; 138 | } 139 | 140 | $order = $this->orderModel->loadByIncrementId($orderId); 141 | if ($order->getId() > 0) { 142 | return $order; 143 | } 144 | 145 | return false; 146 | } 147 | 148 | /** 149 | * Method to register the order in this session 150 | * 151 | * @param Mage_Sales_Model_Order $order 152 | */ 153 | protected function registerOrder($order) 154 | { 155 | // Register this order as the current order 156 | $currentOrder = Mage::registry('current_order'); 157 | if (empty($currentOrder)) { 158 | Mage::register('current_order', $order); 159 | } 160 | 161 | // Load the session with this order 162 | $this->getCheckoutSession()->setLastOrderId($order->getId()) 163 | ->setLastRealOrderId($order->getIncrementId()); 164 | 165 | } 166 | 167 | /** 168 | * Method to optionally dispatch order-related events 169 | * 170 | * @param Mage_Sales_Model_Order $order 171 | */ 172 | public function dispatchEvents($order) 173 | { 174 | if ((bool)Mage::getStoreConfig('checkouttester/settings/checkout_onepage_controller_success_action')) { 175 | Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($order->getId()))); 176 | } 177 | } 178 | } 179 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/etc/adminhtml.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | Yireo_CheckoutTester.csv 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | Yireo_CheckoutTester Settings 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/etc/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 0.1.12 17 | 18 | 19 | 20 | 21 | 22 | 23 | Yireo_CheckoutTester_Block 24 | 25 | 26 | 27 | 28 | 29 | Yireo_CheckoutTester_Helper 30 | 31 | 32 | 33 | 34 | 35 | Yireo_CheckoutTester_Model 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | standard 44 | 45 | Yireo_CheckoutTester 46 | checkouttester 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | checkouttester.xml 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | Yireo_CheckoutTester_Model_Observer_AddFeed 66 | execute 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 0 77 | 0 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /source/app/code/community/Yireo/CheckoutTester/etc/system.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 1000 17 | 18 | 19 | 20 | 21 | 22 | yireo 23 | text 24 | 30 25 | 1 26 | 1 27 | 1 28 | 29 | 30 | 31 | text 32 | 1 33 | 1 34 | 1 35 | 1 36 | 37 | 38 | 39 | 40 | text 41 | 1 42 | 1 43 | 1 44 | 1 45 | 46 | 47 | 48 | 49 | Yireo_CheckoutTester_Model_Ip 50 | 51 | text 52 | 2 53 | 1 54 | 1 55 | 1 56 | 57 | 58 | 59 | 60 | select 61 | adminhtml/system_config_source_yesno 62 | 3 63 | 1 64 | 1 65 | 1 66 | 67 | 68 | checkouttester/field_link 69 | 0 70 | 1 71 | 1 72 | 1 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /source/app/design/frontend/base/default/layout/checkouttester.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | checkout_onepage_success 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /source/app/etc/modules/Yireo_CheckoutTester.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | true 16 | community 17 | 18 | 19 | 20 | --------------------------------------------------------------------------------