Chargeback - Version 1.0.0

Version Notes

Connect Magento to Chargeback app.

Download this release

Release Info

Developer Scott Stone
Extension Chargeback
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

Files changed (183) hide show
  1. app/code/community/Chargeback/Auth/Block/Completed.php +12 -0
  2. app/code/community/Chargeback/Auth/Block/Hidden.php +9 -0
  3. app/code/community/Chargeback/Auth/Helper/Data.php +95 -0
  4. app/code/community/Chargeback/Auth/Model/Observer.php +43 -0
  5. app/code/community/Chargeback/Auth/etc/adminhtml.xml +22 -0
  6. app/code/community/Chargeback/Auth/etc/api.xml +41 -0
  7. app/code/community/Chargeback/Auth/etc/config.xml +52 -0
  8. app/code/community/Chargeback/Auth/etc/system.xml +64 -0
  9. app/design/adminhtml/default/default/etc/theme.xml +30 -0
  10. app/design/adminhtml/default/default/layout/admin.xml +96 -0
  11. app/design/adminhtml/default/default/layout/adminnotification.xml +38 -0
  12. app/design/adminhtml/default/default/layout/api2.xml +147 -0
  13. app/design/adminhtml/default/default/layout/authorizenet.xml +35 -0
  14. app/design/adminhtml/default/default/layout/bundle.xml +118 -0
  15. app/design/adminhtml/default/default/layout/captcha.xml +48 -0
  16. app/design/adminhtml/default/default/layout/catalog.xml +332 -0
  17. app/design/adminhtml/default/default/layout/centinel.xml +70 -0
  18. app/design/adminhtml/default/default/layout/chargeback/auth.xml +10 -0
  19. app/design/adminhtml/default/default/layout/chargeback/htmlBlock.phtml +17 -0
  20. app/design/adminhtml/default/default/layout/cms.xml +97 -0
  21. app/design/adminhtml/default/default/layout/compiler.xml +35 -0
  22. app/design/adminhtml/default/default/layout/connect.xml +73 -0
  23. app/design/adminhtml/default/default/layout/currencysymbol.xml +34 -0
  24. app/design/adminhtml/default/default/layout/customer.xml +126 -0
  25. app/design/adminhtml/default/default/layout/dataflow.xml +59 -0
  26. app/design/adminhtml/default/default/layout/default/htmlBlock.phtml +17 -0
  27. app/design/adminhtml/default/default/layout/downloadable.xml +97 -0
  28. app/design/adminhtml/default/default/layout/giftmessage.xml +82 -0
  29. app/design/adminhtml/default/default/layout/htmlBlock.phtml +17 -0
  30. app/design/adminhtml/default/default/layout/importexport.xml +59 -0
  31. app/design/adminhtml/default/default/layout/index.xml +51 -0
  32. app/design/adminhtml/default/default/layout/main.xml +293 -0
  33. app/design/adminhtml/default/default/layout/moneybookers.xml +28 -0
  34. app/design/adminhtml/default/default/layout/newsletter.xml +67 -0
  35. app/design/adminhtml/default/default/layout/oauth.xml +194 -0
  36. app/design/adminhtml/default/default/layout/pagecache.xml +35 -0
  37. app/design/adminhtml/default/default/layout/promo.xml +101 -0
  38. app/design/adminhtml/default/default/layout/report.xml +55 -0
  39. app/design/adminhtml/default/default/layout/rss.xml +45 -0
  40. app/design/adminhtml/default/default/layout/sales.xml +1080 -0
  41. app/design/adminhtml/default/default/layout/search.xml +35 -0
  42. app/design/adminhtml/default/default/layout/tag.xml +88 -0
  43. app/design/adminhtml/default/default/layout/tax.xml +34 -0
  44. app/design/adminhtml/default/default/layout/widget.xml +69 -0
  45. app/design/adminhtml/default/default/layout/xmlconnect.xml +282 -0
  46. app/design/adminhtml/default/default/locale/en_US/translate.csv +201 -0
  47. app/design/adminhtml/default/default/template/access_denied.phtml +40 -0
  48. app/design/adminhtml/default/default/template/api/role_users_grid_js.phtml +105 -0
  49. app/design/adminhtml/default/default/template/api/roleinfo.phtml +47 -0
  50. app/design/adminhtml/default/default/template/api/roles.phtml +37 -0
  51. app/design/adminhtml/default/default/template/api/rolesedit.phtml +143 -0
  52. app/design/adminhtml/default/default/template/api/rolesusers.phtml +28 -0
  53. app/design/adminhtml/default/default/template/api/user_roles_grid_js.phtml +85 -0
  54. app/design/adminhtml/default/default/template/api/userinfo.phtml +52 -0
  55. app/design/adminhtml/default/default/template/api/usernroles.phtml +31 -0
  56. app/design/adminhtml/default/default/template/api/userroles.phtml +45 -0
  57. app/design/adminhtml/default/default/template/api/users.phtml +40 -0
  58. app/design/adminhtml/default/default/template/api2/attribute/buttons.phtml +53 -0
  59. app/design/adminhtml/default/default/template/api2/attribute/resource.phtml +158 -0
  60. app/design/adminhtml/default/default/template/api2/permissions/user/edit/tab/roles/js.phtml +59 -0
  61. app/design/adminhtml/default/default/template/api2/role/buttons.phtml +52 -0
  62. app/design/adminhtml/default/default/template/api2/role/users_grid_js.phtml +122 -0
  63. app/design/adminhtml/default/default/template/authorizenet/directpost/iframe.phtml +56 -0
  64. app/design/adminhtml/default/default/template/authorizenet/directpost/info.phtml +157 -0
  65. app/design/adminhtml/default/default/template/backup/dialogs.phtml +190 -0
  66. app/design/adminhtml/default/default/template/backup/left.phtml +27 -0
  67. app/design/adminhtml/default/default/template/backup/list.phtml +40 -0
  68. app/design/adminhtml/default/default/template/bundle/product/composite/fieldset/options/bundle.phtml +95 -0
  69. app/design/adminhtml/default/default/template/bundle/product/composite/fieldset/options/type/checkbox.phtml +52 -0
  70. app/design/adminhtml/default/default/template/bundle/product/composite/fieldset/options/type/multi.phtml +49 -0
  71. app/design/adminhtml/default/default/template/bundle/product/composite/fieldset/options/type/radio.phtml +65 -0
  72. app/design/adminhtml/default/default/template/bundle/product/composite/fieldset/options/type/select.phtml +55 -0
  73. app/design/adminhtml/default/default/template/bundle/product/edit/bundle.phtml +85 -0
  74. app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option.phtml +235 -0
  75. app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option/search.phtml +35 -0
  76. app/design/adminhtml/default/default/template/bundle/product/edit/bundle/option/selection.phtml +352 -0
  77. app/design/adminhtml/default/default/template/bundle/sales/creditmemo/create/items/renderer.phtml +411 -0
  78. app/design/adminhtml/default/default/template/bundle/sales/creditmemo/view/items/renderer.phtml +341 -0
  79. app/design/adminhtml/default/default/template/bundle/sales/invoice/create/items/renderer.phtml +398 -0
  80. app/design/adminhtml/default/default/template/bundle/sales/invoice/view/items/renderer.phtml +340 -0
  81. app/design/adminhtml/default/default/template/bundle/sales/order/view/items/renderer.phtml +415 -0
  82. app/design/adminhtml/default/default/template/bundle/sales/shipment/create/items/renderer.phtml +118 -0
  83. app/design/adminhtml/default/default/template/bundle/sales/shipment/view/items/renderer.phtml +115 -0
  84. app/design/adminhtml/default/default/template/captcha/zend.phtml +56 -0
  85. app/design/adminhtml/default/default/template/catalog/category/checkboxes/tree.phtml +199 -0
  86. app/design/adminhtml/default/default/template/catalog/category/edit.phtml +198 -0
  87. app/design/adminhtml/default/default/template/catalog/category/edit/form.phtml +258 -0
  88. app/design/adminhtml/default/default/template/catalog/category/tree.phtml +480 -0
  89. app/design/adminhtml/default/default/template/catalog/category/widget/tree.phtml +202 -0
  90. app/design/adminhtml/default/default/template/catalog/form/renderer/fieldset/element.phtml +60 -0
  91. app/design/adminhtml/default/default/template/catalog/product.phtml +47 -0
  92. app/design/adminhtml/default/default/template/catalog/product/attribute/js.phtml +338 -0
  93. app/design/adminhtml/default/default/template/catalog/product/attribute/new/created.phtml +54 -0
  94. app/design/adminhtml/default/default/template/catalog/product/attribute/options.phtml +224 -0
  95. app/design/adminhtml/default/default/template/catalog/product/attribute/set/main.phtml +461 -0
  96. app/design/adminhtml/default/default/template/catalog/product/attribute/set/main/tree/attribute.phtml +26 -0
  97. app/design/adminhtml/default/default/template/catalog/product/attribute/set/main/tree/group.phtml +27 -0
  98. app/design/adminhtml/default/default/template/catalog/product/attribute/set/toolbar/add.phtml +41 -0
  99. app/design/adminhtml/default/default/template/catalog/product/attribute/set/toolbar/main.phtml +36 -0
  100. app/design/adminhtml/default/default/template/catalog/product/composite/configure.phtml +54 -0
  101. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/configurable.phtml +60 -0
  102. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/grouped.phtml +95 -0
  103. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options.phtml +45 -0
  104. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/js.phtml +106 -0
  105. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/date.phtml +94 -0
  106. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/default.phtml +31 -0
  107. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/file.phtml +103 -0
  108. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/select.phtml +39 -0
  109. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/options/type/text.phtml +42 -0
  110. app/design/adminhtml/default/default/template/catalog/product/composite/fieldset/qty.phtml +36 -0
  111. app/design/adminhtml/default/default/template/catalog/product/created.phtml +59 -0
  112. app/design/adminhtml/default/default/template/catalog/product/edit.phtml +133 -0
  113. app/design/adminhtml/default/default/template/catalog/product/edit/action/attribute.phtml +61 -0
  114. app/design/adminhtml/default/default/template/catalog/product/edit/action/inventory.phtml +181 -0
  115. app/design/adminhtml/default/default/template/catalog/product/edit/action/websites.phtml +120 -0
  116. app/design/adminhtml/default/default/template/catalog/product/edit/categories.phtml +148 -0
  117. app/design/adminhtml/default/default/template/catalog/product/edit/options.phtml +57 -0
  118. app/design/adminhtml/default/default/template/catalog/product/edit/options/option.phtml +351 -0
  119. app/design/adminhtml/default/default/template/catalog/product/edit/options/type/date.phtml +53 -0
  120. app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml +61 -0
  121. app/design/adminhtml/default/default/template/catalog/product/edit/options/type/select.phtml +173 -0
  122. app/design/adminhtml/default/default/template/catalog/product/edit/options/type/text.phtml +55 -0
  123. app/design/adminhtml/default/default/template/catalog/product/edit/price/group.phtml +170 -0
  124. app/design/adminhtml/default/default/template/catalog/product/edit/price/tier.phtml +171 -0
  125. app/design/adminhtml/default/default/template/catalog/product/edit/serializer.phtml +33 -0
  126. app/design/adminhtml/default/default/template/catalog/product/edit/super/config.phtml +153 -0
  127. app/design/adminhtml/default/default/template/catalog/product/edit/websites.phtml +100 -0
  128. app/design/adminhtml/default/default/template/catalog/product/helper/gallery.phtml +126 -0
  129. app/design/adminhtml/default/default/template/catalog/product/js.phtml +94 -0
  130. app/design/adminhtml/default/default/template/catalog/product/price.phtml +383 -0
  131. app/design/adminhtml/default/default/template/catalog/product/tab/alert.phtml +37 -0
  132. app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml +263 -0
  133. app/design/adminhtml/default/default/template/catalog/product/widget/chooser/container.phtml +37 -0
  134. app/design/adminhtml/default/default/template/catalog/wysiwyg/js.phtml +119 -0
  135. app/design/adminhtml/default/default/template/centinel/authentication/complete.phtml +38 -0
  136. app/design/adminhtml/default/default/template/centinel/authentication/start.phtml +38 -0
  137. app/design/adminhtml/default/default/template/centinel/validation/form.phtml +37 -0
  138. app/design/adminhtml/default/default/template/cms/browser/content.phtml +49 -0
  139. app/design/adminhtml/default/default/template/cms/browser/content/files.phtml +54 -0
  140. app/design/adminhtml/default/default/template/cms/browser/content/newfolder.phtml +33 -0
  141. app/design/adminhtml/default/default/template/cms/browser/content/uploader.phtml +31 -0
  142. app/design/adminhtml/default/default/template/cms/browser/js.phtml +39 -0
  143. app/design/adminhtml/default/default/template/cms/browser/tree.phtml +82 -0
  144. app/design/adminhtml/default/default/template/cms/page/edit/form/renderer/content.phtml +32 -0
  145. app/design/adminhtml/default/default/template/coming.phtml +30 -0
  146. app/design/adminhtml/default/default/template/compiler/process.phtml +94 -0
  147. app/design/adminhtml/default/default/template/connect/extension/custom/authors.phtml +91 -0
  148. app/design/adminhtml/default/default/template/connect/extension/custom/contents.phtml +91 -0
  149. app/design/adminhtml/default/default/template/connect/extension/custom/depends.phtml +137 -0
  150. app/design/adminhtml/default/default/template/connect/extension/custom/load.phtml +35 -0
  151. app/design/adminhtml/default/default/template/connect/extension/custom/package.phtml +91 -0
  152. app/design/adminhtml/default/default/template/connect/extension/custom/release.phtml +29 -0
  153. app/design/adminhtml/default/default/template/currencysymbol/grid.phtml +100 -0
  154. app/design/adminhtml/default/default/template/customer/edit/js.phtml +33 -0
  155. app/design/adminhtml/default/default/template/customer/edit/tab/account/form/renderer/group.phtml +52 -0
  156. app/design/adminhtml/default/default/template/customer/edit/tab/view/grid/item.phtml +46 -0
  157. app/design/adminhtml/default/default/template/customer/online.phtml +34 -0
  158. app/design/adminhtml/default/default/template/customer/sales/order/create/address/form/renderer/vat.phtml +52 -0
  159. app/design/adminhtml/default/default/template/customer/system/config/validatevat.phtml +65 -0
  160. app/design/adminhtml/default/default/template/customer/tab/addresses.phtml +640 -0
  161. app/design/adminhtml/default/default/template/customer/tab/cart.phtml +96 -0
  162. app/design/adminhtml/default/default/template/customer/tab/newsletter.phtml +30 -0
  163. app/design/adminhtml/default/default/template/customer/tab/view.phtml +82 -0
  164. app/design/adminhtml/default/default/template/customer/tab/view/sales.phtml +85 -0
  165. app/design/adminhtml/default/default/template/customer/tab/wishlist.phtml +79 -0
  166. app/design/adminhtml/default/default/template/dashboard/graph.phtml +65 -0
  167. app/design/adminhtml/default/default/template/dashboard/graph/disabled.phtml +31 -0
  168. app/design/adminhtml/default/default/template/dashboard/grid.phtml +86 -0
  169. app/design/adminhtml/default/default/template/dashboard/index.phtml +133 -0
  170. app/design/adminhtml/default/default/template/dashboard/salebar.phtml +36 -0
  171. app/design/adminhtml/default/default/template/dashboard/searches.phtml +35 -0
  172. app/design/adminhtml/default/default/template/dashboard/store/switcher.phtml +77 -0
  173. app/design/adminhtml/default/default/template/dashboard/totalbar.phtml +42 -0
  174. app/design/adminhtml/default/default/template/directory/js/optional_zip_countries.phtml +66 -0
  175. app/design/adminhtml/default/default/template/downloadable/product/composite/fieldset/downloadable.phtml +91 -0
  176. app/design/adminhtml/default/default/template/downloadable/product/edit/downloadable.phtml +302 -0
  177. app/design/adminhtml/default/default/template/downloadable/product/edit/downloadable/links.phtml +390 -0
  178. app/design/adminhtml/default/default/template/downloadable/product/edit/downloadable/samples.phtml +219 -0
  179. app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/creditmemo/name.phtml +62 -0
  180. app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/invoice/name.phtml +62 -0
  181. app/design/adminhtml/default/default/template/downloadable/sales/items/column/downloadable/name.phtml +62 -0
  182. app/design/adminhtml/default/default/template/downloadable/sales/order/creditmemo/create/items/renderer/downloadable.phtml +246 -0
  183. app/design/adminhtml/default/default/template/downloadable/sales/order/creditmemo/view/items/renderer/downloadable.phtml +179 -0
app/code/community/Chargeback/Auth/Block/Completed.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chargeback_Auth_Block_Completed extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
4
+ {
5
+ public function render(Varien_Data_Form_Element_Abstract $element)
6
+ {
7
+ Mage::app()->getCacheInstance()->cleanType('config');
8
+ Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => 'config'));
9
+
10
+ return $this->getBlockHtml('htmlBlock');
11
+ }
12
+ }
app/code/community/Chargeback/Auth/Block/Hidden.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chargeback_Auth_Block_Hidden extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
4
+ {
5
+ public function render(Varien_Data_Form_Element_Abstract $element)
6
+ {
7
+ return '';
8
+ }
9
+ }
app/code/community/Chargeback/Auth/Helper/Data.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Chargeback_Auth_Helper_Data extends Mage_Core_Helper_Abstract {
4
+ public function checkAPIAccount()
5
+ {
6
+ if (is_object($this->role()) && $this->role()->getId() > 0) {
7
+ if (is_object($this->consumer()) && $this->consumer()->getId() > 0) {
8
+ return $this->consumer();
9
+ }
10
+ }
11
+ return false;
12
+ }
13
+
14
+ public function role()
15
+ {
16
+ return Mage::getModel('api/roles')->getCollection()->addFieldToFilter('role_name',array('eq'=>"Chargeback Admin"))->load()->getFirstItem();
17
+ }
18
+
19
+ public function consumer()
20
+ {
21
+ return Mage::getModel('api/user')->getCollection()->addFieldToFilter('username',array('eq'=>'chargeback'))->load()->getFirstItem();
22
+ }
23
+
24
+ public function buildApiUrl(/*.string.*/ $token, /*.string.*/ $key, /*.string.*/ $pass)
25
+ {
26
+ return Mage::getStoreConfig('chargeback/general/url')."auth_tokens/connect?_cb_auth_token=$token&username=$key&password=$pass&name=Magento&url=".Mage::getBaseUrl().'api/xmlrpc';
27
+ }
28
+
29
+ public function connect()
30
+ {
31
+ $this->createAPIAccount();
32
+ return $this->buildApiUrl(Mage::getSingleton('admin/session')->getCbAuthToken(),'chargeback',Mage::getSingleton('admin/session')->getData('chargeback_password'));
33
+ }
34
+
35
+ public function resetPluginSettingsRemoveUser()
36
+ {
37
+ $this->role()->delete()->save();
38
+ $this->consumer()->delete()->save();
39
+ $this->setComplete(false);
40
+ }
41
+
42
+ public function setComplete($complete = true)
43
+ {
44
+ Mage::getConfig()->saveConfig('chargeback/general/completed', $complete ? true : false, 'default', 0);
45
+ }
46
+
47
+ public function getComplete()
48
+ {
49
+ Mage::app()->getStore()->resetConfig();
50
+ return Mage::getStoreConfig('chargeback/general/completed');
51
+ }
52
+
53
+ public function createAPIAccount()
54
+ {
55
+ $account = $this->checkAPIAccount();
56
+
57
+ if (!is_object($account)) {
58
+
59
+ $apiPassword = md5(time());
60
+
61
+ $api_role = Mage::getModel('api/roles')
62
+ ->setName('Chargeback Admin')
63
+ ->setRoleType('G')
64
+ ->save();
65
+
66
+ Mage::getModel('api/rules')
67
+ ->setRoleId($api_role->getId())
68
+ ->setResources(array('all'))
69
+ ->saveRel();
70
+
71
+ $userapi = Mage::getModel('api/user')
72
+ ->setData(array(
73
+ 'username' => 'chargeback',
74
+ 'firstname' => 'Chargeback',
75
+ 'lastname' => 'User',
76
+ 'email' => 'apiuser@chargeback.com',
77
+ 'is_active' => 1,
78
+ 'api_key' => $apiPassword,
79
+ 'api_key_confirmation' => $apiPassword,
80
+ 'roles' => array($api_role->getId()) // your created custom role
81
+ ));
82
+
83
+
84
+ $userapi->save();
85
+
86
+ $userapi->setRoleIds(array($api_role->getId()))->setRoleUserId($userapi->getUserId())
87
+ ->saveRelations();
88
+
89
+ Mage::getSingleton('admin/session')->setData('chargeback_password',$apiPassword);
90
+
91
+ }
92
+
93
+ }
94
+
95
+ }
app/code/community/Chargeback/Auth/Model/Observer.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class Chargeback_Auth_Model_Observer
4
+ *
5
+ *
6
+ * @author Matt Kammersell <matt.kammersell@chargeback.com>
7
+ */
8
+ class Chargeback_Auth_Model_Observer
9
+ {
10
+
11
+ public function system_configuration_view(Varien_Event_Observer $observer)
12
+ {
13
+ $helper = Mage::helper('chargeback_auth');
14
+ $admin = Mage::getSingleton('admin/session');
15
+ $action = $observer->getEvent()->getControllerAction();
16
+ $r = $action->getRequest();
17
+
18
+ if ($r->getControllerName()."::".$r->getActionName()!=="system_config::edit") return;
19
+
20
+ if ($r->getParam('remove') == "1" && $r->getParam('_cb_auth_token') == null) {
21
+ $helper->resetPluginSettingsRemoveUser();
22
+ return;
23
+ }
24
+
25
+ Mage::app()->getCacheInstance()->cleanType('config');
26
+ Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => 'config'));
27
+
28
+ /* @var $action Mage_Adminhtml_Controller_Action */
29
+ if ($r->getParam("_cb_auth_token",false) && !$r->getParam("cb_return_status",false)) {
30
+ $admin->setCbAuthToken($r->getParam('_cb_auth_token'));
31
+ return;
32
+ }
33
+
34
+ if ($r->getParam("cb_return_status") == "failure"){
35
+ $helper->setComplete(0);
36
+ }
37
+ if ($r->getParam("cb_return_status") == "success") {
38
+ $helper->setComplete();
39
+ $admin->unsetData('chargeback_password');
40
+ }
41
+
42
+ }
43
+ }
app/code/community/Chargeback/Auth/etc/adminhtml.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <chargeback>
12
+ <title>Chargeback</title> <!-- Used in resources tree -->
13
+ </chargeback>
14
+ </children>
15
+ </config>
16
+ </children>
17
+ </system>
18
+ </children>
19
+ </admin>
20
+ </resources>
21
+ </acl>
22
+ </config>
app/code/community/Chargeback/Auth/etc/api.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <config>
2
+ <api>
3
+ <resources>
4
+ <gateways translate="title" module="chargeback_auth">
5
+ <model>chargeback_auth/gateways_api</model>
6
+ <title>Gateways Resource</title>
7
+ <acl>gateways</acl>
8
+ <methods>
9
+ <list translate="title" module="chargeback_auth">
10
+ <title>Retrieve Gateway List</title>
11
+ <method>gateways</method>
12
+ <acl>gateways/list</acl>
13
+ </list>
14
+ </methods>
15
+ <faults module="chargeback_auth">
16
+ <data_invalid>
17
+ <code>100</code >
18
+ <message>Invalid gateway data. Details in error message.</message>
19
+ </data_invalid>
20
+ <filters_invalid>
21
+ <code>101</code >
22
+ <message>Invalid filters specified. Details in error message.</message>
23
+ </filters_invalid>
24
+ </faults>
25
+ </gateways>
26
+ </resources>
27
+ <acl>
28
+ <resources>
29
+ <all>
30
+ </all>
31
+ <gateways translate="title" module="chargeback_auth">
32
+ <title>Gateways Resource</title>
33
+ <list translate="title" module="customer">
34
+ <title>Retrieve Gateway List</title>
35
+ <acl>gateways/list</acl>
36
+ </list>
37
+ </gateways>
38
+ </resources>
39
+ </acl>
40
+ </api>
41
+ </config>
app/code/community/Chargeback/Auth/etc/config.xml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Chargeback_Auth>
5
+ <version>1.0.0</version>
6
+ </Chargeback_Auth>
7
+ </modules>
8
+ <global>
9
+ <blocks>
10
+ <chargeback_auth>
11
+ <class>Chargeback_Auth_Block</class>
12
+ </chargeback_auth>
13
+ </blocks>
14
+ <models>
15
+ <chargeback_auth>
16
+ <class>Chargeback_Auth_Model</class>
17
+ </chargeback_auth>
18
+ </models>
19
+ <helpers>
20
+ <chargeback_auth>
21
+ <class>Chargeback_Auth_Helper</class>
22
+ </chargeback_auth>
23
+ </helpers>
24
+ </global>
25
+ <adminhtml>
26
+ <events>
27
+ <controller_action_predispatch_adminhtml>
28
+ <observers>
29
+ <check_api>
30
+ <class>chargeback_auth/observer</class>
31
+ <method>system_configuration_view</method>
32
+ </check_api>
33
+ </observers>
34
+ </controller_action_predispatch_adminhtml>
35
+ </events>
36
+ <layout>
37
+ <updates>
38
+ <chargeback_auth>
39
+ <file>chargeback/auth.xml</file>
40
+ </chargeback_auth>
41
+ </updates>
42
+ </layout>
43
+ </adminhtml>
44
+ <default>
45
+ <chargeback>
46
+ <general>
47
+ <url>https://app.chargeback.com/</url>
48
+ <completed>false</completed>
49
+ </general>
50
+ </chargeback>
51
+ </default>
52
+ </config>
app/code/community/Chargeback/Auth/etc/system.xml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <chargeback_auth translate="label" module="chargeback_auth">
5
+ <label>Chargeback</label>
6
+ <class>chargeback-logo</class>
7
+ </chargeback_auth>
8
+ </tabs>
9
+ <sections>
10
+ <chargeback translate="label" module="chargeback_auth">
11
+ <label>Setup</label>
12
+ <tab>chargeback_auth</tab>
13
+ <sort_order>120</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>0</show_in_website>
16
+ <show_in_store>0</show_in_store>
17
+ <expanded>0</expanded>
18
+ <groups>
19
+ <connection translate="label" module="chargeback_auth">
20
+ <label>Connection</label>
21
+ <sort_order>120</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <expanded>1</expanded>
26
+ <fields>
27
+ <url translate="label">
28
+ <label>URL</label>
29
+ <frontend_model>chargeback_auth/hidden</frontend_model>
30
+ <sort_order>120</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </url>
35
+ <completed translate="label">
36
+ <label>Completed</label>
37
+ <frontend_model>chargeback_auth/completed</frontend_model>
38
+ <frontend_type>text</frontend_type>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+ </completed>
43
+ <key translate="label">
44
+ <label>Key</label>
45
+ <frontend_model>chargeback_auth/hidden</frontend_model>
46
+ <frontend_type>text</frontend_type>
47
+ <show_in_default>1</show_in_default>
48
+ <show_in_website>1</show_in_website>
49
+ <show_in_store>1</show_in_store>
50
+ </key>
51
+ <pass translate="label">
52
+ <label>Pass</label>
53
+ <frontend_model>chargeback_auth/hidden</frontend_model>
54
+ <frontend_type>text</frontend_type>
55
+ <show_in_default>1</show_in_default>
56
+ <show_in_website>1</show_in_website>
57
+ <show_in_store>1</show_in_store>
58
+ </pass>
59
+ </fields>
60
+ </connection>
61
+ </groups>
62
+ </chargeback>
63
+ </sections>
64
+ </config>
app/design/adminhtml/default/default/etc/theme.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <theme>
29
+ <parent />
30
+ </theme>
app/design/adminhtml/default/default/layout/admin.xml ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+
29
+ <layout>
30
+ <!-- admin acl users edit page -->
31
+ <adminhtml_permissions_user_edit>
32
+ <reference name="left">
33
+ <block type="adminhtml/permissions_user_edit_tabs" name="adminhtml.permissions.user.edit.tabs"/>
34
+ </reference>
35
+ <reference name="content">
36
+ <block type="adminhtml/permissions_user_edit" name="adminhtml.permissions.user.edit"/>
37
+ </reference>
38
+ <reference name="js">
39
+ <block type="adminhtml/template" name="adminhtml.permissions.user.roles.grid.js" template="permissions/user_roles_grid_js.phtml"/>
40
+ </reference>
41
+ </adminhtml_permissions_user_edit>
42
+ <!-- admin permissions block edit page -->
43
+ <adminhtml_permissions_block_edit>
44
+ <reference name="content">
45
+ <block type="adminhtml/permissions_block_edit" name="adminhtml.permissions.block.edit"/>
46
+ </reference>
47
+ </adminhtml_permissions_block_edit>
48
+ <!-- admin permissions variable edit page -->
49
+ <adminhtml_permissions_variable_edit>
50
+ <reference name="content">
51
+ <block type="adminhtml/permissions_variable_edit" name="adminhtml.permissions.variable.edit"/>
52
+ </reference>
53
+ </adminhtml_permissions_variable_edit>
54
+ <!-- admin acl roles grid page -->
55
+ <adminhtml_permissions_role_index>
56
+ <reference name="content">
57
+ <block type="adminhtml/permissions_roles" name="adminhtml.permission.role.index" template="permissions/roles.phtml">
58
+ <block type="adminhtml/permissions_grid_role" name="adminhtml.permission.role.grid" as="grid"/>
59
+ </block>
60
+ </reference>
61
+ </adminhtml_permissions_role_index>
62
+ <adminhtml_permissions_role_rolegrid>
63
+ <remove name="root"/>
64
+ <block type="adminhtml/permissions_grid_role" name="adminhtml.permission.role.grid"/>
65
+ </adminhtml_permissions_role_rolegrid>
66
+
67
+ <!-- admin acl roles edit page -->
68
+ <adminhtml_permissions_role_editrole>
69
+ <reference name="left">
70
+ <block type="adminhtml/permissions_editroles" name="adminhtml.permissions.editroles"/>
71
+ </reference>
72
+ </adminhtml_permissions_role_editrole>
73
+ <adminhtml_system_config_edit>
74
+ <reference name="content">
75
+ <block type="adminhtml/notification_curl" name="notification_curl" as="notification_curl" template="notification/curl.phtml"/>
76
+ </reference>
77
+ <reference name="left">
78
+ <block type="adminhtml/system_config_switcher" name="adminhtml.system.config.switcher" before="-"/>
79
+ </reference>
80
+ </adminhtml_system_config_edit>
81
+ <adminhtml_dashboard_index>
82
+ <reference name="content">
83
+ <block type="adminhtml/dashboard" name="dashboard">
84
+ <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher" template="store/switcher.phtml">
85
+ <action method="setUseConfirm"><params>0</params></action>
86
+ </block>
87
+ </block>
88
+ </reference>
89
+ </adminhtml_dashboard_index>
90
+ <adminhtml_cache_index>
91
+ <reference name="content">
92
+ <block type="adminhtml/cache" name="cache"></block>
93
+ <block type="adminhtml/cache_additional" name="cache.additional" template="system/cache/additional.phtml"></block>
94
+ </reference>
95
+ </adminhtml_cache_index>
96
+ </layout>
app/design/adminhtml/default/default/layout/adminnotification.xml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+
29
+ <layout>
30
+ <default>
31
+ <reference name="notifications">
32
+ <block type="adminhtml/notification_toolbar" name="notification_toolbar" as="notification_toolbar" acl="system/adminnotification/show_toolbar" template="notification/toolbar.phtml" />
33
+ </reference>
34
+ <reference name="notifications">
35
+ <block type="adminhtml/notification_window" name="notification_window" as="notification_window" acl="system/adminnotification/show_toolbar" template="notification/window.phtml" />
36
+ </reference>
37
+ </default>
38
+ </layout>
app/design/adminhtml/default/default/layout/api2.xml ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+ <layout>
29
+ <adminhtml_api2_role_index>
30
+ <reference name="content">
31
+ <block type="api2/adminhtml_roles" name="api2_roles"/>
32
+ </reference>
33
+ </adminhtml_api2_role_index>
34
+
35
+ <adminhtml_api2_role_new>
36
+ <reference name="left">
37
+ <block type="api2/adminhtml_roles_tabs" name="adminhtml.role.edit.tabs">
38
+ <block type="api2/adminhtml_roles_tab_info" name="adminhtml.role.edit.tab.info"/>
39
+ <block type="api2/adminhtml_roles_tab_resources" name="adminhtml.role.edit.tab.resources" template="permissions/rolesedit.phtml"/>
40
+ <action method="addTab">
41
+ <id>api2_role_section_info</id>
42
+ <block>adminhtml.role.edit.tab.info</block>
43
+ </action>
44
+ <action method="addTab">
45
+ <id>api2_role_section_resources</id>
46
+ <block>adminhtml.role.edit.tab.resources</block>
47
+ </action>
48
+ </block>
49
+ </reference>
50
+ <reference name="content">
51
+ <block type="api2/adminhtml_roles_buttons" name="adminhtml.roles.buttons"/>
52
+ </reference>
53
+ <reference name="head">
54
+ <action method="setCanLoadExtJs">
55
+ <flag>1</flag>
56
+ </action>
57
+ </reference>
58
+ </adminhtml_api2_role_new>
59
+
60
+ <adminhtml_api2_role_edit>
61
+ <reference name="left">
62
+ <block type="api2/adminhtml_roles_tabs" name="adminhtml.role.edit.tabs">
63
+ <block type="api2/adminhtml_roles_tab_info" name="adminhtml.role.edit.tab.info"/>
64
+ <block type="api2/adminhtml_roles_tab_resources" name="adminhtml.role.edit.tab.resources" template="permissions/rolesedit.phtml"/>
65
+ <block type="api2/adminhtml_roles_tab_users" name="adminhtml.role.edit.tab.users"/>
66
+ <action method="addTab">
67
+ <id>api2_role_section_info</id>
68
+ <block>adminhtml.role.edit.tab.info</block>
69
+ </action>
70
+ <action method="addTab">
71
+ <id>api2_role_section_resources</id>
72
+ <block>adminhtml.role.edit.tab.resources</block>
73
+ </action>
74
+ <action method="addTab">
75
+ <id>roleUsersGrid</id>
76
+ <block>adminhtml.role.edit.tab.users</block>
77
+ </action>
78
+ </block>
79
+ </reference>
80
+ <reference name="content">
81
+ <block type="api2/adminhtml_roles_buttons" name="adminhtml.roles.buttons"/>
82
+ </reference>
83
+ <reference name="head">
84
+ <action method="setCanLoadExtJs">
85
+ <flag>1</flag>
86
+ </action>
87
+ </reference>
88
+ <reference name="js">
89
+ <block type="adminhtml/template" name="adminhtml.role.js.users.grid" template="api2/role/users_grid_js.phtml"/>
90
+ </reference>
91
+ </adminhtml_api2_role_edit>
92
+
93
+ <adminhtml_api2_role_grid>
94
+ <remove name="root"/>
95
+ <block type="api2/adminhtml_roles_grid" name="api2_roles.grid" output="toHtml"/>
96
+ </adminhtml_api2_role_grid>
97
+
98
+ <adminhtml_api2_role_usersgrid>
99
+ <remove name="root"/>
100
+ <block type="api2/adminhtml_roles_tab_users" name="adminhtml.role.edit.tab.users" output="toHtml"/>
101
+ </adminhtml_api2_role_usersgrid>
102
+
103
+ <!-- admin acl users edit page -->
104
+ <adminhtml_permissions_user_edit>
105
+ <reference name="adminhtml.permissions.user.edit.tabs">
106
+ <block type="api2/adminhtml_permissions_user_edit_tab_roles" name="adminhtml.permissions.user.edit.tab.roles"/>
107
+ <action method="addTabAfter">
108
+ <id>api2_roles_section</id>
109
+ <block>adminhtml.permissions.user.edit.tab.roles</block>
110
+ <after>roles_section</after>
111
+ </action>
112
+ </reference>
113
+ <reference name="js">
114
+ <block type="adminhtml/template" name="adminhtml.permissions.user.edit.tab.roles.js" template="api2/permissions/user/edit/tab/roles/js.phtml"/>
115
+ </reference>
116
+ </adminhtml_permissions_user_edit>
117
+
118
+ <!-- ACL attributes -->
119
+ <adminhtml_api2_attribute_index>
120
+ <reference name="content">
121
+ <block type="api2/adminhtml_attribute" name="api2.attribute"/>
122
+ </reference>
123
+ </adminhtml_api2_attribute_index>
124
+
125
+ <adminhtml_api2_attribute_edit>
126
+ <reference name="left">
127
+ <block type="api2/adminhtml_attribute_tabs" name="api2.attribute.edit.tabs">
128
+ <block type="api2/adminhtml_attribute_tab_resource" name="api2.attribute.tab.resource" template="api2/attribute/resource.phtml"/>
129
+ <action method="addTab">
130
+ <name>api2_attribute_section_resources</name>
131
+ <block>api2.attribute.tab.resource</block>
132
+ </action>
133
+ </block>
134
+ </reference>
135
+ <reference name="content">
136
+ <block type="api2/adminhtml_attribute_edit" name="edit_form">
137
+ <block type="api2/adminhtml_attribute_edit_form" name="form"/>
138
+ </block>
139
+ </reference>
140
+ <reference name="head">
141
+ <action method="setCanLoadExtJs">
142
+ <flag>1</flag>
143
+ </action>
144
+ </reference>
145
+ </adminhtml_api2_attribute_edit>
146
+ <!-- EOF ACL attributes -->
147
+ </layout>
app/design/adminhtml/default/default/layout/authorizenet.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+
28
+ -->
29
+ <layout version="0.1.0">
30
+ <adminhtml_sales_order_create_index>
31
+ <reference name="head">
32
+ <action method="addJs"><file>mage/directpost.js</file></action>
33
+ </reference>
34
+ </adminhtml_sales_order_create_index>
35
+ </layout>
app/design/adminhtml/default/default/layout/bundle.xml ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+
29
+ <layout>
30
+
31
+ <!--
32
+ Layout handle for budle products
33
+ -->
34
+
35
+ <!--<default>
36
+ <reference name="left">
37
+ <action method="setData"><attribute>attributeTabs</attribute><attributeType>bundle/adminhtml_catalog_product_edit_tab_attributes</attributeType></action>
38
+ </reference>
39
+ </default>-->
40
+
41
+ <adminhtml_catalog_product_bundle>
42
+ <reference name="product_tabs">
43
+ <action method="addTab"><name>bundle_items</name><block>bundle/adminhtml_catalog_product_edit_tab_bundle</block></action>
44
+ <action method="bindShadowTabs"><first>bundle_items</first><second>customer_options</second></action>
45
+ </reference>
46
+ </adminhtml_catalog_product_bundle>
47
+
48
+ <adminhtml_sales_order_view>
49
+ <reference name="order_items">
50
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_view_items_renderer</block><template>bundle/sales/order/view/items/renderer.phtml</template></action>
51
+ </reference>
52
+ </adminhtml_sales_order_view>
53
+
54
+ <adminhtml_sales_order_invoice_new>
55
+ <reference name="order_items">
56
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/invoice/create/items/renderer.phtml</template></action>
57
+ </reference>
58
+ </adminhtml_sales_order_invoice_new>
59
+
60
+ <adminhtml_sales_order_invoice_updateqty>
61
+ <reference name="order_items">
62
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/invoice/create/items/renderer.phtml</template></action>
63
+ </reference>
64
+ </adminhtml_sales_order_invoice_updateqty>
65
+
66
+ <adminhtml_sales_order_invoice_view>
67
+ <reference name="invoice_items">
68
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/invoice/view/items/renderer.phtml</template></action>
69
+ </reference>
70
+ </adminhtml_sales_order_invoice_view>
71
+
72
+ <adminhtml_sales_order_shipment_new>
73
+ <reference name="order_items">
74
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/shipment/create/items/renderer.phtml</template></action>
75
+ </reference>
76
+ </adminhtml_sales_order_shipment_new>
77
+
78
+ <adminhtml_sales_order_shipment_view>
79
+ <reference name="shipment_items">
80
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/shipment/view/items/renderer.phtml</template></action>
81
+ </reference>
82
+ </adminhtml_sales_order_shipment_view>
83
+
84
+ <adminhtml_sales_order_creditmemo_new>
85
+ <reference name="order_items">
86
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/creditmemo/create/items/renderer.phtml</template></action>
87
+ </reference>
88
+ </adminhtml_sales_order_creditmemo_new>
89
+
90
+ <adminhtml_sales_order_creditmemo_updateqty>
91
+ <reference name="order_items">
92
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/creditmemo/create/items/renderer.phtml</template></action>
93
+ </reference>
94
+ </adminhtml_sales_order_creditmemo_updateqty>
95
+
96
+ <adminhtml_sales_order_creditmemo_view>
97
+ <reference name="creditmemo_items">
98
+ <action method="addItemRender"><type>bundle</type><block>bundle/adminhtml_sales_order_items_renderer</block><template>bundle/sales/creditmemo/view/items/renderer.phtml</template></action>
99
+ </reference>
100
+ </adminhtml_sales_order_creditmemo_view>
101
+
102
+ <adminhtml_customer_wishlist>
103
+ <reference name="customer.wishlist.edit.tab">
104
+ <action method="addProductConfigurationHelper"><type>bundle</type><name>bundle/catalog_product_configuration</name></action>
105
+ </reference>
106
+ </adminhtml_customer_wishlist>
107
+
108
+ <PRODUCT_TYPE_bundle>
109
+ <reference name="product.composite.fieldset">
110
+ <block type="bundle/adminhtml_catalog_product_composite_fieldset_bundle" before="product.composite.fieldset.options" name="product.composite.fieldset.bundle" template="bundle/product/composite/fieldset/options/bundle.phtml">
111
+ <action method="addRenderer"><type>select</type><block>bundle/adminhtml_catalog_product_composite_fieldset_options_type_select</block></action>
112
+ <action method="addRenderer"><type>multi</type><block>bundle/adminhtml_catalog_product_composite_fieldset_options_type_multi</block></action>
113
+ <action method="addRenderer"><type>radio</type><block>bundle/adminhtml_catalog_product_composite_fieldset_options_type_radio</block></action>
114
+ <action method="addRenderer"><type>checkbox</type><block>bundle/adminhtml_catalog_product_composite_fieldset_options_type_checkbox</block></action>
115
+ </block>
116
+ </reference>
117
+ </PRODUCT_TYPE_bundle>
118
+ </layout>
app/design/adminhtml/default/default/layout/captcha.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+
28
+ -->
29
+ <layout version="0.1.0">
30
+ <adminhtml_index_login>
31
+ <reference name="form.additional.info">
32
+ <block type="captcha/captcha" name="captcha">
33
+ <action method="setFormId"><formId>backend_login</formId></action>
34
+ <action method="setImgWidth"><width>226</width></action>
35
+ <action method="setImgHeight"><width>50</width></action>
36
+ </block>
37
+ </reference>
38
+ </adminhtml_index_login>
39
+ <adminhtml_index_forgotpassword>
40
+ <reference name="form.additional.info">
41
+ <block type="captcha/captcha" name="captcha">
42
+ <action method="setFormId"><formId>backend_forgotpassword</formId></action>
43
+ <action method="setImgWidth"><width>226</width></action>
44
+ <action method="setImgHeight"><width>50</width></action>
45
+ </block>
46
+ </reference>
47
+ </adminhtml_index_forgotpassword>
48
+ </layout>
app/design/adminhtml/default/default/layout/catalog.xml ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magento.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magento.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+
29
+ <layout>
30
+ <adminhtml_catalog_product_index>
31
+ <referense name="head">
32
+ <action method="setTitle" translate="title"><title>Catalog</title></action>
33
+ </referense>
34
+ <reference name="menu">
35
+ <action method="setActive"><menupath>catalog/products</menupath></action>
36
+ </reference>
37
+ <reference name="content">
38
+ <block type="adminhtml/catalog_product" name="products_list">
39
+ <block type="adminhtml/store_switcher" name="store_switcher" as="store_switcher">
40
+ <action method="setUseConfirm"><params>0</params></action>
41
+ </block>
42
+ </block>
43
+ </reference>
44
+ </adminhtml_catalog_product_index>
45
+
46
+ <adminhtml_catalog_product_new>
47
+ <update handle="editor"/>
48
+ <reference name="content">
49
+ <block type="adminhtml/catalog_product_edit" name="product_edit"></block>
50
+ </reference>
51
+ <reference name="left">
52
+ <block type="adminhtml/catalog_product_edit_tabs" name="product_tabs"></block>
53
+ </reference>
54
+ <reference name="js">
55
+ <block type="adminhtml/catalog_product_edit_js" template="catalog/product/js.phtml" name="catalog_product_js"></block>
56
+ <block type="core/template" template="catalog/wysiwyg/js.phtml"/>
57
+ </reference>
58
+ </adminhtml_catalog_product_new>
59
+
60
+ <adminhtml_catalog_product_edit>
61
+ <update handle="editor"/>
62
+ <reference name="content">
63
+ <block type="adminhtml/catalog_product_edit" name="product_edit"></block>
64
+ </reference>
65
+ <reference name="left">
66
+ <block type="adminhtml/store_switcher" name="store_switcher" before="-"></block>
67
+ <block type="adminhtml/catalog_product_edit_tabs" name="product_tabs"></block>
68
+ </reference>
69
+ <reference name="js">
70
+ <block type="adminhtml/catalog_product_edit_js" template="catalog/product/js.phtml" name="catalog_product_js"></block>
71
+ <block type="core/template" name="catalog.wysiwyg.js" template="catalog/wysiwyg/js.phtml"/>
72
+ </reference>
73
+ </adminhtml_catalog_product_edit>
74
+
75
+ <adminhtml_catalog_product_categories>
76
+ <block type="core/text_list" name="root" output="toHtml">
77
+ <block type="adminhtml/catalog_product_edit_tab_categories" name="catalog.product.edit.tab.categories"/>
78
+ </block>
79
+ </adminhtml_catalog_product_categories>
80
+
81
+ <adminhtml_catalog_product_reviews>
82
+ <block type="core/text_list" name="root" output="toHtml">
83
+ <block type="adminhtml/catalog_product_edit_tab_reviews" name="admin.product.reviews"/>
84
+ </block>
85
+ </adminhtml_catalog_product_reviews>
86
+
87
+ <adminhtml_catalog_product_taggrid>
88
+ <block type="core/text_list" name="root" output="toHtml">
89
+ <block type="adminhtml/catalog_product_edit_tab_tag" name="admin.product.tags"/>
90
+ </block>
91
+ </adminhtml_catalog_product_taggrid>
92
+
93
+ <adminhtml_catalog_product_tagcustomergrid>
94
+ <block type="core/text_list" name="root" output="toHtml">
95
+ <block type="adminhtml/catalog_product_edit_tab_tag_customer" name="admin.product.tags.customers"/>
96
+ </block>
97
+ </adminhtml_catalog_product_tagcustomergrid>
98
+
99
+ <adminhtml_catalog_product_options>
100
+ <block type="core/text_list" name="root" output="toHtml">
101
+ <block type="adminhtml/catalog_product_edit_tab_options" name="admin.product.options"/>
102
+ </block>
103
+ </adminhtml_catalog_product_options>
104
+
105
+ <adminhtml_catalog_product_grid>
106
+ <block type="core/text_list" name="root" output="toHtml">
107
+ <block type="adminhtml/catalog_product_grid" name="admin.product.grid"/>
108
+ </block>
109
+ </adminhtml_catalog_product_grid>
110
+
111
+ <adminhtml_catalog_product_related>
112
+ <block type="core/text_list" name="root" output="toHtml">
113
+ <block type="adminhtml/catalog_product_edit_tab_related" name="catalog.product.edit.tab.related"/>
114
+ <block type="adminhtml/widget_grid_serializer" name="related_grid_serializer">
115
+ <reference name="related_grid_serializer">
116
+ <action method="initSerializerBlock">
117
+ <grid_block_name>catalog.product.edit.tab.related</grid_block_name>
118
+ <data_callback>getSelectedRelatedProducts</data_callback>
119
+ <hidden_input_name>links[related]</hidden_input_name>
120
+ <reload_param_name>products_related</reload_param_name>
121
+ </action>
122
+ <action method="addColumnInputName">
123
+ <input_name>position</input_name>
124
+ </action>
125
+ </reference>
126
+ </block>
127
+ </block>
128
+ </adminhtml_catalog_product_related>
129
+
130
+ <adminhtml_catalog_product_relatedgrid>
131
+ <block type="core/text_list" name="root" output="toHtml">
132
+ <block type="adminhtml/catalog_product_edit_tab_related" name="catalog.product.edit.tab.related"/>
133
+ </block>
134
+ </adminhtml_catalog_product_relatedgrid>
135
+
136
+ <adminhtml_catalog_product_superconfig>
137
+ <block type="adminhtml/catalog_product_edit_tab_super_config_grid" name="admin.product.edit.tab.super.config.grid" output="toHtml" />
138
+ </adminhtml_catalog_product_superconfig>
139
+
140
+ <adminhtml_catalog_product_alertspricegrid>
141
+ <block type="adminhtml/catalog_product_edit_tab_alerts_price" name="admin.product.edit.tab.alerts.price" output="toHtml" />
142
+ </adminhtml_catalog_product_alertspricegrid>
143
+
144
+ <adminhtml_catalog_product_alertsstockgrid>
145
+ <block type="adminhtml/catalog_product_edit_tab_alerts_stock" name="admin.product.edit.tab.alerts.stock" output="toHtml" />
146
+ </adminhtml_catalog_product_alertsstockgrid>
147
+
148
+ <adminhtml_catalog_product_upsell>
149
+ <block type="core/text_list" name="root" output="toHtml">
150
+ <block type="adminhtml/catalog_product_edit_tab_upsell" name="catalog.product.edit.tab.upsell"/>
151
+ <block type="adminhtml/widget_grid_serializer" name="upsell_grid_serializer">
152
+ <reference name="upsell_grid_serializer">
153
+ <action method="initSerializerBlock">
154
+ <grid_block_name>catalog.product.edit.tab.upsell</grid_block_name>
155
+ <data_callback>getSelectedUpsellProducts</data_callback>
156
+ <hidden_input_name>links[upsell]</hidden_input_name>
157
+ <reload_param_name>products_upsell</reload_param_name>
158
+ </action>
159
+ <action method="addColumnInputName">
160
+ <input_name>position</input_name>
161
+ </action>
162
+ </reference>
163
+ </block>
164
+ </block>
165
+ </adminhtml_catalog_product_upsell>
166
+
167
+ <adminhtml_catalog_product_upsellgrid>
168
+ <block type="core/text_list" name="root" output="toHtml">
169
+ <block type="adminhtml/catalog_product_edit_tab_upsell" name="catalog.product.edit.tab.upsell"/>
170
+ </block>
171
+ </adminhtml_catalog_product_upsellgrid>
172
+
173
+ <adminhtml_catalog_product_crosssell>
174
+ <block type="core/text_list" name="root" output="toHtml">
175
+ <block type="adminhtml/catalog_product_edit_tab_crosssell" name="catalog.product.edit.tab.crosssell"/>
176
+ <block type="adminhtml/widget_grid_serializer" name="crosssell_grid_serializer">
177
+ <reference name="crosssell_grid_serializer">
178
+ <action method="initSerializerBlock">
179
+ <grid_block_name>catalog.product.edit.tab.crosssell</grid_block_name>
180
+ <data_callback>getSelectedCrossSellProducts</data_callback>
181
+ <hidden_input_name>links[crosssell]</hidden_input_name>
182
+ <reload_param_name>products_crosssell</reload_param_name>
183
+ </action>
184
+ <action method="addColumnInputName">
185
+ <input_name>position</input_name>
186
+ </action>
187
+ </reference>
188
+ </block>
189
+ </block>
190
+ </adminhtml_catalog_product_crosssell>
191
+
192
+ <adminhtml_catalog_product_crosssellgrid>
193
+ <block type="core/text_list" name="root" output="toHtml">
194
+ <block type="adminhtml/catalog_product_edit_tab_crosssell" name="catalog.product.edit.tab.crosssell"/>
195
+ </block>
196
+ </adminhtml_catalog_product_crosssellgrid>
197
+ <!--
198
+ Layout handle for simple products
199
+ -->
200
+
201
+ <adminhtml_catalog_product_simple />
202
+
203
+ <!--
204
+ Layout handle for grouped products
205
+ -->
206
+ <adminhtml_catalog_product_grouped>
207
+ <reference name="product_tabs">
208
+ <action method="addTab"><name>super</name><block>adminhtml/catalog_product_edit_tab_super_group</block></action>
209
+ </reference>
210
+ </adminhtml_catalog_product_grouped>
211
+
212
+ <adminhtml_catalog_product_supergroup>
213
+ <block type="core/text_list" name="root" output="toHtml">
214
+ <block type="adminhtml/catalog_product_edit_tab_super_group" name="catalog.product.edit.tab.super.group" />
215
+ <block type="adminhtml/widget_grid_serializer" name="grouped_grid_serializer">
216
+ <reference name="grouped_grid_serializer">
217
+ <action method="initSerializerBlock">
218
+ <grid_block_name>catalog.product.edit.tab.super.group</grid_block_name>
219
+ <data_callback>getSelectedGroupedProducts</data_callback>
220
+ <hidden_input_name>links[grouped]</hidden_input_name>
221
+ <reload_param_name>products_grouped</reload_param_name>
222
+ </action>
223
+ <action method="addColumnInputName">
224
+ <input_name>qty</input_name>
225
+ <input_name>position</input_name>
226
+ </action>
227
+ </reference>
228
+ </block>
229
+ </block>
230
+ </adminhtml_catalog_product_supergroup>
231
+
232
+ <adminhtml_catalog_product_supergroupgridonly>
233
+ <block type="core/text_list" name="root">
234
+ <block type="adminhtml/catalog_product_edit_tab_super_group" name="catalog.product.edit.tab.super.group" />
235
+ </block>
236
+ </adminhtml_catalog_product_supergroupgridonly>
237
+ <!--
238
+ Layout handle for configurable products
239
+ -->
240
+
241
+ <adminhtml_catalog_product_configurable_new>
242
+ <remove name="product_tabs"/>
243
+ <reference name="left">
244
+ <block type="adminhtml/catalog_product_edit_tabs_configurable" name="configurable_product_tabs"></block>
245
+ </reference>
246
+ </adminhtml_catalog_product_configurable_new>
247
+
248
+ <adminhtml_catalog_product_configurable>
249
+ <reference name="product_tabs">
250
+ <action method="addTab"><name>configurable</name><block>adminhtml/catalog_product_edit_tab_super_config</block></action>
251
+ <action method="bindShadowTabs"><first>configurable</first><second>customer_options</second></action>
252
+ </reference>
253
+ </adminhtml_catalog_product_configurable>
254
+
255
+ <adminhtml_catalog_product_action_attribute_edit>
256
+ <reference name="left">
257
+ <block type="adminhtml/store_switcher" name="store_switcher" template="store/switcher.phtml" />
258
+ <block type="adminhtml/catalog_product_edit_action_attribute_tabs" name="attributes_tabs">
259
+ <block type="adminhtml/catalog_product_edit_action_attribute_tab_attributes" name="tab_attributes"/>
260
+ <block type="adminhtml/catalog_product_edit_action_attribute_tab_inventory" name="tab_inventory" template="catalog/product/edit/action/inventory.phtml" />
261
+ <block type="adminhtml/catalog_product_edit_action_attribute_tab_websites" name="tab_websites" template="catalog/product/edit/action/websites.phtml" />
262
+ <action method="addTab"><name>attributes</name><block>tab_attributes</block></action>
263
+ <action method="addTab"><name>inventory</name><block>tab_inventory</block></action>
264
+ <action method="addTab"><name>websites</name><block>tab_websites</block></action>
265
+ </block>
266
+ </reference>
267
+ <reference name="content">
268
+ <block type="adminhtml/catalog_product_edit_action_attribute" name="attribute" template="catalog/product/edit/action/attribute.phtml" />
269
+ </reference>
270
+ </adminhtml_catalog_product_action_attribute_edit>
271
+
272
+ <adminhtml_catalog_product_attribute_edit>
273
+ <reference name="left">
274
+ <block type="adminhtml/catalog_product_attribute_edit_tabs" name="attribute_edit_tabs"></block>
275
+ </reference>
276
+ <reference name="content">
277
+ <block type="adminhtml/catalog_product_attribute_edit" name="attribute_edit_content"></block>
278
+ </reference>
279
+ <reference name="js">
280
+ <block type="adminhtml/template" name="attribute_edit_js" template="catalog/product/attribute/js.phtml"></block>
281
+ </reference>
282
+ </adminhtml_catalog_product_attribute_edit>
283
+
284
+ <adminhtml_catalog_category_edit>
285
+ <update handle="editor"/>
286
+ <reference name="left">
287
+ <block name="category.tree" type="adminhtml/catalog_category_tree" template="catalog/category/tree.phtml" />
288
+ </reference>
289
+ <reference name="content">
290
+ <block name="category.edit" type="adminhtml/catalog_category_edit" template="catalog/category/edit.phtml" />
291
+ </reference>
292
+ <reference name="js">
293
+ <block type="core/template" template="catalog/wysiwyg/js.phtml" name="catalog.wysiwyg.js" />
294
+ </reference>
295
+ </adminhtml_catalog_category_edit>
296
+
297
+ <ADMINHTML_CATALOG_PRODUCT_COMPOSITE_CONFIGURE>
298
+ <block type="adminhtml/catalog_product_composite_fieldset" name="product.composite.fieldset" output="toHtml">
299
+ <block name="product.composite.fieldset.options" type="adminhtml/catalog_product_composite_fieldset_options" template="catalog/product/composite/fieldset/options.phtml">
300
+ <action method="addOptionRenderer"><type>text</type><block>catalog/product_view_options_type_text</block><template>catalog/product/composite/fieldset/options/type/text.phtml</template></action>
301
+ <action method="addOptionRenderer"><type>file</type><block>catalog/product_view_options_type_file</block><template>catalog/product/composite/fieldset/options/type/file.phtml</template></action>
302
+ <action method="addOptionRenderer"><type>select</type><block>catalog/product_view_options_type_select</block><template>catalog/product/composite/fieldset/options/type/select.phtml</template></action>
303
+ <action method="addOptionRenderer"><type>date</type><block>catalog/product_view_options_type_date</block><template>catalog/product/composite/fieldset/options/type/date.phtml</template></action>
304
+ <block type="core/template" name="product.composite.fieldset.options.js" as="options_js" template="catalog/product/composite/fieldset/options/js.phtml"/>
305
+ </block>
306
+ <block type="adminhtml/catalog_product_composite_fieldset_qty" name="product.composite.fieldset.qty" template="catalog/product/composite/fieldset/qty.phtml"/>
307
+ </block>
308
+ </ADMINHTML_CATALOG_PRODUCT_COMPOSITE_CONFIGURE>
309
+
310
+ <ADMINHTML_CATALOG_PRODUCT_COMPOSITE_CONFIGURE_ERROR>
311
+ <block type="adminhtml/catalog_product_composite_error" name="product.composite.error" output="toHtml" />
312
+ </ADMINHTML_CATALOG_PRODUCT_COMPOSITE_CONFIGURE_ERROR>
313
+
314
+ <ADMINHTML_CATALOG_PRODUCT_COMPOSITE_UPDATE_RESULT>
315
+ <block type="adminhtml/catalog_product_composite_update_result" name="product.composite.update.result" output="toHtml" />
316
+ </ADMINHTML_CATALOG_PRODUCT_COMPOSITE_UPDATE_RESULT>
317
+ <!--
318
+ Additional block in composite_fieldset block dependant on product type
319
+ -->
320
+ <PRODUCT_TYPE_configurable>
321
+ <reference name="product.composite.fieldset">
322
+ <block type="adminhtml/catalog_product_composite_fieldset_configurable" name="product.composite.fieldset.configurable" before="product.composite.fieldset.options" template="catalog/product/composite/fieldset/configurable.phtml" />
323
+ </reference>
324
+ </PRODUCT_TYPE_configurable>
325
+ <PRODUCT_TYPE_grouped>
326
+ <reference name="product.composite.fieldset">
327
+ <block type="adminhtml/catalog_product_composite_fieldset_grouped" name="product.composite.fieldset.grouped" before="product.composite.fieldset.options" template="catalog/product/composite/fieldset/grouped.phtml"/>
328
+ <remove name="product.composite.fieldset.qty"/>
329
+ </reference>
330
+ </PRODUCT_TYPE_grouped>
331
+
332
+ </layout>
app/design/adminhtml/default/default/layout/centinel.xml ADDED
@@ -0,0 +1,70 @@