Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?xml version="1.0" ?>
  2. <config>
  3. <modules>
  4. <Bromo_Orderstatus>
  5. <active>true</active>
  6. <codePool>local</codePool>
  7. </Bromo_Orderstatus>
  8. </modules>
  9. </config>
  10.  
  11. <config>
  12. <modules>
  13. <Bromo_Orderstatus>
  14. <version>1.0.0</version>
  15. </Bromo_Orderstatus>
  16. </modules>
  17. <global>
  18. <blocks>
  19. <adminhtml>
  20. <rewrite>
  21. <sales_order_view>Bromo_Orderstatus_Block_Adminhtml_Sales_Order_View</sales_order_view>
  22. </rewrite>
  23. </adminhtml>
  24. </blocks>
  25. </global>
  26. <admin>
  27. <routers>
  28. <adminhtml>
  29. <use>admin</use>
  30. <args>
  31. <modules>
  32. <orderstatus before="Mage_Adminhtml_Sales">Bromo_Orderstatus_Adminhtml</orderstatus>
  33. </modules>
  34. </args>
  35. </adminhtml>
  36. </routers>
  37. </admin>
  38. </config>
  39.  
  40. <?php
  41. class Bromo_Orderstatus_Block_Adminhtml_Sales_Order_View extends Mage_Adminhtml_Block_Sales_Order_View {
  42. public function __construct() {
  43. $message = Mage::helper('sales')->__('Weet je zeker dat je de klant een klaar voor afhalen e-mail wil versturen?');
  44. $this->_addButton('afhalenmail', array(
  45. 'label' => Mage::helper('Sales')->__('Stuur afhaal E-mail (nog niet gebruiken!)'),
  46. 'onclick' => "confirmSetLocation('{$message}', '{$this->getUrl('*/*/afhalenmail')}')"
  47. ));
  48. parent::__construct();
  49. }
  50. }
  51.  
  52. <?php
  53. require_once 'Mage/Adminhtml/controllers/Sales/OrderController.php';
  54.  
  55. class Bromo_Orderstatus_Adminhtml_Sales_OrderController extends Mage_Adminhtml_Sales_OrderController {
  56.  
  57. public function afhalenmailAction() {
  58.  
  59. echo 'Test action';
  60.  
  61. }
  62.  
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement