FireGento_MageSetup - Version 2.0.3

Version Notes

Download this release

Release Info

Developer Team FireGento
Extension FireGento_MageSetup
Version 2.0.3
Comparing to
See all releases


Version 2.0.3

Files changed (172) hide show
  1. app/code/community/FireGento/MageSetup/Block/Adminhtml/Magesetup.php +234 -0
  2. app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status.php +48 -0
  3. app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status/Grid.php +128 -0
  4. app/code/community/FireGento/MageSetup/Block/Adminhtml/Notifications.php +82 -0
  5. app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price.php +170 -0
  6. app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price/Abstract.php +52 -0
  7. app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price.php +253 -0
  8. app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price/Abstract.php +63 -0
  9. app/code/community/FireGento/MageSetup/Block/Checkout/Agreements.php +68 -0
  10. app/code/community/FireGento/MageSetup/Block/Checkout/Information.php +70 -0
  11. app/code/community/FireGento/MageSetup/Block/Customer/Account/Agreements.php +51 -0
  12. app/code/community/FireGento/MageSetup/Block/Ga.php +60 -0
  13. app/code/community/FireGento/MageSetup/Block/Imprint/Content.php +103 -0
  14. app/code/community/FireGento/MageSetup/Block/Imprint/Field.php +45 -0
  15. app/code/community/FireGento/MageSetup/Helper/Catalog/Product/Configuration.php +138 -0
  16. app/code/community/FireGento/MageSetup/Helper/Checkout/Data.php +90 -0
  17. app/code/community/FireGento/MageSetup/Helper/Data.php +107 -0
  18. app/code/community/FireGento/MageSetup/Model/Config.php +128 -0
  19. app/code/community/FireGento/MageSetup/Model/Newsletter/Observer.php +60 -0
  20. app/code/community/FireGento/MageSetup/Model/Newsletter/Subscriber/Status.php +44 -0
  21. app/code/community/FireGento/MageSetup/Model/Observer.php +356 -0
  22. app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status.php +44 -0
  23. app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status/Collection.php +44 -0
  24. app/code/community/FireGento/MageSetup/Model/Setup.php +235 -0
  25. app/code/community/FireGento/MageSetup/Model/Setup/Abstract.php +163 -0
  26. app/code/community/FireGento/MageSetup/Model/Setup/Agreements.php +141 -0
  27. app/code/community/FireGento/MageSetup/Model/Setup/Cms.php +325 -0
  28. app/code/community/FireGento/MageSetup/Model/Setup/Email.php +218 -0
  29. app/code/community/FireGento/MageSetup/Model/Setup/Systemconfig.php +64 -0
  30. app/code/community/FireGento/MageSetup/Model/Setup/Tax.php +373 -0
  31. app/code/community/FireGento/MageSetup/Model/Source/AgreementType.php +80 -0
  32. app/code/community/FireGento/MageSetup/Model/Source/Cms/Block.php +84 -0
  33. app/code/community/FireGento/MageSetup/Model/Source/Cms/Page.php +84 -0
  34. app/code/community/FireGento/MageSetup/Model/Source/Tax/CustomerTaxClass.php +63 -0
  35. app/code/community/FireGento/MageSetup/Model/Source/Tax/DynamicType.php +59 -0
  36. app/code/community/FireGento/MageSetup/Model/Source/Tax/NewCustomerTaxClass.php +139 -0
  37. app/code/community/FireGento/MageSetup/Model/Source/Tax/NewProductTaxClass.php +141 -0
  38. app/code/community/FireGento/MageSetup/Model/Source/Tax/ProductTaxClass.php +63 -0
  39. app/code/community/FireGento/MageSetup/Model/Tax/Config.php +153 -0
  40. app/code/community/FireGento/MageSetup/Test/Config/Main.php +131 -0
  41. app/code/community/FireGento/MageSetup/Test/Config/Main/expectations/testModuleConfig.yaml +3 -0
  42. app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType.php +77 -0
  43. app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testGetOptionArray.yaml +5 -0
  44. app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testToOptionArray.yaml +13 -0
  45. app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType.php +63 -0
  46. app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType/expectations/testToOptionArray.yaml +10 -0
  47. app/code/community/FireGento/MageSetup/Test/features/product_list.feature +25 -0
  48. app/code/community/FireGento/MageSetup/Test/features/product_view.feature +25 -0
  49. app/code/community/FireGento/MageSetup/controllers/Adminhtml/NewsletterController.php +80 -0
  50. app/code/community/FireGento/MageSetup/controllers/FrontendController.php +64 -0
  51. app/code/community/FireGento/MageSetup/controllers/MagesetupController.php +127 -0
  52. app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.0-2.0.1.php +178 -0
  53. app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.1-2.0.2.php +45 -0
  54. app/code/community/FireGento/MageSetup/etc/adminhtml.xml +28 -0
  55. app/code/community/FireGento/MageSetup/etc/at/email.xml +495 -0
  56. app/code/community/FireGento/MageSetup/etc/at/tax.xml +171 -0
  57. app/code/community/FireGento/MageSetup/etc/ch/email.xml +495 -0
  58. app/code/community/FireGento/MageSetup/etc/ch/tax.xml +172 -0
  59. app/code/community/FireGento/MageSetup/etc/config.xml +394 -0
  60. app/code/community/FireGento/MageSetup/etc/de/email.xml +495 -0
  61. app/code/community/FireGento/MageSetup/etc/de/tax.xml +171 -0
  62. app/code/community/FireGento/MageSetup/etc/default/agreement.xml +51 -0
  63. app/code/community/FireGento/MageSetup/etc/default/cms.xml +103 -0
  64. app/code/community/FireGento/MageSetup/etc/default/email.xml +495 -0
  65. app/code/community/FireGento/MageSetup/etc/default/systemconfig.xml +37 -0
  66. app/code/community/FireGento/MageSetup/etc/default/tax.xml +316 -0
  67. app/code/community/FireGento/MageSetup/etc/fr/email.xml +495 -0
  68. app/code/community/FireGento/MageSetup/etc/fr/tax.xml +190 -0
  69. app/code/community/FireGento/MageSetup/etc/gb/tax.xml +171 -0
  70. app/code/community/FireGento/MageSetup/etc/it/email.xml +495 -0
  71. app/code/community/FireGento/MageSetup/etc/it/tax.xml +185 -0
  72. app/code/community/FireGento/MageSetup/etc/ru/cms.xml +103 -0
  73. app/code/community/FireGento/MageSetup/etc/ru/email.xml +495 -0
  74. app/code/community/FireGento/MageSetup/etc/ru/systemconfig.xml +37 -0
  75. app/code/community/FireGento/MageSetup/etc/ru/tax.xml +170 -0
  76. app/code/community/FireGento/MageSetup/etc/system.xml +465 -0
  77. app/code/community/FireGento/MageSetup/scripts/GenerateCountryTaxXml.php +24 -0
  78. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-install-0.5.0.php +61 -0
  79. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.0.4-1.0.5.php +62 -0
  80. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.2-1.1.3.php +61 -0
  81. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.3-1.1.4.php +94 -0
  82. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.4-1.2.0.php +89 -0
  83. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.0-1.2.1.php +47 -0
  84. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.1-1.2.2.php +60 -0
  85. app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.2-1.2.3.php +62 -0
  86. app/design/adminhtml/default/default/layout/magesetup.xml +41 -0
  87. app/design/adminhtml/default/default/template/magesetup/extensions.phtml +120 -0
  88. app/design/adminhtml/default/default/template/magesetup/form.phtml +345 -0
  89. app/design/adminhtml/default/default/template/magesetup/notifications.phtml +7 -0
  90. app/design/frontend/base/default/layout/magesetup.xml +520 -0
  91. app/design/frontend/base/default/template/magesetup/checkout/additional.phtml +31 -0
  92. app/design/frontend/base/default/template/magesetup/checkout/multishipping/agreements.phtml +57 -0
  93. app/design/frontend/base/default/template/magesetup/checkout/multishipping/overview.phtml +240 -0
  94. app/design/frontend/base/default/template/magesetup/checkout/onepage/agreements.phtml +60 -0
  95. app/design/frontend/base/default/template/magesetup/customer/form/tc-confirmation.phtml +55 -0
  96. app/design/frontend/base/default/template/magesetup/delivery_time.phtml +44 -0
  97. app/design/frontend/base/default/template/magesetup/imprint/address.phtml +37 -0
  98. app/design/frontend/base/default/template/magesetup/imprint/bank.phtml +51 -0
  99. app/design/frontend/base/default/template/magesetup/imprint/communication.phtml +38 -0
  100. app/design/frontend/base/default/template/magesetup/imprint/email_footer.phtml +102 -0
  101. app/design/frontend/base/default/template/magesetup/imprint/legal.phtml +68 -0
  102. app/design/frontend/base/default/template/magesetup/imprint/tax.phtml +37 -0
  103. app/design/frontend/base/default/template/magesetup/price_info.phtml +70 -0
  104. app/design/frontend/base/default/template/magesetup/shipping.phtml +46 -0
  105. app/etc/modules/FireGento_MageSetup.xml +35 -0
  106. app/locale/de_AT/FireGento_MageSetup.csv +3 -0
  107. app/locale/de_DE/FireGento_MageSetup.csv +151 -0
  108. app/locale/de_DE/template/magesetup/agreement/business_terms.html +3 -0
  109. app/locale/de_DE/template/magesetup/agreement/revocation.html +3 -0
  110. app/locale/de_DE/template/magesetup/block/business_terms.html +2 -0
  111. app/locale/de_DE/template/magesetup/block/revocation.html +2 -0
  112. app/locale/de_DE/template/magesetup/page/404.html +9 -0
  113. app/locale/de_DE/template/magesetup/page/business_terms.html +4 -0
  114. app/locale/de_DE/template/magesetup/page/imprint.html +37 -0
  115. app/locale/de_DE/template/magesetup/page/order.html +38 -0
  116. app/locale/de_DE/template/magesetup/page/payment.html +30 -0
  117. app/locale/de_DE/template/magesetup/page/privacy.html +4 -0
  118. app/locale/de_DE/template/magesetup/page/revocation.html +4 -0
  119. app/locale/de_DE/template/magesetup/page/shipping.html +4 -0
  120. app/locale/en_US/FireGento_MageSetup.csv +151 -0
  121. app/locale/en_US/template/magesetup/agreement/business_terms.html +3 -0
  122. app/locale/en_US/template/magesetup/agreement/revocation.html +3 -0
  123. app/locale/en_US/template/magesetup/block/business_terms.html +2 -0
  124. app/locale/en_US/template/magesetup/block/revocation.html +2 -0
  125. app/locale/en_US/template/magesetup/page/404.html +9 -0
  126. app/locale/en_US/template/magesetup/page/business_terms.html +4 -0
  127. app/locale/en_US/template/magesetup/page/imprint.html +39 -0
  128. app/locale/en_US/template/magesetup/page/order.html +40 -0
  129. app/locale/en_US/template/magesetup/page/payment.html +32 -0
  130. app/locale/en_US/template/magesetup/page/privacy.html +4 -0
  131. app/locale/en_US/template/magesetup/page/revocation.html +4 -0
  132. app/locale/en_US/template/magesetup/page/shipping.html +4 -0
  133. app/locale/fr_FR/FireGento_MageSetup.csv +143 -0
  134. app/locale/fr_FR/template/magesetup/agreement/business_terms.html +3 -0
  135. app/locale/fr_FR/template/magesetup/agreement/revocation.html +3 -0
  136. app/locale/fr_FR/template/magesetup/block/business_terms.html +6 -0
  137. app/locale/fr_FR/template/magesetup/block/revocation.html +2 -0
  138. app/locale/fr_FR/template/magesetup/page/404.html +9 -0
  139. app/locale/fr_FR/template/magesetup/page/business_terms.html +4 -0
  140. app/locale/fr_FR/template/magesetup/page/imprint.html +37 -0
  141. app/locale/fr_FR/template/magesetup/page/order.html +38 -0
  142. app/locale/fr_FR/template/magesetup/page/payment.html +24 -0
  143. app/locale/fr_FR/template/magesetup/page/privacy.html +24 -0
  144. app/locale/fr_FR/template/magesetup/page/revocation.html +4 -0
  145. app/locale/fr_FR/template/magesetup/page/shipping.html +4 -0
  146. app/locale/it_IT/FireGento_MageSetup.csv +147 -0
  147. app/locale/it_IT/template/magesetup/agreement/business_terms.html +3 -0
  148. app/locale/it_IT/template/magesetup/agreement/revocation.html +3 -0
  149. app/locale/it_IT/template/magesetup/block/business_terms.html +2 -0
  150. app/locale/it_IT/template/magesetup/block/revocation.html +2 -0
  151. app/locale/it_IT/template/magesetup/page/404.html +9 -0
  152. app/locale/it_IT/template/magesetup/page/business_terms.html +4 -0
  153. app/locale/it_IT/template/magesetup/page/imprint.html +32 -0
  154. app/locale/it_IT/template/magesetup/page/order.html +53 -0
  155. app/locale/it_IT/template/magesetup/page/payment.html +26 -0
  156. app/locale/it_IT/template/magesetup/page/privacy.html +4 -0
  157. app/locale/it_IT/template/magesetup/page/revocation.html +4 -0
  158. app/locale/it_IT/template/magesetup/page/shipping.html +4 -0
  159. app/locale/ru_RU/FireGento_MageSetup.csv +131 -0
  160. app/locale/ru_RU/template/magesetup/agreement/business_terms.html +3 -0
  161. app/locale/ru_RU/template/magesetup/agreement/revocation.html +3 -0
  162. app/locale/ru_RU/template/magesetup/block/business_terms.html +2 -0
  163. app/locale/ru_RU/template/magesetup/block/revocation.html +2 -0
  164. app/locale/ru_RU/template/magesetup/page/404.html +9 -0
  165. app/locale/ru_RU/template/magesetup/page/business_terms.html +4 -0
  166. app/locale/ru_RU/template/magesetup/page/order.html +5 -0
  167. app/locale/ru_RU/template/magesetup/page/payment.html +4 -0
  168. app/locale/ru_RU/template/magesetup/page/privacy.html +4 -0
  169. app/locale/ru_RU/template/magesetup/page/revocation.html +4 -0
  170. app/locale/ru_RU/template/magesetup/page/shipping.html +4 -0
  171. package.xml +18 -0
  172. skin/frontend/base/default/css/magesetup/checkout.css +64 -0
app/code/community/FireGento/MageSetup/Block/Adminhtml/Magesetup.php ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.4.0
22
+ */
23
+ /**
24
+ * Displays a form with some options to setup things
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.4.0
33
+ */
34
+ class FireGento_MageSetup_Block_Adminhtml_Magesetup extends Mage_Adminhtml_Block_Widget
35
+ {
36
+ /**
37
+ * Class Constructor
38
+ */
39
+ public function __construct()
40
+ {
41
+ parent::__construct();
42
+ $this->setTitle('MageSetup');
43
+ }
44
+
45
+ /**
46
+ * Retrieve the POST URL for the form
47
+ *
48
+ * @return string URL
49
+ */
50
+ public function getPostActionUrl()
51
+ {
52
+ return $this->getUrl('*/*/save');
53
+ }
54
+
55
+ /**
56
+ * Get old product tax classes
57
+ *
58
+ * @return array All existing product tax classes
59
+ */
60
+ public function getProductTaxClasses()
61
+ {
62
+ return Mage::getSingleton('magesetup/source_tax_productTaxClass')->getAllOptions();
63
+ }
64
+
65
+ /**
66
+ * Get old product tax classes
67
+ *
68
+ * @return array All existing product tax classes
69
+ */
70
+ public function getCustomerTaxClasses()
71
+ {
72
+ return Mage::getSingleton('magesetup/source_tax_customerTaxClass')->getAllOptions();
73
+ }
74
+
75
+ /**
76
+ * Get new product tax classes (yet to be created)
77
+ *
78
+ * @return array All new product tax classes
79
+ */
80
+ public function getNewProductTaxClasses()
81
+ {
82
+ return Mage::getSingleton('magesetup/source_tax_newProductTaxClass')->getAllOptions();
83
+ }
84
+
85
+ /**
86
+ * Get new product tax classes (yet to be created)
87
+ *
88
+ * @return array All new product tax classes
89
+ */
90
+ public function getNewCustomerTaxClasses()
91
+ {
92
+ return Mage::getSingleton('magesetup/source_tax_newCustomerTaxClass')->getAllOptions();
93
+ }
94
+
95
+ /**
96
+ * Retrieve the default default new product tax class (yet to be created)
97
+ *
98
+ * @return int Default Product Tax Class
99
+ */
100
+ public function getDefaultProductTaxClass()
101
+ {
102
+ return Mage::getSingleton('magesetup/source_tax_newProductTaxClass')->getDefaultOption();
103
+ }
104
+
105
+ /**
106
+ * Retrieve all locales where the directory email/template exists
107
+ *
108
+ * @return array Locale options for email templates
109
+ */
110
+ public function getLocaleOptionsForEmailTemplates()
111
+ {
112
+ $options = Mage::getSingleton('adminhtml/system_config_source_locale')->toOptionArray();
113
+ foreach ($options as $key => $value) {
114
+ $filePath = Mage::getBaseDir('locale') . DS . $value['value'] . DS . 'template' . DS . 'email';
115
+ if (!file_exists($filePath)) {
116
+ unset($options[$key]);
117
+ }
118
+ }
119
+
120
+ return $options;
121
+ }
122
+
123
+ /**
124
+ * Retrieve all locales where the directory email/template exists
125
+ *
126
+ * @return array Locale options for CMS content
127
+ */
128
+ public function getLocaleOptionsForCmsContent()
129
+ {
130
+ $options = Mage::getSingleton('adminhtml/system_config_source_locale')->toOptionArray();
131
+ foreach ($options as $key => $value) {
132
+ $filePath = Mage::getBaseDir('locale') . DS . $value['value'] . DS . 'template' . DS . 'magesetup';
133
+ if (!file_exists($filePath)) {
134
+ unset($options[$key]);
135
+ }
136
+ }
137
+
138
+ return $options;
139
+ }
140
+
141
+ /**
142
+ * Check if there is more than one Store View
143
+ *
144
+ * @return bool Flag if there are more than one store
145
+ */
146
+ public function isMultiStore()
147
+ {
148
+ return (sizeof($this->getStores()) > 1);
149
+ }
150
+
151
+ /**
152
+ * Retrieve all stores
153
+ *
154
+ * @return array All stores
155
+ */
156
+ public function getStores()
157
+ {
158
+ return Mage::app()->getStores(false);
159
+ }
160
+
161
+ /**
162
+ * Retrieve all available countries for MageSetup
163
+ *
164
+ * @return array All allowed countries
165
+ */
166
+ public function getAvailableCountriesForSetup()
167
+ {
168
+ return Mage::helper('magesetup')->getAvailableCountries();
169
+ }
170
+
171
+ /**
172
+ * @return string
173
+ */
174
+ public function getNewProductTaxClassesJson()
175
+ {
176
+ $countryTaxClasses = array();
177
+ foreach(Mage::helper('magesetup')->getAvailableCountries() as $countryId => $countryName) {
178
+
179
+ $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . $countryId . DS . 'tax.xml';
180
+
181
+ // If the given file does not exist, use the default file
182
+ if (!file_exists($configFile)) {
183
+ $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . 'default' . DS . 'tax.xml';
184
+ }
185
+
186
+ $xml = new SimpleXMLElement(file_get_contents($configFile));
187
+
188
+ $taxClasses = $xml->default->magesetup->tax_classes->default;
189
+ foreach($taxClasses->children() as $identifier => $taxClass) {
190
+ if ($taxClass->class_type != 'PRODUCT'
191
+ || $taxClass->execute != 1
192
+ || strpos($identifier, 'shipping') === 0) {
193
+ continue;
194
+ }
195
+ $countryTaxClasses[$countryId][(string)$taxClass->class_id] = (string)$taxClass->class_name;
196
+ }
197
+
198
+ $countryTaxClasses[$countryId][] = $this->__('No tax');
199
+ }
200
+
201
+ return Zend_Json::encode($countryTaxClasses);
202
+ }
203
+
204
+ /**
205
+ * @return string
206
+ */
207
+ public function getNewCustomerTaxClassesJson()
208
+ {
209
+ $countryTaxClasses = array();
210
+ foreach(Mage::helper('magesetup')->getAvailableCountries() as $countryId => $countryName) {
211
+
212
+ $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . $countryId . DS . 'tax.xml';
213
+
214
+ // If the given file does not exist, use the default file
215
+ if (!file_exists($configFile)) {
216
+ $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . 'default' . DS . 'tax.xml';
217
+ }
218
+
219
+ $xml = new SimpleXMLElement(file_get_contents($configFile));
220
+
221
+ $taxClasses = $xml->default->magesetup->tax_classes->default;
222
+ foreach($taxClasses->children() as $identifier => $taxClass) {
223
+ if ($taxClass->class_type != 'CUSTOMER'
224
+ || $taxClass->execute != 1) {
225
+ continue;
226
+ }
227
+ $countryTaxClasses[$countryId][(string)$taxClass->class_id] = (string)$taxClass->class_name;
228
+ }
229
+ }
230
+
231
+ return Zend_Json::encode($countryTaxClasses);
232
+ }
233
+ }
234
+
app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Newsletter Subscriber Status Grid Container
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status
35
+ extends Mage_Adminhtml_Block_Widget_Grid_Container
36
+ {
37
+ /**
38
+ * Class constructor
39
+ */
40
+ public function __construct()
41
+ {
42
+ $this->_controller = 'adminhtml_newsletter_subscriber_status';
43
+ $this->_blockGroup = 'magesetup';
44
+ $this->_headerText = Mage::helper('magesetup')->__('Newsletter Subscribers Status History');
45
+ parent::__construct();
46
+ $this->_removeButton('add');
47
+ }
48
+ }
app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status/Grid.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Newsletter Subscriber Status Grid
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid
35
+ extends Mage_Adminhtml_Block_Widget_Grid
36
+ {
37
+ /**
38
+ * Class constructor
39
+ */
40
+ public function __construct()
41
+ {
42
+ parent::__construct();
43
+ $this->setId('subscriberStatusGrid');
44
+ $this->setDefaultSort('created_at');
45
+ $this->setDefaultDir('DESC');
46
+ $this->setSaveParametersInSession(true);
47
+ $this->setUseAjax(true);
48
+ }
49
+
50
+ /**
51
+ * Prepares the grid collection
52
+ *
53
+ * @see Mage_Adminhtml_Block_Widget_Grid::_prepareCollection()
54
+ * @return FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid Grid
55
+ */
56
+ protected function _prepareCollection()
57
+ {
58
+ $collection = Mage::getResourceModel('magesetup/newsletter_subscriber_status_collection');
59
+ $this->setCollection($collection);
60
+
61
+ return parent::_prepareCollection();
62
+ }
63
+
64
+ /**
65
+ * Prepares the grid columns
66
+ *
67
+ * @see Mage_Adminhtml_Block_Widget_Grid::_prepareColumns()
68
+ * @return FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid Grid
69
+ */
70
+ protected function _prepareColumns()
71
+ {
72
+ $this->addColumn('subscriber', array(
73
+ 'header' => Mage::helper('newsletter')->__('ID'),
74
+ 'index' => 'subscriber',
75
+ 'type' => 'int',
76
+ 'width' => '75px'
77
+ ));
78
+
79
+ $this->addColumn('email', array(
80
+ 'header' => Mage::helper('newsletter')->__('Email'),
81
+ 'index' => 'email'
82
+ ));
83
+
84
+ $this->addColumn('status', array(
85
+ 'header' => Mage::helper('newsletter')->__('Status'),
86
+ 'index' => 'status',
87
+ 'width' => '150px',
88
+ 'type' => 'options',
89
+ 'options' => array(
90
+ Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE => Mage::helper('newsletter')->__('Not Activated'),
91
+ Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED => Mage::helper('newsletter')->__('Subscribed'),
92
+ Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED => Mage::helper('newsletter')->__('Unsubscribed'),
93
+ Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED => Mage::helper('newsletter')->__('Unconfirmed'),
94
+ )
95
+ ));
96
+
97
+ $this->addColumn('created_at', array(
98
+ 'header' => Mage::helper('adminhtml')->__('Created At'),
99
+ 'index' => 'created_at',
100
+ 'type' => 'datetime',
101
+ 'width' => '150px'
102
+ ));
103
+
104
+ return parent::_prepareColumns();
105
+ }
106
+
107
+ /**
108
+ * Retrieve the grid url for ajax reloads
109
+ *
110
+ * @return string Grid Url
111
+ */
112
+ public function getGridUrl()
113
+ {
114
+ return $this->getUrl('*/*/grid', array('_current'=> true));
115
+ }
116
+
117
+ /**
118
+ * Deactivate the grid row url
119
+ *
120
+ * @see Mage_Adminhtml_Block_Widget_Grid::getRowUrl()
121
+ * @param Varien_Object $row
122
+ * @return bool Row Url
123
+ */
124
+ public function getRowUrl($row)
125
+ {
126
+ return false;
127
+ }
128
+ }
app/code/community/FireGento/MageSetup/Block/Adminhtml/Notifications.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.4.0
22
+ */
23
+ /**
24
+ * Displays MageSetup notifications
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.4.0
33
+ */
34
+ class FireGento_MageSetup_Block_Adminhtml_Notifications extends Mage_Adminhtml_Block_Template
35
+ {
36
+ /**
37
+ * (non-PHPdoc)
38
+ * @see Mage_Core_Block_Template::_construct()
39
+ */
40
+ protected function _construct()
41
+ {
42
+ $this->addData(
43
+ array(
44
+ 'cache_lifetime'=> null
45
+ )
46
+ );
47
+ }
48
+
49
+ /**
50
+ * Returns a value that indicates if some of the german setup settings have already been initialized.
51
+ *
52
+ * @return bool Flag if MageSetup is already initialized
53
+ */
54
+ public function isInitialized()
55
+ {
56
+ return Mage::getStoreConfigFlag('magesetup/is_initialized');
57
+ }
58
+
59
+ /**
60
+ * Get magesetup management url
61
+ *
62
+ * @return string URL for MageSetup form
63
+ */
64
+ public function getManageUrl()
65
+ {
66
+ return $this->getUrl('adminhtml/magesetup');
67
+ }
68
+
69
+ /**
70
+ * ACL validation before html generation
71
+ *
72
+ * @return string Notification content
73
+ */
74
+ protected function _toHtml()
75
+ {
76
+ if (Mage::getSingleton('admin/session')->isAllowed('system/magesetup')) {
77
+ return parent::_toHtml();
78
+ }
79
+
80
+ return '';
81
+ }
82
+ }
app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price.php ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Enhanced block for product price display of bundle products. Contains the normal price.phtml
25
+ * rendering and additionally a configured static block.
26
+ *
27
+ * @category FireGento
28
+ * @package FireGento_MageSetup
29
+ * @author FireGento Team <team@firegento.com>
30
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
31
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
32
+ * @version $Id:$
33
+ * @since 0.1.0
34
+ */
35
+ class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price
36
+ extends FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract
37
+ {
38
+ /**
39
+ * Add content of template block below price html if defined in config
40
+ *
41
+ * @return string Price HTML
42
+ */
43
+ public function _toHtml()
44
+ {
45
+ $html = trim(parent::_toHtml());
46
+
47
+ if (empty($html) || !Mage::getStoreConfigFlag('catalog/price/display_block_below_price')) {
48
+ return $html;
49
+ }
50
+
51
+ $html .= $this->getLayout()->createBlock('core/template')
52
+ ->setTemplate('magesetup/price_info.phtml')
53
+ ->setFormattedTaxRate($this->getFormattedTaxRate())
54
+ ->setIsIncludingTax($this->isIncludingTax())
55
+ ->setIsShowShippingLink($this->isShowShippingLink())
56
+ ->setIsShowWeightInfo($this->getIsShowWeightInfo())
57
+ ->setFormattedWeight($this->getFormattedWeight())
58
+ ->toHtml();
59
+
60
+ return $html;
61
+ }
62
+
63
+ /**
64
+ * Read tax rate from current product.
65
+ *
66
+ * @return string Tax Rate
67
+ */
68
+ public function getTaxRate()
69
+ {
70
+ if (!$this->getData('tax_rate')) {
71
+ $this->setData('tax_rate', $this->_loadTaxCalculationRate($this->getProduct()));
72
+ }
73
+
74
+ return $this->getData('tax_rate');
75
+ }
76
+
77
+ /**
78
+ * Retrieves formatted string of tax rate for user output
79
+ *
80
+ * @return string Formatted Tax Rate for the given locale
81
+ */
82
+ public function getFormattedTaxRate()
83
+ {
84
+ if ($this->getTaxRate() === null
85
+ || $this->getProduct()->getTypeId() == 'bundle'
86
+ ) {
87
+ return '';
88
+ }
89
+
90
+ $locale = Mage::app()->getLocale()->getLocaleCode();
91
+ $taxRate = Zend_Locale_Format::toFloat($this->getTaxRate(), array('locale' => $locale));
92
+
93
+ return $this->__('%s%%', $taxRate);
94
+ }
95
+
96
+ /**
97
+ * Returns whether or not the price contains taxes
98
+ *
99
+ * @return bool Flag if prices are shown with including tax
100
+ */
101
+ public function isIncludingTax()
102
+ {
103
+ if (!$this->getData('is_including_tax')) {
104
+ $this->setData('is_including_tax', Mage::getStoreConfig('tax/sales_display/price'));
105
+ }
106
+
107
+ return $this->getData('is_including_tax');
108
+ }
109
+
110
+ /**
111
+ * Returns whether the shipping link needs to be shown
112
+ * on the frontend or not.
113
+ *
114
+ * @return bool Flag if shipping link should be displayed
115
+ */
116
+ public function isShowShippingLink()
117
+ {
118
+ $productTypeId = $this->getProduct()->getTypeId();
119
+ $ignoreTypeIds = array('virtual', 'downloadable');
120
+ if (in_array($productTypeId, $ignoreTypeIds)) {
121
+ return false;
122
+ }
123
+
124
+ return true;
125
+ }
126
+
127
+ /**
128
+ * Gets tax percents for current product
129
+ *
130
+ * @param Mage_Catalog_Model_Product $product Product Model
131
+ * @return string Tax Rate
132
+ */
133
+ protected function _loadTaxCalculationRate(Mage_Catalog_Model_Product $product)
134
+ {
135
+ $taxPercent = $product->getTaxPercent();
136
+ if (is_null($taxPercent)) {
137
+ $taxClassId = $product->getTaxClassId();
138
+ if ($taxClassId) {
139
+ $request = Mage::getSingleton('tax/calculation')->getRateRequest(null, null, null, null);
140
+ $taxPercent = Mage::getSingleton('tax/calculation')->getRate($request->setProductClassId($taxClassId));
141
+ }
142
+ }
143
+
144
+ if ($taxPercent) {
145
+ return $taxPercent;
146
+ }
147
+
148
+ return 0;
149
+ }
150
+
151
+ /**
152
+ * Check if Shipping by Weight is active
153
+ *
154
+ * @return bool Flag if product weight should be displayed
155
+ */
156
+ public function getIsShowWeightInfo()
157
+ {
158
+ return Mage::getStoreConfigFlag('catalog/price/display_product_weight');
159
+ }
160
+
161
+ /**
162
+ * Get formatted weight incl. unit
163
+ *
164
+ * @return string Formatted weight
165
+ */
166
+ public function getFormattedWeight()
167
+ {
168
+ return floatval($this->getProduct()->getWeight()) . ' ' . Mage::getStoreConfig('catalog/price/weight_unit');
169
+ }
170
+ }
app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price/Abstract.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Enhanced block for product price display of all products in spite of bundles (got own block!).
25
+ * Contains the normal price.phtml rendering and additionally a configured static block.
26
+ *
27
+ * @category FireGento
28
+ * @package FireGento_MageSetup
29
+ * @author FireGento Team <team@firegento.com>
30
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
31
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
32
+ * @version $Id:$
33
+ * @since 0.1.0
34
+ */
35
+
36
+ if (Mage::getConfig()->getModuleConfig('Sitewards_B2BProfessional')->is('active', 'true')) {
37
+
38
+ abstract class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract
39
+ extends Sitewards_B2BProfessional_Block_Price
40
+ {
41
+
42
+ }
43
+
44
+ } else {
45
+
46
+ abstract class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract
47
+ extends Mage_Bundle_Block_Catalog_Product_Price
48
+ {
49
+
50
+ }
51
+
52
+ }
app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price.php ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Enhanced block for product price display of all products in spite of bundles (got own block!).
25
+ * Contains the normal price.phtml rendering and additionally a configured static block.
26
+ *
27
+ * @category FireGento
28
+ * @package FireGento_MageSetup
29
+ * @author FireGento Team <team@firegento.com>
30
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
31
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
32
+ * @version $Id:$
33
+ * @since 0.1.0
34
+ */
35
+ class FireGento_MageSetup_Block_Catalog_Product_Price
36
+ extends FireGento_MageSetup_Block_Catalog_Product_Price_Abstract
37
+ {
38
+ /**
39
+ * @var array Path to common tier price template
40
+ */
41
+ protected $_tierPriceDefaultTemplates = array(
42
+ 'catalog/product/view/tierprices.phtml',
43
+ 'dermodpro/bcp/catalog/product/view/tierprices.phtml'
44
+ );
45
+
46
+ /**
47
+ * Add content of template block below price html if defined in config
48
+ *
49
+ * @return string Price HTML
50
+ */
51
+ public function _toHtml()
52
+ {
53
+ $html = trim(parent::_toHtml());
54
+
55
+ if (empty($html) || !Mage::getStoreConfigFlag('catalog/price/display_block_below_price')) {
56
+ return $html;
57
+ }
58
+
59
+ if (!in_array($this->getTemplate(), $this->_tierPriceDefaultTemplates)) {
60
+ $htmlObject = new Varien_Object();
61
+ $htmlObject->setParentHtml($html);
62
+ $htmlTemplate = $this->getLayout()->createBlock('core/template')
63
+ ->setTemplate('magesetup/price_info.phtml')
64
+ ->setFormattedTaxRate($this->getFormattedTaxRate())
65
+ ->setIsIncludingTax($this->isIncludingTax())
66
+ ->setIsIncludingShippingCosts($this->isIncludingShippingCosts())
67
+ ->setIsShowShippingLink($this->isShowShippingLink())
68
+ ->setIsShowWeightInfo($this->getIsShowWeightInfo())
69
+ ->setFormattedWeight($this->getFormattedWeight())
70
+ ->toHtml();
71
+ $htmlObject->setHtml($htmlTemplate);
72
+
73
+ $this->_addDeliveryTimeHtml($htmlObject);
74
+
75
+ Mage::dispatchEvent('magesetup_after_product_price',
76
+ array(
77
+ 'html_obj' => $htmlObject,
78
+ 'block' => $this,
79
+ )
80
+ );
81
+
82
+ $html = $htmlObject->getPrefix();
83
+ $html .= $htmlObject->getParentHtml();
84
+ $html .= $htmlObject->getHtml();
85
+ $html .= $htmlObject->getSuffix();
86
+ }
87
+
88
+ return $html;
89
+ }
90
+
91
+ /**
92
+ * Add delivery time on category pages only
93
+ *
94
+ * @param Varien_Object $htmlObject Transport object
95
+ */
96
+ protected function _addDeliveryTimeHtml($htmlObject)
97
+ {
98
+ if (!Mage::getStoreConfigFlag('catalog/price/display_delivery_time_on_categories')) {
99
+ return;
100
+ }
101
+
102
+ $pathInfo = Mage::app()->getRequest()->getPathInfo();
103
+ if (strpos($pathInfo, 'catalog/category/view') !== false
104
+ || strpos($pathInfo, 'catalogsearch/result') !== false) {
105
+ if ($this->getProduct()->getDeliveryTime()) {
106
+ $html = '<p class="delivery-time">';
107
+ $html .= $this->__('Delivery Time') . ': ' . $this->getProduct()->getDeliveryTime();
108
+ $html .= '</p>';
109
+ $htmlObject->setSuffix($html);
110
+ }
111
+ }
112
+ }
113
+
114
+ /**
115
+ * Read tax rate from current product.
116
+ *
117
+ * @return string Tax Rate
118
+ */
119
+ public function getTaxRate()
120
+ {
121
+ $taxRateKey = 'tax_rate_'.$this->getProduct()->getId();
122
+ if (!$this->getData($taxRateKey)) {
123
+ $this->setData($taxRateKey, $this->_loadTaxCalculationRate($this->getProduct()));
124
+ }
125
+
126
+ return $this->getData($taxRateKey);
127
+ }
128
+
129
+ /**
130
+ * Retrieves formatted string of tax rate for user output
131
+ *
132
+ * @return string Formatted Tax Rate for the given locale
133
+ */
134
+ public function getFormattedTaxRate()
135
+ {
136
+ if ($this->getTaxRate() === null
137
+ || $this->getProduct()->getTypeId() == 'bundle'
138
+ ) {
139
+ return '';
140
+ }
141
+
142
+ $locale = Mage::app()->getLocale()->getLocaleCode();
143
+ $taxRate = Zend_Locale_Format::toFloat($this->getTaxRate(), array('locale' => $locale));
144
+
145
+ return $this->__('%s%%', $taxRate);
146
+ }
147
+
148
+ /**
149
+ * Returns whether or not the price contains taxes
150
+ *
151
+ * @return bool Flag if prices are shown with including tax
152
+ */
153
+ public function isIncludingTax()
154
+ {
155
+ if (!$this->getData('is_including_tax')) {
156
+ $this->setData('is_including_tax', Mage::getStoreConfig('tax/display/type'));
157
+ }
158
+
159
+ return $this->getData('is_including_tax');
160
+ }
161
+
162
+ /**
163
+ * Returns whether or not the price contains taxes
164
+ *
165
+ * @return bool Flag if shipping costs are including taxes
166
+ */
167
+ public function isIncludingShippingCosts()
168
+ {
169
+ if (!$this->getData('is_including_shipping_costs')) {
170
+ $this->setData(
171
+ 'is_including_shipping_costs',
172
+ Mage::getStoreConfig('catalog/price/including_shipping_costs')
173
+ );
174
+ }
175
+
176
+ return $this->getData('is_including_shipping_costs');
177
+ }
178
+
179
+ /**
180
+ * Returns whether the shipping link needs to be shown
181
+ * on the frontend or not.
182
+ *
183
+ * @return bool Flag if shipping link should be displayed
184
+ */
185
+ public function isShowShippingLink()
186
+ {
187
+ $productTypeId = $this->getProduct()->getTypeId();
188
+ $ignoreTypeIds = array('virtual', 'downloadable');
189
+ if (in_array($productTypeId, $ignoreTypeIds)) {
190
+ return false;
191
+ }
192
+
193
+ return true;
194
+ }
195
+
196
+ /**
197
+ * Gets tax percents for current product
198
+ *
199
+ * @param Mage_Catalog_Model_Product $product Product Model
200
+ * @return string Tax Rate
201
+ */
202
+ protected function _loadTaxCalculationRate(Mage_Catalog_Model_Product $product)
203
+ {
204
+ $taxPercent = $product->getTaxPercent();
205
+ if (is_null($taxPercent)) {
206
+ $taxClassId = $product->getTaxClassId();
207
+ if ($taxClassId) {
208
+ $request = Mage::getSingleton('tax/calculation')->getRateRequest(null, null, null, null);
209
+ $taxPercent = Mage::getSingleton('tax/calculation')->getRate($request->setProductClassId($taxClassId));
210
+ }
211
+ }
212
+
213
+ if ($taxPercent) {
214
+ return $taxPercent;
215
+ }
216
+
217
+ return 0;
218
+ }
219
+
220
+ /**
221
+ * Check if Shipping by Weight is active
222
+ *
223
+ * @return bool Flag if product weight should be displayed
224
+ */
225
+ public function getIsShowWeightInfo()
226
+ {
227
+ return Mage::getStoreConfigFlag('catalog/price/display_product_weight');
228
+ }
229
+
230
+ /**
231
+ * Get formatted weight incl. unit
232
+ *
233
+ * @return string Formatted weight
234
+ */
235
+ public function getFormattedWeight()
236
+ {
237
+ return floatval($this->getProduct()->getWeight()) . ' ' . Mage::getStoreConfig('catalog/price/weight_unit');
238
+ }
239
+
240
+ /**
241
+ * Translate block sentence
242
+ *
243
+ * @return string Translated text
244
+ */
245
+ public function __()
246
+ {
247
+ $args = func_get_args();
248
+ $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), 'Mage_Catalog');
249
+ array_unshift($args, $expr);
250
+
251
+ return Mage::app()->getTranslator()->translate($args);
252
+ }
253
+ }
app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price/Abstract.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Enhanced block for product price display of all products in spite of bundles (got own block!).
25
+ * Contains the normal price.phtml rendering and additionally a configured static block.
26
+ *
27
+ * @category FireGento
28
+ * @package FireGento_MageSetup
29
+ * @author FireGento Team <team@firegento.com>
30
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
31
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
32
+ * @version $Id:$
33
+ * @since 0.1.0
34
+ */
35
+
36
+ if (
37
+ Mage::getConfig()->getModuleConfig('Sitewards_B2BProfessional')->is('active', 'true')
38
+ && version_compare (Mage::getConfig()->getModuleConfig('Sitewards_B2BProfessional')->version, '2.1.0', '<=' )
39
+ ) {
40
+
41
+ abstract class FireGento_MageSetup_Block_Catalog_Product_Price_Abstract
42
+ extends Sitewards_B2BProfessional_Block_Price
43
+ {
44
+
45
+ }
46
+
47
+ } elseif (Mage::getConfig()->getModuleConfig('Belvg_CallForPrice')->is('active', 'true')) {
48
+
49
+ abstract class FireGento_MageSetup_Block_Catalog_Product_Price_Abstract
50
+ extends Belvg_CallForPrice_Block_Catalog_Product_Price
51
+ {
52
+
53
+ }
54
+
55
+ } else {
56
+
57
+ abstract class FireGento_MageSetup_Block_Catalog_Product_Price_Abstract
58
+ extends Mage_Catalog_Block_Product_Price
59
+ {
60
+
61
+ }
62
+
63
+ }
app/code/community/FireGento/MageSetup/Block/Checkout/Agreements.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Block to display agreements on checkout.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.2
33
+ */
34
+ class FireGento_MageSetup_Block_Checkout_Agreements extends Mage_Checkout_Block_Agreements
35
+ {
36
+ /**
37
+ * Filter by "Agreement Type"
38
+ *
39
+ * @return Mage_Checkout_Model_Resource_Agreement_Collection Agreements
40
+ */
41
+ public function getAgreements()
42
+ {
43
+ $agreements = parent::getAgreements();
44
+ if ($this->_getCustomerSession()->isLoggedIn()) {
45
+ $agreements->addFieldToFilter('agreement_type', array('in' => array(
46
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT,
47
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH,
48
+ )));
49
+ } else {
50
+ $agreements->addFieldToFilter('agreement_type', array('in' => array(
51
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER,
52
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT,
53
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH,
54
+ )));
55
+ }
56
+ return $agreements;
57
+ }
58
+
59
+ /**
60
+ * Retrieve the customer session
61
+ *
62
+ * @return Mage_Customer_Model_Session Customer Session
63
+ */
64
+ protected function _getCustomerSession()
65
+ {
66
+ return Mage::getSingleton('customer/session');
67
+ }
68
+ }
app/code/community/FireGento/MageSetup/Block/Checkout/Information.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Block to enable ip anonymization for german tracking.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Block_Checkout_Information extends Mage_Core_Block_Template
35
+ {
36
+ /**
37
+ * @var string
38
+ */
39
+ const XML_PATH_CHECKOUT_DISPLAY_ADDITIONAL_INFORMATION = 'checkout/options/display_additional_information';
40
+
41
+ /**
42
+ * @var string
43
+ */
44
+ const XML_PATH_CHECKOUT_ADDITIONAL_INFORMATION = 'checkout/options/additional_information';
45
+
46
+ /**
47
+ * Retrieve the additional information for the review page
48
+ *
49
+ * @return string|bool Additional information
50
+ */
51
+ public function getCheckoutAdditionalInformation()
52
+ {
53
+ $additional = '';
54
+
55
+ if (Mage::getStoreConfigFlag(self::XML_PATH_CHECKOUT_DISPLAY_ADDITIONAL_INFORMATION)) {
56
+ $additional = trim(Mage::getStoreConfig(self::XML_PATH_CHECKOUT_ADDITIONAL_INFORMATION));
57
+ }
58
+
59
+ // Dispatch Event in order to allow adding more additional information texts
60
+ $additionalObject = new Varien_Object(array('text' => $additional));
61
+ Mage::dispatchEvent('checkout_additional_information', array('additional' => $additionalObject));
62
+ $additional = $additionalObject->getText();
63
+
64
+ if (!$additional) {
65
+ return false;
66
+ }
67
+
68
+ return $additional;
69
+ }
70
+ }
app/code/community/FireGento/MageSetup/Block/Customer/Account/Agreements.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Block to display agreements on customer registration.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.2
33
+ */
34
+ class FireGento_MageSetup_Block_Customer_Account_Agreements extends Mage_Checkout_Block_Agreements
35
+ {
36
+ /**
37
+ * Filter by "Agreement Type"
38
+ *
39
+ * @return Mage_Checkout_Model_Resource_Agreement_Collection Agreements
40
+ */
41
+ public function getAgreements()
42
+ {
43
+ $agreements = parent::getAgreements();
44
+ $agreements->addFieldToFilter('agreement_type', array('in' => array(
45
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER,
46
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH,
47
+ )));
48
+ return $agreements;
49
+ }
50
+
51
+ }
app/code/community/FireGento/MageSetup/Block/Ga.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Block to enable ip anonymization for german tracking.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Block_Ga extends Mage_GoogleAnalytics_Block_Ga
35
+ {
36
+ const CONFIG_GOOGLE_ANALYTICS_IP_ANONYMIZATION = 'google/analytics/ip_anonymization';
37
+
38
+ /**
39
+ * Prepare and return block's html output
40
+ *
41
+ * @return string Google Analytics JS Tracking Code
42
+ */
43
+ protected function _toHtml()
44
+ {
45
+ $html = parent::_toHtml();
46
+ if (!Mage::getStoreConfigFlag( self::CONFIG_GOOGLE_ANALYTICS_IP_ANONYMIZATION )) {
47
+ return $html;
48
+ }
49
+
50
+ $matches = array();
51
+ $setAccountExpression = '/_gaq\.push\(\[\'_setAccount\', \'[a-zA-Z0-9-_]+\'\]\);\n/';
52
+ $append = '_gaq.push([\'_gat._anonymizeIp\']);';
53
+
54
+ if (preg_match_all($setAccountExpression, $html, $matches) && count($matches) && count($matches[0])) {
55
+ $html = preg_replace($setAccountExpression, $matches[0][0] . $append . "\n", $html);
56
+ }
57
+
58
+ return $html;
59
+ }
60
+ }
app/code/community/FireGento/MageSetup/Block/Imprint/Content.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Block to retrieve data from imprint config.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Block_Imprint_Content extends Mage_Core_Block_Template
35
+ {
36
+ /**
37
+ * Constructor to set config store view.
38
+ */
39
+ public function __construct()
40
+ {
41
+ $storeId = $this->getStoreId();
42
+ $this->setData(Mage::getStoreConfig('general/imprint', $storeId));
43
+ }
44
+
45
+ /**
46
+ * Set StoreId to get impressum data for this store.
47
+ *
48
+ * @param int $storeId Store id.
49
+ */
50
+ public function setStoreId($storeId)
51
+ {
52
+ $this->setData(Mage::getStoreConfig('general/imprint', $storeId));
53
+ }
54
+
55
+ /**
56
+ * Getting StoreId to get proper store related
57
+ * information in order comments.
58
+ *
59
+ * @return int|null Store Id
60
+ */
61
+ protected function getStoreId()
62
+ {
63
+ $orderId = $this->getRequest()->getParam('order_id', 0);
64
+ if ($orderId > 0) {
65
+ return Mage::getSingleton('sales/order')->load($orderId)->getStoreId();
66
+ }
67
+
68
+ return null;
69
+ }
70
+
71
+ /**
72
+ * Retrieve the setting "website". If parameter checkForProtocol is true,
73
+ * check if there is a valid protocol given, otherwise add http:// manually.
74
+ *
75
+ * @param bool $checkForProtocol Flag if website url should be checked for http(s) protocol
76
+ * @return string Website URL
77
+ */
78
+ public function getWeb($checkForProtocol=false)
79
+ {
80
+ $web = $this->getData('web');
81
+ if ($checkForProtocol && strlen(trim($web))) {
82
+ if (strpos($web, 'http://') === false
83
+ && strpos($web, 'https://') === false
84
+ ) {
85
+ $web = 'http://'.$web;
86
+ }
87
+ }
88
+
89
+ return $web;
90
+ }
91
+
92
+ /**
93
+ * Retrieve the specific country name by the selected country code
94
+ *
95
+ * @return string Country
96
+ */
97
+ public function getCountry()
98
+ {
99
+ $countryCode = $this->getData('country');
100
+
101
+ return Mage::app()->getLocale()->getCountryTranslation($countryCode);
102
+ }
103
+ }
app/code/community/FireGento/MageSetup/Block/Imprint/Field.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Block to retrieve data from imprint config field.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Block_Imprint_Field extends FireGento_MageSetup_Block_Imprint_Content
35
+ {
36
+ /**
37
+ * Render imprint field
38
+ *
39
+ * @return string Field value
40
+ */
41
+ protected function _toHtml()
42
+ {
43
+ return $this->getData($this->getValue());
44
+ }
45
+ }
app/code/community/FireGento/MageSetup/Helper/Catalog/Product/Configuration.php ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.0.5
22
+ */
23
+ /**
24
+ * Changed product configuration to add product attributes on checkout
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.0.5
33
+ */
34
+ class FireGento_MageSetup_Helper_Catalog_Product_Configuration
35
+ extends Mage_Catalog_Helper_Product_Configuration
36
+ {
37
+ /**
38
+ * @var array
39
+ */
40
+ protected $_finished = array();
41
+
42
+ /**
43
+ * @var array
44
+ */
45
+ protected $_products = array();
46
+
47
+ /**
48
+ * Merge Attributes
49
+ *
50
+ * @see parent::getCustomOptions()
51
+ * @param Mage_Catalog_Model_Product_Configuration_Item_Interface $item Quote item
52
+ * @return array Custom Options
53
+ */
54
+ public function getCustomOptions(Mage_Catalog_Model_Product_Configuration_Item_Interface $item)
55
+ {
56
+ $optionsParent = parent::getCustomOptions($item);
57
+ $optionsSelf = $this->_getAttributes($item);
58
+ $options = array_merge($optionsSelf, $optionsParent);
59
+
60
+ return $options;
61
+ }
62
+
63
+ /**
64
+ * Get the product for the current quote item
65
+ *
66
+ * @param Mage_Catalog_Model_Product_Configuration_Item_Interface $item Quote item
67
+ * @return Mage_Catalog_Model_Product Product Model
68
+ */
69
+ protected function _getProduct($item)
70
+ {
71
+ $productId = $item->getProduct()->getId();
72
+ if (!array_key_exists($productId, $this->_products)) {
73
+ /* @var $product Mage_Catalog_Model_Product */
74
+ $product = Mage::getModel('catalog/product')
75
+ ->setStoreId(Mage::app()->getStore()->getId())
76
+ ->load($productId);
77
+
78
+ $this->_products[$productId] = $product;
79
+ }
80
+
81
+ return $this->_products[$productId];
82
+ }
83
+
84
+ /**
85
+ * Retreve the product attributes
86
+ *
87
+ * @param Mage_Catalog_Model_Product_Configuration_Item_Interface $item Quote item
88
+ * @return array Attributes
89
+ */
90
+ protected function _getAttributes($item)
91
+ {
92
+ $itemId = $item->getId();
93
+ if (!isset($this->_finished[$itemId])) {
94
+ $this->_finished[$itemId] = true;
95
+ $product = $this->_getProduct($item);
96
+ $attributes = $this->_getAdditionalData($product);
97
+ if (count($attributes) > 0) {
98
+ return $attributes;
99
+ }
100
+ }
101
+
102
+ return array();
103
+ }
104
+
105
+ /**
106
+ * Retrieve the attributes which are visible on the checkout page
107
+ *
108
+ * @param Mage_Catalog_Model_Product $product Product Model
109
+ * @return array Addition data as array
110
+ */
111
+ protected function _getAdditionalData(Mage_Catalog_Model_Product $product)
112
+ {
113
+ $data = array();
114
+
115
+ $attributes = $product->getAttributes();
116
+ foreach ($attributes as $attribute) {
117
+ if ($attribute->getIsVisibleOnCheckout()) {
118
+ $value = $attribute->getFrontend()->getValue($product);
119
+ if (!$product->hasData($attribute->getAttributeCode()) || (string) $value == '') {
120
+ $value = '';
121
+ } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) {
122
+ $value = Mage::app()->getStore()->convertPrice($value, true);
123
+ }
124
+
125
+ if (is_string($value) && strlen($value)) {
126
+ $data[$attribute->getAttributeCode()] = array(
127
+ 'label' => $attribute->getStoreLabel(),
128
+ 'value' => $value,
129
+ 'print_value' => $value,
130
+ 'code' => $attribute->getAttributeCode()
131
+ );
132
+ }
133
+ }
134
+ }
135
+
136
+ return $data;
137
+ }
138
+ }
app/code/community/FireGento/MageSetup/Helper/Checkout/Data.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Rewrite to fetch required agreement ids.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Helper_Checkout_Data
35
+ extends Mage_Checkout_Helper_Data
36
+ {
37
+ /**
38
+ * Avoid loss of translation
39
+ */
40
+ function __construct()
41
+ {
42
+ $this->_moduleName = 'Mage_Checkout';
43
+ }
44
+
45
+ /**
46
+ * Get all required agreement ids
47
+ *
48
+ * @return array Agreement Ids
49
+ **/
50
+ public function getRequiredAgreementIds()
51
+ {
52
+ if (is_null($this->_agreements)) {
53
+ if (!Mage::getStoreConfigFlag('checkout/options/enable_agreements')) {
54
+ $this->_agreements = array();
55
+ } else {
56
+ $agreements = Mage::getModel('checkout/agreement')->getCollection()
57
+ ->addStoreFilter(Mage::app()->getStore()->getId())
58
+ ->addFieldToFilter('is_active', 1)
59
+ ->addFieldToFilter('is_required', 1); // Only get Required Elements
60
+
61
+ if ($this->_getCustomerSession()->isLoggedIn()) {
62
+ $agreements->addFieldToFilter('agreement_type', array('in' => array(
63
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT,
64
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH,
65
+ )));
66
+ } else {
67
+ $agreements->addFieldToFilter('agreement_type', array('in' => array(
68
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER,
69
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT,
70
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH,
71
+ )));
72
+ }
73
+
74
+ $this->_agreements = $agreements->getAllIds();
75
+ }
76
+ }
77
+
78
+ return $this->_agreements;
79
+ }
80
+
81
+ /**
82
+ * Retrieve the customer session
83
+ *
84
+ * @return Mage_Customer_Model_Session Customer Session
85
+ */
86
+ protected function _getCustomerSession()
87
+ {
88
+ return Mage::getSingleton('customer/session');
89
+ }
90
+ }
app/code/community/FireGento/MageSetup/Helper/Data.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Dummy data helper for translation issues.
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Helper_Data extends Mage_Core_Helper_Abstract
35
+ {
36
+ // Add support for Magento < 1.7
37
+ const XML_PATH_EU_COUNTRIES_LIST = 'general/country/eu_countries';
38
+
39
+ /**
40
+ * Generate URL to configured shipping cost page, or '' if none.
41
+ *
42
+ * @return string Shipping cost url
43
+ */
44
+ public function getShippingCostUrl()
45
+ {
46
+ /** @var $cmsPage Mage_Cms_Model_Page */
47
+ $cmsPage = Mage::getModel('cms/page')
48
+ ->setStoreId(Mage::app()->getStore()->getId())
49
+ ->load(Mage::getStoreConfig('catalog/price/cms_page_shipping'));
50
+
51
+ if (!$cmsPage->getId() || !$cmsPage->getIsActive()) {
52
+ return '';
53
+ }
54
+
55
+ return Mage::helper('cms/page')->getPageUrl($cmsPage->getId());
56
+ }
57
+
58
+ /**
59
+ * Get url of agreement view for checkout
60
+ *
61
+ * @param Mage_Checkout_Model_Agreement $agreement Agreement
62
+ * @return string URL for the given agreement
63
+ */
64
+ public function getAgreementUrl(Mage_Checkout_Model_Agreement $agreement)
65
+ {
66
+ return Mage::getUrl('magesetup/frontend/agreements', array('id' => $agreement->getId()));
67
+ }
68
+
69
+ /**
70
+ * Get available countries
71
+ *
72
+ * @return array All available countries
73
+ */
74
+ public function getAvailableCountries()
75
+ {
76
+ $availableCountries = array();
77
+ $config = Mage::getConfig()->getNode('global/magesetup/available_countries');
78
+ if ($config) {
79
+ foreach (array_keys($config->asArray()) as $countryId) {
80
+ $availableCountries[$countryId] = Mage::app()->getLocale()->getCountryTranslation(strtoupper($countryId));
81
+ }
82
+ }
83
+ asort($availableCountries);
84
+ return $availableCountries;
85
+ }
86
+
87
+ /**
88
+ * Check whether specified country is in EU countries list
89
+ *
90
+ * @param string $countryCode
91
+ * @return bool
92
+ */
93
+ public function isCountryInEU($countryCode)
94
+ {
95
+ return in_array(strtoupper($countryCode), $this->getEUCountries());
96
+ }
97
+
98
+ /**
99
+ * Get countries in the EU
100
+ *
101
+ * @return array
102
+ */
103
+ public function getEUCountries()
104
+ {
105
+ return explode(',', Mage::getStoreConfig(self::XML_PATH_EU_COUNTRIES_LIST));
106
+ }
107
+ }
app/code/community/FireGento/MageSetup/Model/Config.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Config class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.2.0
33
+ */
34
+ class FireGento_MageSetup_Model_Config extends Varien_Simplexml_Config
35
+ {
36
+ const CACHE_ID = 'magesetup_config';
37
+ const CACHE_TAG = 'magesetup_config';
38
+
39
+ /**
40
+ * @var string
41
+ */
42
+ protected $_country = 'de';
43
+
44
+ /**
45
+ * Sets cache ID and cache tags and loads configuration
46
+ *
47
+ * @param string|Varien_Simplexml_Element $sourceData XML Source Data
48
+ */
49
+ public function __construct($sourceData=null)
50
+ {
51
+ $this->setCacheId(self::CACHE_ID);
52
+ $this->setCacheTags(array(self::CACHE_TAG));
53
+ parent::__construct($sourceData);
54
+ $this->_loadConfig();
55
+ }
56
+
57
+ /**
58
+ * Set the current country for the config
59
+ *
60
+ * @param string $country Country
61
+ * @return FireGento_MageSetup_Model_Config Config Model
62
+ */
63
+ public function setCountry($country)
64
+ {
65
+ $this->_country = $country;
66
+ return $this;
67
+ }
68
+
69
+ /**
70
+ * Merge default config with config from additional xml files
71
+ *
72
+ * @return FireGento_MageSetup_Model_Config Config Model
73
+ */
74
+ protected function _loadConfig()
75
+ {
76
+ if (Mage::app()->useCache(self::CACHE_ID)) {
77
+ if ($this->loadCache()) {
78
+ return $this;
79
+ }
80
+ }
81
+
82
+ if (!is_null(Mage::registry('setup_country'))) {
83
+ $this->setCountry(Mage::registry('setup_country'));
84
+ }
85
+
86
+ $mergeConfig = Mage::getModel('core/config_base');
87
+ $config = Mage::getConfig();
88
+
89
+ // Load additional config files
90
+ $this->_addConfigFile('cms.xml', $mergeConfig);
91
+ $this->_addConfigFile('email.xml', $mergeConfig);
92
+ $this->_addConfigFile('systemconfig.xml', $mergeConfig);
93
+ $this->_addConfigFile('agreement.xml', $mergeConfig);
94
+ $this->_addConfigFile('tax.xml', $mergeConfig);
95
+
96
+ $this->setXml($config->getNode());
97
+
98
+ if (Mage::app()->useCache(self::CACHE_ID)) {
99
+ $this->saveCache();
100
+ }
101
+
102
+ return $this;
103
+ }
104
+
105
+ /**
106
+ * Add a config file to the given merge config
107
+ *
108
+ * @param string $fileName File to load
109
+ * @param Mage_Core_Model_Config_Base $mergeConfig Global config for merging
110
+ */
111
+ protected function _addConfigFile($fileName, $mergeConfig)
112
+ {
113
+ $config = Mage::getConfig();
114
+ $configFile = $config->getModuleDir('etc', 'FireGento_MageSetup') . DS . $this->_country . DS . $fileName;
115
+
116
+ // If the given file does not exist, use the default file
117
+ if (!file_exists($configFile)) {
118
+ $configFile = $config->getModuleDir('etc', 'FireGento_MageSetup') . DS . 'default' . DS . $fileName;
119
+ }
120
+
121
+ // Load the given config file
122
+ if (file_exists($configFile)) {
123
+ if ($mergeConfig->loadFile($configFile)) {
124
+ $config->extend($mergeConfig, true);
125
+ }
126
+ }
127
+ }
128
+ }
app/code/community/FireGento/MageSetup/Model/Newsletter/Observer.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Observer class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Model_Newsletter_Observer
35
+ {
36
+ /**
37
+ * Saves the subscriber status change in a custom history
38
+ * after a subscriber was saved.
39
+ *
40
+ * @magentoEvent newsletter_subscriber_save_after
41
+ * @param Varien_Event_Observer $observer Observer
42
+ */
43
+ public function saveSubscriberStatusHistory(Varien_Event_Observer $observer)
44
+ {
45
+ try {
46
+ /* @var $subscriber Mage_Newsletter_Model_Subscriber */
47
+ $subscriber = $observer->getEvent()->getSubscriber();
48
+
49
+ /* @var $status FireGento_MageSetup_Model_Newsletter_Subscriber_Status */
50
+ $status = Mage::getModel('magesetup/newsletter_subscriber_status');
51
+ $status->setData('subscriber', $subscriber->getId());
52
+ $status->setData('status', $subscriber->getData('subscriber_status'));
53
+ $status->setData('email', $subscriber->getData('subscriber_email'));
54
+ $status->setData('created_at', now());
55
+ $status->save();
56
+ } catch (Exception $e) {
57
+ Mage::logException($e);
58
+ }
59
+ }
60
+ }
app/code/community/FireGento/MageSetup/Model/Newsletter/Subscriber/Status.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Subscriber Status Model
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Model_Newsletter_Subscriber_Status
35
+ extends Mage_Core_Model_Abstract
36
+ {
37
+ /**
38
+ * Init resource model
39
+ */
40
+ protected function _construct()
41
+ {
42
+ $this->_init('magesetup/newsletter_subscriber_status');
43
+ }
44
+ }
app/code/community/FireGento/MageSetup/Model/Observer.php ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Observer class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.2.0
33
+ */
34
+ class FireGento_MageSetup_Model_Observer
35
+ {
36
+ /**
37
+ * Add "Visible on Checkout Review on Front-end" Option to Attribute Settings
38
+ *
39
+ * @magentoEvent adminhtml_catalog_product_attribute_edit_prepare_form
40
+ *
41
+ * @param Varien_Event_Observer $observer Observer
42
+ * @return FireGento_MageSetup_Model_Observer Observer
43
+ */
44
+ public function addIsVisibleOnCheckoutOption(Varien_Event_Observer $observer)
45
+ {
46
+ $event = $observer->getEvent();
47
+ $form = $event->getForm();
48
+
49
+ $fieldset = $form->getElement('front_fieldset');
50
+ $source = Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray();
51
+ $fieldset->addField(
52
+ 'is_visible_on_checkout',
53
+ 'select',
54
+ array(
55
+ 'name' => 'is_visible_on_checkout',
56
+ 'label' => Mage::helper('magesetup')->__('Visible in Checkout'),
57
+ 'title' => Mage::helper('magesetup')->__('Visible in Checkout'),
58
+ 'values' => $source,
59
+ )
60
+ );
61
+
62
+ return $this;
63
+ }
64
+
65
+ /**
66
+ * Filters all agreements
67
+ *
68
+ * Filters all agreements against the Magento template filter. This enables the Magento
69
+ * administrator define a cms static block as the content of the checkout agreements..
70
+ *
71
+ * @magentoEvent core_block_abstract_to_html_before
72
+ *
73
+ * @param Varien_Event_Observer $observer Observer
74
+ * @return FireGento_MageSetup_Model_Observer Observer
75
+ */
76
+ public function filterAgreements(Varien_Event_Observer $observer)
77
+ {
78
+ $block = $observer->getEvent()->getBlock();
79
+ if ($block->getType() == 'checkout/agreements') {
80
+ if ($agreements = $block->getAgreements()) {
81
+ $collection = new Varien_Data_Collection();
82
+ foreach ($agreements as $agreement) {
83
+ $agreement->setData('content', $this->_filterString($agreement->getData('content')));
84
+ $agreement->setData('checkbox_text', $this->_filterString($agreement->getData('checkbox_text')));
85
+ $collection->addItem($agreement);
86
+ }
87
+ $observer->getEvent()->getBlock()->setAgreements($collection);
88
+ }
89
+ }
90
+
91
+ return $this;
92
+ }
93
+
94
+ /**
95
+ * Calls the Magento template filter to transform {{block type="cms/block" block_id="xyz"}}
96
+ * into the specific html code
97
+ *
98
+ * @param string $string Agreement to filter
99
+ * @return string Processed String
100
+ */
101
+ protected function _filterString($string)
102
+ {
103
+ $processor = Mage::getModel('cms/template_filter');
104
+ $string = $processor->filter($string);
105
+
106
+ return $string;
107
+ }
108
+
109
+ /**
110
+ * Auto-Generates the meta information of a product.
111
+ *
112
+ * @magentoEvent catalog_product_save_before
113
+ *
114
+ * @param Varien_Event_Observer $observer Observer
115
+ * @return FireGento_MageSetup_Model_Observer Observer
116
+ */
117
+ public function autogenerateMetaInformation(Varien_Event_Observer $observer)
118
+ {
119
+ /* @var $product Mage_Catalog_Model_Product */
120
+ $product = $observer->getEvent()->getProduct();
121
+
122
+ if ($product->getData('meta_autogenerate') == 1) {
123
+ // Set Meta Title
124
+ $product->setMetaTitle($product->getName());
125
+
126
+ // Set Meta Keywords
127
+ $keywords = $this->_getCategoryKeywords($product);
128
+ if (!empty($keywords)) {
129
+ if (mb_strlen($keywords) > 255) {
130
+ $remainder = '';
131
+ $keywords = Mage::helper('core/string')->truncate($keywords, 255, '', $remainder, false);
132
+ }
133
+ $product->setMetaKeyword($keywords);
134
+ }
135
+
136
+ // Set Meta Description
137
+ $description = $product->getShortDescription();
138
+ if (empty($description)) {
139
+ $description = $product->getDescription();
140
+ }
141
+ if (empty($description)) {
142
+ $description = $keywords;
143
+ }
144
+ if (mb_strlen($description) > 255) {
145
+ $remainder = '';
146
+ $description = Mage::helper('core/string')->truncate($description, 255, '...', $remainder, false);
147
+ }
148
+ $product->setMetaDescription($description);
149
+ }
150
+
151
+ return $this;
152
+ }
153
+
154
+ /**
155
+ * Get the categories of the current product
156
+ *
157
+ * @param Mage_Catalog_Model_Product $product Product
158
+ * @return array Categories
159
+ */
160
+ protected function _getCategoryKeywords($product)
161
+ {
162
+ $categories = $product->getCategoryIds();
163
+ $categoryArr = $this->_fetchCategoryNames($categories);
164
+ $keywords = $this->_buildKeywords($categoryArr);
165
+
166
+ return $keywords;
167
+ }
168
+
169
+ /**
170
+ * Fetches all category names via category path; adds first the assigned
171
+ * categories and second all categories via path.
172
+ *
173
+ * @param array $categories Category Ids
174
+ * @return array Categories
175
+ */
176
+ protected function _fetchCategoryNames($categories)
177
+ {
178
+ $return = array(
179
+ 'assigned' => array(),
180
+ 'path' => array()
181
+ );
182
+
183
+ foreach ($categories as $categoryId) {
184
+ // Check if category was already added
185
+ if (array_key_exists($categoryId, $return['assigned'])
186
+ || array_key_exists($categoryId, $return['path'])
187
+ ) {
188
+ return;
189
+ }
190
+
191
+ /* @var $category Mage_Catalog_Model_Category */
192
+ $category = Mage::getModel('catalog/category')->load($categoryId);
193
+ $return['assigned'][$categoryId] = $category->getName();
194
+
195
+ // Fetch path ids and remove the first two (base and root category)
196
+ $path = $category->getPath();
197
+ $pathIds = explode('/', $path);
198
+ array_shift($pathIds);
199
+ array_shift($pathIds);
200
+
201
+ // Fetch the names from path categories
202
+ if (count($pathIds) > 0) {
203
+ foreach ($pathIds as $pathId) {
204
+ if (!array_key_exists($pathId, $return['assigned'])
205
+ && !array_key_exists($pathId, $return['path'])
206
+ ) {
207
+ /* @var $pathCategory Mage_Catalog_Model_Category */
208
+ $pathCategory = Mage::getModel('catalog/category')->load($pathId);
209
+ $return['path'][$pathId] = $pathCategory->getName();
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ return $return;
216
+ }
217
+
218
+ /**
219
+ * Processes the category array and generates a string
220
+ *
221
+ * @param array $categoryTypes Categories
222
+ * @return string Keywords
223
+ */
224
+ protected function _buildKeywords($categoryTypes)
225
+ {
226
+ if (!$categoryTypes) {
227
+ return '';
228
+ }
229
+
230
+ $keywords = array();
231
+ foreach ($categoryTypes as $categories) {
232
+ $keywords[] = implode(', ', $categories);
233
+ }
234
+
235
+ return implode(', ', $keywords);
236
+ }
237
+
238
+ /**
239
+ * Add "Required" and "Visible on Custom Creation" Option to Checkout Agreements
240
+ *
241
+ * @magentoEvent adminhtml_block_html_before
242
+ *
243
+ * @param Varien_Event_Observer $observer Observer
244
+ * @return FireGento_MageSetup_Model_Observer Observer
245
+ */
246
+ public function addOptionsForAgreements(Varien_Event_Observer $observer)
247
+ {
248
+ $block = $observer->getEvent()->getBlock();
249
+ if ($block instanceof Mage_Adminhtml_Block_Checkout_Agreement_Edit_Form) {
250
+ $helper = Mage::helper('magesetup');
251
+ $form = $block->getForm();
252
+
253
+ $fieldset = $form->getElement('base_fieldset');
254
+ $fieldset->addField('is_required', 'select', array(
255
+ 'label' => $helper->__('Required'),
256
+ 'title' => $helper->__('Required'),
257
+ 'note' => $helper->__('Display Checkbox on Frontend'),
258
+ 'name' => 'is_required',
259
+ 'required' => true,
260
+ 'options' => array(
261
+ '1' => $helper->__('Yes'),
262
+ '0' => $helper->__('No'),
263
+ ),
264
+ ));
265
+
266
+ $fieldset->addField('agreement_type', 'select', array(
267
+ 'label' => $helper->__('Display on'),
268
+ 'title' => $helper->__('Display on'),
269
+ 'note' => $helper->__('Require Confirmation on Customer Registration and/or Checkout'),
270
+ 'name' => 'agreement_type',
271
+ 'required' => true,
272
+ 'options' => Mage::getSingleton('magesetup/source_agreementType')->getOptionArray(),
273
+ ));
274
+
275
+ Mage::dispatchEvent('magesetup_adminhtml_checkout_agreement_edit_form', array(
276
+ 'form' => $form,
277
+ 'fieldset' => $fieldset,
278
+ ));
279
+
280
+ $model = Mage::registry('checkout_agreement');
281
+ $form->setValues($model->getData());
282
+ $block->setForm($form);
283
+ }
284
+
285
+ return $this;
286
+ }
287
+
288
+ /**
289
+ * After updating the quantities of cart items, it might be needed to recalculate the shipping tax
290
+ *
291
+ * @magentoEvent checkout_cart_update_items_after
292
+ *
293
+ * @param Varien_Event_Observer $observer Observer
294
+ */
295
+ public function recollectAfterQuoteItemUpdate(Varien_Event_Observer $observer)
296
+ {
297
+ $store = Mage::app()->getStore();
298
+ if (Mage::getStoreConfig(FireGento_MageSetup_Model_Tax_Config::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store)
299
+ == FireGento_MageSetup_Model_Tax_Config::USE_TAX_DEPENDING_ON_PRODUCT_VALUES
300
+ ) {
301
+ Mage::getSingleton('checkout/session')
302
+ ->getQuote()
303
+ ->setTotalsCollectedFlag(false)
304
+ ->collectTotals();
305
+ }
306
+ }
307
+
308
+ /**
309
+ * Get required agreements on custom registration
310
+ *
311
+ * @return array Customer agreement ids
312
+ */
313
+ protected function _getCustomerCreateAgreements()
314
+ {
315
+ $ids = Mage::getModel('checkout/agreement')->getCollection()
316
+ ->addStoreFilter(Mage::app()->getStore()->getId())
317
+ ->addFieldToFilter('is_active', 1)
318
+ ->addFieldToFilter('agreement_type', array('in' => array(
319
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER,
320
+ FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH,
321
+ ))) // Only get Required Elements
322
+ ->getAllIds();
323
+
324
+ return $ids;
325
+ }
326
+
327
+ /**
328
+ * Check if there are required agreements for the customer registration
329
+ * and validate them if applicable.
330
+ *
331
+ * @magentoEvent controller_action_predispatch_customer_account_createpost
332
+ *
333
+ * @param Varien_Event_Observer $observer Observer
334
+ */
335
+ public function customerCreatePreDispatch(Varien_Event_Observer $observer)
336
+ {
337
+ $requiredAgreements = $this->_getCustomerCreateAgreements();
338
+ $controller = $observer->getEvent()->getControllerAction();
339
+ $postedAgreements = array_keys($controller->getRequest()->getPost('agreement', array()));
340
+
341
+ if ($diff = array_diff($requiredAgreements, $postedAgreements)) {
342
+ $session = Mage::getSingleton('customer/session');
343
+ $session->addException(
344
+ new Mage_Customer_Exception('Cannot create customer: agreements not confirmed'),
345
+ Mage::helper('magesetup')->__('Agreements not confirmed.')
346
+ );
347
+
348
+ $controller->getResponse()->setRedirect( Mage::getUrl('*/*/create', array('_secure' => true)) );
349
+ $controller->setFlag(
350
+ $controller->getRequest()->getActionName(),
351
+ Mage_Core_Controller_Varien_Action::FLAG_NO_DISPATCH,
352
+ true
353
+ );
354
+ }
355
+ }
356
+ }
app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Subscriber Status Resource Model
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status
35
+ extends Mage_Core_Model_Resource_Db_Abstract
36
+ {
37
+ /**
38
+ * Init main table and id field name
39
+ */
40
+ protected function _construct()
41
+ {
42
+ $this->_init('magesetup/newsletter_subscriber_status', 'id');
43
+ }
44
+ }
app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status/Collection.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Subscriber Status Resource Collection Model
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection
35
+ extends Mage_Core_Model_Resource_Db_Collection_Abstract
36
+ {
37
+ /**
38
+ * Initialize the model and resource for the collection
39
+ */
40
+ public function _construct()
41
+ {
42
+ $this->_init('magesetup/newsletter_subscriber_status');
43
+ }
44
+ }
app/code/community/FireGento/MageSetup/Model/Setup.php ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup extends Mage_Core_Model_Abstract
35
+ {
36
+ /**
37
+ * Setup MageSetup as if a user sends the adminhtml form
38
+ * See method _getDefaultParams for possible params
39
+ *
40
+ * @param array $params Setup params
41
+ * @param bool $notify Flag if admin notifications should be added
42
+ * @return FireGento_MageSetup_Model_Setup Setup Model
43
+ */
44
+ public function setup($params = array(), $notify=false)
45
+ {
46
+ $defaultParams = $this->_getDefaultParams();
47
+
48
+ $params = array_merge($defaultParams, $params);
49
+
50
+ Mage::register('setup_country', $params['country']);
51
+
52
+ if ($params['systemconfig']) {
53
+ Mage::getSingleton('magesetup/setup_systemconfig')->setup();
54
+
55
+ if ($notify) {
56
+ $this->_getAdminhtmlSession()->addSuccess(
57
+ $this->_getHelper()->__('MageSetup: System Config Settings have been updated.')
58
+ );
59
+ }
60
+ }
61
+
62
+ if ($params['cms']) {
63
+ if (!is_array($params['cms_locale'])) {
64
+ $params['cms_locale'] = array('default' => $params['cms_locale']);
65
+ }
66
+ Mage::getSingleton('magesetup/setup_cms')->setup($params['cms_locale']);
67
+
68
+ if ($notify) {
69
+ $this->_getAdminhtmlSession()->addSuccess(
70
+ $this->_getHelper()->__('MageSetup: CMS Blocks and Pages have been created.')
71
+ );
72
+ }
73
+ }
74
+
75
+ if ($params['agreements']) {
76
+ if (!is_array($params['cms_locale'])) {
77
+ $params['cms_locale'] = array('default' => $params['cms_locale']);
78
+ }
79
+ Mage::getSingleton('magesetup/setup_agreements')->setup($params['cms_locale']);
80
+
81
+ if ($notify) {
82
+ $this->_getAdminhtmlSession()->addSuccess(
83
+ $this->_getHelper()->__('MageSetup: Checkout Agreements have been created.')
84
+ );
85
+ }
86
+ }
87
+
88
+ if ($params['email']) {
89
+ if (!is_array($params['email_locale'])) {
90
+ $params['email_locale'] = array('default' => $params['email_locale']);
91
+ }
92
+ Mage::getSingleton('magesetup/setup_email')->setup($params['email_locale'], $params['overwrite_emails']);
93
+
94
+ if ($notify) {
95
+ $this->_getAdminhtmlSession()->addSuccess(
96
+ $this->_getHelper()->__('MageSetup: Email Templates have been created.')
97
+ );
98
+ }
99
+ }
100
+
101
+ if ($params['tax']) {
102
+ // Setup tax settings (rules, classes, ..)
103
+ Mage::getSingleton('magesetup/setup_tax')->setup();
104
+ if ($notify) {
105
+ $this->_getAdminhtmlSession()->addSuccess(
106
+ $this->_getHelper()->__('MageSetup: Tax Settings have been created.')
107
+ );
108
+ }
109
+
110
+ // Update product tax classes
111
+ $this->_updateProductTaxClasses($params);
112
+ if ($notify) {
113
+ $this->_getAdminhtmlSession()->addSuccess(
114
+ $this->_getHelper()->__('MageSetup: Product Tax Classes have been updated.')
115
+ );
116
+ }
117
+
118
+ // Update customer tax classes
119
+ $this->_updateCustomerTaxClasses($params);
120
+ if ($notify) {
121
+ $this->_getAdminhtmlSession()->addSuccess(
122
+ $this->_getHelper()->__('MageSetup: Customer Tax Classes have been updated.')
123
+ );
124
+ }
125
+ }
126
+
127
+ // Set a config flag to indicate that the setup has been initialized and refresh config cache.
128
+ Mage::getModel('eav/entity_setup', 'core_setup')->setConfigData('magesetup/is_initialized', '1');
129
+ Mage::app()->getCacheInstance()->cleanType('config');
130
+ Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => 'config'));
131
+
132
+ return $this;
133
+ }
134
+
135
+ /**
136
+ * Get default parameters like they are in the backend form
137
+ *
138
+ * @return array Default setup params
139
+ */
140
+ protected function _getDefaultParams()
141
+ {
142
+ $productTaxClassTargets = array();
143
+ foreach (Mage::getSingleton('magesetup/source_tax_productTaxClass')->getAllOptions() as $option) {
144
+ $productTaxClassTargets[$option['value']] = 1;
145
+ }
146
+
147
+ $customerTaxClassTargets = array();
148
+ foreach (Mage::getSingleton('magesetup/source_tax_customerTaxClass')->getAllOptions() as $option) {
149
+ $customerTaxClassTargets[$option['value']] = 1;
150
+ }
151
+
152
+ return array(
153
+ 'country' => 'de',
154
+ 'systemconfig' => true,
155
+ 'cms' => true,
156
+ 'cms_locale' => array('default' => 'de_DE'),
157
+ 'agreements' => true,
158
+ 'email' => true,
159
+ 'email_locale' => array('default' => 'de_DE'),
160
+ 'overwrite_emails' => false,
161
+ 'tax' => true,
162
+ 'product_tax_class_target' => $productTaxClassTargets,
163
+ 'customer_tax_class_target' => $customerTaxClassTargets,
164
+ );
165
+ }
166
+
167
+ /**
168
+ * Update the old product tax classes to the new tax class ids
169
+ *
170
+ * @param array $params Setup params
171
+ */
172
+ protected function _updateProductTaxClasses($params)
173
+ {
174
+ $taxClasses = $params['product_tax_class_target'];
175
+ foreach ($taxClasses as $source => $target) {
176
+ if ($target = intval($target)) {
177
+ Mage::getSingleton('magesetup/setup_tax')->updateProductTaxClasses($source, $target);
178
+ }
179
+ }
180
+
181
+ $this->_markIndicesOutdated();
182
+ }
183
+
184
+ /**
185
+ * Update the old product tax classes to the new tax class ids
186
+ *
187
+ * @param array $params Setup params
188
+ */
189
+ protected function _updateCustomerTaxClasses($params)
190
+ {
191
+ $taxClasses = $params['customer_tax_class_target'];
192
+ foreach ($taxClasses as $source => $target) {
193
+ if ($target = intval($target)) {
194
+ Mage::getSingleton('magesetup/setup_tax')->updateCustomerTaxClasses($source, $target);
195
+ }
196
+ }
197
+ }
198
+
199
+ /**
200
+ * Mark relevant indices as outdated after changing tax rates
201
+ */
202
+ protected function _markIndicesOutdated()
203
+ {
204
+ // Indexes which need to be updated after setup
205
+ $indexes = array('catalog_product_price', 'catalog_product_flat', 'catalog_product_attribute');
206
+
207
+ $indices = Mage::getModel('index/process')
208
+ ->getCollection()
209
+ ->addFieldToFilter('indexer_code', array('in' => $indexes));
210
+
211
+ foreach ($indices as $index) {
212
+ $index->setStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX)->save();
213
+ }
214
+ }
215
+
216
+ /**
217
+ * Retrieve the helper class
218
+ *
219
+ * @return FireGento_MageSetup_Helper_Data Helper Class
220
+ */
221
+ protected function _getHelper()
222
+ {
223
+ return Mage::helper('magesetup');
224
+ }
225
+
226
+ /**
227
+ * Retrieve the adminhtml session for setup notifications
228
+ *
229
+ * @return Mage_Adminhtml_Model_Session Admin Session
230
+ */
231
+ protected function _getAdminhtmlSession()
232
+ {
233
+ return Mage::getSingleton('adminhtml/session');
234
+ }
235
+ }
app/code/community/FireGento/MageSetup/Model/Setup/Abstract.php ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.2.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup_Abstract extends Mage_Core_Model_Abstract
35
+ {
36
+ /**
37
+ * @var Mage_Eav_Model_Entity_Setup
38
+ */
39
+ protected $_setup;
40
+
41
+ /**
42
+ * @var Varien_Db_Adapter_Interface
43
+ */
44
+ protected $_connection;
45
+
46
+ /**
47
+ * Setup setup class and connection
48
+ */
49
+ public function __construct()
50
+ {
51
+ $this->_setup = Mage::getModel('eav/entity_setup', 'core_setup');
52
+ $this->_connection = $this->_setup->getConnection();
53
+ }
54
+
55
+ /**
56
+ * Get config.xml data
57
+ *
58
+ * @return Varien_Simplexml_Element Config data
59
+ */
60
+ public function getConfigData()
61
+ {
62
+ return Mage::getSingleton('magesetup/config')->getNode('default/magesetup');
63
+ }
64
+
65
+ /**
66
+ * Saves a system config value for the given config path and the given store id
67
+ *
68
+ * @param string $configPath Config Path
69
+ * @param string $value Value
70
+ * @param int|null $storeId Store ID
71
+ */
72
+ public function setConfigData($configPath, $value, $storeId = null)
73
+ {
74
+ $setup = $this->_getSetup();
75
+ if (is_null($storeId)) {
76
+ $setup->setConfigData($configPath, $value);
77
+ } else {
78
+ $setup->setConfigData($configPath, $value, 'stores', $storeId);
79
+ }
80
+ }
81
+
82
+ /**
83
+ * Get config.xml data
84
+ *
85
+ * @param string $node xml node
86
+ * @param string|null $childNode if set, child node of the first node
87
+ * @return array Config Node
88
+ */
89
+ protected function _getConfigNode($node, $childNode = null)
90
+ {
91
+ $configData = $this->getConfigData()->asArray();
92
+ if ($childNode) {
93
+ return $configData[$node][$childNode];
94
+ } else {
95
+ return $configData[$node];
96
+ }
97
+ }
98
+
99
+ /**
100
+ * Get template content
101
+ *
102
+ * @param string $filename Template file name
103
+ * @return string Template content
104
+ */
105
+ public function getTemplateContent($filename)
106
+ {
107
+ return @file_get_contents($filename);
108
+ }
109
+
110
+ /**
111
+ * Load a model by attribute code
112
+ *
113
+ * @param Mage_Core_Model_Abstract $model Collection
114
+ * @param string $attributeCode Attribute code
115
+ * @param string $value Value
116
+ * @return Mage_Core_Model_Abstract
117
+ */
118
+ protected function _loadExistingModel($model, $attributeCode, $value)
119
+ {
120
+ foreach ($model->getCollection() as $singleModel) {
121
+ if ($singleModel->getData($attributeCode) == $value) {
122
+ $model->load($singleModel->getId());
123
+
124
+ return $model;
125
+ }
126
+ }
127
+
128
+ return $model;
129
+ }
130
+
131
+ /**
132
+ * Retrieve the database connection
133
+ *
134
+ * @return Varien_Db_Adapter_Interface Database connection
135
+ */
136
+ protected function _getConnection()
137
+ {
138
+ return $this->_connection;
139
+ }
140
+
141
+ /**
142
+ * Retrieve the Magento setup model class
143
+ *
144
+ * @return Mage_Eav_Model_Entity_Setup Setup Model
145
+ */
146
+ protected function _getSetup()
147
+ {
148
+ return $this->_setup;
149
+ }
150
+
151
+ /**
152
+ * Get setup country ID
153
+ *
154
+ * @return string
155
+ */
156
+ public function getCountryId()
157
+ {
158
+ if (!$this->_getData('country_id')) {
159
+ $this->setData('country_id', Mage::registry('setup_country'));
160
+ }
161
+ return $this->_getData('country_id');
162
+ }
163
+ }
app/code/community/FireGento/MageSetup/Model/Setup/Agreements.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class for Checkout Agreements
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.5.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup_Agreements extends FireGento_MageSetup_Model_Setup_Abstract
35
+ {
36
+ /**
37
+ * Setup Checkout Agreements
38
+ *
39
+ * @param array $locale Locale options
40
+ */
41
+ public function setup($locale = array('default' => 'de_DE'))
42
+ {
43
+ foreach ($locale as $storeId => $localeCode) {
44
+
45
+ if (!$localeCode) {
46
+ if (sizeof($locale) == 1) {
47
+ continue;
48
+ }
49
+ $localeCode = $locale['default'];
50
+ }
51
+
52
+ if ($storeId == 'default') {
53
+ if (sizeof($locale) > 1) {
54
+ continue;
55
+ }
56
+ $storeId = null;
57
+ }
58
+
59
+ foreach ($this->_getConfigAgreements() as $name => $data) {
60
+ if ($data['execute'] == 1) {
61
+ $this->_createAgreement($data, $localeCode, false, $storeId);
62
+ }
63
+ }
64
+ }
65
+
66
+ // Set config value to true
67
+ $setup = Mage::getModel('eav/entity_setup', 'core_setup');
68
+ $setup->setConfigData('checkout/options/enable_agreements', '1');
69
+ }
70
+
71
+ /**
72
+ * Collect data and create Agreement
73
+ *
74
+ * @param array $agreementData Cms page data
75
+ * @param string $locale Locale
76
+ * @param boolean $override Override cms page if it exists
77
+ * @param int|null $storeId Store Id
78
+ * @return void
79
+ */
80
+ protected function _createAgreement($agreementData, $locale, $override=true, $storeId = null)
81
+ {
82
+ if (!is_array($agreementData)) {
83
+ return;
84
+ }
85
+
86
+ $filename = Mage::getBaseDir('locale') . DS . $locale . DS . 'template' . DS . $agreementData['filename'];
87
+ if (!file_exists($filename)) {
88
+ return;
89
+ }
90
+
91
+ $templateContent = $this->getTemplateContent($filename);
92
+
93
+ // Find name
94
+ $name = '';
95
+ if (preg_match('/<!--@name\s*(.*?)\s*@-->/u', $templateContent, $matches)) {
96
+ $name = $matches[1];
97
+ $templateContent = str_replace($matches[0], '', $templateContent);
98
+ }
99
+
100
+ // Find checkbox_text
101
+ $checkboxText = '';
102
+ if (preg_match('/<!--@checkbox_text\s*(.*?)\s*@-->/u', $templateContent, $matches)) {
103
+ $checkboxText = $matches[1];
104
+ $templateContent = str_replace($matches[0], '', $templateContent);
105
+ }
106
+
107
+ // Remove comment lines
108
+ $templateContent = preg_replace('#\{\*.*\*\}#suU', '', $templateContent);
109
+
110
+ $agreementData = array(
111
+ 'name' => $name,
112
+ 'content' => $templateContent,
113
+ 'checkbox_text' => $checkboxText,
114
+ 'is_active' => $agreementData['is_active'],
115
+ 'is_html' => $agreementData['is_html'],
116
+ 'is_required' => $agreementData['is_required'],
117
+ 'agreement_type' => $agreementData['agreement_type'],
118
+ 'stores' => $storeId ? $storeId : 0,
119
+ );
120
+
121
+ /* @var $agreement Mage_Checkout_Model_Agreement */
122
+ $agreement = Mage::getModel('checkout/agreement')->setStoreId($storeId)->load($agreementData['name'], 'name');
123
+ if (is_array($agreement->getStores()) && !in_array(intval($storeId), $agreement->getStores())) {
124
+ $agreement = Mage::getModel('checkout/agreement');
125
+ }
126
+
127
+ if (!(int) $agreement->getId() || $override) {
128
+ $agreement->setData($agreementData)->save();
129
+ }
130
+ }
131
+
132
+ /**
133
+ * Get pages/default from config file
134
+ *
135
+ * @return array Config agreements
136
+ */
137
+ protected function _getConfigAgreements()
138
+ {
139
+ return $this->_getConfigNode('agreements', 'default');
140
+ }
141
+ }
app/code/community/FireGento/MageSetup/Model/Setup/Cms.php ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class for CMS pages and blocks
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.5.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup_Cms extends FireGento_MageSetup_Model_Setup_Abstract
35
+ {
36
+ /**
37
+ * @var array
38
+ */
39
+ protected $_footerLinks = array();
40
+
41
+ /**
42
+ * Setup Pages, Blocks and especially Footer Block
43
+ *
44
+ * @param array $locale Locale options
45
+ */
46
+ public function setup($locale = array('default' => 'de_DE'))
47
+ {
48
+ foreach ($locale as $storeId => $localeCode) {
49
+
50
+ if (!$localeCode) {
51
+ continue;
52
+ }
53
+
54
+ if ($storeId == 'default') {
55
+ $storeId = null;
56
+ }
57
+
58
+ // execute pages
59
+ foreach ($this->_getConfigPages($locale) as $name => $data) {
60
+ if ($data['execute'] == 1) {
61
+ $this->_createCmsPage($data, $localeCode, true, $storeId);
62
+ }
63
+ }
64
+
65
+ // execute blocks
66
+ foreach ($this->_getConfigBlocks($locale) as $name => $data) {
67
+ if ($data['execute'] == 1) {
68
+ if ($name == 'footerlinks') {
69
+ $this->_updateFooterLinksBlock($data, $storeId);
70
+ } else {
71
+ $this->_createCmsBlock($data, $localeCode, true, $storeId);
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ /**
79
+ * Get pages/default from config file
80
+ *
81
+ * @return array Config pages
82
+ */
83
+ protected function _getConfigPages()
84
+ {
85
+ return $this->_getConfigNode('pages', 'default');
86
+ }
87
+
88
+ /**
89
+ * Get blocks/default from config file
90
+ *
91
+ * @return array Config blocks
92
+ */
93
+ protected function _getConfigBlocks()
94
+ {
95
+ return $this->_getConfigNode('blocks', 'default');
96
+ }
97
+
98
+ /**
99
+ * Get footer_links/default from config file
100
+ *
101
+ * @param int|null $storeId Store ID
102
+ * @return array Footer Links
103
+ */
104
+ protected function _getFooterLinks($storeId)
105
+ {
106
+ if (!$storeId) {
107
+ $storeId = 'default';
108
+ }
109
+ if (!isset($this->_footerLinks[$storeId])) {
110
+ return array();
111
+ }
112
+ return $this->_footerLinks[$storeId];
113
+ }
114
+
115
+ /**
116
+ * Collect data and create CMS page
117
+ *
118
+ * @param array $pageData Cms page data
119
+ * @param string $locale Locale
120
+ * @param boolean $override Override email template if set
121
+ * @param int|null $storeId Store ID
122
+ * @return void
123
+ */
124
+ protected function _createCmsPage($pageData, $locale, $override = true, $storeId = null)
125
+ {
126
+ if (!is_array($pageData)) {
127
+ return;
128
+ }
129
+
130
+ $data = array(
131
+ 'stores' => $storeId ? $storeId : 0,
132
+ 'is_active' => 1,
133
+ );
134
+
135
+ $filename = Mage::getBaseDir('locale') . DS . $locale . DS . 'template' . DS . $pageData['filename'];
136
+ if (!file_exists($filename)) {
137
+ return;
138
+ }
139
+
140
+ $templateContent = $this->getTemplateContent($filename);
141
+
142
+ if (preg_match('/<!--@title\s*(.*?)\s*@-->/u', $templateContent, $matches)) {
143
+ $data['title'] = $matches[1];
144
+ $templateContent = str_replace($matches[0], '', $templateContent);
145
+ }
146
+
147
+ if (preg_match('/<!--@identifier\s*((?:.)*?)\s*@-->/us', $templateContent, $matches)) {
148
+ $data['identifier'] = $matches[1];
149
+ $templateContent = str_replace($matches[0], '', $templateContent);
150
+ }
151
+
152
+ if (preg_match('/<!--@root_template\s*(.*?)\s*@-->/s', $templateContent, $matches)) {
153
+ $data['root_template'] = $matches[1];
154
+ $templateContent = str_replace($matches[0], '', $templateContent);
155
+ }
156
+
157
+ /**
158
+ * Remove comment lines
159
+ */
160
+ $templateContent = preg_replace('#\{\*.*\*\}#suU', '', $templateContent);
161
+
162
+ $data['content'] = $templateContent;
163
+
164
+ $page = Mage::getModel('cms/page')->setStoreId($storeId)->load($data['identifier']);
165
+ if (is_array($page->getStoreId()) && !in_array(intval($storeId), $page->getStoreId())) {
166
+ $page = Mage::getModel('cms/page');
167
+ } else {
168
+ $data['page_id'] = $page->getId();
169
+ }
170
+
171
+ if (!(int) $page->getId() || $override) {
172
+ $page->setData($data)->save();
173
+ }
174
+
175
+ if (!$storeId) {
176
+ $storeId = 'default';
177
+ }
178
+
179
+ if ($pageData['footerlink'] == 1) {
180
+ $this->_footerLinks[$storeId][] = array(
181
+ 'title' => $data['title'],
182
+ 'target' => $data['identifier'],
183
+ );
184
+ }
185
+
186
+ if (isset($pageData['config_option'])) {
187
+ $this->setConfigData($pageData['config_option'], $data['identifier'], $storeId);
188
+ }
189
+ }
190
+
191
+ /**
192
+ * Collect data and create CMS block
193
+ *
194
+ * @param array $blockData Cms block data
195
+ * @param string $locale Locale
196
+ * @param boolean $override Override email template if set
197
+ * @param int|null $storeId Store ID
198
+ * @return void
199
+ */
200
+ protected function _createCmsBlock($blockData, $locale, $override = true, $storeId = null)
201
+ {
202
+ $block = Mage::getModel('cms/block')->setStoreId($storeId)->load($blockData['identifier']);
203
+ if (is_array($block->getStores()) && !in_array(intval($storeId), $block->getStores())) {
204
+ $block = Mage::getModel('cms/block');
205
+ }
206
+
207
+ $filename = Mage::getBaseDir('locale') . DS . $locale . DS . 'template' . DS . $blockData['filename'];
208
+ if (!file_exists($filename)) {
209
+ return;
210
+ }
211
+
212
+ $templateContent = $this->getTemplateContent($filename);
213
+
214
+ // Find title
215
+ if (preg_match('/<!--@title\s*(.*?)\s*@-->/u', $templateContent, $matches)) {
216
+ $blockData['title'] = $matches[1];
217
+ $templateContent = str_replace($matches[0], '', $templateContent);
218
+ }
219
+
220
+ // Remove comment lines
221
+ $templateContent = preg_replace('#\{\*.*\*\}#suU', '', $templateContent);
222
+
223
+ if (!$block->getId() || $override) {
224
+ $blockData['content'] = $templateContent;
225
+ $blockData['stores'] = $storeId ? $storeId : 0;
226
+ $blockData['is_active'] = '1';
227
+ $blockData['block_id'] = $block->getId();
228
+
229
+ $block->setData($blockData)->save();
230
+ }
231
+ }
232
+
233
+ /**
234
+ * Generate footer_links block from config data
235
+ *
236
+ * @param int|null $storeId Store ID
237
+ * @return string Footer Links Content
238
+ */
239
+ protected function _createFooterLinksContent($storeId)
240
+ {
241
+ $footerLinksHtml = '<ul>';
242
+ $footerLinksCounter = 0;
243
+
244
+ foreach ($this->_getFooterLinks($storeId) as $data) {
245
+ $footerLinksCounter++;
246
+ $title = $data['title'];
247
+ $target = $data['target'];
248
+ $class = '';
249
+ if ($footerLinksCounter == count($this->_getFooterLinks($storeId))) {
250
+ $class = 'last';
251
+ }
252
+ $footerLinksHtml .= '<li class="'.$class.'">';
253
+ $footerLinksHtml .= '<a href="{{store url="' . $target . '"}}">' . $title . '</a></li>';
254
+ }
255
+
256
+ $footerLinksHtml .= '</ul>';
257
+
258
+ return $footerLinksHtml;
259
+ }
260
+
261
+ /**
262
+ * Update footer_links cms block
263
+ *
264
+ * @param array $blockData Cms block data
265
+ * @param int|null $storeId Store ID
266
+ */
267
+ protected function _updateFooterLinksBlock($blockData, $storeId = null)
268
+ {
269
+ /** @var $block Mage_Cms_Model_Block */
270
+ if (is_null($storeId)) {
271
+ $block = $this->_getDefaultBlock('footer_links');
272
+ } else {
273
+ $block = Mage::getModel('cms/block')->setStoreId($storeId)->load('footer_links');
274
+ }
275
+
276
+ if (is_array($block->getStores()) && !in_array(intval($storeId), $block->getStores())) {
277
+ $block = Mage::getModel('cms/block');
278
+ }
279
+
280
+ if ($block->getId()) {
281
+
282
+ /** @var $backupBlock Mage_Cms_Model_Block */
283
+ $backupBlock = Mage::getModel('cms/block')->load('footer_links_backup');
284
+ if (!$backupBlock->getId()) {
285
+
286
+ // create copy of original block
287
+ $data = array();
288
+ $data['block_id'] = $block->getId();
289
+ $data['identifier'] = 'footer_links_backup';
290
+
291
+ $block->setData($data)->save();
292
+
293
+ /** @var $block Mage_Cms_Model_Block */
294
+ $block = Mage::getModel('cms/block');
295
+ }
296
+ }
297
+
298
+ $data = array(
299
+ 'title' => 'Footer Links',
300
+ 'identifier' => 'footer_links',
301
+ 'content' => $this->_createFooterLinksContent($storeId),
302
+ 'stores' => $storeId ? $storeId : 0,
303
+ 'is_active' => '1',
304
+ );
305
+
306
+ if ($storeId) {
307
+ $data['stores'] = array($storeId);
308
+ }
309
+
310
+ $block->addData($data)->save();
311
+ }
312
+
313
+ /**
314
+ * Retrieve the default block for the given identifier
315
+ *
316
+ * @param string $identifier Block Identifier
317
+ * @return Mage_Cms_Model_Block Block Model
318
+ */
319
+ protected function _getDefaultBlock($identifier)
320
+ {
321
+ return Mage::getResourceModel('cms/block_collection')
322
+ ->addFieldToFilter('identifier', $identifier)
323
+ ->addStoreFilter(0)->getFirstItem();
324
+ }
325
+ }
app/code/community/FireGento/MageSetup/Model/Setup/Email.php ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class for transaction emails
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.5.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup_Email extends FireGento_MageSetup_Model_Setup_Abstract
35
+ {
36
+ /**
37
+ * @var array
38
+ */
39
+ protected $_localeTemplatePath = array();
40
+
41
+ /**
42
+ * Setup Transaction Emails
43
+ *
44
+ * @param array $locale Locale options
45
+ * @param bool $overwrite Flag if locale options should override existing templates
46
+ */
47
+ public function setup($locale = array('default' => 'de_DE'), $overwrite = false)
48
+ {
49
+ foreach ($locale as $storeId => $localeCode) {
50
+
51
+ if (!$localeCode) {
52
+ continue;
53
+ }
54
+
55
+ if ($storeId == 'default') {
56
+ $storeId = null;
57
+ }
58
+
59
+ // execute emails
60
+ foreach ($this->_getConfigEmails($localeCode) as $data) {
61
+
62
+ if ($data['execute'] == 1) {
63
+
64
+ // Change override param from false to true to override existing templates for testing
65
+ $this->_createEmail($data, $localeCode, $overwrite, $storeId);
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ /**
72
+ * Get email_footers/default from config file
73
+ *
74
+ * @return array Config email footers
75
+ */
76
+ protected function _getConfigEmailFooters()
77
+ {
78
+ return $this->_getConfigNode('email_footers', 'default');
79
+ }
80
+
81
+ /**
82
+ * Get emails/default from config file
83
+ *
84
+ * @return array Config emails
85
+ */
86
+ protected function _getConfigEmails()
87
+ {
88
+ return $this->_getConfigNode('emails', 'default');
89
+ }
90
+
91
+ /**
92
+ * Create transactional email template
93
+ *
94
+ * @param array $emailData Template data
95
+ * @param string $locale Locale
96
+ * @param boolean $override Override email template if set
97
+ * @param int|null $storeId Store ID
98
+ * @return void
99
+ */
100
+ protected function _createEmail($emailData, $locale, $override = true, $storeId = null)
101
+ {
102
+ $templateCode = $emailData['template_code'] . ' (' . $locale . ')';
103
+ $template = Mage::getModel('core/email_template')
104
+ ->loadByCode($templateCode);
105
+
106
+ if (!$template->getId() || $override) {
107
+
108
+ $localeEmailPath = $this->_getLocaleEmailPath($locale);
109
+
110
+ $template
111
+ ->setTemplateCode($templateCode)
112
+ ->setTemplateType($emailData['template_type'])
113
+ ->setModifiedAt(Mage::getSingleton('core/date')->gmtDate());
114
+
115
+ // Filter areas from template file
116
+ $templateText = $this->getTemplateContent($localeEmailPath . $emailData['template_file']);
117
+
118
+ if (!$templateText) {
119
+ return; // file not found: return silently
120
+ }
121
+
122
+ if (preg_match('/<!--@subject\s*(.*?)\s*@-->/u', $templateText, $matches)) {
123
+ $template->setTemplateSubject($matches[1]);
124
+ $templateText = str_replace($matches[0], '', $templateText);
125
+ }
126
+
127
+ if (preg_match('/<!--@vars\s*((?:.)*?)\s*@-->/us', $templateText, $matches)) {
128
+ $templateText = str_replace($matches[0], '', $templateText);
129
+ }
130
+
131
+ if (preg_match('/<!--@styles\s*(.*?)\s*@-->/s', $templateText, $matches)) {
132
+ $template->setTemplateStyles($matches[1]);
133
+ $templateText = str_replace($matches[0], '', $templateText);
134
+ }
135
+
136
+ // Remove comment lines
137
+ $templateText = preg_replace('#\{\*.*\*\}#suU', '', $templateText);
138
+
139
+ $footerBlocks = $this->_getFooterBlocks($emailData);
140
+ $templateText = $this->_addFooterBlocks($templateText, $footerBlocks);
141
+
142
+ $template
143
+ ->setTemplateText($templateText)
144
+ ->save();
145
+ }
146
+
147
+ $this->setConfigData($emailData['config_data_path'], $template->getId(), $storeId);
148
+ }
149
+
150
+ /**
151
+ * Retrieve email template path for given locale
152
+ *
153
+ * @param string $locale Locale
154
+ * @return string Locale Template Path
155
+ */
156
+ protected function _getLocaleEmailPath($locale)
157
+ {
158
+ if (!isset($this->_localeTemplatePath[$locale])) {
159
+ $_localeTemplatePath = Mage::getBaseDir() . DS . 'app' . DS . 'locale' . DS . $locale . DS . 'template' . DS . 'email' . DS;
160
+ $this->_localeTemplatePath[$locale] = $_localeTemplatePath;
161
+ if (!is_dir($this->_localeTemplatePath[$locale])) {
162
+ Mage::throwException(
163
+ Mage::helper('magesetup')->__(
164
+ 'Directory "%s" not found. Locale not installed?',
165
+ $this->_localeTemplatePath[$locale]
166
+ )
167
+ );
168
+ }
169
+ }
170
+
171
+ return $this->_localeTemplatePath[$locale];
172
+ }
173
+
174
+ /**
175
+ * Add configured blocks before the second last </body> tag
176
+ *
177
+ * @param string $templateText the content of the template
178
+ * @param array $blocks all blocks that should be inserted before penultimate </table>
179
+ * @return string the content of the template with the block before penultimate </table>
180
+ */
181
+ protected function _addFooterBlocks($templateText, array $blocks = array())
182
+ {
183
+ $origTemplateText = $templateText;
184
+ $lastPos = strripos($templateText, '</table>');
185
+ $part = substr($templateText, 0, $lastPos);
186
+ $penultimatePos = strripos($part, '</table>');
187
+ $templateText = substr($templateText, 0, $penultimatePos);
188
+ foreach ($blocks as $block) {
189
+ $templateText .= $block;
190
+ }
191
+ $templateText .= substr($origTemplateText, $penultimatePos);
192
+
193
+ return $templateText;
194
+ }
195
+
196
+ /**
197
+ * Get HTML blocks which should be appended to the emails
198
+ *
199
+ * @param array $emailData Email data
200
+ * @return array Footer blocks
201
+ */
202
+ protected function _getFooterBlocks($emailData)
203
+ {
204
+ $configFooters = $this->_getConfigEmailFooters();
205
+ $blocks = array();
206
+ if ($emailData['add_footer'] == 1) {
207
+ $blocks[] = $configFooters['footer'];
208
+ }
209
+ if ($emailData['add_business_terms'] == 1) {
210
+ $blocks[] = $configFooters['business_terms'];
211
+ }
212
+ if ($emailData['add_revocation'] == 1) {
213
+ $blocks[] = $configFooters['revocation'];
214
+ }
215
+
216
+ return $blocks;
217
+ }
218
+ }
app/code/community/FireGento/MageSetup/Model/Setup/Systemconfig.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class for Tax Settings
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.5.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup_Systemconfig extends FireGento_MageSetup_Model_Setup_Abstract
35
+ {
36
+ /**
37
+ * Setup Tax setting
38
+ */
39
+ public function setup()
40
+ {
41
+ $this->_updateConfigData();
42
+ }
43
+
44
+ /**
45
+ * Update configuration settings
46
+ */
47
+ protected function _updateConfigData()
48
+ {
49
+ $setup = $this->_getSetup();
50
+ foreach ($this->_getConfigSystemConfig() as $key => $value) {
51
+ $setup->setConfigData(str_replace('__', '/', $key), $value);
52
+ }
53
+ }
54
+
55
+ /**
56
+ * Get tax calculations from config file
57
+ *
58
+ * @return array Config System Config
59
+ */
60
+ protected function _getConfigSystemConfig()
61
+ {
62
+ return $this->_getConfigNode('system_config', 'default');
63
+ }
64
+ }
app/code/community/FireGento/MageSetup/Model/Setup/Tax.php ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.2.0
22
+ */
23
+ /**
24
+ * Setup class for Tax Settings
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.5.0
33
+ */
34
+ class FireGento_MageSetup_Model_Setup_Tax extends FireGento_MageSetup_Model_Setup_Abstract
35
+ {
36
+ /**
37
+ * @var Mage_Eav_Model_Entity_Setup
38
+ */
39
+ protected $_setup;
40
+
41
+ /**
42
+ * @var Varien_Db_Adapter_Interface
43
+ */
44
+ protected $_connection;
45
+
46
+ /**
47
+ * Setup setup class and connection
48
+ */
49
+ public function __construct()
50
+ {
51
+ $this->_setup = Mage::getModel('eav/entity_setup', 'core_setup');
52
+ $this->_connection = $this->_setup->getConnection();
53
+ }
54
+
55
+ /**
56
+ * Setup Tax setting
57
+ *
58
+ * @return void
59
+ */
60
+ public function setup()
61
+ {
62
+ $canTruncate = true;
63
+
64
+ if ($canTruncate) {
65
+ $this->_truncateTable('tax/tax_class');
66
+ $this->_truncateTable('tax/tax_calculation_rule');
67
+ $this->_truncateTable('tax/tax_calculation_rate');
68
+ $this->_truncateTable('tax/tax_calculation_rate_title');
69
+ $this->_truncateTable('tax/tax_calculation');
70
+ }
71
+
72
+ // Tax classes
73
+ $taxClasses = array();
74
+ foreach ($this->_getConfigTaxClasses() as $identifier => $data) {
75
+ if ($data['execute'] == 1) {
76
+ unset($data['default']);
77
+ $taxClasses[$identifier] = $this->_createTaxClass($data);
78
+ }
79
+ }
80
+
81
+
82
+ // Tax Rates
83
+ $taxRates = array();
84
+ foreach ($this->_getConfigTaxCalcRates() as $identifier => $data) {
85
+ $taxRates[$identifier] = array();
86
+
87
+ if ($data['execute'] == 1) {
88
+ foreach ($this->_getCountries() as $country) {
89
+ $data['tax_country_id'] = $country;
90
+ $data['code'] = $country . ' - ' . $data['label'];
91
+ $taxRates[$identifier][] = $this->_createTaxCalcRate($data);
92
+ }
93
+ }
94
+ }
95
+
96
+ // Tax rules
97
+ foreach ($this->_getConfigTaxCalculations() as $calculation) {
98
+ $data = $calculation->asCanonicalArray();
99
+ if ($data['execute'] == 1) {
100
+ $rule = Mage::getModel('tax/calculation_rule');
101
+ $rule->setData($data);
102
+ foreach ($calculation->attributes() as $attribute => $values) {
103
+ switch ($attribute) {
104
+ case 'tax_rate':
105
+ if (isset($taxRates[(string) $values])) {
106
+ $rule->setTaxRate($taxRates[(string) $values]);
107
+ }
108
+ break;
109
+ case 'tax_customer_class':
110
+ case 'tax_product_class':
111
+ $classes = array();
112
+ foreach (explode(',', (string) $values) as $value) {
113
+ if (isset($taxClasses[$value])) {
114
+ $classes[] = $taxClasses[$value];
115
+ }
116
+ }
117
+ $rule->setData($attribute, $classes);
118
+ break;
119
+ }
120
+ }
121
+ $rule->save();
122
+ }
123
+ }
124
+
125
+ // modify config data
126
+ $this->_updateConfigData();
127
+ }
128
+
129
+ /**
130
+ * Get countries for tax rate calculations
131
+ *
132
+ * If the country is in the EU, all EU countries
133
+ * are returned. If not, the array only contains the
134
+ * country ID of the configuration setup country
135
+ *
136
+ * @return array
137
+ */
138
+ protected function _getCountries()
139
+ {
140
+ if (Mage::helper('magesetup')->isCountryInEU($this->getCountryId())) {
141
+ return Mage::helper('magesetup')->getEUCountries();
142
+ }
143
+ return array(strtoupper($this->getCountryId()));
144
+ }
145
+
146
+ /**
147
+ * Get tax classes from config file
148
+ *
149
+ * @return array
150
+ */
151
+ protected function _getConfigTaxClasses()
152
+ {
153
+ return $this->_getConfigNode('tax_classes', 'default');
154
+ }
155
+
156
+ /**
157
+ * Collect data and create tax class
158
+ *
159
+ * @param array $taxClassData tax class data
160
+ * @return int ID of the last inserted item
161
+ */
162
+ protected function _createTaxClass($taxClassData)
163
+ {
164
+ $this->_insertIntoTable('tax/tax_class', $taxClassData);
165
+ return $this->_lastInsertId($this->_getTable('tax/tax_class'));
166
+ }
167
+
168
+ /**
169
+ * Get tax calculation rules from config file
170
+ *
171
+ * @return array
172
+ */
173
+ protected function _getConfigTaxCalcRules()
174
+ {
175
+ return $this->_getConfigNode('tax_calculation_rules', 'default');
176
+ }
177
+
178
+ /**
179
+ * Get tax calculation rates from config file
180
+ *
181
+ * @return array
182
+ */
183
+ public function _getConfigTaxCalcRates()
184
+ {
185
+ return $this->_getConfigNode('tax_calculation_rates', 'default');
186
+ }
187
+
188
+ /**
189
+ * Collect data and create tax calculation rates
190
+ *
191
+ * @param array $taxCalcRateData tax class data
192
+ * @return int ID of the created tax calculation rate
193
+ */
194
+ protected function _createTaxCalcRate($taxCalcRateData)
195
+ {
196
+ // look up label
197
+ $label = '';
198
+ if (isset($taxCalcRateData['label'])) {
199
+
200
+ $label = $taxCalcRateData['label'];
201
+ unset($taxCalcRateData['label']);
202
+ }
203
+
204
+ // base tax rate db entry
205
+ $calculationRateTable = $this->_getTable('tax/tax_calculation_rate');
206
+ $this->_insertIntoTable($calculationRateTable, $taxCalcRateData);
207
+ $rateId = $this->_lastInsertId($calculationRateTable);
208
+
209
+ // add labels to all store views
210
+ if ($label) {
211
+ foreach (Mage::app()->getStores() as $storeId => $store) {
212
+ $bind = array(
213
+ 'tax_calculation_rate_id' => $rateId,
214
+ 'store_id' => $storeId,
215
+ 'value' => $label,
216
+ );
217
+ $this->_insertIntoTable('tax/tax_calculation_rate_title', $bind);
218
+ }
219
+ }
220
+
221
+ return $rateId;
222
+ }
223
+
224
+ /**
225
+ * Get tax calculations from config file
226
+ *
227
+ * @return Varien_Simplexml_Element
228
+ */
229
+ public function _getConfigTaxCalculations()
230
+ {
231
+ $configData = $this->getConfigData();
232
+ return $configData->xpath('//tax_calculation_rules/default/*');
233
+ }
234
+
235
+ /**
236
+ * Update configuration settings
237
+ *
238
+ * @return void
239
+ */
240
+ protected function _updateConfigData()
241
+ {
242
+ $setup = $this->_getSetup();
243
+ foreach ($this->_getConfigTaxConfig() as $key => $value) {
244
+ $setup->setConfigData(str_replace('__', '/', $key), $value);
245
+ }
246
+ }
247
+
248
+ /**
249
+ * Get tax calculations from config file
250
+ *
251
+ * @return array
252
+ */
253
+ protected function _getConfigTaxConfig()
254
+ {
255
+ return $this->_getConfigNode('tax_config', 'default');
256
+ }
257
+
258
+ /**
259
+ * Update the tax class of all products with specified tax class id
260
+ *
261
+ * @param int $source source tax class id
262
+ * @param int $target target tax class id
263
+ */
264
+ public function updateProductTaxClasses($source, $target)
265
+ {
266
+ if (!Mage::getModel('tax/class')->load(intval($target))->getId()) {
267
+ return;
268
+ }
269
+
270
+ $productCollection = Mage::getModel('catalog/product')
271
+ ->getCollection()
272
+ ->addAttributeToFilter('tax_class_id', intval($source));
273
+
274
+ foreach ($productCollection as $product) {
275
+
276
+ /** @var $product Mage_Catalog_Model_Product */
277
+ $product->setTaxClassId(intval($target));
278
+ $product->getResource()->saveAttribute($product, 'tax_class_id');
279
+ }
280
+ }
281
+
282
+ /**
283
+ * Update the tax class of all customer groups with specified tax class id
284
+ *
285
+ * @param int $source source tax class id
286
+ * @param int $target target tax class id
287
+ */
288
+ public function updateCustomerTaxClasses($source, $target)
289
+ {
290
+ if (!Mage::getModel('tax/class')->load(intval($target))->getId()) {
291
+ return;
292
+ }
293
+
294
+ $customerGroupCollection = Mage::getModel('customer/group')
295
+ ->getCollection()
296
+ ->addFieldToFilter('tax_class_id', intval($source));
297
+
298
+ foreach ($customerGroupCollection as $customerGroup) {
299
+
300
+ /** @var $customerGroup Mage_Customer_Model_Group */
301
+ $customerGroup->setTaxClassId(intval($target));
302
+ $customerGroup->save();
303
+ }
304
+ }
305
+
306
+ /**
307
+ * Truncate a database table
308
+ *
309
+ * DELETE is used, in order to prevent problems with
310
+ * foreign key checks.
311
+ *
312
+ * @param string $table
313
+ * @return void
314
+ */
315
+ protected function _truncateTable($table)
316
+ {
317
+ $tableName = $this->_getTable($table);
318
+ $this->_getConnection()->delete($tableName);
319
+ }
320
+
321
+ /**
322
+ * Insert a line into a database table
323
+ *
324
+ * @param string $table
325
+ * @param array $data
326
+ * @return void
327
+ */
328
+ protected function _insertIntoTable($table, $data)
329
+ {
330
+ unset($data['execute']);
331
+ $tableName = $this->_getTable($table);
332
+ $this->_getConnection()->insert($tableName, $data);
333
+ }
334
+
335
+ /**
336
+ * @return Varien_Db_Adapter_Pdo_Mysql
337
+ */
338
+ protected function _getConnection()
339
+ {
340
+ return $this->_connection;
341
+ }
342
+
343
+ /**
344
+ * @return Mage_Eav_Model_Entity_Setup
345
+ */
346
+ protected function _getSetup()
347
+ {
348
+ return $this->_setup;
349
+ }
350
+
351
+ /**
352
+ * Get table name from table alias
353
+ *
354
+ * @param string $tableAlias
355
+ * @return string
356
+ */
357
+ protected function _getTable($tableAlias)
358
+ {
359
+ return $this->_getSetup()->getTable($tableAlias);
360
+ }
361
+
362
+ /**
363
+ * Get last insert ID
364
+ *
365
+ * @param string $table table alias
366
+ * @return int
367
+ */
368
+ protected function _lastInsertId($table)
369
+ {
370
+ $tableName = $this->_getTable($table);
371
+ return $this->_getConnection()->lastInsertId($tableName);
372
+ }
373
+ }
app/code/community/FireGento/MageSetup/Model/Source/AgreementType.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Source model for attribute "agreement_type"
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.2
33
+ */
34
+ class FireGento_MageSetup_Model_Source_AgreementType
35
+ {
36
+ const AGREEMENT_TYPE_CHECKOUT = 0;
37
+ const AGREEMENT_TYPE_CUSTOMER = 1;
38
+ const AGREEMENT_TYPE_BOTH = 2;
39
+ const AGREEMENT_TYPE_NOWHERE = 3;
40
+
41
+ /**
42
+ * Options getter
43
+ *
44
+ * @return array Agreement types as option array
45
+ */
46
+ public function toOptionArray()
47
+ {
48
+ $helper = Mage::helper('magesetup');
49
+ return array(
50
+ array(
51
+ 'value' => self::AGREEMENT_TYPE_CHECKOUT,
52
+ 'label' => $helper->__('On checkout (Magento Default)')
53
+ ),
54
+ array(
55
+ 'value' => self::AGREEMENT_TYPE_CUSTOMER,
56
+ 'label' => $helper->__('On customer registration (or on checkout, if customer not registered before)')
57
+ ),
58
+ array(
59
+ 'value' => self::AGREEMENT_TYPE_BOTH,
60
+ 'label' => $helper->__('On customer registration and on checkout')
61
+ ),
62
+ array(
63
+ 'value' => self::AGREEMENT_TYPE_NOWHERE,
64
+ 'label' => $helper->__('Nowhere')
65
+ ),
66
+ );
67
+ }
68
+
69
+ /**
70
+ * @return array Agreement types as option hash
71
+ */
72
+ public function getOptionArray()
73
+ {
74
+ $options = array();
75
+ foreach ($this->toOptionArray() as $option) {
76
+ $options[$option['value']] = $option['label'];
77
+ }
78
+ return $options;
79
+ }
80
+ }
app/code/community/FireGento/MageSetup/Model/Source/Cms/Block.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * CMS Source model for configuration dropdown of CMS static blocks
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Cms_Block
35
+ extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
36
+ {
37
+ /**
38
+ * @var array $_options cached options
39
+ */
40
+ protected $_options;
41
+
42
+ /**
43
+ * Return option array
44
+ *
45
+ * @return array Blocks as option array
46
+ */
47
+ public function toOptionArray()
48
+ {
49
+ if (!$this->_options) {
50
+ /** @var $blocks Mage_Cms_Model_Resource_Block_Collection */
51
+ $blocks = Mage::getModel('cms/block')->getCollection()
52
+ ->addFieldToFilter('is_active', 1)
53
+ ->setOrder('identifier', 'ASC');
54
+
55
+ $options = array();
56
+
57
+ foreach ($blocks as $block) {
58
+ /** @var $block Mage_Cms_Model_Block */
59
+ $options[$block->getIdentifier()] = $block->getIdentifier();
60
+ }
61
+
62
+ foreach ($options as $identifier) {
63
+ $this->_options[] = array(
64
+ 'value' => $identifier,
65
+ 'label' => $identifier,
66
+ );
67
+ }
68
+ }
69
+
70
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('magesetup')->__('No Block')));
71
+
72
+ return $this->_options;
73
+ }
74
+
75
+ /**
76
+ * Get all options as array
77
+ *
78
+ * @return array Blocks as option array
79
+ */
80
+ public function getAllOptions()
81
+ {
82
+ return $this->toOptionArray();
83
+ }
84
+ }
app/code/community/FireGento/MageSetup/Model/Source/Cms/Page.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * CMS Source model for configuration dropdown of CMS pages
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Cms_Page
35
+ extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
36
+ {
37
+ /**
38
+ * @var array $_options cached options
39
+ */
40
+ protected $_options;
41
+
42
+ /**
43
+ * Return option array
44
+ *
45
+ * @return array Pages as option array
46
+ */
47
+ public function toOptionArray()
48
+ {
49
+ if (!$this->_options) {
50
+ /** @var $pages Mage_Cms_Model_Resource_Page_Collection */
51
+ $pages = Mage::getModel('cms/page')->getCollection()
52
+ ->addFieldToFilter('is_active', 1)
53
+ ->setOrder('identifier', 'ASC');
54
+
55
+ $options = array();
56
+
57
+ foreach ($pages as $page) {
58
+ /** @var $page Mage_Cms_Model_Page */
59
+ $options[$page->getIdentifier()] = $page->getIdentifier();
60
+ }
61
+
62
+ foreach ($options as $identifier) {
63
+ $this->_options[] = array(
64
+ 'value' => $identifier,
65
+ 'label' => $identifier,
66
+ );
67
+ }
68
+ }
69
+
70
+ array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('magesetup')->__('No Page')));
71
+
72
+ return $this->_options;
73
+ }
74
+
75
+ /**
76
+ * Get all options as array
77
+ *
78
+ * @return array Pages as option array
79
+ */
80
+ public function getAllOptions()
81
+ {
82
+ return $this->toOptionArray();
83
+ }
84
+ }
app/code/community/FireGento/MageSetup/Model/Source/Tax/CustomerTaxClass.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Tax Source model for existing customer tax classes
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 2.0.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Tax_CustomerTaxClass extends Mage_Tax_Model_Class_Source_Customer
35
+ {
36
+ /**
37
+ * Retrieve all product tax classes as array
38
+ *
39
+ * @param bool $withEmpty Flag if an empty option should be prepended to the option array
40
+ * @return array Product tax class option array
41
+ */
42
+ public function getAllOptions($withEmpty = false)
43
+ {
44
+ $options = parent::getAllOptions($withEmpty);
45
+ foreach ($options as $optionKey => $option) {
46
+ if (intval($option['value']) <= 0) {
47
+ continue;
48
+ }
49
+
50
+ /* @var $customerGroupCollection Mage_Customer_Model_Resource_Group_Collection */
51
+ $customerGroupCollection = Mage::getModel('customer/group')
52
+ ->getCollection()
53
+ ->addFieldToFilter('tax_class_id', $option['value'])
54
+ ->setPageSize(1);
55
+
56
+ if (!$customerGroupCollection->getSize()) {
57
+ unset($options[$optionKey]);
58
+ }
59
+ }
60
+
61
+ return $options;
62
+ }
63
+ }
app/code/community/FireGento/MageSetup/Model/Source/Tax/DynamicType.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.2.0
22
+ */
23
+ /**
24
+ * CMS Source model for configuration dropdown of CMS pages
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Tax_DynamicType
35
+ {
36
+ /**
37
+ * Options getter
38
+ *
39
+ * @return array Dynamic types as option array
40
+ */
41
+ public function toOptionArray()
42
+ {
43
+ $helper = Mage::helper('magesetup');
44
+ return array(
45
+ array(
46
+ 'value' => 0,
47
+ 'label' => $helper->__('No dynamic shipping tax caluclation')
48
+ ),
49
+ array(
50
+ 'value' => FireGento_MageSetup_Model_Tax_Config::USE_HIGHTES_TAX_ON_PRODUCTS,
51
+ 'label' => $helper->__('Use the highest product tax')
52
+ ),
53
+ array(
54
+ 'value' => FireGento_MageSetup_Model_Tax_Config::USE_TAX_DEPENDING_ON_PRODUCT_VALUES,
55
+ 'label' => $helper->__('Use the tax rate of products that make up the biggest amount')
56
+ ),
57
+ );
58
+ }
59
+ }
app/code/community/FireGento/MageSetup/Model/Source/Tax/NewCustomerTaxClass.php ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Tax Source model for new customer tax classes, possibly not created yet
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 2.0.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Tax_NewCustomerTaxClass
35
+ extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
36
+ {
37
+ /**
38
+ * @var array $_options cached options
39
+ */
40
+ protected $_options = array();
41
+
42
+ /**
43
+ * @var string
44
+ */
45
+ protected $_defaultOption = 0;
46
+
47
+ /**
48
+ * Return option array
49
+ *
50
+ * @return array New product tax classes as option array
51
+ */
52
+ public function toOptionArray()
53
+ {
54
+ if (!sizeof($this->_options)) {
55
+ $taxClasses = $this->_getConfigNode('tax_classes', 'default');
56
+ foreach ($taxClasses as $identifier => $taxClass) {
57
+ if ($taxClass['class_type'] != 'CUSTOMER'
58
+ || $taxClass['execute'] != 1) {
59
+ continue;
60
+ }
61
+
62
+ $this->_options[] = array(
63
+ 'value' => $taxClass['class_id'],
64
+ 'label' => $taxClass['class_name'],
65
+ );
66
+ }
67
+ array_unshift($this->_options, array('value' => '', 'label' =>''));
68
+ }
69
+
70
+ return $this->_options;
71
+ }
72
+
73
+ /**
74
+ * Get all options as array
75
+ *
76
+ * @return array New product tax classes as option array
77
+ */
78
+ public function getAllOptions()
79
+ {
80
+ return $this->toOptionArray();
81
+ }
82
+
83
+ /**
84
+ * Get default tax class
85
+ *
86
+ * @return int Default tax class option
87
+ */
88
+ public function getDefaultOption()
89
+ {
90
+ if (!$this->_defaultOption) {
91
+ $taxClasses = $this->_getConfigNode('tax_classes', 'default');
92
+ foreach ($taxClasses as $identifier => $taxClass) {
93
+ if ($taxClass['class_type'] != 'CUSTOMER'
94
+ || $taxClass['execute'] != 1) {
95
+ continue;
96
+ }
97
+
98
+ if ($taxClass['default'] == 1) {
99
+ $this->_defaultOption = $taxClass['class_id'];
100
+ break;
101
+ }
102
+ }
103
+ }
104
+
105
+ return $this->_defaultOption;
106
+
107
+ }
108
+
109
+ /**
110
+ * Get config.xml data
111
+ *
112
+ * @param string $node xml node
113
+ * @param string|null $childNode if set, child node of the first node
114
+ * @return array Config node
115
+ */
116
+ protected function _getConfigNode($node, $childNode = null)
117
+ {
118
+ $configData = $this->getConfigData();
119
+ if ($childNode) {
120
+ return $configData[$node][$childNode];
121
+ } else {
122
+ return $configData[$node];
123
+ }
124
+ }
125
+
126
+ /**
127
+ * Get config.xml data
128
+ *
129
+ * @return array Config data
130
+ */
131
+ public function getConfigData()
132
+ {
133
+ $configData = Mage::getSingleton('magesetup/config')
134
+ ->getNode('default/magesetup')
135
+ ->asArray();
136
+
137
+ return $configData;
138
+ }
139
+ }
app/code/community/FireGento/MageSetup/Model/Source/Tax/NewProductTaxClass.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Tax Source model for new product tax classes, possibly not created yet
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.5.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass
35
+ extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
36
+ {
37
+ /**
38
+ * @var array $_options cached options
39
+ */
40
+ protected $_options = array();
41
+
42
+ /**
43
+ * @var string
44
+ */
45
+ protected $_defaultOption = 0;
46
+
47
+ /**
48
+ * Return option array
49
+ *
50
+ * @return array New product tax classes as option array
51
+ */
52
+ public function toOptionArray()
53
+ {
54
+ if (!sizeof($this->_options)) {
55
+ $taxClasses = $this->_getConfigNode('tax_classes', 'default');
56
+ foreach ($taxClasses as $identifier => $taxClass) {
57
+ if ($taxClass['class_type'] != 'PRODUCT'
58
+ || $taxClass['execute'] != 1
59
+ || strpos($identifier, 'shipping') === 0) {
60
+ continue;
61
+ }
62
+
63
+ $this->_options[] = array(
64
+ 'value' => $taxClass['class_id'],
65
+ 'label' => $taxClass['class_name'],
66
+ );
67
+ }
68
+ array_unshift($this->_options, array('value' => '', 'label' =>''));
69
+ }
70
+
71
+ return $this->_options;
72
+ }
73
+
74
+ /**
75
+ * Get all options as array
76
+ *
77
+ * @return array New product tax classes as option array
78
+ */
79
+ public function getAllOptions()
80
+ {
81
+ return $this->toOptionArray();
82
+ }
83
+
84
+ /**
85
+ * Get default tax class
86
+ *
87
+ * @return int Default tax class option
88
+ */
89
+ public function getDefaultOption()
90
+ {
91
+ if (!$this->_defaultOption) {
92
+ $taxClasses = $this->_getConfigNode('tax_classes', 'default');
93
+ foreach ($taxClasses as $identifier => $taxClass) {
94
+ if ($taxClass['class_type'] != 'PRODUCT'
95
+ || $taxClass['execute'] != 1
96
+ || strpos($identifier, 'shipping') === 0) {
97
+ continue;
98
+ }
99
+
100
+ if ($taxClass['default'] == 1) {
101
+ $this->_defaultOption = $taxClass['class_id'];
102
+ break;
103
+ }
104
+ }
105
+ }
106
+
107
+ return $this->_defaultOption;
108
+
109
+ }
110
+
111
+ /**
112
+ * Get config.xml data
113
+ *
114
+ * @param string $node xml node
115
+ * @param string|null $childNode if set, child node of the first node
116
+ * @return array Config node
117
+ */
118
+ protected function _getConfigNode($node, $childNode = null)
119
+ {
120
+ $configData = $this->getConfigData();
121
+ if ($childNode) {
122
+ return $configData[$node][$childNode];
123
+ } else {
124
+ return $configData[$node];
125
+ }
126
+ }
127
+
128
+ /**
129
+ * Get config.xml data
130
+ *
131
+ * @return array Config data
132
+ */
133
+ public function getConfigData()
134
+ {
135
+ $configData = Mage::getSingleton('magesetup/config')
136
+ ->getNode('default/magesetup')
137
+ ->asArray();
138
+
139
+ return $configData;
140
+ }
141
+ }
app/code/community/FireGento/MageSetup/Model/Source/Tax/ProductTaxClass.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Tax Source model for product tax classes
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.0
33
+ */
34
+ class FireGento_MageSetup_Model_Source_Tax_ProductTaxClass extends Mage_Tax_Model_Class_Source_Product
35
+ {
36
+ /**
37
+ * Retrieve all product tax classes as array
38
+ *
39
+ * @param bool $withEmpty Flag if an empty option should be prepended to the option array
40
+ * @return array Product tax class option array
41
+ */
42
+ public function getAllOptions($withEmpty = false)
43
+ {
44
+ $options = parent::getAllOptions($withEmpty);
45
+ foreach ($options as $optionKey => $option) {
46
+ if (intval($option['value']) <= 0) {
47
+ continue;
48
+ }
49
+
50
+ /* @var $productCollection Mage_Catalog_Model_Resource_Product_Collection */
51
+ $productCollection = Mage::getModel('catalog/product')
52
+ ->getCollection()
53
+ ->addAttributeToFilter('tax_class_id', $option['value'])
54
+ ->setPageSize(1);
55
+
56
+ if (!$productCollection->getSize()) {
57
+ unset($options[$optionKey]);
58
+ }
59
+ }
60
+
61
+ return $options;
62
+ }
63
+ }
app/code/community/FireGento/MageSetup/Model/Tax/Config.php ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Tax config model with new shipping tax class calculation
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.6.2
33
+ */
34
+ class FireGento_MageSetup_Model_Tax_Config extends Mage_Tax_Model_Config
35
+ {
36
+ const XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX = 'tax/classes/shipping_tax_on_product_tax';
37
+ const USE_HIGHTES_TAX_ON_PRODUCTS = 1;
38
+ const USE_TAX_DEPENDING_ON_PRODUCT_VALUES = 2;
39
+
40
+ /**
41
+ * Get tax class id specified for shipping tax estimation based on highest product
42
+ * tax rate of the products in the current customer quote.
43
+ *
44
+ * @param Mage_Core_Model_Store $store Store Model
45
+ * @return int Shipping tax class id
46
+ */
47
+ public function getShippingTaxClass($store = null)
48
+ {
49
+ /** @var Mage_Adminhtml_Model_Session_Quote */
50
+ $adminhtmlSession = Mage::getSingleton('adminhtml/session_quote');
51
+
52
+ /* @var $session Mage_Checkout_Model_Session */
53
+ $session = Mage::getSingleton('checkout/session');
54
+
55
+ if (Mage::app()->getStore()->getId() == Mage_Core_Model_App::ADMIN_STORE_ID && $adminhtmlSession->getQuote()) {
56
+ $quoteItems = $adminhtmlSession->getQuote()->getAllItems();
57
+ } elseif ($session->hasQuote()) {
58
+ $quoteItems = $session->getQuote()->getAllItems();
59
+ } else {
60
+ // This case happens if the store currency is switched by the customer.
61
+ // The quote isn't yet set on the session model at the time collectTotals()
62
+ // by the session because of the changed currency, which in turn ends up in this
63
+ // method, which again triggers collectTotals() by getting the quote from the
64
+ // session model, ending in a recursion loop.
65
+ $quoteItems = array();
66
+ }
67
+ $taxClassIds = array();
68
+ $highestTaxRate = null;
69
+
70
+ // Check if feature is enabled and if there are products in cart
71
+ if (!Mage::getStoreConfigFlag(self::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store)
72
+ || count($quoteItems) == 0
73
+ ) {
74
+ $taxClassId = (int) Mage::getStoreConfig(self::CONFIG_XML_PATH_SHIPPING_TAX_CLASS, $store);
75
+
76
+ return $taxClassId;
77
+ }
78
+
79
+ // Fetch the tax rates from the quote items
80
+ $taxClassSums = array();
81
+ foreach ($quoteItems as $item) {
82
+
83
+ /** @var $item Mage_Sales_Model_Quote_Item */
84
+ if ($item->getParentItem()) {
85
+ continue;
86
+ }
87
+
88
+ if (Mage::getStoreConfig(self::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store)
89
+ == self::USE_TAX_DEPENDING_ON_PRODUCT_VALUES
90
+ ) {
91
+ // sum up all product values grouped by the tax class id
92
+ if (isset($taxClassSums[$item->getTaxClassId()])) {
93
+ $taxClassSums[$item->getTaxClassId()] += $item->getPriceInclTax() * $item->getQty();
94
+ } else {
95
+ $taxClassSums[$item->getTaxClassId()] = $item->getPriceInclTax() * $item->getQty();
96
+ }
97
+ } else {
98
+ $taxPercent = $this->_loadTaxCalculationRate($item);
99
+ if (is_float($taxPercent) && !in_array($taxPercent, $taxClassIds)) {
100
+ $taxClassIds[$taxPercent] = $item->getTaxClassId();
101
+ }
102
+ }
103
+ }
104
+
105
+ if (Mage::getStoreConfig(self::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store)
106
+ == self::USE_TAX_DEPENDING_ON_PRODUCT_VALUES
107
+ ) {
108
+ // get the highest value of the sums and set the taxClass
109
+ arsort($taxClassSums);
110
+ if (count($taxClassSums)) {
111
+ $highestTaxRate = key($taxClassSums);
112
+ }
113
+ } else {
114
+ // Get the highest tax rate
115
+ ksort($taxClassIds);
116
+ if (count($taxClassIds)) {
117
+ $highestTaxRate = array_pop($taxClassIds);
118
+ }
119
+ }
120
+
121
+ if (!$highestTaxRate || is_null($highestTaxRate)) {
122
+ $taxClassId = 0;
123
+ } else {
124
+ $taxClassId = $highestTaxRate;
125
+ }
126
+
127
+ return (int) $taxClassId;
128
+ }
129
+
130
+ /**
131
+ * Gets tax percents for current sales quote item
132
+ *
133
+ * @param Mage_Sales_Model_Quote_Item $item Quote Item
134
+ * @return string Tax percent for the given quote item
135
+ */
136
+ protected function _loadTaxCalculationRate(Mage_Sales_Model_Quote_Item $item)
137
+ {
138
+ $taxPercent = $item->getTaxPercent();
139
+ if (is_null($taxPercent)) {
140
+ $taxClassId = $item->getTaxClassId();
141
+ if ($taxClassId) {
142
+ $request = Mage::getSingleton('tax/calculation')->getRateRequest(null, null, null, null);
143
+ $taxPercent = Mage::getSingleton('tax/calculation')->getRate($request->setProductClassId($taxClassId));
144
+ }
145
+ }
146
+
147
+ if ($taxPercent) {
148
+ return $taxPercent;
149
+ }
150
+
151
+ return 0;
152
+ }
153
+ }
app/code/community/FireGento/MageSetup/Test/Config/Main.php ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 2.0.0
22
+ */
23
+ /**
24
+ * PHPUnit Test Class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 2.0.0
33
+ */
34
+ class FireGento_MageSetup_Test_Config_Main extends EcomDev_PHPUnit_Test_Case_Config
35
+ {
36
+ /**
37
+ * Check it the installed module has the correct module version
38
+ */
39
+ public function testModuleConfig()
40
+ {
41
+ $this->assertModuleVersionGreaterThanOrEquals($this->expected('module')->getVersion());
42
+ $this->assertModuleCodePool($this->expected('module')->getCodePool());
43
+ }
44
+
45
+ /**
46
+ * Check that GermanSetup is not active
47
+ */
48
+ public function testGermanSetupNotActive()
49
+ {
50
+ $this->assertModuleIsNotActive('', 'FireGento_GermanSetup');
51
+ }
52
+
53
+ /**
54
+ * Check if the block aliases are returning the correct class names
55
+ */
56
+ public function testBlockAliases()
57
+ {
58
+ $this->assertBlockAlias('magesetup/adminhtml_newsletter_subscriber_status_grid', 'FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid');
59
+ $this->assertBlockAlias('magesetup/adminhtml_newsletter_subscriber_status', 'FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status');
60
+ $this->assertBlockAlias('magesetup/adminhtml_magesetup', 'FireGento_MageSetup_Block_Adminhtml_Magesetup');
61
+ $this->assertBlockAlias('magesetup/adminhtml_notifications', 'FireGento_MageSetup_Block_Adminhtml_Notifications');
62
+
63
+ $this->assertBlockAlias('magesetup/bundle_catalog_product_price_abstract', 'FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract');
64
+ $this->assertBlockAlias('magesetup/bundle_catalog_product_price', 'FireGento_MageSetup_Block_Bundle_Catalog_Product_Price');
65
+
66
+ $this->assertBlockAlias('magesetup/catalog_product_price_abstract', 'FireGento_MageSetup_Block_Catalog_Product_Price_Abstract');
67
+ $this->assertBlockAlias('magesetup/catalog_product_price', 'FireGento_MageSetup_Block_Catalog_Product_Price');
68
+
69
+ $this->assertBlockAlias('magesetup/checkout_agreements', 'FireGento_MageSetup_Block_Checkout_Agreements');
70
+ $this->assertBlockAlias('magesetup/checkout_information', 'FireGento_MageSetup_Block_Checkout_Information');
71
+
72
+ $this->assertBlockAlias('magesetup/customer_account_agreements', 'FireGento_MageSetup_Block_Customer_Account_Agreements');
73
+
74
+ $this->assertBlockAlias('magesetup/imprint_content', 'FireGento_MageSetup_Block_Imprint_Content');
75
+ $this->assertBlockAlias('magesetup/imprint_field', 'FireGento_MageSetup_Block_Imprint_Field');
76
+ }
77
+
78
+ /**
79
+ * Check if the helper aliases are returning the correct class names
80
+ */
81
+ public function testHelperAliases()
82
+ {
83
+ $this->assertHelperAlias('magesetup', 'FireGento_MageSetup_Helper_Data');
84
+ $this->assertHelperAlias('magesetup/catalog_product_configuration', 'FireGento_MageSetup_Helper_Catalog_Product_Configuration');
85
+ $this->assertHelperAlias('magesetup/checkout_data', 'FireGento_MageSetup_Helper_Checkout_Data');
86
+ }
87
+
88
+ /**
89
+ * Check if the helper aliases are returning the correct class names
90
+ */
91
+ public function testModelAliases()
92
+ {
93
+ $this->assertModelAlias('magesetup/newsletter_subscriber_status', 'FireGento_MageSetup_Model_Newsletter_Subscriber_Status');
94
+ $this->assertResourceModelAlias('magesetup/newsletter_subscriber_status', 'FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status');
95
+ $this->assertResourceModelAlias('magesetup/newsletter_subscriber_status_collection', 'FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection');
96
+
97
+ $this->assertModelAlias('magesetup/newsletter_observer', 'FireGento_MageSetup_Model_Newsletter_Observer');
98
+
99
+ $this->assertModelAlias('magesetup/setup_abstract', 'FireGento_MageSetup_Model_Setup_Abstract');
100
+ $this->assertModelAlias('magesetup/setup_agreements', 'FireGento_MageSetup_Model_Setup_Agreements');
101
+ $this->assertModelAlias('magesetup/setup_cms', 'FireGento_MageSetup_Model_Setup_Cms');
102
+ $this->assertModelAlias('magesetup/setup_email', 'FireGento_MageSetup_Model_Setup_Email');
103
+ $this->assertModelAlias('magesetup/setup_systemconfig', 'FireGento_MageSetup_Model_Setup_Systemconfig');
104
+ $this->assertModelAlias('magesetup/setup_tax', 'FireGento_MageSetup_Model_Setup_Tax');
105
+
106
+ $this->assertModelAlias('magesetup/source_cms_block', 'FireGento_MageSetup_Model_Source_Cms_Block');
107
+ $this->assertModelAlias('magesetup/source_cms_page', 'FireGento_MageSetup_Model_Source_Cms_Page');
108
+ $this->assertModelAlias('magesetup/source_tax_dynamicType', 'FireGento_MageSetup_Model_Source_Tax_DynamicType');
109
+ $this->assertModelAlias('magesetup/source_tax_newProductTaxClass', 'FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass');
110
+ $this->assertModelAlias('magesetup/source_tax_productTaxClass', 'FireGento_MageSetup_Model_Source_Tax_ProductTaxClass');
111
+ $this->assertModelAlias('magesetup/source_agreementType', 'FireGento_MageSetup_Model_Source_AgreementType');
112
+
113
+
114
+ $this->assertModelAlias('magesetup/config', 'FireGento_MageSetup_Model_Config');
115
+ $this->assertModelAlias('magesetup/observer', 'FireGento_MageSetup_Model_Observer');
116
+ $this->assertModelAlias('magesetup/setup', 'FireGento_MageSetup_Model_Setup');
117
+ }
118
+
119
+ /**
120
+ * Check if the rewrites are returning the correct class names
121
+ */
122
+ public function testRewrites()
123
+ {
124
+ $this->assertBlockAlias('googleanalytics/ga', 'FireGento_MageSetup_Block_Ga');
125
+
126
+ $this->assertHelperAlias('catalog/product_configuration', 'FireGento_MageSetup_Helper_Catalog_Product_Configuration');
127
+ $this->assertHelperAlias('checkout/data', 'FireGento_MageSetup_Helper_Checkout_Data');
128
+
129
+ $this->assertModelAlias('tax/config', 'FireGento_MageSetup_Model_Tax_Config');
130
+ }
131
+ }
app/code/community/FireGento/MageSetup/Test/Config/Main/expectations/testModuleConfig.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ module:
2
+ version: 2.0.0
3
+ code_pool: community
app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 2.0.0
22
+ */
23
+ /**
24
+ * PHPUnit Test Class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 2.0.0
33
+ */
34
+ class FireGento_MageSetup_Test_Model_Source_AgreementType extends EcomDev_PHPUnit_Test_Case
35
+ {
36
+ /**
37
+ * @var FireGento_MageSetup_Model_Source_AgreementType
38
+ */
39
+ protected $_model;
40
+
41
+ /**
42
+ * Sets up the model class
43
+ */
44
+ protected function setUp()
45
+ {
46
+ parent::setUp();
47
+ $this->_model = Mage::getModel('magesetup/source_agreementType');
48
+ }
49
+
50
+ /**
51
+ * Test the toOptionArray method
52
+ */
53
+ public function testToOptionArray()
54
+ {
55
+ $actual = $this->_model->toOptionArray();
56
+ $expected = $this->expected('result')->getData();
57
+
58
+ $this->assertEquals(
59
+ $expected,
60
+ $actual
61
+ );
62
+ }
63
+
64
+ /**
65
+ * Test the getOptionArray method
66
+ */
67
+ public function testGetOptionArray()
68
+ {
69
+ $actual = $this->_model->getOptionArray();
70
+ $expected = $this->expected('result')->getData();
71
+
72
+ $this->assertEquals(
73
+ $expected,
74
+ $actual
75
+ );
76
+ }
77
+ }
app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testGetOptionArray.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ result:
2
+ 0: "On checkout (Magento Default)"
3
+ 1: "On customer registration (or on checkout, if customer not registered before)"
4
+ 2: "On customer registration and on checkout"
5
+ 3: "Nowhere"
app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testToOptionArray.yaml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ result:
2
+ -
3
+ value: 0
4
+ label: "On checkout (Magento Default)"
5
+ -
6
+ value: 1
7
+ label: "On customer registration (or on checkout, if customer not registered before)"
8
+ -
9
+ value: 2
10
+ label: "On customer registration and on checkout"
11
+ -
12
+ value: 3
13
+ label: "Nowhere"
app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 2.0.0
22
+ */
23
+ /**
24
+ * PHPUnit Test Class
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 2.0.0
33
+ */
34
+ class FireGento_MageSetup_Test_Model_Source_Tax_DynamicType extends EcomDev_PHPUnit_Test_Case
35
+ {
36
+ /**
37
+ * @var FireGento_MageSetup_Model_Source_Tax_DynamicType
38
+ */
39
+ protected $_model;
40
+
41
+ /**
42
+ * Sets up the model class
43
+ */
44
+ protected function setUp()
45
+ {
46
+ parent::setUp();
47
+ $this->_model = Mage::getModel('magesetup/source_tax_dynamicType');
48
+ }
49
+
50
+ /**
51
+ * Test the toOptionArray method
52
+ */
53
+ public function testToOptionArray()
54
+ {
55
+ $actual = $this->_model->toOptionArray();
56
+ $expected = $this->expected('result')->getData();
57
+
58
+ $this->assertEquals(
59
+ $expected,
60
+ $actual
61
+ );
62
+ }
63
+ }
app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType/expectations/testToOptionArray.yaml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ result:
2
+ -
3
+ value: 0
4
+ label: "No dynamic shipping tax caluclation"
5
+ -
6
+ value: 1
7
+ label: "Use the highest product tax"
8
+ -
9
+ value: 2
10
+ label: "Use the tax rate of products that make up the biggest amount"
app/code/community/FireGento/MageSetup/Test/features/product_list.feature ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Feature: Product List
2
+ As a website visitor
3
+ I want to see products in a category
4
+ So that I can see which products are offered and which tax rate they have
5
+
6
+ Scenario: Tax Rate without shipping cost link
7
+ Given I set config value for "catalog/price/cms_page_shipping" to "" in "default" scope
8
+ And the cache is clean
9
+ When I am on "/furniture.html"
10
+ Then I should not see text "Inkl. 19% MwSt., zzgl. Versandkosten"
11
+ Then I should see text "Inkl. 19% MwSt."
12
+
13
+ Scenario: Tax Rate with not included shipping cost link
14
+ Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope
15
+ And I set config value for "catalog/price/including_shipping_costs" to "0" in "default" scope
16
+ And the cache is clean
17
+ When I am on "/furniture.html"
18
+ Then I should see text "Inkl. 19% MwSt., zzgl. Versandkosten"
19
+
20
+ Scenario: Tax Rate with included shipping cost link
21
+ Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope
22
+ And I set config value for "catalog/price/including_shipping_costs" to "1" in "default" scope
23
+ And the cache is clean
24
+ When I am on "/furniture.html"
25
+ Then I should see text "Inkl. 19% MwSt., inkl. Versandkosten"
app/code/community/FireGento/MageSetup/Test/features/product_view.feature ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Feature: Product List
2
+ As a website visitor
3
+ I want to see a product detail page
4
+ So that I can see what the product costs and which tax rate the product has
5
+
6
+ Scenario: Tax Rate without shipping cost link
7
+ Given I set config value for "catalog/price/cms_page_shipping" to "" in "default" scope
8
+ And the cache is clean
9
+ When I am on "/ottoman.html"
10
+ Then I should not see text "Inkl. 19% MwSt., zzgl. Versandkosten"
11
+ Then I should see text "Inkl. 19% MwSt."
12
+
13
+ Scenario: Tax Rate with not included shipping cost link
14
+ Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope
15
+ And I set config value for "catalog/price/including_shipping_costs" to "0" in "default" scope
16
+ And the cache is clean
17
+ When I am on "/ottoman.html"
18
+ Then I should see text "Inkl. 19% MwSt., zzgl. Versandkosten"
19
+
20
+ Scenario: Tax Rate with included shipping cost link
21
+ Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope
22
+ And I set config value for "catalog/price/including_shipping_costs" to "1" in "default" scope
23
+ And the cache is clean
24
+ When I am on "/ottoman.html"
25
+ Then I should see text "Inkl. 19% MwSt., inkl. Versandkosten"
app/code/community/FireGento/MageSetup/controllers/Adminhtml/NewsletterController.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.1.4
22
+ */
23
+ /**
24
+ * Newsletter Subscriber Status Adminhtml Controller
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.1.4
33
+ */
34
+ class FireGento_MageSetup_Adminhtml_NewsletterController extends Mage_Adminhtml_Controller_Action
35
+ {
36
+ /**
37
+ * Displays the newsletter subscribers status history
38
+ */
39
+ public function indexAction()
40
+ {
41
+ $this->_title($this->__('Newsletter'))
42
+ ->_title($this->__('Newsletter Subscribers Status History'));
43
+
44
+ if ($this->getRequest()->getParam('ajax')) {
45
+ $this->_forward('grid');
46
+
47
+ return;
48
+ }
49
+
50
+ $this->loadLayout();
51
+
52
+ $this->_setActiveMenu('newsletter/subscriber_status');
53
+
54
+ $this->_addBreadcrumb(
55
+ Mage::helper('newsletter')->__('Newsletter'),
56
+ Mage::helper('newsletter')->__('Newsletter')
57
+ );
58
+ $this->_addBreadcrumb(
59
+ Mage::helper('newsletter')->__('Subscribers'),
60
+ Mage::helper('newsletter')->__('Subscribers Status History')
61
+ );
62
+
63
+ $this->_addContent(
64
+ $this->getLayout()->createBlock('magesetup/adminhtml_newsletter_subscriber_status', 'subscriber_status')
65
+ );
66
+
67
+ $this->renderLayout();
68
+ }
69
+
70
+ /**
71
+ * Retrieve the new grid layout via ajax requests
72
+ */
73
+ public function gridAction()
74
+ {
75
+ $this->loadLayout();
76
+ $this->getResponse()->setBody(
77
+ $this->getLayout()->createBlock('magesetup/adminhtml_newsletter_subscriber_status_grid')->toHtml()
78
+ );
79
+ }
80
+ }
app/code/community/FireGento/MageSetup/controllers/FrontendController.php ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Adminhtml Controller for dislaying a form for some actions
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.4.0
33
+ */
34
+ class FireGento_MageSetup_FrontendController extends Mage_Core_Controller_Front_Action
35
+ {
36
+ /**
37
+ * Shows the given agreement
38
+ */
39
+ public function agreementsAction()
40
+ {
41
+ $this->loadLayout();
42
+ if ($id = $this->getRequest()->getParam('id')) {
43
+ /* @var $processor Mage_Cms_Model_Template_Filter */
44
+ $processor = Mage::getModel('cms/template_filter');
45
+
46
+ /* @var $agreement Mage_Checkout_Model_Agreement */
47
+ $agreement = Mage::getModel('checkout/agreement')->load($id);
48
+
49
+ $headBlock = $this->getLayout()->getBlock('head');
50
+ $headBlock->setTitle(
51
+ $headBlock->escapeHtml($processor->filter($agreement->getCheckboxText()))
52
+ );
53
+
54
+ $agreementText = $agreement->getContent();
55
+ if (!$agreement->getIsHtml()) {
56
+ $agreementText = $headBlock->escapeHtml($agreementText);
57
+ }
58
+
59
+ $agreeBlock = $this->getLayout()->getBlock('agreement');
60
+ $agreeBlock->setText($processor->filter($agreementText));
61
+ }
62
+ $this->renderLayout();
63
+ }
64
+ }
app/code/community/FireGento/MageSetup/controllers/MagesetupController.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Adminhtml Controller for dislaying a form for some actions
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.4.0
33
+ */
34
+ class FireGento_MageSetup_MagesetupController extends Mage_Adminhtml_Controller_Action
35
+ {
36
+ /**
37
+ * Basic action: setup form
38
+ */
39
+ public function indexAction()
40
+ {
41
+ $helper = Mage::helper('magesetup');
42
+
43
+ if (!Mage::getStoreConfig('magesetup/is_initialized')) {
44
+ Mage::getSingleton('adminhtml/session')->addNotice(
45
+ $this->__('If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.')
46
+ );
47
+ }
48
+
49
+ $this->_title($helper->__('System'))
50
+ ->_title($helper->__('MageSetup'))
51
+ ->_title($helper->__('Setup'));
52
+
53
+ $this->loadLayout()
54
+ ->_setActiveMenu('system/magesetup/setup')
55
+ ->_addBreadcrumb($helper->__('MageSetup'), $helper->__('MageSetup'))
56
+ ->renderLayout();
57
+ }
58
+
59
+ /**
60
+ * Basic action: setup save action
61
+ * Will be called from form, rendered in indexAction
62
+ */
63
+ public function saveAction()
64
+ {
65
+ if ($this->getRequest()->isPost()) {
66
+ $params = $this->_getParams();
67
+
68
+ try {
69
+ /* @var $setupModel FireGento_MageSetup_Model_Setup */
70
+ $setupModel = Mage::getModel('magesetup/setup');
71
+ $setupModel->setup($params, true);
72
+ } catch (Exception $e) {
73
+ $this->_getSession()->addError($e->getMessage());
74
+ Mage::logException($e);
75
+ }
76
+ }
77
+
78
+ $this->_redirect('*/*');
79
+ }
80
+
81
+ /**
82
+ * Recommended extensions
83
+ */
84
+ public function extensionsAction()
85
+ {
86
+ $helper = Mage::helper('magesetup');
87
+
88
+ $this->_title($helper->__('System'))
89
+ ->_title($helper->__('MageSetup'))
90
+ ->_title($helper->__('Recommended Extensions'));
91
+
92
+ $this->loadLayout()
93
+ ->_setActiveMenu('system/magesetup/extensions')
94
+ ->_addBreadcrumb($helper->__('MageSetup'), $helper->__('MageSetup'))
95
+ ->renderLayout();
96
+ }
97
+
98
+ /**
99
+ * @return array
100
+ */
101
+ protected function _getParams()
102
+ {
103
+ $params = $this->getRequest()->getParams();
104
+
105
+ if (!isset($params['systemconfig'])) {
106
+ $params['systemconfig'] = false;
107
+ }
108
+
109
+ if (!isset($params['tax'])) {
110
+ $params['tax'] = false;
111
+ }
112
+
113
+ if (!isset($params['cms'])) {
114
+ $params['cms'] = false;
115
+ }
116
+
117
+ if (!isset($params['agreements'])) {
118
+ $params['agreements'] = false;
119
+ }
120
+
121
+ if (!isset($params['email'])) {
122
+ $params['email'] = false;
123
+ }
124
+
125
+ return $params;
126
+ }
127
+ }
app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.0-2.0.1.php ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 2.0.1
22
+ */
23
+
24
+ /**
25
+ * Data upgrade script; Adds Italian region support to Magento ecosystem
26
+ *
27
+ * @category FireGento
28
+ * @package FireGento_MageSetup
29
+ * @author FireGento Team <team@firegento.com>
30
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
31
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
32
+ * @version $Id:$
33
+ * @since 2.0.1
34
+ */
35
+
36
+ /* @var $this Mage_Eav_Model_Entity_Setup */
37
+ $installer = $this;
38
+
39
+ $data = array(
40
+ 'AG' => 'Agrigento',
41
+ 'AL' => 'Alessandria',
42
+ 'AN' => 'Ancona',
43
+ 'AO' => 'Aosta',
44
+ 'AR' => 'Arezzo',
45
+ 'AP' => 'Ascoli Piceno',
46
+ 'AT' => 'Asti',
47
+ 'AV' => 'Avellino',
48
+ 'BA' => 'Bari',
49
+ 'BT' => 'Barletta-Andria-Trani',
50
+ 'BL' => 'Belluno',
51
+ 'BN' => 'Benevento',
52
+ 'BG' => 'Bergamo',
53
+ 'BI' => 'Biella',
54
+ 'BO' => 'Bologna',
55
+ 'BZ' => 'Bolzano',
56
+ 'BS' => 'Brescia',
57
+ 'BR' => 'Brindisi',
58
+ 'CA' => 'Cagliari',
59
+ 'CL' => 'Caltanissetta',
60
+ 'CB' => 'Campobasso',
61
+ 'CI' => 'Carbonia-Iglesias',
62
+ 'CE' => 'Caserta',
63
+ 'CT' => 'Catania',
64
+ 'CZ' => 'Catanzaro',
65
+ 'CH' => 'Chieti',
66
+ 'CO' => 'Como',
67
+ 'CS' => 'Cosenza',
68
+ 'CR' => 'Cremona',
69
+ 'KR' => 'Crotone',
70
+ 'CN' => 'Cuneo',
71
+ 'EN' => 'Enna',
72
+ 'FM' => 'Fermo',
73
+ 'FE' => 'Ferrara',
74
+ 'FI' => 'Firenze',
75
+ 'FG' => 'Foggia',
76
+ 'FC' => 'Forlì-Cesena',
77
+ 'FR' => 'Frosinone',
78
+ 'GE' => 'Genova',
79
+ 'GO' => 'Gorizia',
80
+ 'GR' => 'Grosseto',
81
+ 'IM' => 'Imperia',
82
+ 'IS' => 'Isernia',
83
+ 'SP' => 'La Spezia',
84
+ 'AQ' => 'L\'Aquila',
85
+ 'LT' => 'Latina',
86
+ 'LE' => 'Lecce',
87
+ 'LC' => 'Lecco',
88
+ 'LI' => 'Livorno',
89
+ 'LO' => 'Lodi',
90
+ 'LU' => 'Lucca',
91
+ 'MC' => 'Macerata',
92
+ 'MN' => 'Mantova',
93
+ 'MS' => 'Massa-Carrara',
94
+ 'MT' => 'Matera',
95
+ 'ME' => 'Messina',
96
+ 'MI' => 'Milano',
97
+ 'MO' => 'Modena',
98
+ 'MB' => 'Monza e Brianza',
99
+ 'NA' => 'Napoli',
100
+ 'NO' => 'Novara',
101
+ 'NU' => 'Nuoro',
102
+ 'OT' => 'Olbia-Tempio',
103
+ 'OR' => 'Oristano',
104
+ 'PD' => 'Padova',
105
+ 'PA' => 'Palermo',
106
+ 'PR' => 'Parma',
107
+ 'PV' => 'Pavia',
108
+ 'PG' => 'Perugia',
109
+ 'PU' => 'Pesaro e Urbino',
110
+ 'PE' => 'Pescara',
111
+ 'PC' => 'Piacenza',
112
+ 'PI' => 'Pisa',
113
+ 'PT' => 'Pistoia',
114
+ 'PN' => 'Pordenone',
115
+ 'PZ' => 'Potenza',
116
+ 'PO' => 'Prato',
117
+ 'RG' => 'Ragusa',
118
+ 'RA' => 'Ravenna',
119
+ 'RC' => 'Reggio Calabria',
120
+ 'RE' => 'Reggio Emilia',
121
+ 'RI' => 'Rieti',
122
+ 'RN' => 'Rimini',
123
+ 'RM' => 'Roma',
124
+ 'RO' => 'Rovigo',
125
+ 'SA' => 'Salerno',
126
+ 'VS' => 'Medio Campidano',
127
+ 'SS' => 'Sassari',
128
+ 'SV' => 'Savona',
129
+ 'SI' => 'Siena',
130
+ 'SR' => 'Siracusa',
131
+ 'SO' => 'Sondrio',
132
+ 'TA' => 'Taranto',
133
+ 'TE' => 'Teramo',
134
+ 'TR' => 'Terni',
135
+ 'TO' => 'Torino',
136
+ 'OG' => 'Ogliastra',
137
+ 'TP' => 'Trapani',
138
+ 'TN' => 'Trento',
139
+ 'TV' => 'Treviso',
140
+ 'TS' => 'Trieste',
141
+ 'UD' => 'Udine',
142
+ 'VA' => 'Varese',
143
+ 'VE' => 'Venezia',
144
+ 'VB' => 'Verbano-Cusio-Ossola',
145
+ 'VC' => 'Vercelli',
146
+ 'VR' => 'Verona',
147
+ 'VV' => 'Vibo Valentia',
148
+ 'VI' => 'Vicenza',
149
+ 'VT' => 'Viterbo',
150
+ );
151
+
152
+ /* @var $region Mage_Directory_Model_Region */
153
+ $region = Mage::getModel('directory/region');
154
+
155
+ $regionTable = $installer->getTable('directory/country_region');
156
+ $regionNameTable = $installer->getTable('directory/country_region_name');
157
+
158
+ foreach ($data as $code => $name) {
159
+ $region->loadByCode($code, 'IT');
160
+ if ($region->getId()) {
161
+ continue;
162
+ }
163
+
164
+ $bind = array(
165
+ 'country_id' => 'IT',
166
+ 'code' => $code,
167
+ 'default_name' => $name,
168
+ );
169
+ $installer->getConnection()->insert($regionTable, $bind);
170
+ $regionId = $installer->getConnection()->lastInsertId($regionTable);
171
+
172
+ $bind = array(
173
+ 'locale' => 'en_US',
174
+ 'region_id' => $regionId,
175
+ 'name' => $name,
176
+ );
177
+ $installer->getConnection()->insert($regionNameTable, $bind);
178
+ }
app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.1-2.0.2.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 2.0.1
22
+ */
23
+
24
+ /**
25
+ * Data upgrade script; for migration from GermanSetup to MageSetup
26
+ *
27
+ * @category FireGento
28
+ * @package FireGento_MageSetup
29
+ * @author FireGento Team <team@firegento.com>
30
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
31
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
32
+ * @version $Id:$
33
+ * @since 2.0.2
34
+ */
35
+
36
+ /* @var $this Mage_Eav_Model_Entity_Setup */
37
+ $installer = $this;
38
+
39
+ $installer->startSetup();
40
+
41
+ if (Mage::getStoreConfig('germansetup/is_initialized')) {
42
+ $this->setConfigData('magesetup/is_initialized', 1);
43
+ }
44
+
45
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/etc/adminhtml.xml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <menu>
4
+ <newsletter>
5
+ <children>
6
+ <subscriber_status translate="title" module="magesetup">
7
+ <title>Newsletter Subscribers Status History</title>
8
+ <action>magesetup/adminhtml_newsletter/</action>
9
+ </subscriber_status>
10
+ </children>
11
+ </newsletter>
12
+ </menu>
13
+ <acl>
14
+ <resources>
15
+ <admin>
16
+ <children>
17
+ <newsletter>
18
+ <children>
19
+ <subscriber_status translate="title" module="magesetup">
20
+ <title>Newsletter Subscribers Status History</title>
21
+ </subscriber_status>
22
+ </children>
23
+ </newsletter>
24
+ </children>
25
+ </admin>
26
+ </resources>
27
+ </acl>
28
+ </config>
app/code/community/FireGento/MageSetup/etc/at/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>Neues Admin-Passwort</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Admin-Passwort zurücksetzen</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Währung Aktualisierung</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>Neues Konto</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Passwort Erinnerung</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>Neues Konto Aktivierung </template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>Neues Konto Bestätigung</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>Neues Passwort</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Kunden Konto Passwort Zurücksetzen Bestätigung</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>Neue Bestellung</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>Neue Bestellung Gast</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Bestellung Aktualsierung</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Bestellung Aktualsierung Gast</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>Neue Rechnung</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>Neue Rechnung Gast</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Rechnung Aktualisierung</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Rechnung Aktualisierung Gast</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>Neue Gutschrift</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>Neue Gutschrift Gast</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Gutschrift Aktualisierung</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Gutschrift Aktualisierung Gast</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>Neue Lieferung</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>Neue Lieferung Gast</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Lieferung Aktualisierung</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Lieferung Aktualisierung Gast</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Zahlung fehlgeschlagen</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Protokoll Bereinigung Warnungen</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Newsletter Anmeldung Bestätigung</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Newsletter Anmeldung Erfolg</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Newsletter Abmeldung Erfolg</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Wunschliste gemeinsam nutzen</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Produkt an einen Freund verschicken</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Kontaktformular</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Sitemap Generierung Warnungen</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Produkt wieder verfügbar</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Produkt Preisänderung</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Produkt Cron Fehler</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Kundeneinladung [Invitation]</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>OAuth Tokenänderung [Invitation]</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/at/tax.xml ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_full_tax tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_users,customers_companies"
32
+ tax_product_class="products_rate_1,shipping_rate_1">
33
+ <execute>1</execute>
34
+ <code>Kunden kaufen vollbesteuerte Artikel</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_full_tax>
38
+ <products_reduced_tax tax_rate="tax_calculation_rate_2"
39
+ tax_customer_class="customers_end_users,customers_companies"
40
+ tax_product_class="products_rate_2,shipping_rate_2">
41
+ <execute>1</execute>
42
+ <code>Kunden kaufen ermäßigtbesteuerte Artikel</code>
43
+ <priority>2</priority>
44
+ <position>0</position>
45
+ </products_reduced_tax>
46
+ <products_no_vat tax_rate="tax_calculation_rate_3"
47
+ tax_customer_class="customers_companies_no_vat"
48
+ tax_product_class="product_rate_1,products_rate_2,shipping_rate_1,shipping_rate_2">
49
+ <execute>1</execute>
50
+ <code>Ust.-befreite Unternehmen kaufen voll- und ermäßigtbesteuerte Artikel</code>
51
+ <priority>2</priority>
52
+ <position>0</position>
53
+ </products_no_vat>
54
+ </default>
55
+ </tax_calculation_rules>
56
+
57
+ <tax_classes>
58
+ <default>
59
+ <products_rate_1>
60
+ <execute>1</execute>
61
+ <class_id>1</class_id>
62
+ <class_name>Vollbesteuerte Artikel</class_name>
63
+ <class_type>PRODUCT</class_type>
64
+ <default>1</default>
65
+ </products_rate_1>
66
+ <products_rate_2>
67
+ <execute>1</execute>
68
+ <class_id>2</class_id>
69
+ <class_name>Ermäßigtbesteuerte Artikel</class_name>
70
+ <class_type>PRODUCT</class_type>
71
+ <default>0</default>
72
+ </products_rate_2>
73
+ <shipping_rate_1>
74
+ <execute>1</execute>
75
+ <class_id>3</class_id>
76
+ <class_name>Vollbesteuerter Versand</class_name>
77
+ <class_type>PRODUCT</class_type>
78
+ <default>0</default>
79
+ </shipping_rate_1>
80
+ <shipping_rate_2>
81
+ <execute>1</execute>
82
+ <class_id>4</class_id>
83
+ <class_name>Ermäßigtbesteuerter Versand</class_name>
84
+ <class_type>PRODUCT</class_type>
85
+ <default>0</default>
86
+ </shipping_rate_2>
87
+ <customers_end_users>
88
+ <execute>1</execute>
89
+ <class_id>5</class_id>
90
+ <class_name>Endkunden</class_name>
91
+ <class_type>CUSTOMER</class_type>
92
+ </customers_end_users>
93
+ <customers_companies>
94
+ <execute>1</execute>
95
+ <class_id>6</class_id>
96
+ <class_name>USt.-pflichtige Unternehmen</class_name>
97
+ <class_type>CUSTOMER</class_type>
98
+ </customers_companies>
99
+ <customers_companies_no_vat>
100
+ <execute>1</execute>
101
+ <class_id>7</class_id>
102
+ <class_name>USt.-befreite Unternehmen</class_name>
103
+ <class_type>CUSTOMER</class_type>
104
+ </customers_companies_no_vat>
105
+ </default>
106
+ </tax_classes>
107
+
108
+ <tax_calculation_rates>
109
+ <default>
110
+ <tax_calculation_rate_1>
111
+ <execute>1</execute>
112
+ <tax_region_id>0</tax_region_id>
113
+ <tax_postcode>*</tax_postcode>
114
+ <label>MwSt.</label>
115
+ <rate>20</rate>
116
+ </tax_calculation_rate_1>
117
+
118
+ <tax_calculation_rate_2>
119
+ <execute>1</execute>
120
+ <tax_region_id>0</tax_region_id>
121
+ <tax_postcode>*</tax_postcode>
122
+ <label>reduzierte MwSt.</label>
123
+ <rate>10</rate>
124
+ </tax_calculation_rate_2>
125
+
126
+ <tax_calculation_rate_3>
127
+ <execute>1</execute>
128
+ <tax_region_id>0</tax_region_id>
129
+ <tax_postcode>*</tax_postcode>
130
+ <label>ohne MwSt.</label>
131
+ <rate>0</rate>
132
+ </tax_calculation_rate_3>
133
+ </default>
134
+
135
+ </tax_calculation_rates>
136
+
137
+ <tax_config>
138
+ <default>
139
+ <general__country__default>AT</general__country__default>
140
+ <tax__classes__shipping_tax_class>3</tax__classes__shipping_tax_class>
141
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
142
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
143
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
144
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
145
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
146
+ <tax__defaults__country>AT</tax__defaults__country>
147
+ <tax__defaults__region>95</tax__defaults__region>
148
+ <tax__defaults__postcode>1234</tax__defaults__postcode>
149
+ <tax__display__type>2</tax__display__type>
150
+ <tax__display__shipping>2</tax__display__shipping>
151
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
152
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
153
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
154
+ <tax__cart_display__price>2</tax__cart_display__price>
155
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
156
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
157
+ <tax__sales_display__price>2</tax__sales_display__price>
158
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
159
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
160
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
161
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
162
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
163
+ <shipping__origin__country_id>AT</shipping__origin__country_id>
164
+ <shipping__origin__region_id>95</shipping__origin__region_id>
165
+ <shipping__origin__postcode>1234</shipping__origin__postcode>
166
+ <shipping__origin__city>Musterstadt</shipping__origin__city>
167
+ </default>
168
+ </tax_config>
169
+ </magesetup>
170
+ </default>
171
+ </config>
app/code/community/FireGento/MageSetup/etc/ch/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>Neues Admin-Passwort</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Admin-Passwort zurücksetzen</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Währung Aktualisierung</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>Neues Konto</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Passwort Erinnerung</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>Neues Konto Aktivierung </template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>Neues Konto Bestätigung</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>Neues Passwort</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Kunden Konto Passwort Zurücksetzen Bestätigung</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>Neue Bestellung</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>Neue Bestellung Gast</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Bestellung Aktualsierung</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Bestellung Aktualsierung Gast</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>Neue Rechnung</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>Neue Rechnung Gast</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Rechnung Aktualisierung</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Rechnung Aktualisierung Gast</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>Neue Gutschrift</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>Neue Gutschrift Gast</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Gutschrift Aktualisierung</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Gutschrift Aktualisierung Gast</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>Neue Lieferung</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>Neue Lieferung Gast</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Lieferung Aktualisierung</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Lieferung Aktualisierung Gast</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Zahlung fehlgeschlagen</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Protokoll Bereinigung Warnungen</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Newsletter Anmeldung Bestätigung</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Newsletter Anmeldung Erfolg</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Newsletter Abmeldung Erfolg</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Wunschliste gemeinsam nutzen</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Produkt an einen Freund verschicken</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Kontaktformular</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Sitemap Generierung Warnungen</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Produkt wieder verfügbar</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Produkt Preisänderung</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Produkt Cron Fehler</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Kundeneinladung [Invitation]</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>OAuth Tokenänderung [Invitation]</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/ch/tax.xml ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_full_tax tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_users,customers_companies"
32
+ tax_product_class="products_rate_1,shipping_rate_1">
33
+ <execute>1</execute>
34
+ <code>Kunden kaufen vollbesteuerte Artikel</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_full_tax>
38
+ <products_reduced_tax tax_rate="tax_calculation_rate_2"
39
+ tax_customer_class="customers_end_users,customers_companies"
40
+ tax_product_class="products_rate_2">
41
+ <execute>1</execute>
42
+ <code>Kunden kaufen ermäßigtbesteuerte Artikel</code>
43
+ <priority>2</priority>
44
+ <position>0</position>
45
+ </products_reduced_tax>
46
+ <products_no_vat tax_rate="tax_calculation_rate_3"
47
+ tax_customer_class="customers_companies_no_vat"
48
+ tax_product_class="products_rate_1,products_rate_2,shipping_rate_1">
49
+ <execute>1</execute>
50
+ <code>Ust.-befreite Unternehmen kaufen voll- und ermäßigtbesteuerte Artikel</code>
51
+ <priority>2</priority>
52
+ <position>0</position>
53
+ </products_no_vat>
54
+ </default>
55
+ </tax_calculation_rules>
56
+
57
+ <tax_classes>
58
+ <default>
59
+ <products_rate_1>
60
+ <execute>1</execute>
61
+ <class_id>1</class_id>
62
+ <class_name>Vollbesteuerte Artikel</class_name>
63
+ <class_type>PRODUCT</class_type>
64
+ <default>1</default>
65
+ </products_rate_1>
66
+ <products_rate_2>
67
+ <execute>1</execute>
68
+ <class_id>2</class_id>
69
+ <class_name>Ermäßigtbesteuerte Artikel</class_name>
70
+ <class_type>PRODUCT</class_type>
71
+ <default>0</default>
72
+ </products_rate_2>
73
+ <shipping_rate_1>
74
+ <execute>1</execute>
75
+ <class_id>3</class_id>
76
+ <class_name>Vollbesteuerter Versand</class_name>
77
+ <class_type>PRODUCT</class_type>
78
+ <default>0</default>
79
+ </shipping_rate_1>
80
+ <!--<shipping_rate_2>&lt;!&ndash; This class doesn't exist or am I wrong? &ndash;&gt;-->
81
+ <!--<execute>1</execute>-->
82
+ <!--<class_id>4</class_id>-->
83
+ <!--<class_name>Ermäßigtbesteuerter Versand</class_name>-->
84
+ <!--<class_type>PRODUCT</class_type>-->
85
+ <!--<default>0</default>-->
86
+ <!--</shipping_rate_2>-->
87
+
88
+ <customers_end_users>
89
+ <execute>1</execute>
90
+ <class_id>5</class_id>
91
+ <class_name>Endkunden</class_name>
92
+ <class_type>CUSTOMER</class_type>
93
+ </customers_end_users>
94
+ <customers_companies>
95
+ <execute>1</execute>
96
+ <class_id>6</class_id>
97
+ <class_name>USt.-pflichtige Unternehmen</class_name>
98
+ <class_type>CUSTOMER</class_type>
99
+ </customers_companies>
100
+ <customers_companies_no_vat>
101
+ <execute>1</execute>
102
+ <class_id>7</class_id>
103
+ <class_name>USt.-befreite Unternehmen</class_name>
104
+ <class_type>CUSTOMER</class_type>
105
+ </customers_companies_no_vat>
106
+ </default>
107
+ </tax_classes>
108
+
109
+ <tax_calculation_rates>
110
+ <default>
111
+ <tax_calculation_rate_1>
112
+ <execute>1</execute>
113
+ <tax_region_id>0</tax_region_id>
114
+ <tax_postcode>*</tax_postcode>
115
+ <label>MwSt.</label>
116
+ <rate>8</rate>
117
+ </tax_calculation_rate_1>
118
+
119
+ <tax_calculation_rate_2>
120
+ <execute>1</execute>
121
+ <tax_region_id>0</tax_region_id>
122
+ <tax_postcode>*</tax_postcode>
123
+ <label>reduzierte MwSt.</label>
124
+ <rate>2.5</rate>
125
+ </tax_calculation_rate_2>
126
+
127
+ <tax_calculation_rate_3>
128
+ <execute>1</execute>
129
+ <tax_region_id>0</tax_region_id>
130
+ <tax_postcode>*</tax_postcode>
131
+ <label>ohne MwSt.</label>
132
+ <rate>0</rate>
133
+ </tax_calculation_rate_3>
134
+ </default>
135
+
136
+ </tax_calculation_rates>
137
+
138
+ <tax_config>
139
+ <default>
140
+ <general__country__default>CH</general__country__default>
141
+ <tax__classes__shipping_tax_class>3</tax__classes__shipping_tax_class>
142
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
143
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
144
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
145
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
146
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
147
+ <tax__defaults__country>CH</tax__defaults__country>
148
+ <tax__defaults__region>129</tax__defaults__region>
149
+ <tax__defaults__postcode>1234</tax__defaults__postcode>
150
+ <tax__display__type>2</tax__display__type>
151
+ <tax__display__shipping>2</tax__display__shipping>
152
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
153
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
154
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
155
+ <tax__cart_display__price>2</tax__cart_display__price>
156
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
157
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
158
+ <tax__sales_display__price>2</tax__sales_display__price>
159
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
160
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
161
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
162
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
163
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
164
+ <shipping__origin__country_id>CH</shipping__origin__country_id>
165
+ <shipping__origin__region_id>129</shipping__origin__region_id>
166
+ <shipping__origin__postcode>1234</shipping__origin__postcode>
167
+ <shipping__origin__city>Musterstadt</shipping__origin__city>
168
+ </default>
169
+ </tax_config>
170
+ </magesetup>
171
+ </default>
172
+ </config>
app/code/community/FireGento/MageSetup/etc/config.xml ADDED
@@ -0,0 +1,394 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <modules>
27
+ <FireGento_MageSetup>
28
+ <version>2.0.3</version>
29
+ </FireGento_MageSetup>
30
+ </modules>
31
+ <global>
32
+ <blocks>
33
+ <magesetup>
34
+ <class>FireGento_MageSetup_Block</class>
35
+ </magesetup>
36
+ <googleanalytics>
37
+ <rewrite>
38
+ <ga>FireGento_MageSetup_Block_Ga</ga>
39
+ </rewrite>
40
+ </googleanalytics>
41
+ </blocks>
42
+ <helpers>
43
+ <magesetup>
44
+ <class>FireGento_MageSetup_Helper</class>
45
+ </magesetup>
46
+ <catalog>
47
+ <rewrite>
48
+ <product_configuration>FireGento_MageSetup_Helper_Catalog_Product_Configuration</product_configuration>
49
+ </rewrite>
50
+ </catalog>
51
+ <checkout>
52
+ <rewrite>
53
+ <data>FireGento_MageSetup_Helper_Checkout_Data</data>
54
+ </rewrite>
55
+ </checkout>
56
+ </helpers>
57
+ <models>
58
+ <magesetup>
59
+ <class>FireGento_MageSetup_Model</class>
60
+ <resourceModel>magesetup_resource</resourceModel>
61
+ </magesetup>
62
+ <magesetup_resource>
63
+ <class>FireGento_MageSetup_Model_Resource</class>
64
+ <entities>
65
+ <newsletter_subscriber_status>
66
+ <table>newsletter_subscriber_status</table>
67
+ </newsletter_subscriber_status>
68
+ </entities>
69
+ </magesetup_resource>
70
+ <tax>
71
+ <rewrite>
72
+ <config>FireGento_MageSetup_Model_Tax_Config</config>
73
+ </rewrite>
74
+ </tax>
75
+ </models>
76
+ <resources>
77
+ <magesetup_setup>
78
+ <setup>
79
+ <module>FireGento_MageSetup</module>
80
+ <class>Mage_Catalog_Model_Resource_Eav_Mysql4_Setup</class>
81
+ </setup>
82
+ </magesetup_setup>
83
+ </resources>
84
+ <events>
85
+ <catalog_product_save_before>
86
+ <observers>
87
+ <magesetup_observer>
88
+ <class>magesetup/observer</class>
89
+ <type>model</type>
90
+ <method>autogenerateMetaInformation</method>
91
+ </magesetup_observer>
92
+ </observers>
93
+ </catalog_product_save_before>
94
+ <newsletter_subscriber_save_after>
95
+ <observers>
96
+ <magesetup_observer>
97
+ <class>magesetup/newsletter_observer</class>
98
+ <type>model</type>
99
+ <method>saveSubscriberStatusHistory</method>
100
+ </magesetup_observer>
101
+ </observers>
102
+ </newsletter_subscriber_save_after>
103
+ </events>
104
+ <magesetup>
105
+ <available_countries>
106
+ <at />
107
+ <ch />
108
+ <de />
109
+ <fr />
110
+ <gb />
111
+ <it />
112
+ <ru />
113
+ </available_countries>
114
+ </magesetup>
115
+ </global>
116
+ <frontend>
117
+ <secure_url>
118
+ <contacts>/contacts/</contacts>
119
+ <review>/review/</review>
120
+ </secure_url>
121
+ <layout>
122
+ <updates>
123
+ <magesetup>
124
+ <file>magesetup.xml</file>
125
+ </magesetup>
126
+ </updates>
127
+ </layout>
128
+ <translate>
129
+ <modules>
130
+ <FireGento_MageSetup>
131
+ <files>
132
+ <magesetup>FireGento_MageSetup.csv</magesetup>
133
+ </files>
134
+ </FireGento_MageSetup>
135
+ </modules>
136
+ </translate>
137
+ <events>
138
+ <core_block_abstract_to_html_before>
139
+ <observers>
140
+ <magesetup_observer>
141
+ <class>magesetup/observer</class>
142
+ <type>model</type>
143
+ <method>filterAgreements</method>
144
+ </magesetup_observer>
145
+ </observers>
146
+ </core_block_abstract_to_html_before>
147
+ <checkout_cart_update_items_after>
148
+ <observers>
149
+ <recalculate_dynamic_shipping_tax>
150
+ <type>singleton</type>
151
+ <class>FireGento_MageSetup_Model_Observer</class>
152
+ <method>recollectAfterQuoteItemUpdate</method>
153
+ </recalculate_dynamic_shipping_tax>
154
+ </observers>
155
+ </checkout_cart_update_items_after>
156
+ <controller_action_predispatch_customer_account_createpost>
157
+ <observers>
158
+ <magesetup_observer>
159
+ <class>magesetup/observer</class>
160
+ <type>model</type>
161
+ <method>customerCreatePreDispatch</method>
162
+ </magesetup_observer>
163
+ </observers>
164
+ </controller_action_predispatch_customer_account_createpost>
165
+ </events>
166
+ <routers>
167
+ <magesetup>
168
+ <use>standard</use>
169
+ <args>
170
+ <module>FireGento_MageSetup</module>
171
+ <frontName>magesetup</frontName>
172
+ </args>
173
+ </magesetup>
174
+ </routers>
175
+ </frontend>
176
+ <adminhtml>
177
+ <layout>
178
+ <updates>
179
+ <magesetup>
180
+ <file>magesetup.xml</file>
181
+ </magesetup>
182
+ </updates>
183
+ </layout>
184
+ <translate>
185
+ <modules>
186
+ <FireGento_MageSetup>
187
+ <files>
188
+ <magesetup>FireGento_MageSetup.csv</magesetup>
189
+ </files>
190
+ </FireGento_MageSetup>
191
+ </modules>
192
+ </translate>
193
+ <menu>
194
+ <system>
195
+ <children>
196
+ <magesetup translate="title">
197
+ <title>MageSetup</title>
198
+ <sort_order>11</sort_order>
199
+ <children>
200
+ <setup>
201
+ <title>Setup</title>
202
+ <action>adminhtml/magesetup</action>
203
+ <sort_order>10</sort_order>
204
+ </setup>
205
+ <recommended_extensions>
206
+ <title>Recommended Extensions</title>
207
+ <action>adminhtml/magesetup/extensions</action>
208
+ <sort_order>15</sort_order>
209
+ </recommended_extensions>
210
+ </children>
211
+ </magesetup>
212
+ </children>
213
+ </system>
214
+ </menu>
215
+ <acl>
216
+ <resources>
217
+ <admin>
218
+ <children>
219
+ <system>
220
+ <children>
221
+ <magesetup translate="title">
222
+ <title>MageSetup</title>
223
+ <sort_order>11</sort_order>
224
+ </magesetup>
225
+ </children>
226
+ </system>
227
+ </children>
228
+ </admin>
229
+ </resources>
230
+ </acl>
231
+ <events>
232
+ <adminhtml_catalog_product_attribute_edit_prepare_form>
233
+ <observers>
234
+ <magesetup_observer>
235
+ <class>magesetup/observer</class>
236
+ <type>model</type>
237
+ <method>addIsVisibleOnCheckoutOption</method>
238
+ </magesetup_observer>
239
+ </observers>
240
+ </adminhtml_catalog_product_attribute_edit_prepare_form>
241
+ <adminhtml_block_html_before>
242
+ <observers>
243
+ <magesetup_observer_agreement>
244
+ <class>magesetup/observer</class>
245
+ <type>model</type>
246
+ <method>addOptionsForAgreements</method>
247
+ </magesetup_observer_agreement>
248
+ </observers>
249
+ </adminhtml_block_html_before>
250
+ </events>
251
+ </adminhtml>
252
+ <admin>
253
+ <routers>
254
+ <adminhtml>
255
+ <args>
256
+ <modules>
257
+ <FireGento_MageSetup before="Mage_Adminhtml">FireGento_MageSetup</FireGento_MageSetup>
258
+ </modules>
259
+ </args>
260
+ </adminhtml>
261
+ </routers>
262
+ </admin>
263
+ <default>
264
+ <catalog>
265
+ <price>
266
+ <display_block_below_price>1</display_block_below_price>
267
+ <display_delivery_time_on_categories>1</display_delivery_time_on_categories>
268
+ <cms_page_shipping>lieferung</cms_page_shipping>
269
+ <weight_unit>kg</weight_unit>
270
+ </price>
271
+ </catalog>
272
+ <general>
273
+ <imprint>
274
+ <shop_name>Beispielshop</shop_name>
275
+ <company_first>Musterfirma GmbH</company_first>
276
+ <zip>12345</zip>
277
+ <street>Musterstr. 1</street>
278
+ <city>Musterstadt</city>
279
+ <email>info@example.com</email>
280
+ </imprint>
281
+ </general>
282
+ <checkout>
283
+ <options>
284
+ <additional_information><![CDATA[Beim Versand ins Nicht-EU-Ausland können zusätzlich Zölle, Steuern und Gebühren entstehen.]]></additional_information></options>
285
+ <cart>
286
+ <hide_shipping>1</hide_shipping>
287
+ </cart>
288
+ </checkout>
289
+ <customer>
290
+ <create_account>
291
+ <avoid_tc>Yes</avoid_tc>
292
+ </create_account>
293
+ <address_templates>
294
+ <text><![CDATA[
295
+ {{depend company}}{{var company}}
296
+ {{/depend}}{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}
297
+ {{if street1}}{{var street1}}
298
+ {{/if}}{{depend street2}}{{var street2}}
299
+ {{/depend}}{{depend street3}}{{var street3}}
300
+ {{/depend}}{{depend street4}}{{var street4}}
301
+ {{/depend}}{{if postcode}}{{var postcode}} {{/if}}{{if city}}{{var city}}{{/if}}
302
+ {{var country}}
303
+ Tel: {{var telephone}}
304
+ {{depend fax}}Fax: {{var fax}}
305
+ {{/depend}}
306
+ ]]></text>
307
+ <oneline>
308
+ <![CDATA[{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}, {{var street}}, {{var postcode}} {{var city}}, {{var country}}]]></oneline>
309
+ <html><![CDATA[
310
+ {{depend company}}{{var company}}<br />{{/depend}}
311
+ {{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}<br/>
312
+ {{if street1}}{{var street1}}<br />{{/if}}
313
+ {{depend street2}}{{var street2}}<br />{{/depend}}
314
+ {{depend street3}}{{var street3}}<br />{{/depend}}
315
+ {{depend street4}}{{var street4}}<br />{{/depend}}
316
+ {{if postcode}}{{var postcode}} {{/if}}{{if city}}{{var city}}{{/if}}<br/>
317
+ {{var country}}<br/>
318
+ {{depend telephone}}Tel: {{var telephone}}{{/depend}}
319
+ {{depend fax}}<br/>Fax: {{var fax}}{{/depend}}
320
+ ]]></html>
321
+ <pdf><![CDATA[
322
+ {{depend company}}{{var company}}|{{/depend}}
323
+ {{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}|
324
+ {{if street1}}{{var street1}}|
325
+ {{/if}}
326
+ {{depend street2}}{{var street2}}|{{/depend}}
327
+ {{depend street3}}{{var street3}}|{{/depend}}
328
+ {{depend street4}}{{var street4}}|{{/depend}}
329
+ {{if postcode}}{{var postcode}} {{/if}}{{if city}}{{var city}}{{/if}}|
330
+ {{var country}}|
331
+ {{depend telephone}}Tel: {{var telephone}}{{/depend}}|
332
+ {{depend fax}}<br/>Fax: {{var fax}}{{/depend}}|
333
+ ]]></pdf>
334
+ <js_template template="title" module="customer">
335
+ <title>Javascript Template</title>
336
+ <defaultFormat>
337
+ <![CDATA[#{company}<br/>#{prefix} #{firstname} #{middlename} #{lastname} #{suffix}<br/>#{street0}<br/>#{street1}<br/>#{street2}<br/>#{street3}<br/>#{postcode} #{city}<br/>#{country_id}<br/>Tel: #{telephone}<br/>Fax: #{fax}]]>
338
+ </defaultFormat>
339
+ </js_template>
340
+ </address_templates>
341
+ </customer>
342
+
343
+ <url>
344
+ <convert>
345
+ <char0228>
346
+ <from>ä</from>
347
+ <to>ae</to>
348
+ </char0228>
349
+ <char0246>
350
+ <from>ö</from>
351
+ <to>oe</to>
352
+ </char0246>
353
+ <char0252>
354
+ <from>ü</from>
355
+ <to>ue</to>
356
+ </char0252>
357
+ <char0223>
358
+ <from>ß</from>
359
+ <to>ss</to>
360
+ </char0223>
361
+ <char0196>
362
+ <from>Ä</from>
363
+ <to>ae</to>
364
+ </char0196>
365
+ <char0214>
366
+ <from>Ö</from>
367
+ <to>oe</to>
368
+ </char0214>
369
+ <char0220>
370
+ <from>Ü</from>
371
+ <to>ue</to>
372
+ </char0220>
373
+ </convert>
374
+ </url>
375
+
376
+ <magesetup>
377
+ <default_country>de</default_country>
378
+ </magesetup>
379
+
380
+ <general>
381
+ <country>
382
+ <eu_countries>AT,BE,BG,CY,CZ,DK,EE,FI,FR,DE,GR,HU,HR,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,GB</eu_countries>
383
+ </country>
384
+ </general>
385
+ </default>
386
+
387
+ <phpunit>
388
+ <suite>
389
+ <modules>
390
+ <FireGento_MageSetup/>
391
+ </modules>
392
+ </suite>
393
+ </phpunit>
394
+ </config>
app/code/community/FireGento/MageSetup/etc/de/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>Neues Admin-Passwort</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Admin-Passwort zurücksetzen</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Währung Aktualisierung</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>Neues Konto</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Passwort Erinnerung</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>Neues Konto Aktivierung </template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>Neues Konto Bestätigung</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>Neues Passwort</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Kunden Konto Passwort Zurücksetzen Bestätigung</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>Neue Bestellung</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>Neue Bestellung Gast</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Bestellung Aktualsierung</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Bestellung Aktualsierung Gast</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>Neue Rechnung</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>Neue Rechnung Gast</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Rechnung Aktualisierung</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Rechnung Aktualisierung Gast</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>Neue Gutschrift</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>Neue Gutschrift Gast</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Gutschrift Aktualisierung</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Gutschrift Aktualisierung Gast</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>Neue Lieferung</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>Neue Lieferung Gast</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Lieferung Aktualisierung</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Lieferung Aktualisierung Gast</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Zahlung fehlgeschlagen</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Protokoll Bereinigung Warnungen</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Newsletter Anmeldung Bestätigung</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Newsletter Anmeldung Erfolg</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Newsletter Abmeldung Erfolg</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Wunschliste gemeinsam nutzen</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Produkt an einen Freund verschicken</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Kontaktformular</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Sitemap Generierung Warnungen</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Produkt wieder verfügbar</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Produkt Preisänderung</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Produkt Cron Fehler</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Kundeneinladung [Invitation]</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>OAuth Tokenänderung</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/de/tax.xml ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_full_tax tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_users,customers_companies"
32
+ tax_product_class="products_rate_1,shipping_rate_1">
33
+ <execute>1</execute>
34
+ <code>Kunden kaufen vollbesteuerte Artikel</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_full_tax>
38
+ <products_reduced_tax tax_rate="tax_calculation_rate_2"
39
+ tax_customer_class="customers_end_users,customers_companies"
40
+ tax_product_class="products_rate_2,shipping_rate_2">
41
+ <execute>1</execute>
42
+ <code>Kunden kaufen ermäßigtbesteuerte Artikel</code>
43
+ <priority>2</priority>
44
+ <position>0</position>
45
+ </products_reduced_tax>
46
+ <products_no_vat tax_rate="tax_calculation_rate_3"
47
+ tax_customer_class="customers_companies_no_vat"
48
+ tax_product_class="product_rate_1,products_rate_2,shipping_rate_1,shipping_rate_2">
49
+ <execute>1</execute>
50
+ <code>Ust.-befreite Unternehmen kaufen voll- und ermäßigtbesteuerte Artikel</code>
51
+ <priority>2</priority>
52
+ <position>0</position>
53
+ </products_no_vat>
54
+ </default>
55
+ </tax_calculation_rules>
56
+
57
+ <tax_classes>
58
+ <default>
59
+ <products_rate_1>
60
+ <execute>1</execute>
61
+ <class_id>1</class_id>
62
+ <class_name>Vollbesteuerte Artikel</class_name>
63
+ <class_type>PRODUCT</class_type>
64
+ <default>1</default>
65
+ </products_rate_1>
66
+ <products_rate_2>
67
+ <execute>1</execute>
68
+ <class_id>2</class_id>
69
+ <class_name>Ermäßigtbesteuerte Artikel</class_name>
70
+ <class_type>PRODUCT</class_type>
71
+ <default>0</default>
72
+ </products_rate_2>
73
+ <shipping_rate_1>
74
+ <execute>1</execute>
75
+ <class_id>3</class_id>
76
+ <class_name>Vollbesteuerter Versand</class_name>
77
+ <class_type>PRODUCT</class_type>
78
+ <default>0</default>
79
+ </shipping_rate_1>
80
+ <shipping_rate_2>
81
+ <execute>1</execute>
82
+ <class_id>4</class_id>
83
+ <class_name>Ermäßigtbesteuerter Versand</class_name>
84
+ <class_type>PRODUCT</class_type>
85
+ <default>0</default>
86
+ </shipping_rate_2>
87
+ <customers_end_users>
88
+ <execute>1</execute>
89
+ <class_id>5</class_id>
90
+ <class_name>Endkunden</class_name>
91
+ <class_type>CUSTOMER</class_type>
92
+ </customers_end_users>
93
+ <customers_companies>
94
+ <execute>1</execute>
95
+ <class_id>6</class_id>
96
+ <class_name>USt.-pflichtige Unternehmen</class_name>
97
+ <class_type>CUSTOMER</class_type>
98
+ </customers_companies>
99
+ <customers_companies_no_vat>
100
+ <execute>1</execute>
101
+ <class_id>7</class_id>
102
+ <class_name>USt.-befreite Unternehmen</class_name>
103
+ <class_type>CUSTOMER</class_type>
104
+ </customers_companies_no_vat>
105
+ </default>
106
+ </tax_classes>
107
+
108
+ <tax_calculation_rates>
109
+ <default>
110
+ <tax_calculation_rate_1>
111
+ <execute>1</execute>
112
+ <tax_region_id>0</tax_region_id>
113
+ <tax_postcode>*</tax_postcode>
114
+ <label>MwSt.</label>
115
+ <rate>19</rate>
116
+ </tax_calculation_rate_1>
117
+
118
+ <tax_calculation_rate_2>
119
+ <execute>1</execute>
120
+ <tax_region_id>0</tax_region_id>
121
+ <tax_postcode>*</tax_postcode>
122
+ <label>reduzierte MwSt.</label>
123
+ <rate>7</rate>
124
+ </tax_calculation_rate_2>
125
+
126
+ <tax_calculation_rate_3>
127
+ <execute>1</execute>
128
+ <tax_region_id>0</tax_region_id>
129
+ <tax_postcode>*</tax_postcode>
130
+ <label>ohne MwSt.</label>
131
+ <rate>0</rate>
132
+ </tax_calculation_rate_3>
133
+ </default>
134
+
135
+ </tax_calculation_rates>
136
+
137
+ <tax_config>
138
+ <default>
139
+ <general__country__default>DE</general__country__default>
140
+ <tax__classes__shipping_tax_class>3</tax__classes__shipping_tax_class>
141
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
142
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
143
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
144
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
145
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
146
+ <tax__defaults__country>DE</tax__defaults__country>
147
+ <tax__defaults__region>79</tax__defaults__region>
148
+ <tax__defaults__postcode>12345</tax__defaults__postcode>
149
+ <tax__display__type>2</tax__display__type>
150
+ <tax__display__shipping>2</tax__display__shipping>
151
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
152
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
153
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
154
+ <tax__cart_display__price>2</tax__cart_display__price>
155
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
156
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
157
+ <tax__sales_display__price>2</tax__sales_display__price>
158
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
159
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
160
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
161
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
162
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
163
+ <shipping__origin__country_id>DE</shipping__origin__country_id>
164
+ <shipping__origin__region_id>79</shipping__origin__region_id>
165
+ <shipping__origin__postcode>12345</shipping__origin__postcode>
166
+ <shipping__origin__city>Musterstadt</shipping__origin__city>
167
+ </default>
168
+ </tax_config>
169
+ </magesetup>
170
+ </default>
171
+ </config>
app/code/community/FireGento/MageSetup/etc/default/agreement.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 2.0.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <agreements>
29
+ <default>
30
+ <business_terms>
31
+ <execute>1</execute>
32
+ <is_active>1</is_active>
33
+ <is_html>1</is_html>
34
+ <is_required>1</is_required>
35
+ <agreement_type>0</agreement_type>
36
+ <filename>magesetup/agreement/business_terms.html</filename>
37
+ </business_terms>
38
+
39
+ <revocation>
40
+ <execute>1</execute>
41
+ <is_active>1</is_active>
42
+ <is_html>1</is_html>
43
+ <is_required>1</is_required>
44
+ <agreement_type>0</agreement_type>
45
+ <filename>magesetup/agreement/revocation.html</filename>
46
+ </revocation>
47
+ </default>
48
+ </agreements>
49
+ </magesetup>
50
+ </default>
51
+ </config>
app/code/community/FireGento/MageSetup/etc/default/cms.xml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <pages>
29
+ <default>
30
+ <magesetup_404>
31
+ <execute>1</execute>
32
+ <filename>magesetup/page/404.html</filename>
33
+ <footerlink>0</footerlink>
34
+ </magesetup_404>
35
+
36
+ <magesetup_imprint>
37
+ <execute>1</execute>
38
+ <filename>magesetup/page/imprint.html</filename>
39
+ <footerlink>1</footerlink>
40
+ </magesetup_imprint>
41
+
42
+ <magesetup_payment>
43
+ <execute>1</execute>
44
+ <filename>magesetup/page/payment.html</filename>
45
+ <footerlink>1</footerlink>
46
+ </magesetup_payment>
47
+
48
+ <magesetup_privacy>
49
+ <execute>1</execute>
50
+ <filename>magesetup/page/privacy.html</filename>
51
+ <footerlink>1</footerlink>
52
+ </magesetup_privacy>
53
+
54
+ <magesetup_shipping>
55
+ <execute>1</execute>
56
+ <filename>magesetup/page/shipping.html</filename>
57
+ <footerlink>1</footerlink>
58
+ <config_option>catalog/price/cms_page_shipping</config_option>
59
+ </magesetup_shipping>
60
+
61
+ <magesetup_order>
62
+ <execute>1</execute>
63
+ <filename>magesetup/page/order.html</filename>
64
+ <footerlink>1</footerlink>
65
+ </magesetup_order>
66
+
67
+ <magesetup_business_terms>
68
+ <execute>1</execute>
69
+ <filename>magesetup/page/business_terms.html</filename>
70
+ <footerlink>1</footerlink>
71
+ </magesetup_business_terms>
72
+
73
+ <magesetup_revocation>
74
+ <execute>1</execute>
75
+ <filename>magesetup/page/revocation.html</filename>
76
+ <footerlink>1</footerlink>
77
+ </magesetup_revocation>
78
+ </default>
79
+ </pages>
80
+
81
+ <blocks>
82
+ <default>
83
+ <business_terms>
84
+ <execute>1</execute>
85
+ <identifier>business_terms</identifier>
86
+ <filename>magesetup/block/business_terms.html</filename>
87
+ </business_terms>
88
+
89
+ <revocation>
90
+ <execute>1</execute>
91
+ <identifier>revocation</identifier>
92
+ <filename>magesetup/block/revocation.html</filename>
93
+ </revocation>
94
+
95
+ <footerlinks>
96
+ <execute>1</execute>
97
+ <identifier>footer_links</identifier>
98
+ </footerlinks>
99
+ </default>
100
+ </blocks>
101
+ </magesetup>
102
+ </default>
103
+ </config>
app/code/community/FireGento/MageSetup/etc/default/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>New Admin Password</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Reset Admin Password</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Currency Update</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>New Account</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Password Reminder</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>New Account Confirmation</template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>New Account Confirmed</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>New Password</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Password Reset Confirmation</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>New Order</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>New Order Guest</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Order Update</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Order Update Guest</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>New Invoice</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>New Invoice Guest</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Rechnung Update</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Rechnung Update Guest</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>New Credit Memo</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>New Credit Memo Guest</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Credit Memo Update</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Credit Memo Update Guest</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>New Shipment</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>New Shipment Guest</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Shipment Update</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Shipment Update Guest</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Payment failed</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Log Clean Warnung</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Newsletter Subscription Confirm</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Newsletter Subscription Success</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Newsletter Unsubscription Success</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Share Wishlist</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Send Product to Friend</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Contact Form</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Sitemap Generate Warning</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Product Stock Alert</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Product Price Alert</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Product Alert Cron Error</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Invitation</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>OAuth Token</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/default/systemconfig.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <system_config>
29
+ <default>
30
+ <customer__create_account__confirm>0</customer__create_account__confirm>
31
+ <newsletter__subscription__confirm>1</newsletter__subscription__confirm>
32
+ <catalog__price__display_block_below_price>1</catalog__price__display_block_below_price>
33
+ </default>
34
+ </system_config>
35
+ </magesetup>
36
+ </default>
37
+ </config>
app/code/community/FireGento/MageSetup/etc/default/tax.xml ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <!-- Customers -->
31
+ <products_full_tax>
32
+ <execute>1</execute>
33
+ <tax_calculation_rule_id>3</tax_calculation_rule_id>
34
+ <code>End Customers buy Products with full Tax</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_full_tax>
38
+ <products_reduced_tax>
39
+ <execute>1</execute>
40
+ <tax_calculation_rule_id>4</tax_calculation_rule_id>
41
+ <code>End Customers buy Products with reduced Tax</code>
42
+ <priority>2</priority>
43
+ <position>0</position>
44
+ </products_reduced_tax>
45
+
46
+ <!-- Companies -->
47
+ <products_full_tax_companies>
48
+ <execute>1</execute>
49
+ <tax_calculation_rule_id>6</tax_calculation_rule_id>
50
+ <code>Taxable Companies buy Products with full Tax</code>
51
+ <priority>1</priority>
52
+ <position>0</position>
53
+ </products_full_tax_companies>
54
+ <products_reduced_tax_companies>
55
+ <execute>1</execute>
56
+ <tax_calculation_rule_id>8</tax_calculation_rule_id>
57
+ <code>Taxable Companies buy Products with reduced Tax</code>
58
+ <priority>2</priority>
59
+ <position>0</position>
60
+ </products_reduced_tax_companies>
61
+ <products_companies_vat>
62
+ <execute>1</execute>
63
+ <tax_calculation_rule_id>10</tax_calculation_rule_id>
64
+ <code>Non-taxable Companies buy Products with full and reduced Tax</code>
65
+ <priority>1</priority>
66
+ <position>0</position>
67
+ </products_companies_vat>
68
+
69
+ <!-- Shipping -->
70
+ <shipping_full_tax>
71
+ <execute>1</execute>
72
+ <tax_calculation_rule_id>5</tax_calculation_rule_id>
73
+ <code>Shipping with full Tax</code>
74
+ <priority>3</priority>
75
+ <position>0</position>
76
+ </shipping_full_tax>
77
+ <shipping_reduced_tax>
78
+ <execute>1</execute>
79
+ <tax_calculation_rule_id>7</tax_calculation_rule_id>
80
+ <code>Shipping with reduced Tax</code>
81
+ <priority>3</priority>
82
+ <position>0</position>
83
+ </shipping_reduced_tax>
84
+
85
+ </default>
86
+ </tax_calculation_rules>
87
+
88
+ <tax_classes>
89
+ <default>
90
+ <products_full_tax>
91
+ <execute>1</execute>
92
+ <class_id>1</class_id>
93
+ <class_name>Products with full Tax</class_name>
94
+ <class_type>PRODUCT</class_type>
95
+ <default>1</default>
96
+ </products_full_tax>
97
+ <products_reduced_tax>
98
+ <execute>1</execute>
99
+ <class_id>2</class_id>
100
+ <class_name>Products with reduced Tax</class_name>
101
+ <class_type>PRODUCT</class_type>
102
+ <default>0</default>
103
+ </products_reduced_tax>
104
+ <customer_customers>
105
+ <execute>1</execute>
106
+ <class_id>3</class_id>
107
+ <class_name>End Customers</class_name>
108
+ <class_type>CUSTOMER</class_type>
109
+ </customer_customers>
110
+ <shipping_full_tax>
111
+ <execute>1</execute>
112
+ <class_id>4</class_id>
113
+ <class_name>Shipping with full Tax</class_name>
114
+ <class_type>PRODUCT</class_type>
115
+ <default>0</default>
116
+ </shipping_full_tax>
117
+ <shipping_reduced_tax>
118
+ <execute>1</execute>
119
+ <class_id>7</class_id>
120
+ <class_name>Shipping with reduced Tax</class_name>
121
+ <class_type>PRODUCT</class_type>
122
+ <default>0</default>
123
+ </shipping_reduced_tax>
124
+ <customer_companies>
125
+ <execute>1</execute>
126
+ <class_id>5</class_id>
127
+ <class_name>Taxable Companies</class_name>
128
+ <class_type>CUSTOMER</class_type>
129
+ </customer_companies>
130
+ <customer_companies_vat>
131
+ <execute>1</execute>
132
+ <class_id>6</class_id>
133
+ <class_name>Non-Taxable Companies</class_name>
134
+ <class_type>CUSTOMER</class_type>
135
+ </customer_companies_vat>
136
+ </default>
137
+ </tax_classes>
138
+
139
+ <!-- Sample code for Russian Tax
140
+ <tax_calculation_rates>
141
+ <default>
142
+
143
+ <tax_calculation_rate_RU_full>
144
+ <execute>1</execute>
145
+ <tax_calculation_rate_id>3</tax_calculation_rate_id>
146
+ <tax_country_id>RU</tax_country_id>
147
+ <tax_region_id>0</tax_region_id>
148
+ <tax_postcode>*</tax_postcode>
149
+ <code>RU full</code>
150
+ <label>VAT</label>
151
+ <rate>18</rate>
152
+ </tax_calculation_rate_RU_full>
153
+
154
+ <tax_calculation_rate_RU_reduced>
155
+ <execute>1</execute>
156
+ <tax_calculation_rate_id>4</tax_calculation_rate_id>
157
+ <tax_country_id>RU</tax_country_id>
158
+ <tax_region_id>0</tax_region_id>
159
+ <tax_postcode>*</tax_postcode>
160
+ <code>RU reduced</code>
161
+ <label>reduced VAT</label>
162
+ <rate>10</rate>
163
+ </tax_calculation_rate_RU_reduced>
164
+
165
+ <tax_calculation_rate_RU_zero>
166
+ <execute>1</execute>
167
+ <tax_calculation_rate_id>5</tax_calculation_rate_id>
168
+ <tax_country_id>RU</tax_country_id>
169
+ <tax_region_id>0</tax_region_id>
170
+ <tax_postcode>*</tax_postcode>
171
+ <code>RU zero</code>
172
+ <label>without VAT</label>
173
+ <rate>0</rate>
174
+ </tax_calculation_rate_RU_zero>
175
+
176
+ </default>
177
+ </tax_calculation_rates>
178
+
179
+ <tax_calculations>
180
+ <default>
181
+
182
+ <tax_calculation_RU_full_customer>
183
+ <execute>1</execute>
184
+ <tax_calculation_rate_id>3</tax_calculation_rate_id>
185
+ <tax_calculation_rule_id>3</tax_calculation_rule_id>
186
+ <customer_tax_class_id>3</customer_tax_class_id>
187
+ <product_tax_class_id>1</product_tax_class_id>
188
+ </tax_calculation_RU_full_customer>
189
+
190
+ <tax_calculation_RU_full_companies>
191
+ <execute>1</execute>
192
+ <tax_calculation_rate_id>3</tax_calculation_rate_id>
193
+ <tax_calculation_rule_id>6</tax_calculation_rule_id>
194
+ <customer_tax_class_id>5</customer_tax_class_id>
195
+ <product_tax_class_id>1</product_tax_class_id>
196
+ </tax_calculation_RU_full_companies>
197
+
198
+ <tax_calculation_RU_full_shipping_customer>
199
+ <execute>1</execute>
200
+ <tax_calculation_rate_id>3</tax_calculation_rate_id>
201
+ <tax_calculation_rule_id>5</tax_calculation_rule_id>
202
+ <customer_tax_class_id>3</customer_tax_class_id>
203
+ <product_tax_class_id>4</product_tax_class_id>
204
+ </tax_calculation_RU_full_shipping_customer>
205
+
206
+ <tax_calculation_RU_full_shipping_companies>
207
+ <execute>1</execute>
208
+ <tax_calculation_rate_id>3</tax_calculation_rate_id>
209
+ <tax_calculation_rule_id>5</tax_calculation_rule_id>
210
+ <customer_tax_class_id>5</customer_tax_class_id>
211
+ <product_tax_class_id>4</product_tax_class_id>
212
+ </tax_calculation_RU_full_shipping_companies>
213
+
214
+ <tax_calculation_RU_reduced_customer>
215
+ <execute>1</execute>
216
+ <tax_calculation_rate_id>4</tax_calculation_rate_id>
217
+ <tax_calculation_rule_id>4</tax_calculation_rule_id>
218
+ <customer_tax_class_id>3</customer_tax_class_id>
219
+ <product_tax_class_id>2</product_tax_class_id>
220
+ </tax_calculation_RU_reduced_customer>
221
+
222
+ <tax_calculation_RU_reduced_companies>
223
+ <execute>1</execute>
224
+ <tax_calculation_rate_id>4</tax_calculation_rate_id>
225
+ <tax_calculation_rule_id>8</tax_calculation_rule_id>
226
+ <customer_tax_class_id>5</customer_tax_class_id>
227
+ <product_tax_class_id>2</product_tax_class_id>
228
+ </tax_calculation_RU_reduced_companies>
229
+
230
+ <tax_calculation_RU_reduced_shipping_customer>
231
+ <execute>1</execute>
232
+ <tax_calculation_rate_id>4</tax_calculation_rate_id>
233
+ <tax_calculation_rule_id>7</tax_calculation_rule_id>
234
+ <customer_tax_class_id>3</customer_tax_class_id>
235
+ <product_tax_class_id>7</product_tax_class_id>
236
+ </tax_calculation_RU_reduced_shipping_customer>
237
+
238
+ <tax_calculation_RU_reduced_shipping_companies>
239
+ <execute>1</execute>
240
+ <tax_calculation_rate_id>4</tax_calculation_rate_id>
241
+ <tax_calculation_rule_id>7</tax_calculation_rule_id>
242
+ <customer_tax_class_id>5</customer_tax_class_id>
243
+ <product_tax_class_id>7</product_tax_class_id>
244
+ </tax_calculation_RU_reduced_shipping_companies>
245
+
246
+ <tax_calculation_RU_full_companies_vat>
247
+ <execute>1</execute>
248
+ <tax_calculation_rate_id>5</tax_calculation_rate_id>
249
+ <tax_calculation_rule_id>10</tax_calculation_rule_id>
250
+ <customer_tax_class_id>6</customer_tax_class_id>
251
+ <product_tax_class_id>1</product_tax_class_id>
252
+ </tax_calculation_RU_full_companies_vat>
253
+
254
+ <tax_calculation_RU_reduced_companies_vat>
255
+ <execute>1</execute>
256
+ <tax_calculation_rate_id>5</tax_calculation_rate_id>
257
+ <tax_calculation_rule_id>10</tax_calculation_rule_id>
258
+ <customer_tax_class_id>6</customer_tax_class_id>
259
+ <product_tax_class_id>2</product_tax_class_id>
260
+ </tax_calculation_RU_reduced_companies_vat>
261
+
262
+ <tax_calculation_RU_full_shipping_companies_vat>
263
+ <execute>1</execute>
264
+ <tax_calculation_rate_id>5</tax_calculation_rate_id>
265
+ <tax_calculation_rule_id>10</tax_calculation_rule_id>
266
+ <customer_tax_class_id>6</customer_tax_class_id>
267
+ <product_tax_class_id>4</product_tax_class_id>
268
+ </tax_calculation_RU_full_shipping_companies_vat>
269
+
270
+ <tax_calculation_RU_reduced_shipping_companies_vat>
271
+ <execute>1</execute>
272
+ <tax_calculation_rate_id>5</tax_calculation_rate_id>
273
+ <tax_calculation_rule_id>10</tax_calculation_rule_id>
274
+ <customer_tax_class_id>6</customer_tax_class_id>
275
+ <product_tax_class_id>7</product_tax_class_id>
276
+ </tax_calculation_RU_reduced_shipping_companies_vat>
277
+
278
+ </default>
279
+ </tax_calculations>
280
+ -->
281
+
282
+ <tax_config>
283
+ <default>
284
+ <!--<general__country__default>RU</general__country__default>-->
285
+ <tax__classes__shipping_tax_class>4</tax__classes__shipping_tax_class>
286
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
287
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
288
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
289
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
290
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
291
+ <!--<tax__defaults__country>RU</tax__defaults__country>-->
292
+ <!--<tax__defaults__region>79</tax__defaults__region>-->
293
+ <tax__defaults__postcode>12345</tax__defaults__postcode>
294
+ <tax__display__type>2</tax__display__type>
295
+ <tax__display__shipping>2</tax__display__shipping>
296
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
297
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
298
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
299
+ <tax__cart_display__price>2</tax__cart_display__price>
300
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
301
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
302
+ <tax__sales_display__price>2</tax__sales_display__price>
303
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
304
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
305
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
306
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
307
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
308
+ <!--<shipping__origin__country_id>RU</shipping__origin__country_id>-->
309
+ <!--<shipping__origin__region_id>79</shipping__origin__region_id>-->
310
+ <shipping__origin__postcode>12345</shipping__origin__postcode>
311
+ <shipping__origin__city>Sample City</shipping__origin__city>
312
+ </default>
313
+ </tax_config>
314
+ </magesetup>
315
+ </default>
316
+ </config>
app/code/community/FireGento/MageSetup/etc/fr/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>Nouveau mot de passe d'administration</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Mot de passe administration réinitialisé</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Actualisation de la devise</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>Nouveau compte</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Rappel du mot de passe</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>Activation du nouveau compte</template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>Confirmation du nouveau compte</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>Nouveau mot de passe</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Confirmation de réinitialisation du mot de passe client</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>Nouvelle commande</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>Nouvelle commande invité</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Commande actualisée</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Commande invité actualisée</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>Nouvelle facture</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>Nouvelle facture invité</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Actualisation de la facture</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Actualisation de la facture invité</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>Nouveau remboursement</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>Nouveau remboursement invité</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Actualisation du remboursement</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Actualisation du remboursement invité</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>Nouvelle livraison</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>Nouvelle livraison invité</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Actualisation de la livraison</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Actualisation de la livraison invité</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Paiement échoué</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Alerte de nettoyage du journal</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Confirmation d'inscription à la newsletter</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Succès de l'inscription à la newsletter</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Succès de la désinscription à la newsletter</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Partage de la liste de souhaits</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Envoi du produit à un ami</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Formulaire de contact</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Alerte de génération du Sitemap</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Produit de nouveau disponible</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Modification du prix du produit</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Erreur Cron Produit</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Invitation</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>OAuth: changement de jeton</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/fr/tax.xml ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_rate_1 tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_consumers,customers_companies"
32
+ tax_product_class="products_rate_1,shipping">
33
+ <execute>1</execute>
34
+ <code>Clients achètent les produits au taux plein (TVA nominale)</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_rate_1>
38
+
39
+ <products_rate_2 tax_rate="tax_calculation_rate_2"
40
+ tax_customer_class="customers_end_consumers,customers_companies"
41
+ tax_product_class="products_rate_2">
42
+ <execute>1</execute>
43
+ <code>Clients achètent les produits au taux réduit de 7%</code>
44
+ <priority>1</priority>
45
+ <position>0</position>
46
+ </products_rate_2>
47
+
48
+ <products_rate_3 tax_rate="tax_calculation_rate_3"
49
+ tax_customer_class="customers_end_consumers,customers_companies"
50
+ tax_product_class="products_rate_3">
51
+ <execute>1</execute>
52
+ <code>Clients achètent les produits au taux réduit de 5.5%</code>
53
+ <priority>1</priority>
54
+ <position>0</position>
55
+ </products_rate_3>
56
+
57
+ <products_rate_4 tax_rate="tax_calculation_rate_4"
58
+ tax_customer_class="customers_companies_no_vat"
59
+ tax_product_class="products_rate_1,products_rate_2,products_rate_3,shipping">
60
+ <execute>1</execute>
61
+ <code>Entreprises non-assujetties à la TVA achètent les produits au taux plein (TVA nominale) et au taux réduit (TVA réduite)</code>
62
+ <priority>1</priority>
63
+ <position>0</position>
64
+ </products_rate_4>
65
+ </default>
66
+ </tax_calculation_rules>
67
+
68
+ <tax_classes>
69
+ <default>
70
+ <products_rate_1>
71
+ <execute>1</execute>
72
+ <class_id>1</class_id>
73
+ <class_name>Produits au taux plein de 19.6%</class_name>
74
+ <class_type>PRODUCT</class_type>
75
+ <default>1</default>
76
+ </products_rate_1>
77
+ <products_rate_2>
78
+ <execute>1</execute>
79
+ <class_id>2</class_id>
80
+ <class_name>Produits au taux réduit de 7%</class_name>
81
+ <class_type>PRODUCT</class_type>
82
+ <default>0</default>
83
+ </products_rate_2>
84
+ <products_rate_3>
85
+ <execute>1</execute>
86
+ <class_id>3</class_id>
87
+ <class_name>Produits au taux réduit de 5.5%</class_name>
88
+ <class_type>PRODUCT</class_type>
89
+ <default>0</default>
90
+ </products_rate_3>
91
+ <shipping>
92
+ <execute>1</execute>
93
+ <class_id>4</class_id>
94
+ <class_name>Livraison avec TVA à taux plein</class_name>
95
+ <class_type>PRODUCT</class_type>
96
+ <default>0</default>
97
+ </shipping>
98
+
99
+ <customers_end_consumers>
100
+ <execute>1</execute>
101
+ <class_id>5</class_id>
102
+ <class_name>Clients finaux</class_name>
103
+ <class_type>CUSTOMER</class_type>
104
+ </customers_end_consumers>
105
+ <customers_companies>
106
+ <execute>1</execute>
107
+ <class_id>6</class_id>
108
+ <class_name>Entreprises assujetties à la TVA</class_name>
109
+ <class_type>CUSTOMER</class_type>
110
+ </customers_companies>
111
+ <customers_companies_no_vat>
112
+ <execute>1</execute>
113
+ <class_id>7</class_id>
114
+ <class_name>Entreprises non-assujetties à la TVA</class_name>
115
+ <class_type>CUSTOMER</class_type>
116
+ </customers_companies_no_vat>
117
+ </default>
118
+ </tax_classes>
119
+
120
+ <tax_calculation_rates>
121
+ <default>
122
+ <tax_calculation_rate_1>
123
+ <execute>1</execute>
124
+ <tax_region_id>0</tax_region_id>
125
+ <tax_postcode>*</tax_postcode>
126
+ <label>TVA de 19.6%</label>
127
+ <rate>19.6</rate>
128
+ </tax_calculation_rate_1>
129
+
130
+ <tax_calculation_rate_2>
131
+ <execute>1</execute>
132
+ <tax_region_id>0</tax_region_id>
133
+ <tax_postcode>*</tax_postcode>
134
+ <label>TVA réduite de 7%</label>
135
+ <rate>7</rate>
136
+ </tax_calculation_rate_2>
137
+
138
+ <tax_calculation_rate_3>
139
+ <execute>1</execute>
140
+ <tax_region_id>0</tax_region_id>
141
+ <tax_postcode>*</tax_postcode>
142
+ <label>TVA réduite de 5.5%</label>
143
+ <rate>5.5</rate>
144
+ </tax_calculation_rate_3>
145
+
146
+ <tax_calculation_rate_4>
147
+ <execute>1</execute>
148
+ <tax_region_id>0</tax_region_id>
149
+ <tax_postcode>*</tax_postcode>
150
+ <label>Sans TVA</label>
151
+ <rate>0</rate>
152
+ </tax_calculation_rate_4>
153
+ </default>
154
+ </tax_calculation_rates>
155
+
156
+ <tax_config>
157
+ <default>
158
+ <general__country__default>FR</general__country__default>
159
+ <tax__classes__shipping_tax_class>3</tax__classes__shipping_tax_class>
160
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
161
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
162
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
163
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
164
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
165
+ <tax__defaults__country>FR</tax__defaults__country>
166
+ <tax__defaults__region></tax__defaults__region>
167
+ <tax__defaults__postcode>12345</tax__defaults__postcode>
168
+ <tax__display__type>2</tax__display__type>
169
+ <tax__display__shipping>2</tax__display__shipping>
170
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
171
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
172
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
173
+ <tax__cart_display__price>2</tax__cart_display__price>
174
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
175
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
176
+ <tax__sales_display__price>2</tax__sales_display__price>
177
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
178
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
179
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
180
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
181
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
182
+ <shipping__origin__country_id>FR</shipping__origin__country_id>
183
+ <shipping__origin__region_id>79</shipping__origin__region_id>
184
+ <shipping__origin__postcode>12345</shipping__origin__postcode>
185
+ <shipping__origin__city>Ma Ville</shipping__origin__city>
186
+ </default>
187
+ </tax_config>
188
+ </magesetup>
189
+ </default>
190
+ </config>
app/code/community/FireGento/MageSetup/etc/gb/tax.xml ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_full_tax tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_users,customers_companies"
32
+ tax_product_class="products_rate_1,shipping_rate_1">
33
+ <execute>1</execute>
34
+ <code>Customers buy Products with full Tax</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_full_tax>
38
+ <products_reduced_tax tax_rate="tax_calculation_rate_2"
39
+ tax_customer_class="customers_end_users,customers_companies"
40
+ tax_product_class="products_rate_2,shipping_rate_2">
41
+ <execute>1</execute>
42
+ <code>Customers buy Products with reduced Tax</code>
43
+ <priority>2</priority>
44
+ <position>0</position>
45
+ </products_reduced_tax>
46
+ <products_no_vat tax_rate="tax_calculation_rate_3"
47
+ tax_customer_class="customers_companies_no_vat"
48
+ tax_product_class="product_rate_1,products_rate_2,shipping_rate_1,shipping_rate_2">
49
+ <execute>1</execute>
50
+ <code>Non-taxable Companies buy Products with full and reduced Tax</code>
51
+ <priority>2</priority>
52
+ <position>0</position>
53
+ </products_no_vat>
54
+ </default>
55
+ </tax_calculation_rules>
56
+
57
+ <tax_classes>
58
+ <default>
59
+ <products_rate_1>
60
+ <execute>1</execute>
61
+ <class_id>1</class_id>
62
+ <class_name>Products with full Tax</class_name>
63
+ <class_type>PRODUCT</class_type>
64
+ <default>1</default>
65
+ </products_rate_1>
66
+ <products_rate_2>
67
+ <execute>1</execute>
68
+ <class_id>2</class_id>
69
+ <class_name>Products with reduced Tax</class_name>
70
+ <class_type>PRODUCT</class_type>
71
+ <default>0</default>
72
+ </products_rate_2>
73
+ <shipping_rate_1>
74
+ <execute>1</execute>
75
+ <class_id>3</class_id>
76
+ <class_name>Shipping with full Tax</class_name>
77
+ <class_type>PRODUCT</class_type>
78
+ <default>0</default>
79
+ </shipping_rate_1>
80
+ <shipping_rate_2>
81
+ <execute>1</execute>
82
+ <class_id>4</class_id>
83
+ <class_name>Shipping with reduced Tax</class_name>
84
+ <class_type>PRODUCT</class_type>
85
+ <default>0</default>
86
+ </shipping_rate_2>
87
+ <customers_end_users>
88
+ <execute>1</execute>
89
+ <class_id>5</class_id>
90
+ <class_name>End Customers</class_name>
91
+ <class_type>CUSTOMER</class_type>
92
+ </customers_end_users>
93
+ <customers_companies>
94
+ <execute>1</execute>
95
+ <class_id>6</class_id>
96
+ <class_name>Taxable Companies</class_name>
97
+ <class_type>CUSTOMER</class_type>
98
+ </customers_companies>
99
+ <customers_companies_no_vat>
100
+ <execute>1</execute>
101
+ <class_id>7</class_id>
102
+ <class_name>Non-Taxable Companies</class_name>
103
+ <class_type>CUSTOMER</class_type>
104
+ </customers_companies_no_vat>
105
+ </default>
106
+ </tax_classes>
107
+
108
+ <tax_calculation_rates>
109
+ <default>
110
+ <tax_calculation_rate_1>
111
+ <execute>1</execute>
112
+ <tax_region_id>0</tax_region_id>
113
+ <tax_postcode>*</tax_postcode>
114
+ <label>VAT</label>
115
+ <rate>20</rate>
116
+ </tax_calculation_rate_1>
117
+
118
+ <tax_calculation_rate_2>
119
+ <execute>1</execute>
120
+ <tax_region_id>0</tax_region_id>
121
+ <tax_postcode>*</tax_postcode>
122
+ <label>reduced VAT</label>
123
+ <rate>5</rate>
124
+ </tax_calculation_rate_2>
125
+
126
+ <tax_calculation_rate_3>
127
+ <execute>1</execute>
128
+ <tax_region_id>0</tax_region_id>
129
+ <tax_postcode>*</tax_postcode>
130
+ <label>without VAT</label>
131
+ <rate>0</rate>
132
+ </tax_calculation_rate_3>
133
+ </default>
134
+
135
+ </tax_calculation_rates>
136
+
137
+ <tax_config>
138
+ <default>
139
+ <general__country__default>UK</general__country__default>
140
+ <tax__classes__shipping_tax_class>3</tax__classes__shipping_tax_class>
141
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
142
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
143
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
144
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
145
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
146
+ <tax__defaults__country>UK</tax__defaults__country>
147
+ <tax__defaults__region></tax__defaults__region>
148
+ <tax__defaults__postcode>SW1A 1AA</tax__defaults__postcode>
149
+ <tax__display__type>2</tax__display__type>
150
+ <tax__display__shipping>2</tax__display__shipping>
151
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
152
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
153
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
154
+ <tax__cart_display__price>2</tax__cart_display__price>
155
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
156
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
157
+ <tax__sales_display__price>2</tax__sales_display__price>
158
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
159
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
160
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
161
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
162
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
163
+ <shipping__origin__country_id>UK</shipping__origin__country_id>
164
+ <shipping__origin__region_id></shipping__origin__region_id>
165
+ <shipping__origin__postcode>SW1A 1AA</shipping__origin__postcode>
166
+ <shipping__origin__city>London</shipping__origin__city>
167
+ </default>
168
+ </tax_config>
169
+ </magesetup>
170
+ </default>
171
+ </config>
app/code/community/FireGento/MageSetup/etc/it/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 2.0.1
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>Nuova password d'amministrazione</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Resettare password d'amministrazione</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Aggiornamento valuta</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>Nuovo account</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Password dimenticata</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>Attivazione nuovo account</template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>Conferma attivazione account</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>Nuova password</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Conferma aggiornamento password</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>Nuovo ordine</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>Nuovo ordine ospite</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Aggiornamento ordine</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Aggiornamento ordine ospite</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>Nuova fattura</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>Nuova fattura ospite</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Aggiornamento fattura</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Aggiornamento fattura ospite</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>Nuova nota di credito</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>Nuova nota di credito ospite</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Aggiornamento nota di credito</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Aggiornamento nota di credito ospite</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>Nuova spedizione</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>Nuova spedizione ospite</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Aggiornamento spedizione</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Aggiornamento spedizione ospite</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Pagamento fallito</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Notifica pulizia file di log</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Richiesta di conferma iscrizione alla newsletter</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Conferma iscrizione alla newsletter</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Conferma cancellazione newsletter</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Condividi lista dei desideri</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Condividi prodotto</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Form contatti</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Notifica generazione mappa del sito</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Prodotto nuovamente disponibile</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Aggiornamento prezzo prodotti</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Error cron durante l'aggiornamento prodotti</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Invito cliente [Invito]</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>Modifica token OAuth [Invito]</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/it/tax.xml ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 2.0.1
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_rate_1 tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_users,customers_companies"
32
+ tax_product_class="products_rate_1,shipping">
33
+ <execute>1</execute>
34
+ <code>IVA 21%</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_rate_1>
38
+ <products_rate_2 tax_rate="tax_calculation_rate_2"
39
+ tax_customer_class="customers_end_users,customers_companies"
40
+ tax_product_class="products_rate_2">
41
+ <execute>1</execute>
42
+ <code>IVA 10%</code>
43
+ <priority>2</priority>
44
+ <position>0</position>
45
+ </products_rate_2>
46
+ <products_rate_3 tax_rate="tax_calculation_rate_3"
47
+ tax_customer_class="customers_end_users,customers_companies"
48
+ tax_product_class="products_rate_3">
49
+ <execute>1</execute>
50
+ <code>IVA 4%</code>
51
+ <priority>3</priority>
52
+ <position>0</position>
53
+ </products_rate_3>
54
+ <products_rate_4 tax_rate="tax_calculation_rate_4" tax_customer_class="customers_companies_no_vat"
55
+ tax_product_class="products_rate_1,products_rate_2,products_rate_3,shipping">
56
+ <execute>1</execute>
57
+ <code>Esenti IVA</code>
58
+ <priority>4</priority>
59
+ <position>0</position>
60
+ </products_rate_4>
61
+ </default>
62
+ </tax_calculation_rules>
63
+
64
+ <tax_classes>
65
+ <default>
66
+ <products_rate_1>
67
+ <execute>1</execute>
68
+ <class_id>1</class_id>
69
+ <class_name>IVA 21%</class_name>
70
+ <class_type>PRODUCT</class_type>
71
+ <default>1</default>
72
+ </products_rate_1>
73
+ <products_rate_2>
74
+ <execute>1</execute>
75
+ <class_id>2</class_id>
76
+ <class_name>IVA 10%</class_name>
77
+ <class_type>PRODUCT</class_type>
78
+ <default>0</default>
79
+ </products_rate_2>
80
+ <products_rate_3>
81
+ <execute>1</execute>
82
+ <class_id>3</class_id>
83
+ <class_name>IVA 4%</class_name>
84
+ <class_type>PRODUCT</class_type>
85
+ <default>0</default>
86
+ </products_rate_3>
87
+ <shipping>
88
+ <execute>1</execute>
89
+ <class_id>4</class_id>
90
+ <class_name>Spedizione</class_name>
91
+ <class_type>PRODUCT</class_type>
92
+ <default>0</default>
93
+ </shipping>
94
+ <customers_end_users>
95
+ <execute>1</execute>
96
+ <class_id>5</class_id>
97
+ <class_name>Clienti privati</class_name>
98
+ <class_type>CUSTOMER</class_type>
99
+ </customers_end_users>
100
+ <customers_companies>
101
+ <execute>1</execute>
102
+ <class_id>6</class_id>
103
+ <class_name>Imprese</class_name>
104
+ <class_type>CUSTOMER</class_type>
105
+ </customers_companies>
106
+ <customers_companies_no_vat>
107
+ <execute>1</execute>
108
+ <class_id>7</class_id>
109
+ <class_name>Imprese esenti IVA</class_name>
110
+ <class_type>CUSTOMER</class_type>
111
+ </customers_companies_no_vat>
112
+ </default>
113
+ </tax_classes>
114
+
115
+ <tax_calculation_rates>
116
+ <default>
117
+ <tax_calculation_rate_1>
118
+ <execute>1</execute>
119
+ <tax_region_id>0</tax_region_id>
120
+ <tax_postcode>*</tax_postcode>
121
+ <label>IVA 21%</label>
122
+ <rate>21</rate>
123
+ </tax_calculation_rate_1>
124
+
125
+ <tax_calculation_rate_2>
126
+ <execute>1</execute>
127
+ <tax_region_id>0</tax_region_id>
128
+ <tax_postcode>*</tax_postcode>
129
+ <label>IVA 10%</label>
130
+ <rate>10</rate>
131
+ </tax_calculation_rate_2>
132
+
133
+ <tax_calculation_rate_3>
134
+ <execute>1</execute>
135
+ <tax_region_id>0</tax_region_id>
136
+ <tax_postcode>*</tax_postcode>
137
+ <label>IVA 4%</label>
138
+ <rate>4</rate>
139
+ </tax_calculation_rate_3>
140
+
141
+ <tax_calculation_rate_4>
142
+ <execute>1</execute>
143
+ <tax_region_id>0</tax_region_id>
144
+ <tax_postcode>*</tax_postcode>
145
+ <label>IVA 0%</label>
146
+ <rate>0</rate>
147
+ </tax_calculation_rate_4>
148
+ </default>
149
+ </tax_calculation_rates>
150
+
151
+ <tax_config>
152
+ <default>
153
+ <general__country__default>DE</general__country__default>
154
+ <tax__classes__shipping_tax_class>4</tax__classes__shipping_tax_class>
155
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
156
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
157
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
158
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
159
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
160
+ <tax__defaults__country>DE</tax__defaults__country>
161
+ <tax__defaults__region>79</tax__defaults__region>
162
+ <tax__defaults__postcode>12345</tax__defaults__postcode>
163
+ <tax__display__type>2</tax__display__type>
164
+ <tax__display__shipping>2</tax__display__shipping>
165
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
166
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
167
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
168
+ <tax__cart_display__price>2</tax__cart_display__price>
169
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
170
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
171
+ <tax__sales_display__price>2</tax__sales_display__price>
172
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
173
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
174
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
175
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
176
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
177
+ <shipping__origin__country_id>DE</shipping__origin__country_id>
178
+ <shipping__origin__region_id>79</shipping__origin__region_id>
179
+ <shipping__origin__postcode>12345</shipping__origin__postcode>
180
+ <shipping__origin__city>Musterstadt</shipping__origin__city>
181
+ </default>
182
+ </tax_config>
183
+ </magesetup>
184
+ </default>
185
+ </config>
app/code/community/FireGento/MageSetup/etc/ru/cms.xml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <pages>
29
+ <default>
30
+ <magesetup_404>
31
+ <execute>1</execute>
32
+ <filename>magesetup/page/404.html</filename>
33
+ <footerlink>0</footerlink>
34
+ </magesetup_404>
35
+
36
+ <magesetup_imprint>
37
+ <execute>0</execute>
38
+ <filename>magesetup/page/imprint.html</filename>
39
+ <footerlink>1</footerlink>
40
+ </magesetup_imprint>
41
+
42
+ <magesetup_payment>
43
+ <execute>1</execute>
44
+ <filename>magesetup/page/payment.html</filename>
45
+ <footerlink>1</footerlink>
46
+ </magesetup_payment>
47
+
48
+ <magesetup_privacy>
49
+ <execute>1</execute>
50
+ <filename>magesetup/page/privacy.html</filename>
51
+ <footerlink>1</footerlink>
52
+ </magesetup_privacy>
53
+
54
+ <magesetup_shipping>
55
+ <execute>1</execute>
56
+ <filename>magesetup/page/shipping.html</filename>
57
+ <footerlink>1</footerlink>
58
+ <config_option>catalog/price/cms_page_shipping</config_option>
59
+ </magesetup_shipping>
60
+
61
+ <magesetup_order>
62
+ <execute>1</execute>
63
+ <filename>magesetup/page/order.html</filename>
64
+ <footerlink>1</footerlink>
65
+ </magesetup_order>
66
+
67
+ <magesetup_business_terms>
68
+ <execute>1</execute>
69
+ <filename>magesetup/page/business_terms.html</filename>
70
+ <footerlink>1</footerlink>
71
+ </magesetup_business_terms>
72
+
73
+ <magesetup_revocation>
74
+ <execute>1</execute>
75
+ <filename>magesetup/page/revocation.html</filename>
76
+ <footerlink>1</footerlink>
77
+ </magesetup_revocation>
78
+ </default>
79
+ </pages>
80
+
81
+ <blocks>
82
+ <default>
83
+ <business_terms>
84
+ <execute>1</execute>
85
+ <identifier>business_terms</identifier>
86
+ <filename>magesetup/block/business_terms.html</filename>
87
+ </business_terms>
88
+
89
+ <revocation>
90
+ <execute>1</execute>
91
+ <identifier>revocation</identifier>
92
+ <filename>magesetup/block/revocation.html</filename>
93
+ </revocation>
94
+
95
+ <footerlinks>
96
+ <execute>1</execute>
97
+ <identifier>footer_links</identifier>
98
+ </footerlinks>
99
+ </default>
100
+ </blocks>
101
+ </magesetup>
102
+ </default>
103
+ </config>
app/code/community/FireGento/MageSetup/etc/ru/email.xml ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <emails>
29
+ <default>
30
+ <admin_password_new>
31
+ <execute>1</execute>
32
+ <template_code>Панель администрирования. Новый пароль</template_code>
33
+ <template_type>2</template_type>
34
+ <template_file>admin_password_new.html</template_file>
35
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
36
+ <add_footer>0</add_footer>
37
+ <add_business_terms>0</add_business_terms>
38
+ <add_revocation>0</add_revocation>
39
+ </admin_password_new>
40
+
41
+ <admin_password_reset_confirmation>
42
+ <execute>1</execute>
43
+ <template_code>Панель администрирования. Подтверждение сброса пароля</template_code>
44
+ <template_type>2</template_type>
45
+ <template_file>admin_password_reset_confirmation.html</template_file>
46
+ <config_data_path>admin/emails/forgot_email_template</config_data_path>
47
+ <add_footer>0</add_footer>
48
+ <add_business_terms>0</add_business_terms>
49
+ <add_revocation>0</add_revocation>
50
+ </admin_password_reset_confirmation>
51
+
52
+ <currency_update_warning>
53
+ <execute>1</execute>
54
+ <template_code>Обновление курса валют</template_code>
55
+ <template_type>1</template_type>
56
+ <template_file>currency_update_warning.html</template_file>
57
+ <config_data_path>currency/import/error_email_template</config_data_path>
58
+ <add_footer>0</add_footer>
59
+ <add_business_terms>0</add_business_terms>
60
+ <add_revocation>0</add_revocation>
61
+ </currency_update_warning>
62
+
63
+ <account_new>
64
+ <execute>1</execute>
65
+ <template_code>Новая учётная запись</template_code>
66
+ <template_type>2</template_type>
67
+ <template_file>account_new.html</template_file>
68
+ <config_data_path>customer/create_account/email_template</config_data_path>
69
+ <add_footer>1</add_footer>
70
+ <add_business_terms>0</add_business_terms>
71
+ <add_revocation>0</add_revocation>
72
+ </account_new>
73
+
74
+ <customer_password_remind_email_template>
75
+ <execute>1</execute>
76
+ <template_code>Напоминание пароля</template_code>
77
+ <template_type>2</template_type>
78
+ <template_file>password_new.html</template_file>
79
+ <config_data_path>customer/password/remind_email_template</config_data_path>
80
+ <add_footer>1</add_footer>
81
+ <add_business_terms>0</add_business_terms>
82
+ <add_revocation>0</add_revocation>
83
+ </customer_password_remind_email_template>
84
+
85
+ <account_new_confirmation>
86
+ <execute>1</execute>
87
+ <template_code>Новая учётная запись. Подтверждение</template_code>
88
+ <template_type>2</template_type>
89
+ <template_file>account_new_confirmation.html</template_file>
90
+ <config_data_path>customer/create_account/email_confirmation_template</config_data_path>
91
+ <add_footer>1</add_footer>
92
+ <add_business_terms>0</add_business_terms>
93
+ <add_revocation>0</add_revocation>
94
+ </account_new_confirmation>
95
+
96
+ <account_new_confirmed>
97
+ <execute>1</execute>
98
+ <template_code>Новая учётная запись. Подтверждено</template_code>
99
+ <template_type>2</template_type>
100
+ <template_file>account_new_confirmed.html</template_file>
101
+ <config_data_path>customer/create_account/email_confirmed_template</config_data_path>
102
+ <add_footer>1</add_footer>
103
+ <add_business_terms>0</add_business_terms>
104
+ <add_revocation>0</add_revocation>
105
+ </account_new_confirmed>
106
+
107
+ <password_new>
108
+ <execute>1</execute>
109
+ <template_code>Новый пароль</template_code>
110
+ <template_type>2</template_type>
111
+ <template_file>password_new.html</template_file>
112
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
113
+ <add_footer>1</add_footer>
114
+ <add_business_terms>0</add_business_terms>
115
+ <add_revocation>0</add_revocation>
116
+ </password_new>
117
+
118
+ <account_password_reset_confirmation>
119
+ <execute>1</execute>
120
+ <template_code>Подтверждение сброса пароля</template_code>
121
+ <template_type>2</template_type>
122
+ <template_file>account_password_reset_confirmation.html</template_file>
123
+ <config_data_path>customer/password/forgot_email_template</config_data_path>
124
+ <add_footer>1</add_footer>
125
+ <add_business_terms>0</add_business_terms>
126
+ <add_revocation>0</add_revocation>
127
+ </account_password_reset_confirmation>
128
+
129
+ <order_new>
130
+ <execute>1</execute>
131
+ <template_code>Новый заказ</template_code>
132
+ <template_type>2</template_type>
133
+ <template_file>sales/order_new.html</template_file>
134
+ <config_data_path>sales_email/order/template</config_data_path>
135
+ <add_footer>1</add_footer>
136
+ <add_business_terms>1</add_business_terms>
137
+ <add_revocation>1</add_revocation>
138
+ </order_new>
139
+
140
+ <order_new_guest>
141
+ <execute>1</execute>
142
+ <template_code>Новый заказ для гостя</template_code>
143
+ <template_type>2</template_type>
144
+ <template_file>sales/order_new_guest.html</template_file>
145
+ <config_data_path>sales_email/order/guest_template</config_data_path>
146
+ <add_footer>1</add_footer>
147
+ <add_business_terms>1</add_business_terms>
148
+ <add_revocation>1</add_revocation>
149
+ </order_new_guest>
150
+
151
+ <order_update>
152
+ <execute>1</execute>
153
+ <template_code>Изменение заказа</template_code>
154
+ <template_type>2</template_type>
155
+ <template_file>sales/order_update.html</template_file>
156
+ <config_data_path>sales_email/order_comment/template</config_data_path>
157
+ <add_footer>1</add_footer>
158
+ <add_business_terms>0</add_business_terms>
159
+ <add_revocation>0</add_revocation>
160
+ </order_update>
161
+
162
+ <order_update_guest>
163
+ <execute>1</execute>
164
+ <template_code>Изменение заказа для гостя</template_code>
165
+ <template_type>2</template_type>
166
+ <template_file>sales/order_update_guest.html</template_file>
167
+ <config_data_path>sales_email/order_comment/guest_template</config_data_path>
168
+ <add_footer>1</add_footer>
169
+ <add_business_terms>0</add_business_terms>
170
+ <add_revocation>0</add_revocation>
171
+ </order_update_guest>
172
+
173
+ <invoice_new>
174
+ <execute>1</execute>
175
+ <template_code>Новый счёт</template_code>
176
+ <template_type>2</template_type>
177
+ <template_file>sales/invoice_new.html</template_file>
178
+ <config_data_path>sales_email/invoice/template</config_data_path>
179
+ <add_footer>1</add_footer>
180
+ <add_business_terms>0</add_business_terms>
181
+ <add_revocation>0</add_revocation>
182
+ </invoice_new>
183
+
184
+ <invoice_new_guest>
185
+ <execute>1</execute>
186
+ <template_code>Новый счёт для гостя</template_code>
187
+ <template_type>2</template_type>
188
+ <template_file>sales/invoice_new_guest.html</template_file>
189
+ <config_data_path>sales_email/invoice/guest_template</config_data_path>
190
+ <add_footer>1</add_footer>
191
+ <add_business_terms>0</add_business_terms>
192
+ <add_revocation>0</add_revocation>
193
+ </invoice_new_guest>
194
+
195
+ <invoice_update>
196
+ <execute>1</execute>
197
+ <template_code>Изменение счёта</template_code>
198
+ <template_type>2</template_type>
199
+ <template_file>sales/invoice_update.html</template_file>
200
+ <config_data_path>sales_email/invoice_comment/template</config_data_path>
201
+ <add_footer>1</add_footer>
202
+ <add_business_terms>0</add_business_terms>
203
+ <add_revocation>0</add_revocation>
204
+ </invoice_update>
205
+
206
+ <invoice_update_guest>
207
+ <execute>1</execute>
208
+ <template_code>Изменение счёта для гостя</template_code>
209
+ <template_type>2</template_type>
210
+ <template_file>sales/invoice_update_guest.html</template_file>
211
+ <config_data_path>sales_email/invoice_comment/guest_template</config_data_path>
212
+ <add_footer>1</add_footer>
213
+ <add_business_terms>0</add_business_terms>
214
+ <add_revocation>0</add_revocation>
215
+ </invoice_update_guest>
216
+
217
+ <creditmemo_new>
218
+ <execute>1</execute>
219
+ <template_code>Новый возврат</template_code>
220
+ <template_type>2</template_type>
221
+ <template_file>sales/creditmemo_new.html</template_file>
222
+ <config_data_path>sales_email/creditmemo/template</config_data_path>
223
+ <add_footer>1</add_footer>
224
+ <add_business_terms>0</add_business_terms>
225
+ <add_revocation>0</add_revocation>
226
+ </creditmemo_new>
227
+
228
+ <creditmemo_new_guest>
229
+ <execute>1</execute>
230
+ <template_code>Новый возврат для гостя</template_code>
231
+ <template_type>2</template_type>
232
+ <template_file>sales/creditmemo_new_guest.html</template_file>
233
+ <config_data_path>sales_email/creditmemo/guest_template</config_data_path>
234
+ <add_footer>1</add_footer>
235
+ <add_business_terms>0</add_business_terms>
236
+ <add_revocation>0</add_revocation>
237
+ </creditmemo_new_guest>
238
+
239
+ <creditmemo_update>
240
+ <execute>1</execute>
241
+ <template_code>Изменение возврата</template_code>
242
+ <template_type>2</template_type>
243
+ <template_file>sales/creditmemo_update.html</template_file>
244
+ <config_data_path>sales_email/creditmemo_comment/template</config_data_path>
245
+ <add_footer>1</add_footer>
246
+ <add_business_terms>0</add_business_terms>
247
+ <add_revocation>0</add_revocation>
248
+ </creditmemo_update>
249
+
250
+ <creditmemo_update_guest>
251
+ <execute>1</execute>
252
+ <template_code>Изменение возврата для гостя</template_code>
253
+ <template_type>2</template_type>
254
+ <template_file>sales/creditmemo_update_guest.html</template_file>
255
+ <config_data_path>sales_email/creditmemo_comment/guest_template</config_data_path>
256
+ <add_footer>1</add_footer>
257
+ <add_business_terms>0</add_business_terms>
258
+ <add_revocation>0</add_revocation>
259
+ </creditmemo_update_guest>
260
+
261
+ <shipment_new>
262
+ <execute>1</execute>
263
+ <template_code>Новая доставка</template_code>
264
+ <template_type>2</template_type>
265
+ <template_file>sales/shipment_new.html</template_file>
266
+ <config_data_path>sales_email/shipment/template</config_data_path>
267
+ <add_footer>1</add_footer>
268
+ <add_business_terms>0</add_business_terms>
269
+ <add_revocation>0</add_revocation>
270
+ </shipment_new>
271
+
272
+ <shipment_new_guest>
273
+ <execute>1</execute>
274
+ <template_code>Новая доставка для гостя</template_code>
275
+ <template_type>2</template_type>
276
+ <template_file>sales/shipment_new_guest.html</template_file>
277
+ <config_data_path>sales_email/shipment/guest_template</config_data_path>
278
+ <add_footer>1</add_footer>
279
+ <add_business_terms>0</add_business_terms>
280
+ <add_revocation>0</add_revocation>
281
+ </shipment_new_guest>
282
+
283
+ <shipment_update>
284
+ <execute>1</execute>
285
+ <template_code>Изменение доставки</template_code>
286
+ <template_type>2</template_type>
287
+ <template_file>sales/shipment_update.html</template_file>
288
+ <config_data_path>sales_email/shipment_comment/template</config_data_path>
289
+ <add_footer>1</add_footer>
290
+ <add_business_terms>0</add_business_terms>
291
+ <add_revocation>0</add_revocation>
292
+ </shipment_update>
293
+
294
+ <shipment_update_guest>
295
+ <execute>1</execute>
296
+ <template_code>Изменение доставки для гостя</template_code>
297
+ <template_type>2</template_type>
298
+ <template_file>sales/shipment_update_guest.html</template_file>
299
+ <config_data_path>sales_email/shipment_comment/guest_template</config_data_path>
300
+ <add_footer>1</add_footer>
301
+ <add_business_terms>0</add_business_terms>
302
+ <add_revocation>0</add_revocation>
303
+ </shipment_update_guest>
304
+
305
+ <payment_failed>
306
+ <execute>1</execute>
307
+ <template_code>Платёжная транзакция не удалась</template_code>
308
+ <template_type>2</template_type>
309
+ <template_file>payment_failed.html</template_file>
310
+ <config_data_path>checkout/payment_failed/template</config_data_path>
311
+ <add_footer>0</add_footer>
312
+ <add_business_terms>0</add_business_terms>
313
+ <add_revocation>0</add_revocation>
314
+ </payment_failed>
315
+
316
+ <log_clean_warning>
317
+ <execute>1</execute>
318
+ <template_code>Предупреждения при очистке лога</template_code>
319
+ <template_type>1</template_type>
320
+ <template_file>log_clean_warning.html</template_file>
321
+ <config_data_path>system/log/error_email_template</config_data_path>
322
+ <add_footer>0</add_footer>
323
+ <add_business_terms>0</add_business_terms>
324
+ <add_revocation>0</add_revocation>
325
+ </log_clean_warning>
326
+
327
+ <newsletter_subscr_confirm>
328
+ <execute>1</execute>
329
+ <template_code>Подписка на новости. Подтверждение</template_code>
330
+ <template_type>2</template_type>
331
+ <template_file>newsletter_subscr_confirm.html</template_file>
332
+ <config_data_path>newsletter/subscription/confirm_email_template</config_data_path>
333
+ <add_footer>1</add_footer>
334
+ <add_business_terms>0</add_business_terms>
335
+ <add_revocation>0</add_revocation>
336
+ </newsletter_subscr_confirm>
337
+
338
+ <newsletter_subscr_success>
339
+ <execute>1</execute>
340
+ <template_code>Подписка на новости. Подписан</template_code>
341
+ <template_type>2</template_type>
342
+ <template_file>newsletter_subscr_success.html</template_file>
343
+ <config_data_path>newsletter/subscription/success_email_template</config_data_path>
344
+ <add_footer>1</add_footer>
345
+ <add_business_terms>0</add_business_terms>
346
+ <add_revocation>0</add_revocation>
347
+ </newsletter_subscr_success>
348
+
349
+ <newsletter_unsub_success>
350
+ <execute>1</execute>
351
+ <template_code>Подписка на новости. Отписан</template_code>
352
+ <template_type>2</template_type>
353
+ <template_file>newsletter_unsub_success.html</template_file>
354
+ <config_data_path>newsletter/subscription/un_email_template</config_data_path>
355
+ <add_footer>1</add_footer>
356
+ <add_business_terms>0</add_business_terms>
357
+ <add_revocation>0</add_revocation>
358
+ </newsletter_unsub_success>
359
+
360
+ <wishlist_share>
361
+ <execute>1</execute>
362
+ <template_code>Поделиться листом пожеланий</template_code>
363
+ <template_type>2</template_type>
364
+ <template_file>wishlist_share.html</template_file>
365
+ <config_data_path>wishlist/email/email_template</config_data_path>
366
+ <add_footer>0</add_footer>
367
+ <add_business_terms>0</add_business_terms>
368
+ <add_revocation>0</add_revocation>
369
+ </wishlist_share>
370
+
371
+ <product_share>
372
+ <execute>1</execute>
373
+ <template_code>Послать инфо о товаре другу</template_code>
374
+ <template_type>2</template_type>
375
+ <template_file>product_share.html</template_file>
376
+ <config_data_path>sendfriend/email/template</config_data_path>
377
+ <add_footer>1</add_footer>
378
+ <add_business_terms>0</add_business_terms>
379
+ <add_revocation>0</add_revocation>
380
+ </product_share>
381
+
382
+ <contact_form>
383
+ <execute>1</execute>
384
+ <template_code>Контактная форма</template_code>
385
+ <template_type>1</template_type>
386
+ <template_file>contact_form.html</template_file>
387
+ <config_data_path>contacts/email/email_template</config_data_path>
388
+ <add_footer>0</add_footer>
389
+ <add_business_terms>0</add_business_terms>
390
+ <add_revocation>0</add_revocation>
391
+ </contact_form>
392
+
393
+ <sitemap_generate_warning>
394
+ <execute>1</execute>
395
+ <template_code>Предупреждение при создании карты сайта</template_code>
396
+ <template_type>1</template_type>
397
+ <template_file>sitemap_generate_warning.html</template_file>
398
+ <config_data_path>sitemap/generate/error_email_template</config_data_path>
399
+ <add_footer>0</add_footer>
400
+ <add_business_terms>0</add_business_terms>
401
+ <add_revocation>0</add_revocation>
402
+ </sitemap_generate_warning>
403
+
404
+ <product_stock_alert>
405
+ <execute>1</execute>
406
+ <template_code>Product Stock Alert</template_code>
407
+ <template_type>2</template_type>
408
+ <template_file>product_stock_alert.html</template_file>
409
+ <config_data_path>catalog/productalert/email_stock_template</config_data_path>
410
+ <add_footer>0</add_footer>
411
+ <add_business_terms>0</add_business_terms>
412
+ <add_revocation>0</add_revocation>
413
+ </product_stock_alert>
414
+
415
+ <product_price_alert>
416
+ <execute>1</execute>
417
+ <template_code>Оповещение: Изменение цены товара</template_code>
418
+ <template_type>2</template_type>
419
+ <template_file>product_price_alert.html</template_file>
420
+ <config_data_path>catalog/productalert/email_price_template</config_data_path>
421
+ <add_footer>0</add_footer>
422
+ <add_business_terms>0</add_business_terms>
423
+ <add_revocation>0</add_revocation>
424
+ </product_price_alert>
425
+
426
+ <product_alert_cron_error>
427
+ <execute>1</execute>
428
+ <template_code>Ошибка планировщика задач (Cron): Оповещения о товаре</template_code>
429
+ <template_type>2</template_type>
430
+ <template_file>product_alert_cron_error.html</template_file>
431
+ <config_data_path>catalog/productalert_cron/error_email_template</config_data_path>
432
+ <add_footer>0</add_footer>
433
+ <add_business_terms>0</add_business_terms>
434
+ <add_revocation>0</add_revocation>
435
+ </product_alert_cron_error>
436
+
437
+ <enterprise_invitation>
438
+ <execute>1</execute>
439
+ <template_code>Приглашение</template_code>
440
+ <template_type>2</template_type>
441
+ <template_file>enterprise_invitation.html</template_file>
442
+ <config_data_path>enterprise_invitation/email/template</config_data_path>
443
+ <add_footer>0</add_footer>
444
+ <add_business_terms>0</add_business_terms>
445
+ <add_revocation>0</add_revocation>
446
+ </enterprise_invitation>
447
+
448
+ <token>
449
+ <execute>1</execute>
450
+ <template_code>OAuth Token</template_code>
451
+ <template_type>2</template_type>
452
+ <template_file>token.html</template_file>
453
+ <config_data_path>oauth/email/template</config_data_path>
454
+ <add_footer>0</add_footer>
455
+ <add_business_terms>0</add_business_terms>
456
+ <add_revocation>0</add_revocation>
457
+ </token>
458
+ </default>
459
+ </emails>
460
+ <email_footers>
461
+ <default>
462
+ <footer>
463
+ <![CDATA[
464
+ <tr>
465
+ <td>
466
+ {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}}
467
+ </td>
468
+ </tr>
469
+ ]]>
470
+ </footer>
471
+ <business_terms>
472
+ <![CDATA[
473
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
474
+ <tr>
475
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
476
+ {{block type="cms/block" block_id="business_terms"}}
477
+ </td>
478
+ </tr>
479
+ ]]>
480
+ </business_terms>
481
+ <revocation>
482
+ <![CDATA[
483
+ <tr><td style="border-bottom:2px solid #eee;">&nbsp;</td></tr>
484
+ <tr>
485
+ <td style="font:9px/1em Verdana, Arial, Helvetica, sans-serif;">
486
+ {{block type="cms/block" block_id="revocation"}}
487
+ </td>
488
+ </tr>
489
+ ]]>
490
+ </revocation>
491
+ </default>
492
+ </email_footers>
493
+ </magesetup>
494
+ </default>
495
+ </config>
app/code/community/FireGento/MageSetup/etc/ru/systemconfig.xml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <system_config>
29
+ <default>
30
+ <customer__create_account__confirm>0</customer__create_account__confirm>
31
+ <newsletter__subscription__confirm>1</newsletter__subscription__confirm>
32
+ <catalog__price__display_block_below_price>0</catalog__price__display_block_below_price>
33
+ </default>
34
+ </system_config>
35
+ </magesetup>
36
+ </default>
37
+ </config>
app/code/community/FireGento/MageSetup/etc/ru/tax.xml ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <default>
27
+ <magesetup>
28
+ <tax_calculation_rules>
29
+ <default>
30
+ <products_rate_1 tax_rate="tax_calculation_rate_1"
31
+ tax_customer_class="customers_end_consumers,customers_companies"
32
+ tax_product_class="products_full_tax,shipping_full_tax">
33
+ <execute>1</execute>
34
+ <code>Customers buy products with full tax</code>
35
+ <priority>1</priority>
36
+ <position>0</position>
37
+ </products_rate_1>
38
+ <products_rate_2 tax_rate="tax_calculation_rate_2"
39
+ tax_customer_class="customers_end_users,customers_companies"
40
+ tax_product_class="products_reduced_tax,shipping_reduced_tax">
41
+ <execute>1</execute>
42
+ <code>Customers buy products with reduced tax</code>
43
+ <priority>1</priority>
44
+ <position>0</position>
45
+ </products_rate_2>
46
+ <products_rate_3 tax_rate="tax_calculation_rate_3"
47
+ tax_customer_class="customers_companies_no_vat"
48
+ tax_product_class="products_full_tax,shipping_full_tax,products_reduced_tax,shipping_reduced_tax">
49
+ <execute>1</execute>
50
+ <code>Non-taxable companies buy products with full and reduced tax</code>
51
+ <priority>1</priority>
52
+ <position>0</position>
53
+ </products_rate_3>
54
+ </default>
55
+ </tax_calculation_rules>
56
+
57
+ <tax_classes>
58
+ <default>
59
+ <products_full_tax>
60
+ <execute>1</execute>
61
+ <class_id>1</class_id>
62
+ <class_name>Products with full Tax</class_name>
63
+ <class_type>PRODUCT</class_type>
64
+ <default>1</default>
65
+ </products_full_tax>
66
+ <products_reduced_tax>
67
+ <execute>1</execute>
68
+ <class_id>2</class_id>
69
+ <class_name>Products with reduced Tax</class_name>
70
+ <class_type>PRODUCT</class_type>
71
+ <default>0</default>
72
+ </products_reduced_tax>
73
+ <shipping_full_tax>
74
+ <execute>1</execute>
75
+ <class_id>3</class_id>
76
+ <class_name>Shipping with full Tax</class_name>
77
+ <class_type>PRODUCT</class_type>
78
+ <default>0</default>
79
+ </shipping_full_tax>
80
+ <shipping_reduced_tax>
81
+ <execute>1</execute>
82
+ <class_id>4</class_id>
83
+ <class_name>Shipping with reduced Tax</class_name>
84
+ <class_type>PRODUCT</class_type>
85
+ <default>0</default>
86
+ </shipping_reduced_tax>
87
+ <customers_end_consumers>
88
+ <execute>1</execute>
89
+ <class_id>5</class_id>
90
+ <class_name>End Consumers</class_name>
91
+ <class_type>CUSTOMER</class_type>
92
+ </customers_end_consumers>
93
+ <customers_companies>
94
+ <execute>1</execute>
95
+ <class_id>6</class_id>
96
+ <class_name>Taxable Companies</class_name>
97
+ <class_type>CUSTOMER</class_type>
98
+ </customers_companies>
99
+ <customers_companies_no_vat>
100
+ <execute>1</execute>
101
+ <class_id>7</class_id>
102
+ <class_name>Non-Taxable Companies</class_name>
103
+ <class_type>CUSTOMER</class_type>
104
+ </customers_companies_no_vat>
105
+ </default>
106
+ </tax_classes>
107
+
108
+ <tax_calculation_rates>
109
+ <default>
110
+ <tax_calculation_rate_1>
111
+ <execute>1</execute>
112
+ <tax_region_id>0</tax_region_id>
113
+ <tax_postcode>*</tax_postcode>
114
+ <label>VAT</label>
115
+ <rate>18</rate>
116
+ </tax_calculation_rate_1>
117
+
118
+ <tax_calculation_rate_2>
119
+ <execute>1</execute>
120
+ <tax_region_id>0</tax_region_id>
121
+ <tax_postcode>*</tax_postcode>
122
+ <label>reduced VAT</label>
123
+ <rate>10</rate>
124
+ </tax_calculation_rate_2>
125
+
126
+ <tax_calculation_rate_3>
127
+ <execute>1</execute>
128
+ <tax_region_id>0</tax_region_id>
129
+ <tax_postcode>*</tax_postcode>
130
+ <label>without VAT</label>
131
+ <rate>0</rate>
132
+ </tax_calculation_rate_3>
133
+ </default>
134
+ </tax_calculation_rates>
135
+
136
+ <tax_config>
137
+ <default>
138
+ <general__country__default>RU</general__country__default>
139
+ <tax__classes__shipping_tax_class>3</tax__classes__shipping_tax_class>
140
+ <tax__calculation__based_on>billing</tax__calculation__based_on>
141
+ <tax__calculation__price_includes_tax>1</tax__calculation__price_includes_tax>
142
+ <tax__calculation__shipping_includes_tax>1</tax__calculation__shipping_includes_tax>
143
+ <tax__calculation__apply_after_discount>1</tax__calculation__apply_after_discount>
144
+ <tax__calculation__discount_tax>1</tax__calculation__discount_tax>
145
+ <tax__defaults__country>RU</tax__defaults__country>
146
+ <tax__defaults__region>79</tax__defaults__region>
147
+ <tax__defaults__postcode>12345</tax__defaults__postcode>
148
+ <tax__display__type>2</tax__display__type>
149
+ <tax__display__shipping>2</tax__display__shipping>
150
+ <tax__cart_display__subtotal>2</tax__cart_display__subtotal>
151
+ <tax__cart_display__full_summary>1</tax__cart_display__full_summary>
152
+ <tax__cart_display__shipping>2</tax__cart_display__shipping>
153
+ <tax__cart_display__price>2</tax__cart_display__price>
154
+ <tax__cart_display__zero_tax>1</tax__cart_display__zero_tax>
155
+ <tax__cart_display__grandtotal>0</tax__cart_display__grandtotal>
156
+ <tax__sales_display__price>2</tax__sales_display__price>
157
+ <tax__sales_display__subtotal>2</tax__sales_display__subtotal>
158
+ <tax__sales_display__shipping>2</tax__sales_display__shipping>
159
+ <tax__sales_display__grandtotal>0</tax__sales_display__grandtotal>
160
+ <tax__sales_display__full_summary>1</tax__sales_display__full_summary>
161
+ <tax__sales_display__zero_tax>1</tax__sales_display__zero_tax>
162
+ <shipping__origin__country_id>RU</shipping__origin__country_id>
163
+ <shipping__origin__region_id>79</shipping__origin__region_id>
164
+ <shipping__origin__postcode>12345</shipping__origin__postcode>
165
+ <shipping__origin__city>Sample City</shipping__origin__city>
166
+ </default>
167
+ </tax_config>
168
+ </magesetup>
169
+ </default>
170
+ </config>
app/code/community/FireGento/MageSetup/etc/system.xml ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <sections>
27
+ <catalog>
28
+ <groups>
29
+ <price>
30
+ <show_in_website>1</show_in_website>
31
+ <show_in_store>1</show_in_store>
32
+ <fields>
33
+ <display_block_below_price translate="label,comment" module="magesetup">
34
+ <label>Display Block below Price</label>
35
+ <comment>Display tax info and shipping cost link below the price on all pages</comment>
36
+ <frontend_type>select</frontend_type>
37
+ <source_model>adminhtml/system_config_source_yesno</source_model>
38
+ <sort_order>20</sort_order>
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
+ </display_block_below_price>
43
+ <display_delivery_time_on_categories translate="label,comment" module="magesetup">
44
+ <label>Display Delivery time on Category Pages</label>
45
+ <frontend_type>select</frontend_type>
46
+ <source_model>adminhtml/system_config_source_yesno</source_model>
47
+ <sort_order>25</sort_order>
48
+ <show_in_default>1</show_in_default>
49
+ <show_in_website>1</show_in_website>
50
+ <show_in_store>1</show_in_store>
51
+ </display_delivery_time_on_categories>
52
+ <cms_page_shipping translate="label" module="magesetup">
53
+ <label>CMS Page for Shipping Info</label>
54
+ <frontend_type>select</frontend_type>
55
+ <source_model>magesetup/source_cms_page</source_model>
56
+ <sort_order>30</sort_order>
57
+ <show_in_default>1</show_in_default>
58
+ <show_in_website>1</show_in_website>
59
+ <show_in_store>1</show_in_store>
60
+ </cms_page_shipping>
61
+ <including_shipping_costs translate="label" module="magesetup">
62
+ <label>Show "incl. Shipping Cost" instead of "excl. Shipping Cost"</label>
63
+ <frontend_type>select</frontend_type>
64
+ <source_model>adminhtml/system_config_source_yesno</source_model>
65
+ <sort_order>40</sort_order>
66
+ <show_in_default>1</show_in_default>
67
+ <show_in_website>1</show_in_website>
68
+ <show_in_store>1</show_in_store>
69
+ </including_shipping_costs>
70
+ <display_product_weight translate="label,comment" module="magesetup">
71
+ <label>Display Product Weight below Price</label>
72
+ <frontend_type>select</frontend_type>
73
+ <source_model>adminhtml/system_config_source_yesno</source_model>
74
+ <sort_order>50</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_website>1</show_in_website>
77
+ <show_in_store>1</show_in_store>
78
+ </display_product_weight>
79
+ <weight_unit translate="label,comment" module="magesetup">
80
+ <label>Unit for Product Weight</label>
81
+ <comment>e.g. g, kg, lb, ...</comment>
82
+ <frontend_type>text</frontend_type>
83
+ <sort_order>60</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </weight_unit>
88
+ </fields>
89
+ </price>
90
+ </groups>
91
+ </catalog>
92
+ <general>
93
+ <groups>
94
+ <imprint translate="label" module="magesetup">
95
+ <label>Imprint</label>
96
+ <frontend_type>text</frontend_type>
97
+ <sort_order>900</sort_order>
98
+ <show_in_default>1</show_in_default>
99
+ <show_in_website>1</show_in_website>
100
+ <show_in_store>1</show_in_store>
101
+ <fields>
102
+ <shop_name translate="label">
103
+ <label>Shop Name</label>
104
+ <frontend_type>text</frontend_type>
105
+ <sort_order>5</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </shop_name>
110
+ <company_first translate="label">
111
+ <label>Company 1</label>
112
+ <frontend_type>text</frontend_type>
113
+ <sort_order>10</sort_order>
114
+ <show_in_default>1</show_in_default>
115
+ <show_in_website>1</show_in_website>
116
+ <show_in_store>1</show_in_store>
117
+ </company_first>
118
+ <company_second translate="label">
119
+ <label>Company 2</label>
120
+ <frontend_type>text</frontend_type>
121
+ <sort_order>20</sort_order>
122
+ <show_in_default>1</show_in_default>
123
+ <show_in_website>1</show_in_website>
124
+ <show_in_store>1</show_in_store>
125
+ </company_second>
126
+ <street translate="label">
127
+ <label>Street</label>
128
+ <frontend_type>text</frontend_type>
129
+ <sort_order>30</sort_order>
130
+ <show_in_default>1</show_in_default>
131
+ <show_in_website>1</show_in_website>
132
+ <show_in_store>1</show_in_store>
133
+ </street>
134
+ <zip translate="label">
135
+ <label>Zip</label>
136
+ <frontend_type>text</frontend_type>
137
+ <sort_order>40</sort_order>
138
+ <show_in_default>1</show_in_default>
139
+ <show_in_website>1</show_in_website>
140
+ <show_in_store>1</show_in_store>
141
+ </zip>
142
+ <city translate="label">
143
+ <label>City</label>
144
+ <frontend_type>text</frontend_type>
145
+ <sort_order>50</sort_order>
146
+ <show_in_default>1</show_in_default>
147
+ <show_in_website>1</show_in_website>
148
+ <show_in_store>1</show_in_store>
149
+ </city>
150
+ <country translate="label">
151
+ <label>Country</label>
152
+ <frontend_type>select</frontend_type>
153
+ <source_model>adminhtml/system_config_source_country</source_model>
154
+ <sort_order>55</sort_order>
155
+ <show_in_default>1</show_in_default>
156
+ <show_in_website>1</show_in_website>
157
+ <show_in_store>0</show_in_store>
158
+ <can_be_empty>1</can_be_empty>
159
+ </country>
160
+ <telephone translate="label">
161
+ <label>Telephone</label>
162
+ <frontend_type>text</frontend_type>
163
+ <sort_order>60</sort_order>
164
+ <show_in_default>1</show_in_default>
165
+ <show_in_website>1</show_in_website>
166
+ <show_in_store>1</show_in_store>
167
+ </telephone>
168
+ <fax translate="label">
169
+ <label>Fax</label>
170
+ <frontend_type>text</frontend_type>
171
+ <sort_order>70</sort_order>
172
+ <show_in_default>1</show_in_default>
173
+ <show_in_website>1</show_in_website>
174
+ <show_in_store>1</show_in_store>
175
+ </fax>
176
+ <email translate="label">
177
+ <label>E-Mail</label>
178
+ <frontend_type>text</frontend_type>
179
+ <sort_order>75</sort_order>
180
+ <show_in_default>1</show_in_default>
181
+ <show_in_website>1</show_in_website>
182
+ <show_in_store>1</show_in_store>
183
+ </email>
184
+ <web translate="label">
185
+ <label>Website</label>
186
+ <frontend_type>text</frontend_type>
187
+ <sort_order>80</sort_order>
188
+ <show_in_default>1</show_in_default>
189
+ <show_in_website>1</show_in_website>
190
+ <show_in_store>1</show_in_store>
191
+ </web>
192
+ <tax_number translate="label">
193
+ <label>Tax number</label>
194
+ <frontend_type>text</frontend_type>
195
+ <sort_order>90</sort_order>
196
+ <show_in_default>1</show_in_default>
197
+ <show_in_website>1</show_in_website>
198
+ <show_in_store>1</show_in_store>
199
+ </tax_number>
200
+ <vat_id translate="label">
201
+ <label>VAT-ID</label>
202
+ <frontend_type>text</frontend_type>
203
+ <sort_order>100</sort_order>
204
+ <show_in_default>1</show_in_default>
205
+ <show_in_website>1</show_in_website>
206
+ <show_in_store>1</show_in_store>
207
+ </vat_id>
208
+ <court translate="label">
209
+ <label>Register court</label>
210
+ <frontend_type>text</frontend_type>
211
+ <sort_order>110</sort_order>
212
+ <show_in_default>1</show_in_default>
213
+ <show_in_website>1</show_in_website>
214
+ <show_in_store>1</show_in_store>
215
+ </court>
216
+ <financial_office translate="label">
217
+ <label>Financial office</label>
218
+ <frontend_type>text</frontend_type>
219
+ <sort_order>120</sort_order>
220
+ <show_in_default>1</show_in_default>
221
+ <show_in_website>1</show_in_website>
222
+ <show_in_store>1</show_in_store>
223
+ </financial_office>
224
+ <ceo translate="label">
225
+ <label>CEO</label>
226
+ <frontend_type>text</frontend_type>
227
+ <sort_order>130</sort_order>
228
+ <show_in_default>1</show_in_default>
229
+ <show_in_website>1</show_in_website>
230
+ <show_in_store>1</show_in_store>
231
+ </ceo>
232
+ <owner translate="label">
233
+ <label>Owner</label>
234
+ <frontend_type>text</frontend_type>
235
+ <sort_order>135</sort_order>
236
+ <show_in_default>1</show_in_default>
237
+ <show_in_website>1</show_in_website>
238
+ <show_in_store>1</show_in_store>
239
+ </owner>
240
+ <content_responsable_name translate="label">
241
+ <label>Responsible for content</label>
242
+ <frontend_type>text</frontend_type>
243
+ <sort_order>137</sort_order>
244
+ <show_in_default>1</show_in_default>
245
+ <show_in_website>1</show_in_website>
246
+ <show_in_store>1</show_in_store>
247
+ </content_responsable_name>
248
+ <content_responsable_address translate="label">
249
+ <label>Responsible for content address</label>
250
+ <frontend_type>textarea</frontend_type>
251
+ <sort_order>138</sort_order>
252
+ <show_in_default>1</show_in_default>
253
+ <show_in_website>1</show_in_website>
254
+ <show_in_store>1</show_in_store>
255
+ </content_responsable_address>
256
+ <content_responsable_press_law translate="label">
257
+ <label>Responsible in the interests of the press law</label>
258
+ <frontend_type>text</frontend_type>
259
+ <sort_order>139</sort_order>
260
+ <show_in_default>1</show_in_default>
261
+ <show_in_website>1</show_in_website>
262
+ <show_in_store>1</show_in_store>
263
+ </content_responsable_press_law>
264
+ <register_number translate="label">
265
+ <label>Register number</label>
266
+ <frontend_type>text</frontend_type>
267
+ <sort_order>140</sort_order>
268
+ <show_in_default>1</show_in_default>
269
+ <show_in_website>1</show_in_website>
270
+ <show_in_store>1</show_in_store>
271
+ </register_number>
272
+ <business_rules translate="label">
273
+ <label>Reference for business rules (physician, physician...)</label>
274
+ <frontend_type>textarea</frontend_type>
275
+ <sort_order>142</sort_order>
276
+ <show_in_default>1</show_in_default>
277
+ <show_in_website>1</show_in_website>
278
+ <show_in_store>1</show_in_store>
279
+ <hide_in_invoice_pdf>1</hide_in_invoice_pdf>
280
+ </business_rules>
281
+ <authority translate="label,comment">
282
+ <label>Authority (ECG)</label>
283
+ <comment>relevant for Austrian shops</comment>
284
+ <frontend_type>text</frontend_type>
285
+ <sort_order>200</sort_order>
286
+ <show_in_default>1</show_in_default>
287
+ <show_in_website>1</show_in_website>
288
+ <show_in_store>1</show_in_store>
289
+ <hide_in_invoice_pdf>1</hide_in_invoice_pdf>
290
+ </authority>
291
+ <shareholdings translate="label,comment">
292
+ <label>Shareholdings</label>
293
+ <comment>relevant for Austrian shops</comment>
294
+ <frontend_type>textarea</frontend_type>
295
+ <sort_order>210</sort_order>
296
+ <show_in_default>1</show_in_default>
297
+ <show_in_website>1</show_in_website>
298
+ <show_in_store>1</show_in_store>
299
+ <hide_in_invoice_pdf>1</hide_in_invoice_pdf>
300
+ </shareholdings>
301
+ <editorial_concept translate="label,comment">
302
+ <label>Editorial Concept</label>
303
+ <comment>relevant for Austrian shops</comment>
304
+ <frontend_type>text</frontend_type>
305
+ <sort_order>220</sort_order>
306
+ <show_in_default>1</show_in_default>
307
+ <show_in_website>1</show_in_website>
308
+ <show_in_store>1</show_in_store>
309
+ <hide_in_invoice_pdf>1</hide_in_invoice_pdf>
310
+ </editorial_concept>
311
+ <bank_account_owner translate="label">
312
+ <label>Account owner</label>
313
+ <frontend_type>text</frontend_type>
314
+ <sort_order>245</sort_order>
315
+ <show_in_default>1</show_in_default>
316
+ <show_in_website>1</show_in_website>
317
+ <show_in_store>1</show_in_store>
318
+ </bank_account_owner>
319
+ <bank_account translate="label">
320
+ <label>Account</label>
321
+ <frontend_type>text</frontend_type>
322
+ <sort_order>250</sort_order>
323
+ <show_in_default>1</show_in_default>
324
+ <show_in_website>1</show_in_website>
325
+ <show_in_store>1</show_in_store>
326
+ </bank_account>
327
+ <bank_code_number translate="label">
328
+ <label>Bank number</label>
329
+ <frontend_type>text</frontend_type>
330
+ <sort_order>260</sort_order>
331
+ <show_in_default>1</show_in_default>
332
+ <show_in_website>1</show_in_website>
333
+ <show_in_store>1</show_in_store>
334
+ </bank_code_number>
335
+ <bank_name translate="label">
336
+ <label>Bank name</label>
337
+ <frontend_type>text</frontend_type>
338
+ <sort_order>270</sort_order>
339
+ <show_in_default>1</show_in_default>
340
+ <show_in_website>1</show_in_website>
341
+ <show_in_store>1</show_in_store>
342
+ </bank_name>
343
+ <swift translate="label">
344
+ <label>BIC/SWIFT</label>
345
+ <frontend_type>text</frontend_type>
346
+ <sort_order>280</sort_order>
347
+ <show_in_default>1</show_in_default>
348
+ <show_in_website>1</show_in_website>
349
+ <show_in_store>1</show_in_store>
350
+ </swift>
351
+ <iban translate="label">
352
+ <label>IBAN</label>
353
+ <frontend_type>text</frontend_type>
354
+ <sort_order>290</sort_order>
355
+ <show_in_default>1</show_in_default>
356
+ <show_in_website>1</show_in_website>
357
+ <show_in_store>1</show_in_store>
358
+ </iban>
359
+ </fields>
360
+ </imprint>
361
+ </groups>
362
+ </general>
363
+ <checkout>
364
+ <groups>
365
+ <options>
366
+ <fields>
367
+ <display_additional_information translate="label,comment" module="magesetup">
368
+ <label>Display Additional Information</label>
369
+ <comment>Display content from text field below at the checkout confirm page directly above
370
+ the checkout button
371
+ </comment>
372
+ <frontend_type>select</frontend_type>
373
+ <source_model>adminhtml/system_config_source_yesno</source_model>
374
+ <sort_order>500</sort_order>
375
+ <show_in_default>1</show_in_default>
376
+ <show_in_website>1</show_in_website>
377
+ <show_in_store>1</show_in_store>
378
+ </display_additional_information>
379
+ <additional_information translate="label">
380
+ <label>Additional Information</label>
381
+ <frontend_type>textarea</frontend_type>
382
+ <sort_order>505</sort_order>
383
+ <show_in_default>1</show_in_default>
384
+ <show_in_website>1</show_in_website>
385
+ <show_in_store>1</show_in_store>
386
+ <depends>
387
+ <display_additional_information>1</display_additional_information>
388
+ </depends>
389
+ </additional_information>
390
+ </fields>
391
+ </options>
392
+ <cart>
393
+ <fields>
394
+ <hide_shipping translate="label,comment" module="magesetup">
395
+ <label>Hide estimated shipping costs in cart</label>
396
+ <comment>Replace with a link to the shipping costs cms page</comment>
397
+ <frontend_type>select</frontend_type>
398
+ <source_model>adminhtml/system_config_source_yesno</source_model>
399
+ <sort_order>500</sort_order>
400
+ <show_in_default>1</show_in_default>
401
+ <show_in_website>1</show_in_website>
402
+ <show_in_store>1</show_in_store>
403
+ </hide_shipping>
404
+ </fields>
405
+ </cart>
406
+ </groups>
407
+ </checkout>
408
+ <sales>
409
+ <groups>
410
+ <reorder>
411
+ <fields>
412
+ <hide_sidebar_box translate="label" module="magesetup">
413
+ <label>Hide box "Last Ordered Items"</label>
414
+ <frontend_type>select</frontend_type>
415
+ <source_model>adminhtml/system_config_source_yesno</source_model>
416
+ <sort_order>500</sort_order>
417
+ <show_in_default>1</show_in_default>
418
+ <show_in_website>1</show_in_website>
419
+ <show_in_store>1</show_in_store>
420
+ </hide_sidebar_box>
421
+ </fields>
422
+ </reorder>
423
+ </groups>
424
+ </sales>
425
+ <google>
426
+ <groups>
427
+ <analytics>
428
+ <fields>
429
+ <ip_anonymization translate="label, comment">
430
+ <label>Ip anonymization</label>
431
+ <comment>Ensures that the ip address of the customers doesnt get involved into the
432
+ tracking
433
+ </comment>
434
+ <frontend_type>select</frontend_type>
435
+ <source_model>adminhtml/system_config_source_yesno</source_model>
436
+ <sort_order>190</sort_order>
437
+ <show_in_default>1</show_in_default>
438
+ <show_in_website>1</show_in_website>
439
+ <show_in_store>1</show_in_store>
440
+ </ip_anonymization>
441
+ </fields>
442
+ </analytics>
443
+ </groups>
444
+ </google>
445
+ <tax>
446
+ <groups>
447
+ <classes>
448
+ <fields>
449
+ <shipping_tax_on_product_tax translate="label,comment" module="magesetup">
450
+ <label>Dynamic Shipping Tax Class Calculation</label>
451
+ <comment>
452
+ <![CDATA[Set to "yes" if you want to calculate the shipping tax rate based on the highest product tax rate or according to the tax rate of products that make up the biggest amount in cart.<br /><b>ATTENTION:</b> This setting overwrites the "Tax Class for Shipping" setting above!]]></comment>
453
+ <frontend_type>select</frontend_type>
454
+ <source_model>magesetup/source_tax_dynamicType</source_model>
455
+ <sort_order>11</sort_order>
456
+ <show_in_default>1</show_in_default>
457
+ <show_in_website>1</show_in_website>
458
+ <show_in_store>0</show_in_store>
459
+ </shipping_tax_on_product_tax>
460
+ </fields>
461
+ </classes>
462
+ </groups>
463
+ </tax>
464
+ </sections>
465
+ </config>
app/code/community/FireGento/MageSetup/scripts/GenerateCountryTaxXml.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * @author diglin
5
+ * @since 07.09.13 16:06
6
+ * @category Brillensuppe
7
+ * @package Brillensuppe_Import
8
+ * @copyright Copyright (c) 2011-2013 Diglin (http://www.diglin.com)
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
+ */
11
+
12
+ // Script is thought for French and Italian countries (feel free to improve or adapt for other lands)
13
+
14
+ require_once ('../../../../../Mage.php');
15
+
16
+ // Need to add HR for Croatia manually - Magento Core Config is not up-to-date
17
+ $europeanCountries = Mage::getConfig()->getNode('general/country/eu_countries');
18
+
19
+ // Generate tax_calculation_rates
20
+
21
+ if ($argc == 0) {
22
+ die('Usage is ');
23
+ }
24
+
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-install-0.5.0.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Setup script; Adds the delivery_time attribute for products
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+
35
+ /* @var $installer Mage_Eav_Model_Entity_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ $installer->addAttribute(
40
+ 'catalog_product',
41
+ 'delivery_time',
42
+ array(
43
+ 'label' => 'Lieferzeit',
44
+ 'input' => 'text',
45
+ 'required' => 0,
46
+ 'user_defined' => 1,
47
+ 'default' => '2-3 Tage',
48
+ 'group' => 'General',
49
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
50
+ 'visible' => 1,
51
+ 'filterable' => 0,
52
+ 'searchable' => 0,
53
+ 'comparable' => 1,
54
+ 'visible_on_front' => 1,
55
+ 'visible_in_advanced_search' => 1,
56
+ 'used_in_product_listing' => 1,
57
+ 'is_html_allowed_on_front' => 1,
58
+ )
59
+ );
60
+
61
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.0.4-1.0.5.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.0.5
22
+ */
23
+ /**
24
+ * Setup script; Adds a new column 'Visible in Checkout' to attributes
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.0.5
33
+ */
34
+
35
+ /* @var $this Mage_Eav_Model_Entity_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ if (version_compare(Mage::getVersion(), '1.6', '<')) {
40
+
41
+ $installer->run("
42
+ ALTER TABLE `{$installer->getTable('catalog/eav_attribute')}`
43
+ ADD `is_visible_on_checkout` SMALLINT(5) NOT NULL DEFAULT '0';
44
+ ");
45
+
46
+ } else {
47
+
48
+ $installer->getConnection()->addColumn(
49
+ $installer->getTable('catalog/eav_attribute'),
50
+ 'is_visible_on_checkout',
51
+ array(
52
+ 'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT,
53
+ 'unsigned' => true,
54
+ 'nullable' => false,
55
+ 'default' => '0',
56
+ 'comment' => 'Visible in Checkout'
57
+ )
58
+ );
59
+
60
+ }
61
+
62
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.2-1.1.3.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.0.7
22
+ */
23
+ /**
24
+ * Setup script; Adds the is_required field for the checkout agreements
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.0.7
33
+ */
34
+
35
+ /* @var $this Mage_Eav_Model_Entity_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ if (version_compare(Mage::getVersion(), '1.6', '<')) {
40
+
41
+ $installer->run("
42
+ ALTER TABLE `{$installer->getTable('checkout/agreement')}`
43
+ ADD `is_required` SMALLINT( 5 ) NOT NULL DEFAULT '1' COMMENT 'Agreement is Required'
44
+ ");
45
+
46
+ } else {
47
+
48
+ $installer->getConnection()->addColumn(
49
+ $installer->getTable('checkout/agreement'),
50
+ 'is_required',
51
+ array(
52
+ 'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT,
53
+ 'unsigned' => true,
54
+ 'nullable' => false,
55
+ 'default' => '1',
56
+ 'comment' => 'Agreement is Required'
57
+ )
58
+ );
59
+ }
60
+
61
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.3-1.1.4.php ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 1.0.7
22
+ */
23
+ /**
24
+ * Setup script; Adds a new table for newsletter subscriber status
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.0.7
33
+ */
34
+
35
+ /* @var $this Mage_Eav_Model_Entity_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ if (version_compare(Mage::getVersion(), '1.6', '<')) {
40
+
41
+ $installer->run("
42
+ DROP TABLE IF EXISTS `{$installer->getTable('magesetup/newsletter_subscriber_status')}`;
43
+ CREATE TABLE `{$installer->getTable('magesetup/newsletter_subscriber_status')}` (
44
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
45
+ `subscriber` int(10) unsigned NOT NULL COMMENT 'Subscriber Id',
46
+ `status` int(11) NOT NULL DEFAULT '0' COMMENT 'Subscriber Status',
47
+ `email` text COMMENT 'Subscriber Status',
48
+ `created_at` timestamp NULL DEFAULT NULL COMMENT 'Changed at',
49
+ PRIMARY KEY (`id`)
50
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Subscriber Status Table';
51
+ ");
52
+
53
+ } else {
54
+
55
+ $subscriberStatusTable = $installer->getTable('magesetup/newsletter_subscriber_status');
56
+ if ($installer->getConnection()->isTableExists($subscriberStatusTable)) {
57
+ $installer->getConnection()->dropTable($subscriberStatusTable);
58
+ }
59
+
60
+ $subscriberStatusTable = $installer->getConnection()->newTable($subscriberStatusTable)
61
+ ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
62
+ 'unsigned' => true,
63
+ 'nullable' => false,
64
+ 'primary' => true,
65
+ 'identity' => true,
66
+ ),
67
+ 'ID'
68
+ )
69
+ ->addColumn('subscriber', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
70
+ 'unsigned' => true,
71
+ 'nullable' => false,
72
+ ),
73
+ 'Subscriber Id'
74
+ )
75
+ ->addColumn('status', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array(
76
+ 'nullable' => false,
77
+ 'default' => '0',
78
+ ),
79
+ 'Subscriber Status'
80
+ )
81
+ ->addColumn('email', Varien_Db_Ddl_Table::TYPE_TEXT, null, array(
82
+ ),
83
+ 'Subscriber Status'
84
+ )
85
+ ->addColumn('created_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(
86
+ ),
87
+ 'Changed at'
88
+ )
89
+ ->setComment('Newsletter Subscriber Status Table');
90
+ $installer->getConnection()->createTable($subscriberStatusTable);
91
+
92
+ }
93
+
94
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.4-1.2.0.php ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Setup script; Adds the delivery_time attribute for products
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+
35
+ /** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ // Update attribute properties
40
+ $installer->updateAttribute(
41
+ 'catalog_product',
42
+ 'delivery_time',
43
+ 'is_comparable',
44
+ true
45
+ );
46
+
47
+ $installer->updateAttribute(
48
+ 'catalog_product',
49
+ 'delivery_time',
50
+ 'is_visible_on_front',
51
+ true
52
+ );
53
+
54
+ $installer->updateAttribute(
55
+ 'catalog_product',
56
+ 'delivery_time',
57
+ 'is_visible_in_advanced_search',
58
+ true
59
+ );
60
+
61
+ $installer->updateAttribute(
62
+ 'catalog_product',
63
+ 'delivery_time',
64
+ 'used_in_product_listing',
65
+ true
66
+ );
67
+
68
+ $installer->updateAttribute(
69
+ 'catalog_product',
70
+ 'delivery_time',
71
+ 'is_html_allowed_on_front',
72
+ true
73
+ );
74
+
75
+ $installer->updateAttribute(
76
+ 'catalog_product',
77
+ 'delivery_time',
78
+ 'is_visible_on_checkout',
79
+ true
80
+ );
81
+
82
+ $installer->updateAttribute(
83
+ 'catalog_product',
84
+ 'short_description',
85
+ 'is_visible_on_checkout',
86
+ true
87
+ );
88
+
89
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.0-1.2.1.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Setup script; Adds the delivery_time attribute for products
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.1
33
+ */
34
+
35
+ /** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ // Update attribute properties
40
+ $installer->updateAttribute(
41
+ 'catalog_product',
42
+ 'weight',
43
+ 'used_in_product_listing',
44
+ true
45
+ );
46
+
47
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.1-1.2.2.php ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @since 0.1.0
21
+ */
22
+ /**
23
+ * Setup script; Adds the is_required field for the checkout agreements
24
+ *
25
+ * @category FireGento
26
+ * @package FireGento_MageSetup
27
+ * @author FireGento Team <team@firegento.com>
28
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
29
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
30
+ * @version $Id:$
31
+ * @since 1.2.2
32
+ */
33
+
34
+ /** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */
35
+ $installer = $this;
36
+ $installer->startSetup();
37
+
38
+ if (version_compare(Mage::getVersion(), '1.6', '<')) {
39
+
40
+ $installer->run("
41
+ ALTER TABLE `{$installer->getTable('checkout/agreement')}`
42
+ ADD `agreement_type` SMALLINT( 5 ) NOT NULL DEFAULT '0' COMMENT 'Agreement Type'
43
+ ");
44
+
45
+ } else {
46
+
47
+ $installer->getConnection()->addColumn(
48
+ $installer->getTable('checkout/agreement'),
49
+ 'agreement_type',
50
+ array(
51
+ 'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT,
52
+ 'unsigned' => true,
53
+ 'nullable' => false,
54
+ 'default' => '0',
55
+ 'comment' => 'Agreement Type'
56
+ )
57
+ );
58
+ }
59
+
60
+ $installer->endSetup();
app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.2-1.2.3.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Setup script; Adds the meta_autogenerate attribute for products
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.3
33
+ */
34
+
35
+ /** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */
36
+ $installer = $this;
37
+ $installer->startSetup();
38
+
39
+ $installer->addAttribute(
40
+ 'catalog_product',
41
+ 'meta_autogenerate',
42
+ array(
43
+ 'label' => 'Auto-Generate Meta-Information',
44
+ 'input' => 'select',
45
+ 'source' => 'eav/entity_attribute_source_boolean',
46
+ 'required' => false,
47
+ 'user_defined' => true,
48
+ 'default' => '0',
49
+ 'group' => 'Meta Information',
50
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
51
+ 'visible' => true,
52
+ 'filterable' => false,
53
+ 'searchable' => false,
54
+ 'comparable' => false,
55
+ 'visible_on_front' => false,
56
+ 'visible_in_advanced_search' => false,
57
+ 'used_in_product_listing' => false,
58
+ 'is_html_allowed_on_front' => false,
59
+ )
60
+ );
61
+
62
+ $installer->endSetup();
app/design/adminhtml/default/default/layout/magesetup.xml ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <layout version="0.1.0">
26
+ <default>
27
+ <reference name="notifications">
28
+ <block type="magesetup/adminhtml_notifications" name="magesetup_notifications" template="magesetup/notifications.phtml" before="-" />
29
+ </reference>
30
+ </default>
31
+ <adminhtml_magesetup_index>
32
+ <reference name="content">
33
+ <block type="magesetup/adminhtml_magesetup" name="magesetup.index" template="magesetup/form.phtml"/>
34
+ </reference>
35
+ </adminhtml_magesetup_index>
36
+ <adminhtml_magesetup_extensions>
37
+ <reference name="content">
38
+ <block type="adminhtml/template" name="magesetup.extensions" template="magesetup/extensions.phtml"/>
39
+ </reference>
40
+ </adminhtml_magesetup_extensions>
41
+ </layout>
app/design/adminhtml/default/default/template/magesetup/extensions.phtml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="content-header">
2
+ <h3><?php echo $this->__('Recommended Extensions') ?></h3>
3
+ <p class="form-buttons"></p>
4
+ </div>
5
+
6
+ <div class="entry-edit">
7
+ <div class="entry-edit-head">
8
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Recommended Extensions') ?></h4>
9
+ <div class="form-buttons"></div>
10
+ </div>
11
+ <div class="fieldset fieldset-wide" id="group_fields7">
12
+ <div class="hor-scroll">
13
+ <table cellspacing="0" class="form-list">
14
+ <tbody>
15
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('German Language Pack') ?></strong></td></tr>
16
+ <tr>
17
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
18
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2317/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2317/</a></td>
19
+ </tr>
20
+ <tr>
21
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
22
+ <td class="value">http://connect20.magentocommerce.com/community/Locale_Mage_community_de_DE</td>
23
+ </tr>
24
+ <tr><td colspan="2">&nbsp;</td></tr>
25
+
26
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('FireGento PDF') ?></strong></td></tr>
27
+ <tr>
28
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
29
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/pdf-9999.html" target="_blank">http://www.magentocommerce.com/magento-connect/pdf-9999.html</a></td>
30
+ </tr>
31
+ <tr>
32
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
33
+ <td class="value">http://connect20.magentocommerce.com/community/FireGento_Pdf</td>
34
+ </tr>
35
+ <tr><td colspan="2">&nbsp;</td></tr>
36
+
37
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('Base Price') ?></strong></td></tr>
38
+ <tr>
39
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
40
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2897/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2897/</a></td>
41
+ </tr>
42
+ <tr>
43
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
44
+ <td class="value">http://connect20.magentocommerce.com/community/DerModPro_BasePrice</td>
45
+ </tr>
46
+ <tr><td colspan="2">&nbsp;</td></tr>
47
+
48
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('Newsletter Unsubscription for Guests, Double Opt In for registered Customers') ?></strong></td></tr>
49
+ <tr>
50
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
51
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/15534/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/15534/</a></td>
52
+ </tr>
53
+ <tr>
54
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
55
+ <td class="value">http://connect20.magentocommerce.com/community/Loewenstark_Newsletter</td>
56
+ </tr>
57
+ <tr><td colspan="2">&nbsp;</td></tr>
58
+ </tbody>
59
+ </table>
60
+ </div>
61
+ </div>
62
+ </div>
63
+
64
+ <div class="entry-edit">
65
+ <div class="entry-edit-head">
66
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Popular Payment Methods') ?></h4>
67
+ <div class="form-buttons"></div>
68
+ </div>
69
+ <div class="fieldset fieldset-wide" id="group_fields7">
70
+ <div class="hor-scroll">
71
+ <table cellspacing="0" class="form-list">
72
+ <tbody>
73
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('Debit Payment') ?></strong></td></tr>
74
+ <tr>
75
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
76
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2606/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2606/</a></td>
77
+ </tr>
78
+ <tr>
79
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
80
+ <td class="value">http://connect20.magentocommerce.com/community/DebitPayment</td>
81
+ </tr>
82
+ <tr><td colspan="2">&nbsp;</td></tr>
83
+
84
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('Cash on Delivery') ?></strong></td></tr>
85
+ <tr>
86
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
87
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2360/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2360/</a></td>
88
+ </tr>
89
+ <tr>
90
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
91
+ <td class="value">http://connect20.magentocommerce.com/community/CashOnDelivery</td>
92
+ </tr>
93
+ <tr><td colspan="2">&nbsp;</td></tr>
94
+
95
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('Bank Payment') ?></strong></td></tr>
96
+ <tr>
97
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
98
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2298/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2298/</a></td>
99
+ </tr>
100
+ <tr>
101
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
102
+ <td class="value">http://connect20.magentocommerce.com/community/BankPayment</td>
103
+ </tr>
104
+ <tr><td colspan="2">&nbsp;</td></tr>
105
+
106
+ <tr><td class="value" colspan="2"><strong><?php echo $this->__('Invoice Payment') ?></strong></td></tr>
107
+ <tr>
108
+ <td class="label"><label for="name"><?php echo $this->__('MagentoConnect') ?></label></td>
109
+ <td class="value"><a href="http://www.magentocommerce.com/magento-connect/catalog/product/view/id/17239/s/invoice-6810/" target="_blank">http://www.magentocommerce.com/magento-connect/catalog/product/view/id/17239/s/invoice-6810/</a></td>
110
+ </tr>
111
+ <tr>
112
+ <td class="label"><label for="name"><?php echo $this->__('Extension Key') ?></label></td>
113
+ <td class="value">http://connect20.magentocommerce.com/community/InvoicePayment</td>
114
+ </tr>
115
+ <tr><td colspan="2">&nbsp;</td></tr>
116
+ </tbody>
117
+ </table>
118
+ </div>
119
+ </div>
120
+ </div>
app/design/adminhtml/default/default/template/magesetup/form.phtml ADDED
@@ -0,0 +1,345 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.4.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @see FireGento_MageSetup_Block_Adminhtml_Magesetup
27
+ * @var $this FireGento_MageSetup_Block_Adminhtml_Magesetup
28
+ */
29
+ ?>
30
+
31
+ <div class="content-header">
32
+ <h3><?php echo $this->__('MageSetup') ?></h3>
33
+ <p class="form-buttons">
34
+ <?php echo $this->getButtonHtml($this->__('Run MageSetup'), 'setupForm.submit();', 'save'); ?>
35
+ </p>
36
+ </div>
37
+
38
+ <p><?php echo $this->__('Please choose the requested setups:') ?></p>
39
+
40
+ <div class="entry-edit">
41
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="setup_form">
42
+ <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
43
+ <div class="entry-edit-head">
44
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Configuration Settings') ?></h4>
45
+ <div class="form-buttons"></div>
46
+ </div>
47
+
48
+ <div class="fieldset fieldset-wide" id="group_fields7">
49
+ <div class="hor-scroll">
50
+ <table cellspacing="0" class="form-list">
51
+ <tbody>
52
+ <tr>
53
+ <td class="label"><label for="select_country"><?php echo $this->__('Shipping from') ?></label></td>
54
+ <td class="value" style="width:160px !important;">
55
+ <select name="country" id="select_country" style="width:150px !important;">
56
+ <?php foreach ($this->getAvailableCountriesForSetup() as $countryCode => $countryName): ?>
57
+ <option value="<?php echo $countryCode ?>"<?php if (Mage::getStoreConfig('magesetup/default_country') == $countryCode): ?> selected="selected"<?php endif ?>><?php echo $countryName ?></option>
58
+ <?php endforeach ?>
59
+ </select>
60
+ </td>
61
+ <td class="value">
62
+ <img src="<?php echo $this->getSkinUrl('images/error_msg_icon.gif') ?>" alt="Notification" />
63
+ <?php echo $this->__('This setting is base for the tax rate setup!') ?>
64
+ </td>
65
+ </tr>
66
+ <tr><td colspan="3">&nbsp;</td></tr>
67
+ <tr>
68
+ <td class="label"><label for="checkbox_systemconfig"><?php echo $this->__('Update System Config Settings') ?></label></td>
69
+ <td class="value">
70
+ <input type="checkbox" name="systemconfig" id="checkbox_systemconfig" value="1" checked="checked" />
71
+ </td>
72
+ <td class="value">
73
+ <?php echo $this->__('i.e. newsletter confirmation, account confirmation, ..') ?>
74
+ </td>
75
+ </tr>
76
+ </tbody>
77
+ </table>
78
+ </div>
79
+ </div>
80
+
81
+
82
+ <div class="entry-edit-head">
83
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Tax Settings') ?></h4>
84
+ <div class="form-buttons"></div>
85
+ </div>
86
+
87
+ <div class="fieldset fieldset-wide" id="group_fields10">
88
+ <div class="hor-scroll">
89
+ <table cellspacing="0" class="form-list">
90
+ <tbody>
91
+ <tr>
92
+ <td class="label"><label for="checkbox_tax"><?php echo $this->__('Configure Tax') ?></label></td>
93
+ <td class="value">
94
+ <input type="checkbox" name="tax" id="checkbox_tax" value="1" checked="checked" />
95
+ </td>
96
+ <td class="value">
97
+ <img src="<?php echo $this->getSkinUrl('images/error_msg_icon.gif') ?>" alt="Notification" />
98
+ <?php echo $this->__('All tax settings will be overwritten!') ?>
99
+ </td>
100
+ </tr>
101
+ <tr>
102
+ <td class="label"><label><?php echo $this->__('Update Product Tax Classes') ?></label></td>
103
+ <td class="value"></td>
104
+ <td class="value">
105
+ <table cellspacing="5" class="">
106
+ <tbody>
107
+ <?php foreach($this->getProductTaxClasses() as $oldTaxClass): ?>
108
+ <tr>
109
+ <td><?php echo $this->__('Old') ?>: </td>
110
+ <td><strong><?php echo $oldTaxClass['label'] ?></strong></td>
111
+ <td><?php echo $this->__('New') ?>: </td>
112
+ <td>
113
+ <select id="product_tax_classes_new_<?php echo $oldTaxClass['value'] ?>" name="product_tax_class_target[<?php echo $oldTaxClass['value'] ?>]">
114
+ <?php foreach($this->getNewProductTaxClasses() as $newTaxClass): ?>
115
+ <option
116
+ value="<?php echo $newTaxClass['value'] ?>"
117
+ <?php if ($this->getDefaultProductTaxClass() == $newTaxClass['value']): ?>selected="selected"<?php endif ?>
118
+ >
119
+ <?php echo $newTaxClass['label'] ?></option>
120
+ <?php endforeach ?>
121
+ </select>
122
+ </td>
123
+ </tr>
124
+ <?php endforeach ?>
125
+ </tbody>
126
+ </table>
127
+ </td>
128
+ </tr>
129
+ <tr>
130
+ <td class="label"><label><?php echo $this->__('Update Customer Tax Classes') ?></label></td>
131
+ <td class="value"></td>
132
+ <td class="value">
133
+ <table cellspacing="5" class="">
134
+ <tbody>
135
+ <?php foreach($this->getCustomerTaxClasses() as $oldTaxClass): ?>
136
+ <tr>
137
+ <td><?php echo $this->__('Old') ?>: </td>
138
+ <td><strong><?php echo $oldTaxClass['label'] ?></strong></td>
139
+ <td><?php echo $this->__('New') ?>: </td>
140
+ <td>
141
+ <select id="customer_tax_classes_new_<?php echo $oldTaxClass['value'] ?>" name="customer_tax_class_target[<?php echo $oldTaxClass['value'] ?>]">
142
+ <?php foreach($this->getNewCustomerTaxClasses() as $newTaxClass): ?>
143
+ <option value="<?php echo $newTaxClass['value'] ?>">
144
+ <?php echo $newTaxClass['label'] ?>
145
+ </option>
146
+ <?php endforeach ?>
147
+ </select>
148
+ </td>
149
+ </tr>
150
+ <?php endforeach ?>
151
+ </tbody>
152
+ </table>
153
+ </td>
154
+ </tr>
155
+ </tbody>
156
+ </table>
157
+ </div>
158
+ </div>
159
+
160
+
161
+ <div class="entry-edit-head">
162
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('CMS Settings') ?></h4>
163
+ <div class="form-buttons"></div>
164
+ </div>
165
+
166
+ <div class="fieldset fieldset-wide" id="group_fields8">
167
+ <div class="hor-scroll">
168
+ <table cellspacing="0" class="form-list">
169
+ <tbody>
170
+ <tr>
171
+ <td class="label"><label for="checkbox_cms"><?php echo $this->__('Create CMS Pages and Blocks') ?></label></td>
172
+ <td class="value">
173
+ <input type="checkbox" name="cms" id="checkbox_cms" value="1" checked="checked" />
174
+ </td>
175
+ <td class="value">
176
+ <?php echo $this->__('i.e. shipping, conditions, revocation') ?>
177
+ </td>
178
+ </tr>
179
+ <tr>
180
+ <td class="label"><label for="checkbox_agreements"><?php echo $this->__('Create Checkout Agreements') ?></label></td>
181
+ <td class="value">
182
+ <input type="checkbox" name="agreements" id="checkbox_agreements" value="1" checked="checked" />
183
+ </td>
184
+ <td class="value">
185
+ <?php echo $this->__('Conditions') ?>
186
+ </td>
187
+ </tr>
188
+ <tr>
189
+ <td class="label"><label for="select_cms_locale"><?php echo $this->__('Default Setting') ?>:</label></td>
190
+ <td class="value">
191
+ <select name="cms_locale[default]" id="select_cms_locale">
192
+ <?php foreach($this->getLocaleOptionsForCmsContent() as $_option): ?>
193
+ <option value="<?php echo $_option['value'] ?>"><?php echo $_option['label']; ?></option>
194
+ <?php endforeach; ?>
195
+ </select>
196
+ </td>
197
+ <td class="value">
198
+ <?php echo $this->__('Language Package for CMS Pages/Blocks/Agreements') ?><br />
199
+ <img src="<?php echo $this->getSkinUrl('images/error_msg_icon.gif') ?>" alt="<?php echo $this->__('Notification') ?>" />
200
+ <?php echo $this->__('If your desired locale is missing, it is not supported yet by MageSetup.') ?>
201
+ </td>
202
+ </tr>
203
+ <?php if ($this->isMultiStore()): ?>
204
+ <tr>
205
+ <td class="label"><label for="select_cms_locale"><?php echo $this->__('Store Views') ?>:</label></td>
206
+ <td class="value">
207
+ <table>
208
+ <?php foreach(Mage::app()->getWebsites(false) as $website): ?>
209
+ <?php /** @var Mage_Core_Model_Website $website */ ?>
210
+ <?php foreach($website->getStores() as $store): ?>
211
+ <?php /** @var Mage_Core_Model_Store $store */ ?>
212
+ <tr>
213
+ <td class="value"><?php echo $website->getName() ?> &gt; <?php echo $store->getName() ?></td>
214
+ <td class="value">
215
+ <select name="cms_locale[<?php echo $store->getId() ?>]" id="select_cms_locale_<?php echo $store->getId() ?>">
216
+ <option value=""><?php echo $this->__('Use Default Setting') ?></option>
217
+ <?php foreach($this->getLocaleOptionsForCmsContent() as $_option): ?>
218
+ <option value="<?php echo $_option['value'] ?>"><?php echo $_option['label']; ?></option>
219
+ <?php endforeach; ?>
220
+ </select>
221
+ </td>
222
+ </tr>
223
+ <?php endforeach ?>
224
+ <?php endforeach ?>
225
+ </table>
226
+ </td>
227
+ <td class="value"></td>
228
+ </tr>
229
+ <?php endif ?>
230
+ </tbody>
231
+ </table>
232
+ </div>
233
+ </div>
234
+
235
+ <div class="entry-edit-head">
236
+ <h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Email Settings') ?></h4>
237
+ <div class="form-buttons"></div>
238
+ </div>
239
+
240
+ <div class="fieldset fieldset-wide" id="group_fields9">
241
+ <div class="hor-scroll">
242
+ <table cellspacing="0" class="form-list">
243
+ <tbody>
244
+ <tr>
245
+ <td class="label"><label for="checkbox_email"><?php echo $this->__('Create Email Templates') ?></label></td>
246
+ <td class="value">
247
+ <input type="checkbox" name="email" id="checkbox_email" value="1" checked="checked" />
248
+ </td>
249
+ <td class="value"><?php echo $this->__('Create Transational Email Templates to be managed in the Magento admin area') ?></td>
250
+ </tr>
251
+ <tr>
252
+ <td class="label"><label for="select_email_locale"><?php echo $this->__('Default Setting') ?>:</label></td>
253
+ <td class="value">
254
+ <select name="email_locale[default]" id="select_email_locale">
255
+ <?php foreach($this->getLocaleOptionsForEmailTemplates() as $_option): ?>
256
+ <option value="<?php echo $_option['value'] ?>"><?php echo $_option['label']; ?></option>
257
+ <?php endforeach; ?>
258
+ </select>
259
+ </td>
260
+ <td class="value">
261
+ <?php echo $this->__('Language Package for Email Templates') ?><br />
262
+ <img src="<?php echo $this->getSkinUrl('images/error_msg_icon.gif') ?>" alt="<?php echo $this->__('Notification') ?>" />
263
+ <?php echo $this->__('If your desired locale is missing, please check if it installed.') ?>
264
+ </td>
265
+ </tr>
266
+ <?php if ($this->isMultiStore()): ?>
267
+ <tr>
268
+ <td class="label"><label for="select_email_locale"><?php echo $this->__('Store Views') ?>:</label></td>
269
+ <td class="value">
270
+ <table>
271
+ <?php foreach(Mage::app()->getWebsites(false) as $website): ?>
272
+ <?php /** @var Mage_Core_Model_Website $website */ ?>
273
+ <?php foreach($website->getStores() as $store): ?>
274
+ <?php /** @var Mage_Core_Model_Store $store */ ?>
275
+ <tr>
276
+ <td class="value"><?php echo $website->getName() ?> &gt; <?php echo $store->getName() ?></td>
277
+ <td class="value">
278
+ <select name="email_locale[<?php echo $store->getId() ?>]" id="select_email_locale_<?php echo $store->getId() ?>">
279
+ <option value=""><?php echo $this->__('Use Default Setting') ?></option>
280
+ <?php foreach($this->getLocaleOptionsForEmailTemplates() as $_option): ?>
281
+ <option value="<?php echo $_option['value'] ?>"><?php echo $_option['label']; ?></option>
282
+ <?php endforeach; ?>
283
+ </select>
284
+ </td>
285
+ </tr>
286
+ <?php endforeach ?>
287
+ <?php endforeach ?>
288
+ </table>
289
+ </td>
290
+ <td class="value"></td>
291
+ </tr>
292
+ <?php endif ?>
293
+ </tbody>
294
+ </table>
295
+ </div>
296
+ </div>
297
+ </form>
298
+ </div>
299
+ <script type="text/javascript">
300
+ setupForm = new varienForm('setup_form', '');
301
+
302
+ Object.prototype.foreach = function( callback ) {
303
+ for( var k in this ) {
304
+ if(this.hasOwnProperty(k)) {
305
+ callback( k, this[ k ] );
306
+ }
307
+ }
308
+ }
309
+
310
+ var newProductTaxClassesByCountry = <?php echo $this->getNewProductTaxClassesJson() ?>;
311
+ var newCustomerTaxClassesByCountry = <?php echo $this->getNewCustomerTaxClassesJson() ?>;
312
+
313
+ updateNewTaxClassSelect = function(countryId) {
314
+ if (newProductTaxClassesByCountry[countryId]) {
315
+ var optionsHtml = '';
316
+ newProductTaxClassesByCountry[countryId].foreach(function(countryId, countryName) {
317
+ optionsHtml += '<option value="' + countryId + '">' + countryName + '</option>';
318
+ });
319
+ <?php foreach($this->getProductTaxClasses() as $oldTaxClass): ?>
320
+ $('product_tax_classes_new_<?php echo $oldTaxClass['value'] ?>').innerHTML = optionsHtml;
321
+ <?php endforeach ?>
322
+ }
323
+ if (newCustomerTaxClassesByCountry[countryId]) {
324
+ var optionsHtml = '';
325
+ newCustomerTaxClassesByCountry[countryId].foreach(function(countryId, countryName) {
326
+ optionsHtml += '<option value="' + countryId + '">' + countryName + '</option>';
327
+ });
328
+ <?php foreach($this->getCustomerTaxClasses() as $oldTaxClass): ?>
329
+ $('customer_tax_classes_new_<?php echo $oldTaxClass['value'] ?>').innerHTML = optionsHtml;
330
+ <?php endforeach ?>
331
+ }
332
+ }
333
+
334
+ updateNewTaxClassSelect($F('select_country'));
335
+
336
+ $('select_country').observe('change', function(event) {
337
+ updateNewTaxClassSelect($F('select_country'));
338
+ });
339
+ </script>
340
+
341
+ <div class="content-footer right">
342
+ <p class="form-buttons">
343
+ <?php echo $this->getButtonHtml($this->__('Run MageSetup'), 'setupForm.submit();', 'save'); ?>
344
+ </p>
345
+ </div>
app/design/adminhtml/default/default/template/magesetup/notifications.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php /** @var $this FireGento_MageSetup_Block_Adminhtml_Notifications */ ?>
2
+ <?php if (!$this->isInitialized()): ?>
3
+ <div class="notification-global">
4
+ <strong><?php echo $this->helper('magesetup')->__('MageSetup has been installed.') ?></strong>
5
+ <?php echo $this->helper('magesetup')->__('Click <a href="%s">here</a> to set up your pages, blocks, emails and tax settings.', $this->getManageUrl()) ?>
6
+ </div>
7
+ <?php endif ?>
app/design/frontend/base/default/layout/magesetup.xml ADDED
@@ -0,0 +1,520 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+
4
+ <!--
5
+ Adding custom product price block
6
+ -->
7
+ <catalog_category_default>
8
+ <reference name="product_list">
9
+ <action method="addPriceBlockType">
10
+ <type>simple</type>
11
+ <block>magesetup/catalog_product_price</block>
12
+ <template>catalog/product/price.phtml</template>
13
+ </action>
14
+ <action method="addPriceBlockType">
15
+ <type>virtual</type>
16
+ <block>magesetup/catalog_product_price</block>
17
+ <template>catalog/product/price.phtml</template>
18
+ </action>
19
+ <action method="addPriceBlockType">
20
+ <type>grouped</type>
21
+ <block>magesetup/catalog_product_price</block>
22
+ <template>catalog/product/price.phtml</template>
23
+ </action>
24
+ <action method="addPriceBlockType">
25
+ <type>downloadable</type>
26
+ <block>magesetup/catalog_product_price</block>
27
+ <template>catalog/product/price.phtml</template>
28
+ </action>
29
+ <action method="addPriceBlockType">
30
+ <type>configurable</type>
31
+ <block>magesetup/catalog_product_price</block>
32
+ <template>catalog/product/price.phtml</template>
33
+ </action>
34
+ <action method="addPriceBlockType">
35
+ <type>bundle</type>
36
+ <block>magesetup/bundle_catalog_product_price</block>
37
+ <template>bundle/catalog/product/price.phtml</template>
38
+ </action>
39
+ </reference>
40
+ </catalog_category_default>
41
+
42
+ <catalog_category_view>
43
+ <reference name="product_list">
44
+ <action method="addPriceBlockType">
45
+ <type>simple</type>
46
+ <block>magesetup/catalog_product_price</block>
47
+ <template>catalog/product/price.phtml</template>
48
+ </action>
49
+ <action method="addPriceBlockType">
50
+ <type>virtual</type>
51
+ <block>magesetup/catalog_product_price</block>
52
+ <template>catalog/product/price.phtml</template>
53
+ </action>
54
+ <action method="addPriceBlockType">
55
+ <type>grouped</type>
56
+ <block>magesetup/catalog_product_price</block>
57
+ <template>catalog/product/price.phtml</template>
58
+ </action>
59
+ <action method="addPriceBlockType">
60
+ <type>downloadable</type>
61
+ <block>magesetup/catalog_product_price</block>
62
+ <template>catalog/product/price.phtml</template>
63
+ </action>
64
+ <action method="addPriceBlockType">
65
+ <type>configurable</type>
66
+ <block>magesetup/catalog_product_price</block>
67
+ <template>catalog/product/price.phtml</template>
68
+ </action>
69
+ <action method="addPriceBlockType">
70
+ <type>bundle</type>
71
+ <block>magesetup/bundle_catalog_product_price</block>
72
+ <template>bundle/catalog/product/price.phtml</template>
73
+ </action>
74
+ </reference>
75
+ </catalog_category_view>
76
+
77
+ <catalog_category_layered>
78
+ <reference name="product_list">
79
+ <action method="addPriceBlockType">
80
+ <type>simple</type>
81
+ <block>magesetup/catalog_product_price</block>
82
+ <template>catalog/product/price.phtml</template>
83
+ </action>
84
+ <action method="addPriceBlockType">
85
+ <type>virtual</type>
86
+ <block>magesetup/catalog_product_price</block>
87
+ <template>catalog/product/price.phtml</template>
88
+ </action>
89
+ <action method="addPriceBlockType">
90
+ <type>grouped</type>
91
+ <block>magesetup/catalog_product_price</block>
92
+ <template>catalog/product/price.phtml</template>
93
+ </action>
94
+ <action method="addPriceBlockType">
95
+ <type>downloadable</type>
96
+ <block>magesetup/catalog_product_price</block>
97
+ <template>catalog/product/price.phtml</template>
98
+ </action>
99
+ <action method="addPriceBlockType">
100
+ <type>configurable</type>
101
+ <block>magesetup/catalog_product_price</block>
102
+ <template>catalog/product/price.phtml</template>
103
+ </action>
104
+ <action method="addPriceBlockType">
105
+ <type>bundle</type>
106
+ <block>magesetup/bundle_catalog_product_price</block>
107
+ <template>bundle/catalog/product/price.phtml</template>
108
+ </action>
109
+ </reference>
110
+ </catalog_category_layered>
111
+
112
+ <catalog_product_compare_index>
113
+ <reference name="catalog.compare.list">
114
+ <action method="addPriceBlockType">
115
+ <type>simple</type>
116
+ <block>magesetup/catalog_product_price</block>
117
+ <template>catalog/product/price.phtml</template>
118
+ </action>
119
+ <action method="addPriceBlockType">
120
+ <type>virtual</type>
121
+ <block>magesetup/catalog_product_price</block>
122
+ <template>catalog/product/price.phtml</template>
123
+ </action>
124
+ <action method="addPriceBlockType">
125
+ <type>grouped</type>
126
+ <block>magesetup/catalog_product_price</block>
127
+ <template>catalog/product/price.phtml</template>
128
+ </action>
129
+ <action method="addPriceBlockType">
130
+ <type>downloadable</type>
131
+ <block>magesetup/catalog_product_price</block>
132
+ <template>catalog/product/price.phtml</template>
133
+ </action>
134
+ <action method="addPriceBlockType">
135
+ <type>configurable</type>
136
+ <block>magesetup/catalog_product_price</block>
137
+ <template>catalog/product/price.phtml</template>
138
+ </action>
139
+ <action method="addPriceBlockType">
140
+ <type>bundle</type>
141
+ <block>magesetup/bundle_catalog_product_price</block>
142
+ <template>bundle/catalog/product/price.phtml</template>
143
+ </action>
144
+ </reference>
145
+ </catalog_product_compare_index>
146
+
147
+ <catalogsearch_result_index>
148
+ <reference name="search_result_list">
149
+ <action method="addPriceBlockType">
150
+ <type>simple</type>
151
+ <block>magesetup/catalog_product_price</block>
152
+ <template>catalog/product/price.phtml</template>
153
+ </action>
154
+ <action method="addPriceBlockType">
155
+ <type>virtual</type>
156
+ <block>magesetup/catalog_product_price</block>
157
+ <template>catalog/product/price.phtml</template>
158
+ </action>
159
+ <action method="addPriceBlockType">
160
+ <type>grouped</type>
161
+ <block>magesetup/catalog_product_price</block>
162
+ <template>catalog/product/price.phtml</template>
163
+ </action>
164
+ <action method="addPriceBlockType">
165
+ <type>downloadable</type>
166
+ <block>magesetup/catalog_product_price</block>
167
+ <template>catalog/product/price.phtml</template>
168
+ </action>
169
+ <action method="addPriceBlockType">
170
+ <type>configurable</type>
171
+ <block>magesetup/catalog_product_price</block>
172
+ <template>catalog/product/price.phtml</template>
173
+ </action>
174
+ <action method="addPriceBlockType">
175
+ <type>bundle</type>
176
+ <block>magesetup/bundle_catalog_product_price</block>
177
+ <template>bundle/catalog/product/price.phtml</template>
178
+ </action>
179
+ </reference>
180
+ </catalogsearch_result_index>
181
+
182
+ <catalogsearch_advanced_result>
183
+ <reference name="search_result_list">
184
+ <action method="addPriceBlockType">
185
+ <type>simple</type>
186
+ <block>magesetup/catalog_product_price</block>
187
+ <template>catalog/product/price.phtml</template>
188
+ </action>
189
+ <action method="addPriceBlockType">
190
+ <type>virtual</type>
191
+ <block>magesetup/catalog_product_price</block>
192
+ <template>catalog/product/price.phtml</template>
193
+ </action>
194
+ <action method="addPriceBlockType">
195
+ <type>grouped</type>
196
+ <block>magesetup/catalog_product_price</block>
197
+ <template>catalog/product/price.phtml</template>
198
+ </action>
199
+ <action method="addPriceBlockType">
200
+ <type>downloadable</type>
201
+ <block>magesetup/catalog_product_price</block>
202
+ <template>catalog/product/price.phtml</template>
203
+ </action>
204
+ <action method="addPriceBlockType">
205
+ <type>configurable</type>
206
+ <block>magesetup/catalog_product_price</block>
207
+ <template>catalog/product/price.phtml</template>
208
+ </action>
209
+ <action method="addPriceBlockType">
210
+ <type>bundle</type>
211
+ <block>magesetup/bundle_catalog_product_price</block>
212
+ <template>bundle/catalog/product/price.phtml</template>
213
+ </action>
214
+ </reference>
215
+ </catalogsearch_advanced_result>
216
+
217
+ <tag_product_list>
218
+ <reference name="search_result_list">
219
+ <action method="addPriceBlockType">
220
+ <type>simple</type>
221
+ <block>magesetup/catalog_product_price</block>
222
+ <template>catalog/product/price.phtml</template>
223
+ </action>
224
+ <action method="addPriceBlockType">
225
+ <type>virtual</type>
226
+ <block>magesetup/catalog_product_price</block>
227
+ <template>catalog/product/price.phtml</template>
228
+ </action>
229
+ <action method="addPriceBlockType">
230
+ <type>grouped</type>
231
+ <block>magesetup/catalog_product_price</block>
232
+ <template>catalog/product/price.phtml</template>
233
+ </action>
234
+ <action method="addPriceBlockType">
235
+ <type>downloadable</type>
236
+ <block>magesetup/catalog_product_price</block>
237
+ <template>catalog/product/price.phtml</template>
238
+ </action>
239
+ <action method="addPriceBlockType">
240
+ <type>configurable</type>
241
+ <block>magesetup/catalog_product_price</block>
242
+ <template>catalog/product/price.phtml</template>
243
+ </action>
244
+ <action method="addPriceBlockType">
245
+ <type>bundle</type>
246
+ <block>magesetup/bundle_catalog_product_price</block>
247
+ <template>bundle/catalog/product/price.phtml</template>
248
+ </action>
249
+ </reference>
250
+ </tag_product_list>
251
+
252
+ <tag_customer_view>
253
+ <reference name="customer_view">
254
+ <action method="addPriceBlockType">
255
+ <type>simple</type>
256
+ <block>magesetup/catalog_product_price</block>
257
+ <template>catalog/product/price.phtml</template>
258
+ </action>
259
+ <action method="addPriceBlockType">
260
+ <type>virtual</type>
261
+ <block>magesetup/catalog_product_price</block>
262
+ <template>catalog/product/price.phtml</template>
263
+ </action>
264
+ <action method="addPriceBlockType">
265
+ <type>grouped</type>
266
+ <block>magesetup/catalog_product_price</block>
267
+ <template>catalog/product/price.phtml</template>
268
+ </action>
269
+ <action method="addPriceBlockType">
270
+ <type>downloadable</type>
271
+ <block>magesetup/catalog_product_price</block>
272
+ <template>catalog/product/price.phtml</template>
273
+ </action>
274
+ <action method="addPriceBlockType">
275
+ <type>configurable</type>
276
+ <block>magesetup/catalog_product_price</block>
277
+ <template>catalog/product/price.phtml</template>
278
+ </action>
279
+ <action method="addPriceBlockType">
280
+ <type>bundle</type>
281
+ <block>magesetup/bundle_catalog_product_price</block>
282
+ <template>bundle/catalog/product/price.phtml</template>
283
+ </action>
284
+ </reference>
285
+ </tag_customer_view>
286
+
287
+ <default>
288
+ <reference name="wishlist_sidebar">
289
+ <action method="addPriceBlockType">
290
+ <type>simple</type>
291
+ <block>magesetup/catalog_product_price</block>
292
+ <template>catalog/product/price.phtml</template>
293
+ </action>
294
+ <action method="addPriceBlockType">
295
+ <type>virtual</type>
296
+ <block>magesetup/catalog_product_price</block>
297
+ <template>catalog/product/price.phtml</template>
298
+ </action>
299
+ <action method="addPriceBlockType">
300
+ <type>grouped</type>
301
+ <block>magesetup/catalog_product_price</block>
302
+ <template>catalog/product/price.phtml</template>
303
+ </action>
304
+ <action method="addPriceBlockType">
305
+ <type>downloadable</type>
306
+ <block>magesetup/catalog_product_price</block>
307
+ <template>catalog/product/price.phtml</template>
308
+ </action>
309
+ <action method="addPriceBlockType">
310
+ <type>configurable</type>
311
+ <block>magesetup/catalog_product_price</block>
312
+ <template>catalog/product/price.phtml</template>
313
+ </action>
314
+ <action method="addPriceBlockType">
315
+ <type>bundle</type>
316
+ <block>magesetup/bundle_catalog_product_price</block>
317
+ <template>bundle/catalog/product/price.phtml</template>
318
+ </action>
319
+ </reference>
320
+ <reference name="catalog_product_price_template">
321
+ <action method="addPriceBlockType">
322
+ <type>simple</type>
323
+ <block>magesetup/catalog_product_price</block>
324
+ <template>catalog/product/price.phtml</template>
325
+ </action>
326
+ <action method="addPriceBlockType">
327
+ <type>virtual</type>
328
+ <block>magesetup/catalog_product_price</block>
329
+ <template>catalog/product/price.phtml</template>
330
+ </action>
331
+ <action method="addPriceBlockType">
332
+ <type>grouped</type>
333
+ <block>magesetup/catalog_product_price</block>
334
+ <template>catalog/product/price.phtml</template>
335
+ </action>
336
+ <action method="addPriceBlockType">
337
+ <type>downloadable</type>
338
+ <block>magesetup/catalog_product_price</block>
339
+ <template>catalog/product/price.phtml</template>
340
+ </action>
341
+ <action method="addPriceBlockType">
342
+ <type>configurable</type>
343
+ <block>magesetup/catalog_product_price</block>
344
+ <template>catalog/product/price.phtml</template>
345
+ </action>
346
+ <action method="addPriceBlockType">
347
+ <type>bundle</type>
348
+ <block>magesetup/bundle_catalog_product_price</block>
349
+ <template>bundle/catalog/product/price.phtml</template>
350
+ </action>
351
+ </reference>
352
+ </default>
353
+
354
+ <catalog_product_view>
355
+ <reference name="catalog.product.related">
356
+ <action method="addPriceBlockType">
357
+ <type>simple</type>
358
+ <block>magesetup/catalog_product_price</block>
359
+ <template>catalog/product/price.phtml</template>
360
+ </action>
361
+ <action method="addPriceBlockType">
362
+ <type>virtual</type>
363
+ <block>magesetup/catalog_product_price</block>
364
+ <template>catalog/product/price.phtml</template>
365
+ </action>
366
+ <action method="addPriceBlockType">
367
+ <type>grouped</type>
368
+ <block>magesetup/catalog_product_price</block>
369
+ <template>catalog/product/price.phtml</template>
370
+ </action>
371
+ <action method="addPriceBlockType">
372
+ <type>downloadable</type>
373
+ <block>magesetup/catalog_product_price</block>
374
+ <template>catalog/product/price.phtml</template>
375
+ </action>
376
+ <action method="addPriceBlockType">
377
+ <type>configurable</type>
378
+ <block>magesetup/catalog_product_price</block>
379
+ <template>catalog/product/price.phtml</template>
380
+ </action>
381
+ <action method="addPriceBlockType">
382
+ <type>bundle</type>
383
+ <block>magesetup/bundle_catalog_product_price</block>
384
+ <template>bundle/catalog/product/price.phtml</template>
385
+ </action>
386
+ </reference>
387
+ </catalog_product_view>
388
+
389
+ <reference name="product.clone_prices">
390
+ <action method="addPriceBlockType">
391
+ <type>bundle</type>
392
+ <block>magesetup/bundle_catalog_product_price</block>
393
+ <template>bundle/catalog/product/view/price.phtml</template>
394
+ </action>
395
+ </reference>
396
+
397
+ <PRODUCT_TYPE_simple>
398
+ <reference name="product.info.simple.extra">
399
+ <block type="catalog/product_view_type_simple" name="magesetup.deliverytime"
400
+ template="magesetup/delivery_time.phtml"/>
401
+ </reference>
402
+ </PRODUCT_TYPE_simple>
403
+
404
+ <PRODUCT_TYPE_configurable>
405
+ <reference name="product.info.configurable.extra">
406
+ <block type="catalog/product_view_type_configurable" name="magesetup.deliverytime"
407
+ template="magesetup/delivery_time.phtml"/>
408
+ </reference>
409
+ </PRODUCT_TYPE_configurable>
410
+
411
+ <PRODUCT_TYPE_grouped>
412
+ <reference name="product.info.grouped.extra">
413
+ <block type="catalog/product_view_type_grouped" name="magesetup.deliverytime"
414
+ template="magesetup/delivery_time.phtml"/>
415
+ </reference>
416
+ </PRODUCT_TYPE_grouped>
417
+
418
+ <PRODUCT_TYPE_virtual>
419
+ <reference name="product.info.virtual.extra">
420
+ <block type="catalog/product_view_type_virtual" name="magesetup.deliverytime"
421
+ template="magesetup/delivery_time.phtml"/>
422
+ </reference>
423
+ </PRODUCT_TYPE_virtual>
424
+
425
+ <PRODUCT_TYPE_downloadable>
426
+ <reference name="product.info.downloadable.extra">
427
+ <block type="downloadable/catalog_product_view_type" name="magesetup.deliverytime"
428
+ template="magesetup/delivery_time.phtml"/>
429
+ </reference>
430
+ </PRODUCT_TYPE_downloadable>
431
+
432
+ <!--
433
+ Changes for Button Loesung
434
+ -->
435
+ <magesetup_frontend_agreements>
436
+ <reference name="root">
437
+ <action method="setTemplate">
438
+ <template>page/popup.phtml</template>
439
+ </action>
440
+ </reference>
441
+ <reference name="content">
442
+ <block type="core/text" name="agreement"/>
443
+ </reference>
444
+ </magesetup_frontend_agreements>
445
+
446
+ <checkout_cart_index>
447
+ <reference name="checkout.cart.shipping">
448
+ <action method="setTemplate" ifconfig="checkout/cart/hide_shipping">
449
+ <template>magesetup/shipping.phtml</template>
450
+ </action>
451
+ </reference>
452
+ </checkout_cart_index>
453
+
454
+ <checkout_onepage_index>
455
+ <reference name="head">
456
+ <action method="addCss">
457
+ <stylesheet>css/magesetup/checkout.css</stylesheet>
458
+ </action>
459
+ </reference>
460
+ </checkout_onepage_index>
461
+
462
+ <checkout_onepage_review>
463
+ <reference name="root">
464
+ <action method="unsetChild">
465
+ <alias>agreements</alias>
466
+ </action>
467
+ </reference>
468
+ <reference name="checkout.onepage.review.info.items.before">
469
+ <block type="magesetup/checkout_agreements" name="magesetup.checkout.agreements" as="agreements"
470
+ template="magesetup/checkout/onepage/agreements.phtml"/>
471
+ </reference>
472
+ <reference name="checkout.onepage.review.info.items.after">
473
+ <block type="magesetup/checkout_information" name="checkout.onepage.additional" as="additional"
474
+ template="magesetup/checkout/additional.phtml"/>
475
+ </reference>
476
+ </checkout_onepage_review>
477
+
478
+ <checkout_multishipping_overview>
479
+ <reference name="head">
480
+ <action method="addCss">
481
+ <stylesheet>css/magesetup/checkout.css</stylesheet>
482
+ </action>
483
+ </reference>
484
+ <reference name="checkout_overview">
485
+ <action method="setTemplate">
486
+ <name>magesetup/checkout/multishipping/overview.phtml</name>
487
+ </action>
488
+ <action method="unsetChild">
489
+ <name>agreements</name>
490
+ </action>
491
+ <block type="checkout/agreements" name="checkout.multishipping.agreements" as="agreements"
492
+ template="magesetup/checkout/multishipping/agreements.phtml"/>
493
+ </reference>
494
+ <reference name="checkout.multishipping.overview.items.after">
495
+ <block type="magesetup/checkout_information" name="checkout.multishipping.additional" as="additional"
496
+ template="magesetup/checkout/additional.phtml"/>
497
+ </reference>
498
+ </checkout_multishipping_overview>
499
+
500
+ <!-- Customer Terms and Condition Confirmation -->
501
+ <customer_account_create>
502
+ <reference name="form.additional.info">
503
+ <block type="magesetup/customer_account_agreements" name="customer.tc-confirmation"
504
+ template="magesetup/customer/form/tc-confirmation.phtml"/>
505
+ </reference>
506
+ </customer_account_create>
507
+
508
+ <customer_logged_in>
509
+ <reference name="right">
510
+ <action method="unsetChild" ifconfig="sales/reorder/hide_sidebar_box">
511
+ <name>reorder</name>
512
+ </action>
513
+ </reference>
514
+ <reference name="left">
515
+ <action method="unsetChild" ifconfig="sales/reorder/hide_sidebar_box">
516
+ <name>reorder</name>
517
+ </action>
518
+ </reference>
519
+ </customer_logged_in>
520
+ </layout>
app/design/frontend/base/default/template/magesetup/checkout/additional.phtml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /* @var $this FireGento_MageSetup_Block_Checkout_Information */
26
+ ?>
27
+ <?php if ($additional = $this->getCheckoutAdditionalInformation()): ?>
28
+ <div class="additional-information">
29
+ <?php echo $additional ?>
30
+ </div>
31
+ <?php endif; ?>
app/design/frontend/base/default/template/magesetup/checkout/multishipping/agreements.phtml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Checkout Agreements
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+
35
+ /**
36
+ * @var $this Mage_Checkout_Block_Agreements
37
+ */
38
+
39
+ /* @var $helper FireGento_MageSetup_Helper_Data */
40
+ $helper = $this->helper('magesetup');
41
+ ?>
42
+
43
+ <?php if (!$this->getAgreements()) return; ?>
44
+
45
+ <ol class="checkout-agreements">
46
+ <?php foreach ($this->getAgreements() as $_a): ?>
47
+ <li>
48
+ <p class="agree">
49
+ <?php if($_a->getIsRequired()): ?>
50
+ <input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->htmlEscape($_a->getCheckboxText()) ?>" class="checkbox" />
51
+ <?php endif; ?>
52
+ <label for="agreement-<?php echo $_a->getId()?>"><?php echo $_a->getIsHtml() ? $_a->getCheckboxText() : $this->htmlEscape($_a->getCheckboxText()) ?></label>
53
+ <a href="#" onclick="window.open('<?php echo $this->getUrl('magesetup/frontend/agreements', array('id' => $_a->getId())) ?>', '', 'width=600,height=600,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes').focus(); return false;"><?php echo $this->__('[Show]') ?></a>
54
+ </p>
55
+ </li>
56
+ <?php endforeach ?>
57
+ </ol>
app/design/frontend/base/default/template/magesetup/checkout/multishipping/overview.phtml ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php /** @var $this Mage_Checkout_Block_Multishipping_Overview */ ?>
25
+ <div class="multiple-checkout">
26
+ <div class="page-title">
27
+ <h1><?php echo $this->__('Review Order') ?></h1>
28
+ </div>
29
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
30
+ <form action="<?php echo $this->getPostActionUrl() ?>" method="post" onsubmit="return showLoader();">
31
+ <?php echo $this->getChildHtml('agreements') ?>
32
+
33
+ <div class="col2-set">
34
+ <h2 class="legend"><?php echo $this->__('Billing Information') ?></h2>
35
+ <div class="col-1">
36
+ <div class="box">
37
+ <?php $_address=$this->getBillingAddress() ?>
38
+ <div class="box-title">
39
+ <h3><?php echo $this->__('Billing Address') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h3>
40
+ </div>
41
+ <div class="box-content">
42
+ <address>
43
+ <?php echo $_address->format('html') ?>
44
+ </address>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div class="col-2">
49
+ <div class="box">
50
+ <div class="box-title">
51
+ <h3><?php echo $this->__('Payment Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditBillingUrl() ?>"><?php echo $this->__('Change') ?></a></h3>
52
+ </div>
53
+ <div class="box-content">
54
+ <input type="hidden" name="payment[cc_number]" value="<?php echo $this->escapeHtml($this->getPayment()->getCcNumber())?>" />
55
+ <input type="hidden" name="payment[cc_cid]" value="<?php echo $this->escapeHtml($this->getPayment()->getCcCid())?>" />
56
+ <?php echo $this->getPaymentHtml() ?>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
62
+ <div class="col2-set">
63
+ <h2 class="legend"><?php echo $this->__('Shipping Information') ?></h2>
64
+ <?php foreach ($this->getShippingAddresses() as $_index => $_address): ?>
65
+ <h3 class="legend"><?php echo $this->__('Address %s of %s', ($_index+1), $this->getShippingAddressCount()) ?></h3>
66
+ <div class="col-1 col-narrow">
67
+ <div class="box">
68
+ <div class="box-title">
69
+ <h4><?php echo $this->__('Shipping To') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingAddressUrl($_address) ?>"><?php echo $this->__('Change') ?></a></h4>
70
+ </div>
71
+ <div class="box-content">
72
+ <address>
73
+ <?php echo $_address->format('html') ?>
74
+ </address>
75
+ </div>
76
+ </div>
77
+ <div class="box">
78
+ <div class="box-title">
79
+ <h4><?php echo $this->__('Shipping Method') ?> <span class="separator">|</span> <a href="<?php echo $this->getEditShippingUrl() ?>"><?php echo $this->__('Change') ?></a></h4>
80
+ </div>
81
+ <div class="box-content">
82
+ <?php if($_rate=$this->getShippingAddressRate($_address)): ?>
83
+ <p>
84
+ <?php echo $this->escapeHtml($_rate->getCarrierTitle()) ?> - <?php echo $this->escapeHtml($_rate->getMethodTitle()) ?>
85
+ <?php $_excl = $this->getShippingPriceExclTax($_address); ?>
86
+ <?php $_incl = $this->getShippingPriceInclTax($_address); ?>
87
+ <?php echo $_excl; ?>
88
+ <?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
89
+ (<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
90
+ <?php endif; ?>
91
+ </p>
92
+ <?php endif; ?>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ <div class="col-2 col-wide">
97
+ <h4><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getAddressesEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h4>
98
+ <table class="data-table" id="overview-table-<?php echo $_address->getId() ?>">
99
+ <col />
100
+ <col width="1" />
101
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
102
+ <col width="1" />
103
+ <?php endif; ?>
104
+ <col width="1" />
105
+ <col width="1" />
106
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
107
+ <col width="1" />
108
+ <?php endif; ?>
109
+ <thead>
110
+ <tr>
111
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
112
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
113
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
114
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
115
+ </tr>
116
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
117
+ <tr>
118
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
119
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
120
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
121
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
122
+ </tr>
123
+ <?php endif; ?>
124
+ </thead>
125
+ <tfoot>
126
+ <?php echo $this->renderTotals($this->getShippingAddressTotals($_address)); ?>
127
+ </tfoot>
128
+ <tbody>
129
+ <?php foreach ($this->getShippingAddressItems($_address) as $_item): ?>
130
+ <?php echo $this->getRowItemHtml($_item); ?>
131
+ <?php endforeach; ?>
132
+ </tbody>
133
+ </table>
134
+ <script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
135
+ </div>
136
+ <?php if($this->getShippingAddressCount()!=$_index+1): ?>
137
+ <div class="divider"></div>
138
+ <?php endif; ?>
139
+ <?php endforeach; ?>
140
+ </div>
141
+ <?php if ($this->getQuote()->hasVirtualItems()): ?>
142
+ <div class="col2-set">
143
+ <h2 class="legend"><?php echo $this->__('Other Items in Your Order') ?></h2>
144
+ <div class="col-1 col-narrow"></div>
145
+ <div class="col-2 col-wide">
146
+ <h3><?php echo $this->__('Items') ?> <span class="separator">|</span> <a href="<?php echo $this->getVirtualProductEditUrl() ?>"><?php echo $this->__('Edit Items') ?></a></h3>
147
+ <?php $mergedCells = ($this->helper('tax')->displayCartBothPrices() ? 2 : 1); ?>
148
+ <table class="data-table" id="virtual-overview-table">
149
+ <col />
150
+ <col width="1" />
151
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
152
+ <col width="1" />
153
+ <?php endif; ?>
154
+ <col width="1" />
155
+ <col width="1" />
156
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
157
+ <col width="70" />
158
+ <?php endif; ?>
159
+ <thead>
160
+ <tr>
161
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Product Name') ?></th>
162
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Price') ?></th>
163
+ <th rowspan="<?php echo $mergedCells; ?>"><?php echo $this->__('Qty') ?></th>
164
+ <th colspan="<?php echo $mergedCells; ?>" class="a-center"><?php echo $this->__('Subtotal') ?></th>
165
+ </tr>
166
+ <?php if ($this->helper('tax')->displayCartBothPrices()): ?>
167
+ <tr>
168
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
169
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
170
+ <th class="a-right"><?php echo $this->helper('tax')->getIncExcTaxLabel(false) ?></th>
171
+ <th><?php echo $this->helper('tax')->getIncExcTaxLabel(true) ?></th>
172
+ </tr>
173
+ <?php endif; ?>
174
+ </thead>
175
+ <tfoot>
176
+ <?php echo $this->renderTotals($this->getBillinAddressTotals()); ?>
177
+ </tfoot>
178
+ <tbody>
179
+ <?php foreach ($this->getVirtualItems() as $_item): ?>
180
+ <?php echo $this->getRowItemHtml($_item); ?>
181
+ <?php endforeach; ?>
182
+ </tbody>
183
+ </table>
184
+ <script type="text/javascript">decorateTable('virtual-overview-table')</script>
185
+ </div>
186
+ </div>
187
+ <?php endif; ?>
188
+
189
+ <?php echo $this->getChildHtml('items_after'); ?>
190
+
191
+ <div id="checkout-review-submit">
192
+ <div class="place-order">
193
+ <div class="grand-total">
194
+ <div class="inner">
195
+ <big><?php echo $this->__('Grand Total:') ?> <?php echo $this->helper('checkout')->formatPrice($this->getTotal()) ?></big>
196
+ <div id="review-buttons-container">
197
+ <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" id="review-button"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
198
+ </div>
199
+ </div>
200
+ </div>
201
+ <span class="please-wait" id="review-please-wait" style="display:none;">
202
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
203
+ </span>
204
+ </div>
205
+ </div>
206
+ <div class="buttons-set">
207
+ <p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Billing Information') ?></a></p>
208
+ </div>
209
+ </form>
210
+ <script type="text/javascript">
211
+ //<![CDATA[
212
+ var submitted = false;
213
+
214
+ function showLoader()
215
+ {
216
+ if (submitted) {
217
+ return false;
218
+ }
219
+ if ($('checkout-agreements')) {
220
+ var checkboxes = $$('#checkout-agreements input');
221
+ for (var i=0, l=checkboxes.length; i<l; i++) {
222
+ if (!checkboxes[i].checked) {
223
+ alert("<?php echo $this->__('Please agree to all Terms and Conditions before placing the orders.')?>");
224
+ return false;
225
+ }
226
+ }
227
+ }
228
+
229
+ submitted = true;
230
+ var step='review';
231
+ Element.show(step+'-please-wait');
232
+ $(step+'-buttons-container').setStyle({opacity:.5});
233
+ $(step+'-buttons-container').descendants().each(function(s) {
234
+ s.disabled = true;
235
+ });
236
+ return true;
237
+ }
238
+ //]]>
239
+ </script>
240
+ </div>
app/design/frontend/base/default/template/magesetup/checkout/onepage/agreements.phtml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Checkout Agreements
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.2
33
+ */
34
+
35
+ /**
36
+ * @var $this FireGento_MageSetup_Block_Checkout_Agreements
37
+ */
38
+
39
+ /** @var $helper FireGento_MageSetup_Helper_Data */
40
+ $helper = Mage::helper('magesetup');
41
+ $agreements = $this->getAgreements();
42
+ ?>
43
+
44
+ <?php if (!$agreements) return; ?>
45
+
46
+ <form action="" id="checkout-agreements" onsubmit="return false;">
47
+ <ol class="checkout-agreements">
48
+ <?php foreach ($agreements as $agreement): ?>
49
+ <li>
50
+ <p class="agree">
51
+ <?php if($agreement->getIsRequired()): ?>
52
+ <input type="checkbox" id="agreement-<?php echo $agreement->getId()?>" name="agreement[<?php echo $agreement->getId()?>]" value="1" title="<?php echo $this->htmlEscape($agreement->getCheckboxText()) ?>" class="checkbox" />
53
+ <?php endif; ?>
54
+ <label <?php if($agreement->getIsRequired()): ?>for="agreement-<?php echo $agreement->getId()?>"<?php endif; ?>><?php echo $agreement->getIsHtml() ? $agreement->getCheckboxText() : $this->escapeHtml($agreement->getCheckboxText()) ?></label>
55
+ <a href="<?php echo $helper->getAgreementUrl($agreement) ?>" onclick="window.open(this.href, '', 'width=600,height=600,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes').focus(); return false;"><?php echo $this->__('[Show]') ?></a>
56
+ </p>
57
+ </li>
58
+ <?php endforeach ?>
59
+ </ol>
60
+ </form>
app/design/frontend/base/default/template/magesetup/customer/form/tc-confirmation.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Checkout Agreements
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+
35
+ /**
36
+ * @var $this Mage_Checkout_Block_Agreements
37
+ */
38
+
39
+ /* @var $helper FireGento_MageSetup_Helper_Data */
40
+ $helper = $this->helper('magesetup');
41
+ ?>
42
+
43
+ <?php if (!$this->getAgreements()) return; ?>
44
+
45
+ <?php foreach ($this->getAgreements() as $_a): ?>
46
+ <li class="control">
47
+ <p class="agree">
48
+ <?php if( $_a->getIsRequired() ): ?>
49
+ <input type="checkbox" id="agreement-<?php echo $_a->getId()?>" name="agreement[<?php echo $_a->getId()?>]" value="1" title="<?php echo $this->htmlEscape( $_a->getCheckboxText() ) ?>" class="checkbox required-entry"/>
50
+ <?php endif; ?>
51
+ <label <?php if( $_a->getIsRequired() ): ?>for="agreement-<?php echo $_a->getId()?>"<?php endif; ?> style="float:none;"><?php echo $_a->getIsHtml() ? $_a->getCheckboxText() : $this->htmlEscape( $_a->getCheckboxText() ) ?></label>
52
+ <a href="<?php echo $helper->getAgreementUrl( $_a ) ?>" onclick="window.open(this.href, '', 'width=600,height=600,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes').focus(); return false;"><?php echo $this->__( '[Show]' ) ?></a>
53
+ </p>
54
+ </li>
55
+ <?php endforeach ?>
app/design/frontend/base/default/template/magesetup/delivery_time.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Template for displaying delivery time
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.0
33
+ */
34
+
35
+ /**
36
+ * @var $this Mage_Catalog_Block_Product_View_Abstract
37
+ */
38
+ ?>
39
+
40
+ <?php if ($this->getProduct()->getDeliveryTime()): ?>
41
+ <p class="delivery-time">
42
+ <?php echo $this->__('Delivery Time') ?>: <?php echo $this->getProduct()->getDeliveryTime() ?>
43
+ </p>
44
+ <?php endif ?>
app/design/frontend/base/default/template/magesetup/imprint/address.phtml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @see FireGento_MageSetup_Block_Imprint_Content
27
+ */
28
+ ?>
29
+ <?php echo $this->getCompanyFirst() ?><br />
30
+ <?php if (strlen(trim($this->getCompanySecond()))): ?>
31
+ <?php echo $this->getCompanySecond() ?><br />
32
+ <?php endif ?>
33
+ <?php echo $this->getStreet() ?><br />
34
+ <?php echo $this->getZip() ?> <?php echo $this->getCity() ?>
35
+ <?php if (strlen(trim($this->getCountry()))): ?>
36
+ <br /><?php echo $this->getCountry()?>
37
+ <?php endif;?>
app/design/frontend/base/default/template/magesetup/imprint/bank.phtml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @see FireGento_MageSetup_Block_Imprint_Content
27
+ */
28
+ ?>
29
+
30
+ <?php if (strlen(trim($this->getBankAccount())) || strlen(trim($this->getSwift()))): ?>
31
+ <h3>Bankverbindung</h3>
32
+ <?php endif ?>
33
+
34
+ <?php if (strlen(trim($this->getBankAccountOwner()))): ?>
35
+ <?php echo $this->__('Account owner') ?>: <?php echo $this->getBankAccountOwner() ?><br/>
36
+ <?php endif ?>
37
+ <?php if (strlen(trim($this->getBankAccount()))): ?>
38
+ <?php echo $this->__('Account') ?>: <?php echo $this->getBankAccount() ?><br/>
39
+ <?php endif ?>
40
+ <?php if (strlen(trim($this->getBankCodeNumber()))): ?>
41
+ <?php echo $this->__('Bank number') ?>: <?php echo $this->getBankCodeNumber() ?><br/>
42
+ <?php endif ?>
43
+ <?php if (strlen(trim($this->getBankName()))): ?>
44
+ <?php echo $this->__('Bank name') ?>: <?php echo $this->getBankName() ?><br/>
45
+ <?php endif ?>
46
+ <?php if (strlen(trim($this->getSwift()))): ?>
47
+ <?php echo $this->__('SWIFT') ?>: <?php echo $this->getSwift() ?><br/>
48
+ <?php endif ?>
49
+ <?php if (strlen(trim($this->getIban()))): ?>
50
+ <?php echo $this->__('IBAN') ?>: <?php echo $this->getIban() ?><br />
51
+ <?php endif ?>
app/design/frontend/base/default/template/magesetup/imprint/communication.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @see FireGento_MageSetup_Block_Imprint_Content
27
+ */
28
+ ?>
29
+ <?php if (strlen(trim($this->getTelephone()))): ?>
30
+ <?php echo $this->__('Telephone') ?>: <?php echo $this->getTelephone() ?><br />
31
+ <?php endif ?>
32
+ <?php if (strlen(trim($this->getFax()))): ?>
33
+ <?php echo $this->__('Fax') ?>: <?php echo $this->getFax() ?><br />
34
+ <?php endif ?>
35
+ <?php if (strlen(trim($this->getWeb()))): ?>
36
+ <?php echo $this->__('Web') ?>: <a href="<?php echo $this->getWeb(true) ?>" title="<?php echo $this->getCompanyFirst() ?>"><?php echo $this->getWeb() ?></a><br />
37
+ <?php endif ?>
38
+ <?php echo $this->__('E-Mail') ?>: <a href="mailto:<?php echo $this->getEmail() ?>" title="<?php echo $this->getCompanyFirst() ?>"><?php echo $this->getEmail() ?></a>
app/design/frontend/base/default/template/magesetup/imprint/email_footer.phtml ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @see FireGento_MageSetup_Block_Imprint_Content
27
+ */
28
+ ?>
29
+ <p><strong><?php echo $this->getShopName() ?></strong></p>
30
+
31
+ <p>
32
+ <?php echo $this->getCompanyFirst() ?><br />
33
+ <?php if(strlen(trim($this->getCompanySecond()))): ?>
34
+ <?php echo $this->getCompanySecond() ?><br />
35
+ <?php endif ?>
36
+ <?php echo $this->getStreet() ?><br />
37
+ <?php echo $this->getZip() ?> <?php echo $this->getCity() ?>
38
+ </p>
39
+
40
+ <p>
41
+ <?php if (strlen(trim($this->getTelephone()))): ?>
42
+ <?php echo $this->__('Telephone') ?>: <?php echo $this->getTelephone() ?><br />
43
+ <?php endif ?>
44
+ <?php if (strlen(trim($this->getFax()))): ?>
45
+ <?php echo $this->__('Fax') ?>: <?php echo $this->getFax() ?><br />
46
+ <?php endif ?>
47
+ <?php if (strlen(trim($this->getWeb()))): ?>
48
+ <?php echo $this->__('Web') ?>: <a href="http://<?php echo $this->getWeb() ?>" title="<?php echo $this->getCompanyFirst() ?>"><?php echo $this->getWeb() ?></a><br />
49
+ <?php endif ?>
50
+ <?php echo $this->__('E-Mail') ?>: <a href="mailto:<?php echo $this->getEmail() ?>" title="<?php echo $this->getCompanyFirst() ?>"><?php echo $this->getEmail() ?></a>
51
+ </p>
52
+
53
+ <p>
54
+ <?php if (strlen(trim($this->getFinancialOffice()))): ?>
55
+ <?php echo $this->__('Financial office') ?>: <?php echo $this->getFinancialOffice() ?><br />
56
+ <?php endif ?>
57
+ <?php if (strlen(trim($this->getTaxNumber()))): ?>
58
+ <?php echo $this->__('Tax number') ?>: <?php echo $this->getTaxNumber() ?><br />
59
+ <?php endif ?>
60
+ <?php if (strlen(trim($this->getVatId()))): ?>
61
+ <?php echo $this->__('VAT-ID') ?>: <?php echo $this->getVatId() ?><br />
62
+ <?php endif ?>
63
+ </p>
64
+
65
+ <p>
66
+ <?php if (strlen(trim($this->getCeo()))): ?>
67
+ <?php echo $this->__('CEO') ?>: <?php echo $this->getCeo() ?><br />
68
+ <?php endif ?>
69
+ <?php if (strlen(trim($this->getOwner()))): ?>
70
+ <?php echo $this->__('Owner') ?>: <?php echo $this->getOwner() ?><br />
71
+ <?php endif ?>
72
+ <?php if (strlen(trim($this->getCourt()))): ?>
73
+ <?php echo $this->__('Register court') ?>: <?php echo $this->getCourt() ?><br />
74
+ <?php endif ?>
75
+ <?php if (strlen(trim($this->getRegisterNumber()))): ?>
76
+ <?php echo $this->__('Register number') ?>: <?php echo $this->getRegisterNumber() ?><br />
77
+ <?php endif ?>
78
+ <?php if (strlen(trim($this->getBusinessRules()))): ?>
79
+ <?php echo $this->__('Reference for business rules') ?>: <?php echo $this->getBusinessRules() ?>
80
+ <?php endif ?>
81
+ </p>
82
+
83
+ <p>
84
+ <?php if (strlen(trim($this->getBankAccountOwner()))): ?>
85
+ <?php echo $this->__('Account owner') ?>: <?php echo $this->getBankAccountOwner() ?><br/>
86
+ <?php endif ?>
87
+ <?php if (strlen(trim($this->getBankAccount()))): ?>
88
+ <?php echo $this->__('Account') ?>: <?php echo $this->getBankAccount() ?><br/>
89
+ <?php endif ?>
90
+ <?php if (strlen(trim($this->getBankCodeNumber()))): ?>
91
+ <?php echo $this->__('Bank number') ?>: <?php echo $this->getBankCodeNumber() ?><br/>
92
+ <?php endif ?>
93
+ <?php if (strlen(trim($this->getBankName()))): ?>
94
+ <?php echo $this->__('Bank name') ?>: <?php echo $this->getBankName() ?><br/>
95
+ <?php endif ?>
96
+ <?php if (strlen(trim($this->getSwift()))): ?>
97
+ <?php echo $this->__('SWIFT') ?>: <?php echo $this->getSwift() ?><br/>
98
+ <?php endif ?>
99
+ <?php if (strlen(trim($this->getIban()))): ?>
100
+ <?php echo $this->__('IBAN') ?>: <?php echo $this->getIban() ?><br />
101
+ <?php endif ?>
102
+ </p>
app/design/frontend/base/default/template/magesetup/imprint/legal.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @var $this FireGento_MageSetup_Block_Imprint_Content
27
+ * @see FireGento_MageSetup_Block_Imprint_Content
28
+ */
29
+ ?>
30
+ <?php if (strlen(trim($this->getCeo()))): ?>
31
+ <?php echo $this->__('CEO') ?>: <?php echo $this->getCeo() ?><br />
32
+ <?php endif ?>
33
+ <?php if (strlen(trim($this->getOwner()))): ?>
34
+ <?php echo $this->__('Owner') ?>: <?php echo $this->getOwner() ?><br />
35
+ <?php endif ?>
36
+ <?php if (strlen(trim($this->getContentResponsableName())) || strlen(trim($this->getContentResponsableAddress()))): ?>
37
+ <p><?php echo $this->__('Responsible according to § 5 TMG'); ?>:</p>
38
+ <?php endif;?>
39
+ <?php if (strlen(trim($this->getContentResponsableName()))): ?>
40
+ <?php echo $this->__('Responsible for content') ?>: <?php echo $this->getContentResponsableName() ?><br />
41
+ <?php endif ?>
42
+ <?php if (strlen(trim($this->getContentResponsableAddress()))): ?>
43
+ <?php echo $this->__('Responsible for content address') ?>: <?php echo $this->getContentResponsableAddress() ?><br />
44
+ <?php endif ?>
45
+ <?php if (strlen(trim($this->getContentResponsablePressLaw()))): ?>
46
+ <?php echo $this->__('Responsible in the interests of the press law') ?>: <?php echo $this->getContentResponsablePressLaw() ?><br />
47
+ <?php endif ?>
48
+ <?php if (strlen(trim($this->getVatId()))): ?>
49
+ <?php echo $this->__('VAT-ID') ?>: <?php echo $this->getVatId() ?><br />
50
+ <?php endif ?>
51
+ <?php if (strlen(trim($this->getCourt()))): ?>
52
+ <?php echo $this->__('Register court') ?>: <?php echo $this->getCourt() ?><br />
53
+ <?php endif ?>
54
+ <?php if (strlen(trim($this->getRegisterNumber()))): ?>
55
+ <?php echo $this->__('Register number') ?>: <?php echo $this->getRegisterNumber() ?><br />
56
+ <?php endif ?>
57
+ <?php if (strlen(trim($this->getBusinessRules()))): ?>
58
+ <?php echo $this->__('Reference for business rules') ?>: <?php echo $this->getBusinessRules() ?><br />
59
+ <?php endif ?>
60
+ <?php if (strlen(trim($this->getAuthority()))): ?>
61
+ <?php echo $this->__('Authority (ECG)') ?>: <?php echo $this->getAuthority() ?><br />
62
+ <?php endif ?>
63
+ <?php if (strlen(trim($this->getShareholdings()))): ?>
64
+ <?php echo $this->__('Shareholdings') ?>: <?php echo nl2br($this->getShareholdings()) ?><br />
65
+ <?php endif ?>
66
+ <?php if (strlen(trim($this->getEditorialConcept()))): ?>
67
+ <?php echo $this->__('Editorial Concept') ?>: <?php echo $this->getEditorialConcept() ?><br />
68
+ <?php endif ?>
app/design/frontend/base/default/template/magesetup/imprint/tax.phtml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ ?>
24
+ <?php
25
+ /**
26
+ * @see FireGento_MageSetup_Block_Imprint_Content
27
+ */
28
+ ?>
29
+ <?php if (strlen(trim($this->getFinancialOffice()))): ?>
30
+ <?php echo $this->__('Financial office') ?>: <?php echo $this->getFinancialOffice() ?><br />
31
+ <?php endif ?>
32
+ <?php if (strlen(trim($this->getTaxNumber()))): ?>
33
+ <?php echo $this->__('Tax number') ?>: <?php echo $this->getTaxNumber() ?><br />
34
+ <?php endif ?>
35
+ <?php if (strlen(trim($this->getVatId()))): ?>
36
+ <?php echo $this->__('VAT-ID') ?>: <?php echo $this->getVatId() ?><br />
37
+ <?php endif ?>
app/design/frontend/base/default/template/magesetup/price_info.phtml ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Template for tax display and shipping cost link
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 0.1.0
33
+ */
34
+
35
+ /**
36
+ * @var $this FireGento_MageSetup_Block_Catalog_Product_Price
37
+ */
38
+ ?>
39
+
40
+ <?php $shippingCostUrl = Mage::helper( 'magesetup' )->getShippingCostUrl() ?>
41
+ <?php if( !empty( $shippingCostUrl ) && $this->getIsShowShippingLink() ): ?>
42
+ <?php if( $this->getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_EXCLUDING_TAX ): ?>
43
+ <?php if( $this->getIsIncludingShippingCosts() ): ?>
44
+ <span class="tax-details"><?php echo $this->__( 'Excl. %s Tax', $this->getFormattedTaxRate() ) ?><span class="tax-separator">, </span><span class="shipping-cost-details"><?php echo $this->__( 'incl. <a href="%s">Shipping Cost</a>', $shippingCostUrl ) ?></span></span>
45
+ <?php else: ?>
46
+ <span class="tax-details"><?php echo $this->__( 'Excl. %s Tax', $this->getFormattedTaxRate() ) ?><span class="tax-separator">, </span><span class="shipping-cost-details"><?php echo $this->__( 'excl. <a href="%s">Shipping Cost</a>', $shippingCostUrl ) ?></span></span>
47
+ <?php endif ?>
48
+ <?php elseif( $this->getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX ): ?>
49
+ <?php if( $this->getIsIncludingShippingCosts() ): ?>
50
+ <span class="tax-details"><?php echo $this->__( 'Incl. %s Tax', $this->getFormattedTaxRate() ) ?><span class="tax-separator">, </span><span class="shipping-cost-details"><?php echo $this->__( 'incl. <a href="%s">Shipping Cost</a>', $shippingCostUrl ) ?></span></span>
51
+ <?php else: ?>
52
+ <span class="tax-details"><?php echo $this->__( 'Incl. %s Tax', $this->getFormattedTaxRate() ) ?><span class="tax-separator">, </span><span class="shipping-cost-details"><?php echo $this->__( 'excl. <a href="%s">Shipping Cost</a>', $shippingCostUrl ) ?></span></span>
53
+ <?php endif ?>
54
+ <?php elseif( $this->getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_BOTH ): ?>
55
+ <?php if( $this->getIsIncludingShippingCosts() ): ?>
56
+ <span class="tax-details"><?php echo $this->__('incl. <a href="%s">Shipping Cost</a>', $shippingCostUrl) ?></span>
57
+ <?php else: ?>
58
+ <span class="tax-details"><?php echo $this->__('excl. <a href="%s">Shipping Cost</a>', $shippingCostUrl) ?></span>
59
+ <?php endif ?>
60
+ <?php endif ?>
61
+ <?php if ($this->getIsShowWeightInfo()): ?>
62
+ (<?php echo $this->__('Shipping Weight %s', $this->getFormattedWeight()) ?>)
63
+ <?php endif ?>
64
+ <?php else: ?>
65
+ <?php if( $this->getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_EXCLUDING_TAX ): ?>
66
+ <span class="tax-details"><?php echo $this->__( 'Excl. %s Tax', $this->getFormattedTaxRate() ) ?></span>
67
+ <?php elseif( $this->getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX ): ?>
68
+ <span class="tax-details"><?php echo $this->__( 'Incl. %s Tax', $this->getFormattedTaxRate() ) ?></span>
69
+ <?php endif ?>
70
+ <?php endif ?>
app/design/frontend/base/default/template/magesetup/shipping.phtml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file is part of the FIREGENTO project.
4
+ *
5
+ * FireGento_MageSetup is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU General Public License version 3 as
7
+ * published by the Free Software Foundation.
8
+ *
9
+ * This script is distributed in the hope that it will be useful, but WITHOUT
10
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
+ *
13
+ * PHP version 5
14
+ *
15
+ * @category FireGento
16
+ * @package FireGento_MageSetup
17
+ * @author FireGento Team <team@firegento.com>
18
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
19
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
20
+ * @version $Id:$
21
+ * @since 0.1.0
22
+ */
23
+ /**
24
+ * Template for shipping cost link
25
+ *
26
+ * @category FireGento
27
+ * @package FireGento_MageSetup
28
+ * @author FireGento Team <team@firegento.com>
29
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
30
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
31
+ * @version $Id:$
32
+ * @since 1.2.0
33
+ */
34
+
35
+ /**
36
+ * @var $this Mage_Checkout_Block_Cart_Shipping
37
+ */
38
+ ?>
39
+
40
+ <?php $shippingCostUrl = Mage::helper( 'magesetup' )->getShippingCostUrl() ?>
41
+ <?php if( !empty( $shippingCostUrl )): ?>
42
+ <div class="shipping">
43
+ <h2><?php echo $this->__('Shipping Costs') ?></h2>
44
+ <p><a href="<?php echo $shippingCostUrl ?>"><?php echo $this->__('Here you find information regarding the shipping costs.') ?></a></p>
45
+ </div>
46
+ <?php endif ?>
app/etc/modules/FireGento_MageSetup.xml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * This file is part of the FIREGENTO project.
5
+ *
6
+ * FireGento_MageSetup is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU General Public License version 3 as
8
+ * published by the Free Software Foundation.
9
+ *
10
+ * This script is distributed in the hope that it will be useful, but WITHOUT
11
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
+ *
14
+ * PHP version 5
15
+ *
16
+ * @category FireGento
17
+ * @package FireGento_MageSetup
18
+ * @author FireGento Team <team@firegento.com>
19
+ * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served.
20
+ * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
21
+ * @version $Id:$
22
+ * @since 0.1.0
23
+ */
24
+ -->
25
+ <config>
26
+ <modules>
27
+ <FireGento_MageSetup>
28
+ <active>true</active>
29
+ <codePool>community</codePool>
30
+ </FireGento_MageSetup>
31
+ <FireGento_GermanSetup>
32
+ <active>false</active>
33
+ </FireGento_GermanSetup>
34
+ </modules>
35
+ </config>
app/locale/de_AT/FireGento_MageSetup.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "VAT-ID","UID"
2
+ "Register number","Firmenbuchnummer"
3
+ "SWIFT","BIC/SWIFT"
app/locale/de_DE/FireGento_MageSetup.csv ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Display Block below Price","Block unterhalb der Preise darstellen"
2
+ "Display tax info and shipping cost link below the price on all pages","Steuerinformationen und Link zur Versandkostenseite auf allen Seiten unterhalb der Preise darstellen"
3
+ "Display Delivery time on Category Pages","Lieferzeit auf Produktübersichtsseiten anzeigen"
4
+ "CMS Page for Shipping Info","CMS-Seite für Versandkosten"
5
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Zeige ""inkl. Versandkosten"" statt ""zzgl. Versandkosten"""
6
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Zeige ""inkl. Versandkosten"" statt ""zzgl. Versandkosten"""
7
+ "No Page","Keine Seite"
8
+ "No Block","Kein Block"
9
+ "Incl. Tax","Inkl. MwSt."
10
+ "Incl. %s Tax","Inkl. %s MwSt."
11
+ "Excl. %s Tax","Zzgl. %s MwSt."
12
+ "excl. <a href=""%s"">Shipping Cost</a>","zzgl. <a href=""%s"">Versandkosten</a>"
13
+ "incl. <a href=""%s"">Shipping Cost</a>","inkl. <a href=""%s"">Versandkosten</a>"
14
+ "Display Product Weight below Price","Produktgewicht unterhalb der Preise darstellen"
15
+ "Unit for Product Weight","Einheit für Produktgewicht"
16
+ "e.g. g, kg, lb, ...","z.B. g, kg, lb, ..."
17
+ "Shipping Weight %s","Versandgewicht %s"
18
+
19
+ "If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.","Wenn Sie (z.B. für mehrere Sprachen) zusätzliche StoreViews anlegen möchten, tun Sie dies bitte, bevor Sie dieses Formular ausfüllen."
20
+ "MageSetup has been installed.","MageSetup wurde installiert."
21
+ "Click <a href=""%s"">here</a> to set up your pages, blocks, emails and tax settings.","Klicken Sie <a href=""%s"">hier</a>, um CMS-Seiten, Blöcke, E-Mails und Steuer-Einstellungen zu initialisieren."
22
+ "Please choose the requested setups:","Bitte wählen Sie die gewünschten Setups:"
23
+ "Run MageSetup","MageSetup ausführen"
24
+ "Update System Config Settings","Einstellungen in der Systemkonfiguration aktualisieren"
25
+ "i.e. newsletter confirmation, account confirmation, ..","z.B. Newsletter Bestätigung, Benutzerkonto Bestätigung, .."
26
+ "Create CMS Pages and Blocks","CMS-Seiten und Statische Blöcke erstellen"
27
+ "i.e. shipping, conditions, revocation","z.B. Versand, AGB, Widerruf"
28
+ "Create Checkout Agreements","Bestellbedingungen erstellen"
29
+ "Conditions","AGB und Widerrufsbelehrung"
30
+ "Display Checkbox on Frontend","Checkbox im Frontend anzeigen"
31
+ "Require Confirmation on Customer Registration and/or Checkout","Pflichtfeld bei Kundenregistrierung und/oder Checkout"
32
+ "Language Package for CMS Pages/Blocks/Agreements","Sprachpaket für CMS-Seiten/-Blocks/Bestellbedingungen"
33
+ "Create Email Templates","Email-Templates erstellen"
34
+ "German Email Templates","Deutsche Email-Vorlagen"
35
+ "Configure Tax","Steuereinstellungen konfigurieren"
36
+ "Shipping from Germany","Versand aus Deutschland"
37
+ "All tax settings will be overwritten!","Alle Steuereinstellungen werden überschrieben!"
38
+ "Update Product Tax Classes","Produktsteuerklassen neu zuweisen"
39
+ "Update Customer Tax Classes","Kundensteuerklassen neu zuweisen"
40
+ "Old","Alt"
41
+ "New","Neu"
42
+ "No tax","Keine Steuern"
43
+ "Newsletter Subscribers Status History","Newsletter Abonnenten Status Historie"
44
+
45
+ "MageSetup: CMS Blocks and Pages have been created.","MageSetup: CMS-Blocks und Seiten wurden erfolgreich angelegt."
46
+ "MageSetup: Checkout Agreements have been created.","MageSetup: Bestellbedingungen wurden erfolgreich angelegt."
47
+ "MageSetup: Email Templates have been created.","MageSetup: Email-Vorlagen wurden erfolgreich angelegt."
48
+ "MageSetup: Tax Settings have been created.","MageSetup: Steuereinstellungen wurden erfolgreich angelegt."
49
+ "MageSetup: Product Tax Classes have been updated.","MageSetup: Produktsteuerklassen wurden aktualisiert."
50
+ "MageSetup: System Config Settings have been updated.","MageSetup: Einstellungen in der Systemkonfiguration wurden aktualisiert."
51
+
52
+ "Imprint","Impressum"
53
+ "Account","Kontonummer"
54
+ "Account owner","Kontoinhaber"
55
+ "Bank number","BLZ"
56
+ "Bank name","Kreditinstitut"
57
+ "CEO","Geschäftsführer"
58
+ "Owner","Inhaber"
59
+ "Responsible according to § 5 TMG","Inhaltlich verantwortlich gemäß § 5 TMG"
60
+ "Responsible for content","Inhalt. Verantwortlicher"
61
+ "Responsible for content address","Adresse des inhalt. Verantwortlichen"
62
+ "Responsible in the interests of the press law","Verantwortlich im Sinne des Presserechts (V.i.S.d.P.)"
63
+ "E-Mail","E-Mail"
64
+ "Fax","Fax"
65
+ "Financial office","Finanzamt"
66
+ "IBAN","IBAN"
67
+ "Register court","Registergericht"
68
+ "Register number","HRB-Nummer"
69
+ "SWIFT","SWIFT"
70
+ "BIC/SWIFT","BIC/SWIFT"
71
+ "Tax number","Steuernummer"
72
+ "Telephone","Telefon"
73
+ "Web","Web"
74
+ "VAT-ID","USt.Id."
75
+ "Company 1","Firma 1"
76
+ "Company 2","Firma 2"
77
+ "Street","Straße"
78
+ "Zip","PLZ"
79
+ "City","Ort"
80
+ "Telephone","Telefon"
81
+ "Tax number","Steuernummer"
82
+ "Register court","Zuständiges Gericht"
83
+ "Financial office","Zuständiges Finanzamt"
84
+ "Register number","HRB Nummer"
85
+ "Reference for business rules (physician, physician...)","Verweis auf berufliche Regelungen (z.B. für Ärzte, Apotheker)"
86
+ "Authority (ECG)","Behörde gem. ECG (E-Commerce-Gesetz)"
87
+ "Shareholdings","Beteiligungen"
88
+ "Editorial Concept","Blattlinie"
89
+ "relevant for Austrian shops","relevant für österreichische Shops"
90
+ "Account owner","Kontoinhaber"
91
+ "Account","Kontonummer"
92
+ "Bank number","BLZ"
93
+ "Bank name","Kreditinstitut"
94
+
95
+ "%s%%","%s%%"
96
+
97
+ "Recommended Extensions","Empfohlene Erweiterungen"
98
+ "Popular Payment Methods","Beliebte Zahlungsmethoden"
99
+ "Ip anonymization", "IP Adresse verschleiern"
100
+ "Ensures that the ip address of the customers doesnt get involved into the tracking", "Stellt sicher das die IP Adresse der Kunden beim Tracking nicht mit übertragen werden (Datenschutz)"
101
+
102
+ "Dynamic Shipping Tax Class Calculation","Dynamische Berechnung der Versand-Steuerklasse"
103
+ "Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.<br /><b>ATTENTION:</b> This setting overwrites the ""Tax Class for Shipping"" setting above!","Auf ""Ja"" stellen, wenn Sie die Versand-Steuerklasse basierend auf der höchsten Produktsteuerklasse im Warenkorb dynamisch berechnen lassen möchten.<br /><b>ACHTUNG:</b> Diese Einstellung überschreibt die Einstellung ""Steuerklasse für den Versand"" darüber."
104
+
105
+ "Shipping from","Versand aus"
106
+ "This setting is base for the tax rate setup!","Diese Einstellung wird für das Setup der Steuereinstellungen verwendet!"
107
+
108
+ "[Show]","[Anzeigen]"
109
+ "Visible in Checkout","Sichtbar im Bestellprozess"
110
+
111
+ "Display Additional Information","Zusatzinformation anzeigen"
112
+ "Display content from text field below at the checkout confirm page directly above the checkout button","Inhalt des Textfeldes (unten) auf der Bestellbestätigungsseite anzeigen (direkt über dem ""Kaufen""-Button)"
113
+
114
+ "Directory ""%s"" not found. Locale not installed?","Verzeichnis ""%s"" nicht gefunden. Ist das Sprachpaket korrekt installiert?"
115
+ "Default Setting","Standardeinstellung"
116
+ "Use Default Setting","Standardeinstellung benutzen"
117
+ "Select Locale","Gewähltes Spachpaket"
118
+ "Create Transational Email Templates to be managed in the Magento admin area","Transaktions-Emails erzeugen, die im Magento-Admin-Bereich verwaltet werden können."
119
+ "Language Package for Email Templates","Spachpaket für Email-Templates"
120
+ "If your desired locale is missing, please check if it installed.","Wenn Ihr gewünschtes Sprachpaket in der Auswahl fehlt, prüfen Sie bitte, ob es korrekt installiert ist."
121
+ "If your desired locale is missing, it is not supported yet by MageSetup.","Wenn Ihr gewünschtes Sprachpaket in der Auswahl fehlt, wird es von MageSetup derzeit noch nicht angeboten."
122
+
123
+ "Configuration Settings","Konfigurations-Einstellungen"
124
+ "CMS Settings","CMS-Einstellungen"
125
+ "Email Settings","Email-Einstellungen"
126
+ "Tax Settings","Steuer-Einstellungen"
127
+
128
+ "Delivery Time","Lieferzeit"
129
+ "Shipping Costs","Versandkosten"
130
+ "Hide estimated shipping costs in cart","Geschätzte Versandkosten im Warenkorb verstecken"
131
+ "Replace with a link to the shipping costs cms page","Mit einem Link zur CMS-Seite ""Versandkosten"" ersetzen"
132
+ "Here you find information regarding the shipping costs.","Hier finden Sie Informationen zu den Versandkosten."
133
+ "Hide box ""Last Ordered Items""","Box ""Zuletzt bestellte Artikel"" verstecken"
134
+ "Tax Settings","Steuer-Einstellungen"
135
+
136
+ "Display on","Anzeigen in"
137
+ "On checkout (Magento Default)","Im Checkout (Magento-Standard)"
138
+ "On customer registration (or on checkout, if customer not registered before)","In der Kundenregistrierung (oder im Checkout, wenn der Kunde vorher nicht registriert ist)"
139
+ "On customer registration and on checkout","In der Kundenregistrierung und im Checkout"
140
+ "Nowhere","Nirgendwo"
141
+ "Agreements not confirmed.","Bedingungen wurden nicht bestätigt."
142
+
143
+ "German Language Pack","Deutsches Sprachpaket"
144
+ "Base Price","Grundpreis-Modul (PAngV)"
145
+ "Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Newsletter Abmeldung als Gast und Double Opt-In für registrierte Kunden"
146
+ "Debit Payment","Bankeinzug/Lastschrift"
147
+ "Cash on Delivery","Nachnahme"
148
+ "Bank Payment","Vorkasse"
149
+ "Invoice Payment","Rechnung"
150
+ "Extension Key","Extension Key"
151
+ "MagentoConnect","MagentoConnect"
app/locale/de_DE/template/magesetup/agreement/business_terms.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name AGB @-->
2
+ <!--@checkbox_text Ich habe die Allgemeinen Geschäftsbedingungen gelesen und stimme diesen ausdrücklich zu. @-->
3
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/de_DE/template/magesetup/agreement/revocation.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Widerrufsbelehrung @-->
2
+ <!--@checkbox_text Ich habe die Widerrufsbelehrung gelesen. @-->
3
+ {{block type="cms/block" block_id="revocation"}}
app/locale/de_DE/template/magesetup/block/business_terms.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title AGB @-->
2
+ <h2><i>Fügen Sie hier Ihre Allgemeinen Geschäftsbedingungen ein.</i></h2>
app/locale/de_DE/template/magesetup/block/revocation.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Widerrufsbelehrung @-->
2
+ <h2><i>Fügen Sie hier Ihre vollständige Widerrufsbelehrung ein.</i></h2>
app/locale/de_DE/template/magesetup/page/404.html ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <!--@title Seite nicht gefunden @-->
2
+ <!--@identifier no-route @-->
3
+ <!--@root_template one_column @-->
4
+ <h2>404 - Seite nicht gefunden</h2>
5
+ <p>Leider konnte die angeforderte Seite nicht gefunden werden, scheinbar wurde eine nicht korrekte URL eingegeben. So ist der 404 Fehler entstanden. Bitte nutzen Sie unsere <a href="{{store url="catalogsearch/advanced"}}">Suche</a> oder wechseln Sie zu unserer <a href="{{store url=""}}">Startseite</a> um in unserem umfangreichen Sortiment zu stöbern.</p>
6
+ <ul>
7
+ <li><a href="{{store url='catalogsearch/advanced'}}">Suche</a></li>
8
+ <li><a href="{{store url=''}}">Startseite</a></li>
9
+ </ul>
app/locale/de_DE/template/magesetup/page/business_terms.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title AGB @-->
2
+ <!--@identifier agb @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/de_DE/template/magesetup/page/imprint.html ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Impressum @-->
2
+ <!--@identifier impressum @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+
6
+ <p>Die hier bereitgestellten Mustertexte sind ausdrücklich als
7
+ <strong>MUSTER</strong> zu verstehen und müssen in jedem Fall durch
8
+ eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt
9
+ werden. Weder FireGento e.V. noch Trusted Shops tragen für die
10
+ Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.</p>
11
+
12
+ <h2>Impressum (Muster)</h2>
13
+
14
+ <h3>{{block type="magesetup/imprint_field" value="shop_name"}}</h3>
15
+
16
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}</p>
17
+
18
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}</p>
19
+
20
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}</p>
21
+
22
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}</p>
23
+
24
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}</p>
25
+
26
+ <p>{{block type="magesetup/imprint_field" value="business_rules"}}</p>
27
+
28
+ <p>Sie erreichen unseren Kundendienst für Fragen Reklamationen und Beanstandungen unter Telefon: {{block type="magesetup/imprint_field" value="telephone"}} sowie per Email unter <a href="mailto:{{block type="magesetup/imprint_field" value="email"}}">{{block type="magesetup/imprint_field" value="email"}}</a>. Für Anfragen können Sie auch das Kontaktformular auf unserer Internetseite nutzen.</p>
29
+
30
+ <h3>Disclaimer (Muster)</h3>
31
+
32
+ <p>Bei direkten oder indirekten Verweisen auf fremde Webseiten ("Hyperlinks"), die außerhalb des Verantwortungsbereiches des Autors liegen, würde eine Haftungsverpflichtung ausschließlich in dem Fall in Kraft treten, in dem der Autor von den Inhalten Kenntnis hat und es ihm technisch möglich und zumutbar wäre, die Nutzung im Falle rechtswidriger Inhalte zu verhindern. Der Autor erklärt hiermit ausdrücklich, dass zum Zeitpunkt der Linksetzung keine illegalen Inhalte auf den zu verlinkenden Seiten erkennbar waren. Auf die aktuelle und zukünftige Gestaltung, die Inhalte oder die Urheberschaft der verlinkten/verknüpften Seiten hat der Autor keinerlei Einfluss. Deshalb distanziert er sich hiermit ausdrücklich von allen Inhalten aller verlinkten /verknüpften Seiten, die nach der Linksetzung verändert wurden. Diese Feststellung gilt für alle innerhalb des eigenen Internetangebotes gesetzten Links und Verweise sowie für Fremdeinträge in vom Autor eingerichteten Gästebüchern, Diskussionsforen, Linkverzeichnissen, Mailinglisten und in allen anderen Formen von Datenbanken, auf deren Inhalt externe Schreibzugriffe möglich sind. Für illegale, fehlerhafte oder unvollständige Inhalte und insbesondere für Schäden, die aus der Nutzung oder Nichtnutzung solcherart dargebotener Informationen entstehen, haftet allein der Anbieter der Seite, auf welche verwiesen wurde, nicht derjenige, der über Links auf die jeweilige Veröffentlichung lediglich verweist.</p>
33
+
34
+ <h3>Urheber- und Kennzeichenrecht</h3>
35
+
36
+ <p>Der Autor ist bestrebt, in allen Publikationen die Urheberrechte der verwendeten Bilder, Grafiken, Tondokumente, Videosequenzen und Texte zu beachten, von ihm selbst erstellte Bilder, Grafiken, Tondokumente, Videosequenzen und Texte zu nutzen oder auf lizenzfreie Grafiken, Tondokumente, Videosequenzen und Texte zurückzugreifen. Alle innerhalb des Internetangebotes genannten und ggf. durch Dritte geschützten Marken- und Warenzeichen unterliegen uneingeschränkt den Bestimmungen des jeweils gültigen Kennzeichenrechts und den Besitzrechten der jeweiligen eingetragenen Eigentümer. Allein aufgrund der bloßen Nennung ist nicht der Schluss zu ziehen, dass Markenzeichen nicht durch Rechte Dritter geschützt sind! Das Copyright für veröffentlichte, vom Autor selbst erstellte Objekte bleibt allein beim Autor der Seiten. Eine Vervielfältigung oder Verwendung solcher Grafiken, Tondokumente, Videosequenzen und Texte in anderen elektronischen oder gedruckten Publikationen ist ohne ausdrückliche Zustimmung des Autors nicht gestattet.</p>
37
+
app/locale/de_DE/template/magesetup/page/order.html ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Bestellvorgang @-->
2
+ <!--@identifier order @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+
6
+ <p>Die hier bereitgestellten Mustertexte sind ausdrücklich als
7
+ <strong>MUSTER</strong> zu verstehen und müssen in jedem Fall durch
8
+ eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt
9
+ werden. Weder FireGento e.V. noch Trusted Shops tragen für die
10
+ Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.</p>
11
+
12
+ <h2>Bestellvorgang, einfach und bequem bestellen</h2>
13
+
14
+ <h3>Wie kann ich bei {{block type="magesetup/imprint_field" value="shop_name"}} bestellen?</h3>
15
+
16
+ <h4>1. Warenkorb</h4>
17
+
18
+ <p>Wählen Sie die Produkte aus, die Sie bestellen möchten, indem Sie den "In den Warenkorb" Button anklicken. Dadurch wird Ihre Auswahl in den Warenkorb gelegt. Sie können diese Auswahl bis zum Absenden Ihrer Bestellung jederzeit ändern, in dem Sie die Anzahl der Produkte ändern, durch Anklicken des Kästchens "Entfernen" die Auswahl löschen oder den Bestellvorgang abbrechen. Durch Anklicken des Buttons "Kasse" gelangen Sie zum nächsten Bestellschritt.</p>
19
+
20
+ <h4>2. Kasse</h4>
21
+
22
+ <p>Melden Sie sich bitte mit Ihrer eMail Adresse und Ihrem Passwort an falls Sie bereits ein Kundenkonto besitzen, ansonsten registrieren Sie sich bitte als neuer Kunde. Ihre Daten werden unter Beachtung der datenschutzrechtlichen Bestimmungen erhoben, verarbeitet und genutzt (<a href="{{store url="datenschutz"}}">Datenschutzhinweis</a>). Eine anderweitige Verwendung oder Weitergabe an Dritte erfolgt nicht. Sind Sie bereits angemeldet, können Sie nun die Versandart auswählen. Durch klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.</p>
23
+
24
+ <h4>3. Rechnungsadresse prüfen / Zahlungsweise auswählen</h4>
25
+
26
+ <p>Überprüfen Sie nun Ihre Rechnungsadresse und geben Sie Ihre gewünschte <a href="{{store url="zahlung"}}">Zahlungsweise</a> an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt. </p>
27
+
28
+ <h4>4. Versandadresse prüfen / Versandart auswählen</h4>
29
+
30
+ <p>Überprüfen Sie nun Ihre Versandadresse und geben Sie Ihre gewünschte <a href="{{store url="lieferung"}}">Versandart</a> an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.</p>
31
+
32
+ <h4>5. Bestellvorgang abschließen / AGB und Widerrufsbelehrung</h4>
33
+
34
+ <p>Sie erhalten eine Übersicht Ihrer Bestellung: die ausgewählten Produkte, die Versand- und Rechnungsadresse und Ihre Kontaktdaten. Überprüfen Sie, ob alle Angaben stimmen und lesen sich bitte die <a href="{{store url="agb"}}">Allgemeinen Geschäftsbedingungen</a> und die <a href="{{store url="widerruf"}}">Widerrufsbelehrung</a> aufmerksam durch. Sie können mit der Bestellung nur fortfahren, wenn Sie den AGB und der Widerrufsbelehrung zustimmen (Häkchen setzen). Mit dem Anklicken des Buttons "Jetzt kaufen" übersenden Sie Ihre Bestellung an uns. Hiermit geben Sie ein rechtsverbindliches Angebot ab.</p>
35
+
36
+ <h4>Widerrufsrecht für Verbraucher</h4>
37
+
38
+ <p>Alle Informationen zum <a href="{{store url="agb#widerruf"}}">Widerrufsrecht</a></p>
app/locale/de_DE/template/magesetup/page/payment.html ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Zahlungsarten @-->
2
+ <!--@identifier zahlungsarten @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+
6
+ <p>Die hier bereitgestellten Mustertexte sind ausdrücklich als
7
+ <strong>MUSTER</strong> zu verstehen und müssen in jedem Fall durch
8
+ eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt
9
+ werden. Weder der FireGento e.V. noch Trusted Shops tragen für die
10
+ Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.</p>
11
+
12
+ <h2>Zahlungsarten</h2>
13
+
14
+ <p>Wir bieten Ihnen folgende Zahlungsarten an. Suchen Sie sich einfach die für Sie optimale Zahlart aus. Die Versandkosten sind teilweise abhängig von der gewählten Zahlungsart.</p>
15
+
16
+ <h3>Vorkasse</h3>
17
+
18
+ <p>Bitte überweisen Sie den Gesamtbetrag Ihrer Bestellung auf unser Konto.</p>
19
+
20
+ <h3>Rechnung</h3>
21
+
22
+ <p>Nur für Schulen, Behörden und im Handelsregister eingetragene Unternehmen nach Prüfung.</p>
23
+
24
+ <h3>Nachnahme</h3>
25
+
26
+ <p>Bitte halten Sie den Rechnungsbetrag bereit; der Zusteller kassiert bei Lieferung in bar (keine Schecks). Bei Nachnahme fallen zusätzlich 2,-- EUR Nachnahmegebühren an, die direkt an den Paketzusteller zu entrichten sind.</p>
27
+
28
+ <h3>Lastschrift</h3>
29
+
30
+ <p>Wir ziehen den Rechnungsbetrag Ihrer Bestellung von Ihrem hinterlegten Bankkonto nach der getätigten Bestellung ein.</p>
app/locale/de_DE/template/magesetup/page/privacy.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Datenschutz @-->
2
+ <!--@identifier datenschutz @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Fügen Sie hier Ihre Datenschutzerklärung ein.</i></h2>
app/locale/de_DE/template/magesetup/page/revocation.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Widerrufsbelehrung @-->
2
+ <!--@identifier widerrufsbelehrung @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="revocation"}}
app/locale/de_DE/template/magesetup/page/shipping.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Lieferung @-->
2
+ <!--@identifier lieferung @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Fügen Sie hier Ihre Versandkostenaufstellung und weitere Einzelheiten zur Lieferung ein.</i></h2>
app/locale/en_US/FireGento_MageSetup.csv ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Display Block below Price","Display Block below Price"
2
+ "Display tax info and shipping cost link below the price on all pages","Display tax info and shipping cost link below the price on all pages"
3
+ "Display Delivery time on Category Pages","Display Delivery time on Category Pages"
4
+ "CMS Page for Shipping Info","CMS Page for Shipping Info"
5
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost"""
6
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost"""
7
+ "No Page","No Page"
8
+ "No Block","No Block"
9
+ "Incl. Tax","Incl. Tax"
10
+ "Incl. %s Tax","Incl. %s Tax"
11
+ "Excl. %s Tax","Excl. %s Tax"
12
+ "excl. <a href=""%s"">Shipping Cost</a>","excl. <a href=""%s"">Shipping Cost</a>"
13
+ "incl. <a href=""%s"">Shipping Cost</a>","incl. <a href=""%s"">Shipping Cost</a>"
14
+ "Display Product Weight below Price","Display Product Weight below Price"
15
+ "Unit for Product Weight","Unit for Product Weight"
16
+ "e.g. g, kg, lb, ...","e.g. g, kg, lb, ..."
17
+ "Shipping Weight %s","Shipping Weight %s"
18
+
19
+ "If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.","If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form."
20
+ "MageSetup has been installed.","MageSetup has been installed."
21
+ "Click <a href=""%s"">here</a> to set up your pages, blocks, emails and tax settings.","Click <a href=""%s"">here</a> to set up your pages, blocks, emails and tax settings."
22
+ "Please choose the requested setups:","Please choose the requested setups:"
23
+ "Run MageSetup","Run MageSetup"
24
+ "Update System Config Settings","Update System Config Settings"
25
+ "i.e. newsletter confirmation, account confirmation, ..","i.e. newsletter confirmation, account confirmation, .."
26
+ "Create CMS Pages and Blocks","Create CMS Pages and Blocks"
27
+ "i.e. shipping, conditions, revocation","i.e. shipping, conditions, revocation"
28
+ "Create Checkout Agreements","Create Checkout Agreements"
29
+ "Conditions","Conditions"
30
+ "Display Checkbox on Frontend","Display Checkbox on Frontend"
31
+ "Require Confirmation on Customer Registration and/or Checkout","Require Confirmation on Customer Registration and/or Checkout"
32
+ "Language Package for CMS Pages/Blocks/Agreements","Language Package for CMS Pages/Blocks/Agreements"
33
+ "Create Email Templates","Create Email Templates"
34
+ "German Email Templates","German Email Templates"
35
+ "Configure Tax","Configure Tax"
36
+ "Shipping from Germany","Shipping from Germany"
37
+ "All tax settings will be overwritten!","All tax settings will be overwritten!"
38
+ "Update Product Tax Classes","Update Product Tax Classes"
39
+ "Update Customer Tax Classes","Update Customer Tax Classes"
40
+ "Old","Old"
41
+ "New","New"
42
+ "No tax","No tax"
43
+ "Newsletter Subscribers Status History","Newsletter Subscribers Status History"
44
+
45
+ "MageSetup: CMS Blocks and Pages have been created.","MageSetup: CMS Blocks and Pages have been created."
46
+ "MageSetup: Checkout Agreements have been created.","MageSetup: Checkout Agreements have been created."
47
+ "MageSetup: Email Templates have been created.","MageSetup: Email Templates have been created."
48
+ "MageSetup: Tax Settings have been created.","MageSetup: Tax Settings have been created."
49
+ "MageSetup: Product Tax Classes have been updated.","MageSetup: Product Tax Classes have been updated."
50
+ "MageSetup: System Config Settings have been updated.","MageSetup: System Config Settings have been updated."
51
+
52
+ "Imprint","Imprint"
53
+ "Account","Account"
54
+ "Account owner","Account owner"
55
+ "Bank number","Bank number"
56
+ "Bank name","Bank name"
57
+ "CEO","CEO"
58
+ "Owner","Owner"
59
+ "Responsible according to § 5 TMG","Responsible according to § 5 TMG"
60
+ "Responsible for content","Responsible for content"
61
+ "Responsible for content address","Responsible for content address"
62
+ "Responsible in the interests of the press law","Responsible in the interests of the press law"
63
+ "E-Mail","E-Mail"
64
+ "Fax","Fax"
65
+ "Financial office","Financial office"
66
+ "IBAN","IBAN"
67
+ "Register court","Register court"
68
+ "Register number","Register number"
69
+ "SWIFT","SWIFT"
70
+ "BIC/SWIFT","BIC/SWIFT"
71
+ "Tax number","Tax number"
72
+ "Telephone","Telephone"
73
+ "Web","Web"
74
+ "VAT-ID","VAT-ID"
75
+ "Company 1","Company 1"
76
+ "Company 2","Company 2"
77
+ "Street","Street"
78
+ "Zip","Zip"
79
+ "City","City"
80
+ "Telephone","Telephone"
81
+ "Tax number","Tax number"
82
+ "Register court","Register court"
83
+ "Financial office","Financial office"
84
+ "Register number","Register number"
85
+ "Reference for business rules (physician, physician...)","Reference for business rules (physician, physician...)"
86
+ "Authority (ECG)","Authority (ECG)"
87
+ "Shareholdings","Shareholdings"
88
+ "Editorial Concept","Editorial Concept"
89
+ "relevant for Austrian shops","relevant for Austrian shops"
90
+ "Account owner","Account owner"
91
+ "Account","Account"
92
+ "Bank number","Bank number"
93
+ "Bank name","Bank name"
94
+
95
+ "%s%%","%s%%"
96
+
97
+ "Recommended Extensions","Recommended Extensions"
98
+ "Popular Payment Methods in Germany","Popular Payment Methods in Germany"
99
+ "Ip anonymization","Ip anonymization"
100
+ "Ensures that the ip address of the customers doesnt get involved into the tracking","Ensures that the ip address of the customers doesnt get involved into the tracking"
101
+
102
+ "Dynamic Shipping Tax Class Calculation","Dynamic Shipping Tax Class Calculation"
103
+ "Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.<br /><b>ATTENTION:</b> This setting overwrites the ""Tax Class for Shipping"" setting above!","Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.<br /><b>ATTENTION:</b> This setting overwrites the ""Tax Class for Shipping"" setting above!"
104
+
105
+ "Shipping from","Shipping from"
106
+ "This setting is base for the tax rate setup!","This setting is base for the tax rate setup!"
107
+
108
+ "[Show]","[Show]"
109
+ "Visible in Checkout","Visible in Checkout"
110
+
111
+ "Display Additional Information","Display Additional Information"
112
+ "Display content from text field below at the checkout confirm page directly above the checkout button","Display content from text field below at the checkout confirm page directly above the checkout button"
113
+
114
+ "Directory ""%s"" not found. Locale not installed?","Directory ""%s"" not found. Locale not installed?"
115
+ "Default Setting","Default Setting"
116
+ "Use Default Setting","Use Default Setting"
117
+ "Select Locale","Select Locale"
118
+ "Create Transational Email Templates to be managed in the Magento admin area","Create Transational Email Templates to be managed in the Magento admin area"
119
+ "Language Package for Email Templates","Language Package for Email Templates"
120
+ "If your desired locale is missing, please check if it installed.","If your desired locale is missing, please check if it installed."
121
+ "If your desired locale is missing, it is not supported yet by MageSetup.","If your desired locale is missing, it is not supported yet by MageSetup."
122
+
123
+ "Configuration Settings","Configuration Settings"
124
+ "CMS Settings","CMS Settings"
125
+ "Email Settings","Email Settings"
126
+ "Tax Settings","Tax Settings"
127
+
128
+ "Delivery Time","Delivery Time"
129
+ "Shipping Costs","Shipping Costs"
130
+ "Hide estimated shipping costs in cart","Hide estimated shipping costs in cart"
131
+ "Replace with a link to the shipping costs cms page","Replace with a link to the shipping costs cms page"
132
+ "Here you find information regarding the shipping costs.","Here you find information regarding the shipping costs."
133
+ "Hide box ""Last Ordered Items""","Hide box ""Last Ordered Items"""
134
+ "Tax Settings","Tax Settings"
135
+
136
+ "Display on","Display on"
137
+ "On checkout (Magento Default)","On checkout (Magento Default)"
138
+ "On customer registration (or on checkout, if customer not registered before)","On customer registration (or on checkout, if customer not registered before)"
139
+ "On customer registration and on checkout","On customer registration and on checkout"
140
+ "Nowhere","Nowhere"
141
+ "Agreements not confirmed.","Agreements not confirmed."
142
+
143
+ "German Language Pack","German Language Pack"
144
+ "Base Price","Base Price"
145
+ "Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Newsletter Unsubscription for Guests, Double Opt In for registered Customers"
146
+ "Debit Payment","Debit Payment"
147
+ "Cash on Delivery","Cash on Delivery"
148
+ "Bank Payment","Bank Payment"
149
+ "Invoice Payment","Invoice Payment"
150
+ "Extension Key","Extension Key"
151
+ "MagentoConnect","MagentoConnect"
app/locale/en_US/template/magesetup/agreement/business_terms.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Business Terms @-->
2
+ <!--@checkbox_text I have read the Business Terms and agree with them. @-->
3
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/en_US/template/magesetup/agreement/revocation.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Revocation @-->
2
+ <!--@checkbox_text I have read the Right of Revocation. @-->
3
+ {{block type="cms/block" block_id="revocation"}}
app/locale/en_US/template/magesetup/block/business_terms.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Business Terms @-->
2
+ <h2><i>Please insert your Business Terms here.</i></h2>
app/locale/en_US/template/magesetup/block/revocation.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Revocation @-->
2
+ <h2><i>Please insert your Declaration of Revocation here.</i></h2>
app/locale/en_US/template/magesetup/page/404.html ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <!--@title Page not found @-->
2
+ <!--@identifier no-route @-->
3
+ <!--@root_template one_column @-->
4
+ <h2>404 - Page not found</h2>
5
+ <p>The requested page could not be found.</p>
6
+ <ul>
7
+ <li><a href="{{store url='catalogsearch/advanced'}}">Search</a></li>
8
+ <li><a href="{{store url=''}}">Home Page</a></li>
9
+ </ul>
app/locale/en_US/template/magesetup/page/business_terms.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Business Terms @-->
2
+ <!--@identifier business_terms @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/en_US/template/magesetup/page/imprint.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Imprint @-->
2
+ <!--@identifier imprint @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Please insert your imprint here.</i></h2>
5
+
6
+ <h1>DISCLAIMER</h1>
7
+
8
+ <p>Die hier bereitgestellten Mustertexte sind ausdrücklich als
9
+ <strong>MUSTER</strong> zu verstehen und müssen in jedem Fall durch
10
+ eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt
11
+ werden. Weder FireGento e.V. noch Trusted Shops tragen für die
12
+ Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.</p>
13
+
14
+ <h2>Impressum (Muster)</h2>
15
+
16
+ <h3>{{block type="magesetup/imprint_field" value="shop_name"}}</h3>
17
+
18
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}</p>
19
+
20
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}</p>
21
+
22
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}</p>
23
+
24
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}</p>
25
+
26
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}</p>
27
+
28
+ <p>{{block type="magesetup/imprint_field" value="business_rules"}}</p>
29
+
30
+ <p>Sie erreichen unseren Kundendienst für Fragen Reklamationen und Beanstandungen unter Telefon: {{block type="magesetup/imprint_field" value="telephone"}} sowie per Email unter <a href="mailto:{{block type="magesetup/imprint_field" value="email"}}">{{block type="magesetup/imprint_field" value="email"}}</a>. Für Anfragen können Sie auch das Kontaktformular auf unserer Internetseite nutzen.</p>
31
+
32
+ <h3>Disclaimer (Muster)</h3>
33
+
34
+ <p>Bei direkten oder indirekten Verweisen auf fremde Webseiten ("Hyperlinks"), die außerhalb des Verantwortungsbereiches des Autors liegen, würde eine Haftungsverpflichtung ausschließlich in dem Fall in Kraft treten, in dem der Autor von den Inhalten Kenntnis hat und es ihm technisch möglich und zumutbar wäre, die Nutzung im Falle rechtswidriger Inhalte zu verhindern. Der Autor erklärt hiermit ausdrücklich, dass zum Zeitpunkt der Linksetzung keine illegalen Inhalte auf den zu verlinkenden Seiten erkennbar waren. Auf die aktuelle und zukünftige Gestaltung, die Inhalte oder die Urheberschaft der verlinkten/verknüpften Seiten hat der Autor keinerlei Einfluss. Deshalb distanziert er sich hiermit ausdrücklich von allen Inhalten aller verlinkten /verknüpften Seiten, die nach der Linksetzung verändert wurden. Diese Feststellung gilt für alle innerhalb des eigenen Internetangebotes gesetzten Links und Verweise sowie für Fremdeinträge in vom Autor eingerichteten Gästebüchern, Diskussionsforen, Linkverzeichnissen, Mailinglisten und in allen anderen Formen von Datenbanken, auf deren Inhalt externe Schreibzugriffe möglich sind. Für illegale, fehlerhafte oder unvollständige Inhalte und insbesondere für Schäden, die aus der Nutzung oder Nichtnutzung solcherart dargebotener Informationen entstehen, haftet allein der Anbieter der Seite, auf welche verwiesen wurde, nicht derjenige, der über Links auf die jeweilige Veröffentlichung lediglich verweist.</p>
35
+
36
+ <h3>Urheber- und Kennzeichenrecht</h3>
37
+
38
+ <p>Der Autor ist bestrebt, in allen Publikationen die Urheberrechte der verwendeten Bilder, Grafiken, Tondokumente, Videosequenzen und Texte zu beachten, von ihm selbst erstellte Bilder, Grafiken, Tondokumente, Videosequenzen und Texte zu nutzen oder auf lizenzfreie Grafiken, Tondokumente, Videosequenzen und Texte zurückzugreifen. Alle innerhalb des Internetangebotes genannten und ggf. durch Dritte geschützten Marken- und Warenzeichen unterliegen uneingeschränkt den Bestimmungen des jeweils gültigen Kennzeichenrechts und den Besitzrechten der jeweiligen eingetragenen Eigentümer. Allein aufgrund der bloßen Nennung ist nicht der Schluss zu ziehen, dass Markenzeichen nicht durch Rechte Dritter geschützt sind! Das Copyright für veröffentlichte, vom Autor selbst erstellte Objekte bleibt allein beim Autor der Seiten. Eine Vervielfältigung oder Verwendung solcher Grafiken, Tondokumente, Videosequenzen und Texte in anderen elektronischen oder gedruckten Publikationen ist ohne ausdrückliche Zustimmung des Autors nicht gestattet.</p>
39
+
app/locale/en_US/template/magesetup/page/order.html ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Order Process @-->
2
+ <!--@identifier order @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Please insert details about your order process here.</i></h2>
5
+
6
+ <h1>DISCLAIMER</h1>
7
+
8
+ <p>Die hier bereitgestellten Mustertexte sind ausdrücklich als
9
+ <strong>MUSTER</strong> zu verstehen und müssen in jedem Fall durch
10
+ eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt
11
+ werden. Weder FireGento e.V. noch Trusted Shops tragen für die
12
+ Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.</p>
13
+
14
+ <h2>Bestellvorgang, einfach und bequem bestellen</h2>
15
+
16
+ <h3>Wie kann ich bei {{block type="magesetup/imprint_field" value="shop_name"}} bestellen?</h3>
17
+
18
+ <h4>1. Warenkorb</h4>
19
+
20
+ <p>Wählen Sie die Produkte aus, die Sie bestellen möchten, indem Sie den "In den Warenkorb" Button anklicken. Dadurch wird Ihre Auswahl in den Warenkorb gelegt. Sie können diese Auswahl bis zum Absenden Ihrer Bestellung jederzeit ändern, in dem Sie die Anzahl der Produkte ändern, durch Anklicken des Kästchens "Entfernen" die Auswahl löschen oder den Bestellvorgang abbrechen. Durch Anklicken des Buttons "Kasse" gelangen Sie zum nächsten Bestellschritt.</p>
21
+
22
+ <h4>2. Kasse</h4>
23
+
24
+ <p>Melden Sie sich bitte mit Ihrer eMail Adresse und Ihrem Passwort an falls Sie bereits ein Kundenkonto besitzen, ansonsten registrieren Sie sich bitte als neuer Kunde. Ihre Daten werden unter Beachtung der datenschutzrechtlichen Bestimmungen erhoben, verarbeitet und genutzt (<a href="{{store url="datenschutz"}}">Datenschutzhinweis</a>). Eine anderweitige Verwendung oder Weitergabe an Dritte erfolgt nicht. Sind Sie bereits angemeldet, können Sie nun die Versandart auswählen. Durch klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.</p>
25
+
26
+ <h4>3. Rechnungsadresse prüfen / Zahlungsweise auswählen</h4>
27
+
28
+ <p>Überprüfen Sie nun Ihre Rechnungsadresse und geben Sie Ihre gewünschte <a href="{{store url="zahlung"}}">Zahlungsweise</a> an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt. </p>
29
+
30
+ <h4>4. Versandadresse prüfen / Versandart auswählen</h4>
31
+
32
+ <p>Überprüfen Sie nun Ihre Versandadresse und geben Sie Ihre gewünschte <a href="{{store url="lieferung"}}">Versandart</a> an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.</p>
33
+
34
+ <h4>5. Bestellvorgang abschließen / AGB und Datenschutz</h4>
35
+
36
+ <p>Sie erhalten eine Übersicht Ihrer Bestellung: die ausgewählten Produkte, die Versand- und Rechnungsadresse und Ihre Kontaktdaten. Überprüfen Sie, ob alle Angaben stimmen und lesen sich bitte die <a href="{{store url="agb"}}">Allgemeinen Geschäftsbedingungen</a> und die <a href="{{store url="widerruf"}}">Widerrufsbelehrung</a> aufmerksam durch. Sie können mit der Bestellung nur fortfahren, wenn Sie den AGB und der Widerrufsbelehrung zustimmen (Häkchen setzen). Mit dem Anklicken des Buttons "Jetzt kaufen" übersenden Sie Ihre Bestellung an uns. Hiermit geben Sie ein rechtsverbindliches Angebot ab.</p>
37
+
38
+ <h4>Widerrufsrecht für Verbraucher</h4>
39
+
40
+ <p>Alle Informationen zum <a href="{{store url="agb#widerruf"}}">Widerrufsrecht</a></p>
app/locale/en_US/template/magesetup/page/payment.html ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Payment Methods @-->
2
+ <!--@identifier payment @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Please insert your payment methods and further details here.</i></h2>
5
+
6
+ <h1>DISCLAIMER</h1>
7
+
8
+ <p>Die hier bereitgestellten Mustertexte sind ausdrücklich als
9
+ <strong>MUSTER</strong> zu verstehen und müssen in jedem Fall durch
10
+ eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt
11
+ werden. Weder der FireGento e.V. noch Trusted Shops tragen für die
12
+ Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.</p>
13
+
14
+ <h2>Zahlungsarten</h2>
15
+
16
+ <p>Wir bieten Ihnen folgende Zahlungsarten an. Suchen Sie sich einfach die für Sie optimale Zahlart aus. Die Versandkosten sind teilweise abhängig von der gewählten Zahlungsart.</p>
17
+
18
+ <h3>Vorkasse</h3>
19
+
20
+ <p>Bitte überweisen Sie den Gesamtbetrag Ihrer Bestellung auf unser Konto.</p>
21
+
22
+ <h3>Rechnung</h3>
23
+
24
+ <p>Nur für Schulen, Behörden und im Handelsregister eingetragene Unternehmen nach Prüfung.</p>
25
+
26
+ <h3>Nachnahme</h3>
27
+
28
+ <p>Bitte halten Sie den Rechnungsbetrag bereit; der Zusteller kassiert bei Lieferung in bar (keine Schecks). Bei Nachnahme fallen zusätzlich 2,-- EUR Nachnahmegebühren an, die direkt an den Paketzusteller zu entrichten sind.</p>
29
+
30
+ <h3>Lastschrift</h3>
31
+
32
+ <p>Wir ziehen den Rechnungsbetrag Ihrer Bestellung von Ihrem hinterlegten Bankkonto nach der getätigten Bestellung ein.</p>
app/locale/en_US/template/magesetup/page/privacy.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Privacy Declaration @-->
2
+ <!--@identifier privacy @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Please insert your Privacy Declaration here.</i></h2>
app/locale/en_US/template/magesetup/page/revocation.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Revocation @-->
2
+ <!--@identifier revocation @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="revocation"}}
app/locale/en_US/template/magesetup/page/shipping.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Shipping @-->
2
+ <!--@identifier shipping @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Please insert your shipping methods and shipping costs here.</i></h2>
app/locale/fr_FR/FireGento_MageSetup.csv ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Display Block below Price","Afficher le block en dessous du prix"
2
+ "Display tax info and shipping cost link below the price on all pages","Afficher le lien des informations de taxe et de livraison sous le prix dans toutes les pages"
3
+ "Display Delivery time on Category Pages","Afficher le délai de livraison dans les pages de catégories"
4
+ "CMS Page for Shipping Info","Page CMS pour les informations de livraison"
5
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Afficher ""incl. les frais de livraison"" au lieu ""excl. les frais de livraison"""
6
+ "No Page","Pas de page"
7
+ "No Block","Pas Block"
8
+ "Incl. Tax","Incl. TVA."
9
+ "Incl. %s Tax","Incl. %s TVA"
10
+ "Excl. %s Tax","Excl. %s TVA"
11
+ "excl. <a href=""%s"">Shipping Cost</a>","excl. <a href=""%s"">frais de livraison</a>"
12
+ "incl. <a href=""%s"">Shipping Cost</a>","inkl. <a href=""%s"">frais de livraison</a>"
13
+ "Display Product Weight below Price","Placer le poids du produit en dessous du prix"
14
+ "Unit for Product Weight","Unité pour le poids du produit"
15
+ "e.g. g, kg, lb, ...","expl. g, kg, lb, ..."
16
+ "Shipping Weight %s","Poids de la livraison %s"
17
+
18
+ "If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.","Si vous osuhaitez ajouter des vues de magasin (e.g. site multilingue), faites le avant de soumettre ce formaulaire"
19
+ "MageSetup has been installed.","MageSetup a été installé."
20
+ "Click <a href=""%s"">here</a> to set up your pages, blocks, emails and tax settings.","Cliquez <a href=""%s"">ici</a>, pour mettre en place vos pages, blocks, emails et réglages de taxe."
21
+ "Please choose the requested setups:","Veuillez choisir les réglages suivants:"
22
+ "Run MageSetup","Lancer MageSetup"
23
+ "Update System Config Settings","Mettre à jour les réglages du système"
24
+ "i.e. newsletter confirmation, account confirmation, ..","expl. confirmation de Newsletter, de création de compte, .."
25
+ "Create CMS Pages and Blocks","Créer les pages CMS et les blocks"
26
+ "i.e. shipping, conditions, revocation","expl. Livraison, CGV, Conditions de retour"
27
+ "Create Checkout Agreements","Créer un accord de commande"
28
+ "Conditions","CGV et conditions de retour"
29
+ "Display Checkbox on Frontend","Montrer la case à cocher dans le Frontend"
30
+ "Require Confirmation on Customer Registration and/or Checkout","Confirmation requise lors de l'enregistrement d'un compte client et/ou pendant la création d'une commande"
31
+ "Language Package for CMS Pages/Blocks/Agreements","Paquet de langue pour les pages CMS/Blocks/Accords"
32
+ "Create Email Templates","Créer les modèles d'emails"
33
+ "German Email Templates","Modèle d'email allemand"
34
+ "Configure Tax","Réglage des taxes"
35
+ "Shipping from Germany","Livraison depuis l'allemagne"
36
+ "All tax settings will be overwritten!","Tous les réglages de taxes seront supprimés"
37
+ "Update Product Tax Classes","Mettre à jour les classes de taxe"
38
+ "Old","Ancien"
39
+ "New","Nouveau"
40
+ "Newsletter Subscribers Status History","Historique des status des abonnés à la newsletter"
41
+
42
+ "MageSetup: CMS Blocks and Pages have been created.","MageSetup: les blocks CMS et pages ont été créés."
43
+ "MageSetup: Checkout Agreements have been created.","MageSetup: les accords de commande ont éré créés"
44
+ "MageSetup: Email Templates have been created.","MageSetup: les modèles d'emails ont éré créés."
45
+ "MageSetup: Tax Settings have been created.","MageSetup: les réglages de taxe ont éré créés."
46
+ "MageSetup: Product Tax Classes have been updated.","MageSetup: Les classes de taxe produit ont été mis à jour"
47
+ "MageSetup: System Config Settings have been updated.","MageSetup: les réglages de la configuration système ont été mis à jour."
48
+
49
+ "Imprint","Mentions légales"
50
+ "Account","Numéro de compte"
51
+ "Account owner","Propriétaire du compte"
52
+ "Bank number","Numéro de la banque"
53
+ "Bank name","Nom de la banque"
54
+ "CEO","Chef d'entreprise"
55
+ "Owner","Propriétaire"
56
+ "Responsible according to § 5 TMG","Responsable selon l'article XXX"
57
+ "Responsible for content","Responsable éditorial"
58
+ "Responsible for content address","Responsable du contenu des liens"
59
+ "Responsible in the interests of the press law","Attaché de presse"
60
+ "E-Mail","E-Mail"
61
+ "Fax","Fax"
62
+ "Financial office","Bureau des finances"
63
+ "IBAN","IBAN"
64
+ "Register court","Tribunal de commerce"
65
+ "Register number","Numéro du tribunal de commerce"
66
+ "SWIFT","SWIFT"
67
+ "BIC/SWIFT","BIC/SWIFT"
68
+ "Tax number","Numéro de TVA"
69
+ "Telephone","Téléphone"
70
+ "Web","Web"
71
+ "VAT-ID","Numéro de TVA"
72
+ "Company 1","Société 1"
73
+ "Company 2","Société 2"
74
+ "Street","Rue"
75
+ "Zip","Code postal"
76
+ "City","Ville"
77
+ "Reference for business rules (physician, physician...)","Référence aux régimes professionnels (expl. pour les médecins, pharmaciens)"
78
+ "Authority (ECG)","Autorité acc. ECG (loi E-Commerce)"
79
+ "Shareholdings","Investissements"
80
+ "Editorial Concept","Concept éditorial"
81
+ "relevant for Austrian shops","Relevant pour les boutiques autrichiennes"
82
+
83
+ "%s%%","%s%%"
84
+
85
+ "Recommended Extensions","Extensions recommandées"
86
+ "Popular Payment Methods","Méthodes de paiement populaires"
87
+ "Ip anonymization", "Anonymisation de l'adresse IP"
88
+ "Ensures that the ip address of the customers doesnt get involved into the tracking", "Assure que l'adresse IP du client n'est pas impliqué dans le suivi (politique de confidentialité)"
89
+
90
+ "Dynamic Shipping Tax Class Calculation","Calculation dynamique de la classe de taxe de livraison"
91
+ "Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.<br /><b>ATTENTION:</b> This setting overwrites the ""Tax Class for Shipping"" setting above!","Mettez ""Oui"", si vous voulez calculer le taux de la taxe de livraison sur le taux de taxe de produit le plus haut du panier d'achat..<br /><b>ATTENTION:</b> Ce réglage écrit par dessus le réglage ""Classe de taxe pour la livraison""."
92
+
93
+ "Germany","Allemagne"
94
+ "Austria","Autriche"
95
+ "Switzerland","Suisse"
96
+ "Russia","Russie"
97
+ "France","France"
98
+ "Shipping from","Livraison depuis"
99
+ "This setting is base for the tax rate setup!","Ce réglage sert pour la configuration des taux de TVA!"
100
+
101
+ "[Show]","[Afficher]"
102
+ "Visible in Checkout","Visible dans le processus de commande"
103
+
104
+ "Display Additional Information","Affichage des informations complémentaires"
105
+ "Display content from text field below at the checkout confirm page directly above the checkout button","Affichage du contenu du champ de texte dans la page de confirmation du processus de commande, directement au-dessus du bouton ""Commander"""
106
+
107
+ "Directory ""%s"" not found. Locale not installed?","Dossier ""%s"" non trouvé. Est-ce que le paquet de langue a été installé correctement?"
108
+ "Default Setting","Réglage par défaut"
109
+ "Use Default Setting","Utiliser le réglage par défaut"
110
+ "Select Locale","Choisissez le paquet de langue"
111
+ "Create Transational Email Templates to be managed in the Magento admin area","Crééer les modèles d'emails de transaction afin d'être géré à partir de l'administration de Magento."
112
+ "Language Package for Email Templates","Paquet de langue pour les modèles d'email"
113
+ "If your desired locale is missing, please check if it installed.","Si le paquet de langue désiré est manquant, veuillez vérifier s'il est bien installé."
114
+ "If your desired locale is missing, it is not supported yet by MageSetup.","Si le paquet de langue désiré est manquant, c'est qu'il n'est pas supporté par MageSetup"
115
+
116
+ "Configuration Settings","Réglages de la configuration"
117
+ "CMS Settings","Réglages CMS"
118
+ "Email Settings","Réglages Email"
119
+ "Tax Settings","Réglages Taxe"
120
+
121
+ "Delivery Time","Délai de livraison"
122
+ "Shipping Costs","Frais de livraison"
123
+ "Hide estimated shipping costs in cart","Cacher les frais de livraison dans le panier d'achat"
124
+ "Replace with a link to the shipping costs cms page","Remplacer avec un lien vers la page CMS des ""frais de livraison"""
125
+ "Here you find information regarding the shipping costs.","Vous trouverez ici des informations concernant les frais de livraison."
126
+ "Hide box ""Last Ordered Items""","Cacher la boite ""Derniers produits achetés"""
127
+
128
+ "Display on","Afficher dans"
129
+ "On checkout (Magento Default)","Pendant le processus de commande (Standard Magento)"
130
+ "On customer registration (or on checkout, if customer not registered before)","Pendant l'enregistrement du client (uo pendant le processus de commande, si le client n'a pas encore de compte)"
131
+ "On customer registration and on checkout","Pendant le processus de commande et l'enregistrement du client"
132
+ "Nowhere","Nulle part"
133
+ "Agreements not confirmed.","Les accords n'ont pas été confirmé"
134
+
135
+ "German Language Pack","Paquet de langue allemand"
136
+ "Base Price","Module Prix de base (PAngV)"
137
+ "Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Désinscription à la newsletter pour les clients invités, Double Opt-In pour les clients enregistrés "
138
+ "Debit Payment","Paiement par débit"
139
+ "Cash on Delivery","Contre-remboursement"
140
+ "Bank Payment","Virement"
141
+ "Invoice Payment","Facture"
142
+ "Extension Key","Extension Key"
143
+ "MagentoConnect","MagentoConnect"
app/locale/fr_FR/template/magesetup/agreement/business_terms.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name CGV @-->
2
+ <!--@checkbox_text J'ai lu et j'approuve les conditions générales de ventes. @-->
3
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/fr_FR/template/magesetup/agreement/revocation.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Conditions de retour @-->
2
+ <!--@checkbox_text J'ai lu les conditions de retour. @-->
3
+ {{block type="cms/block" block_id="revocation"}}
app/locale/fr_FR/template/magesetup/block/business_terms.html ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <!--@title CGV @-->
2
+ <h2><i>Remplissez ici vos conditions générales de vente.</i></h2>
3
+
4
+ <a name="retractation"></a>
5
+ <h3>Conditions de retractions</h3>
6
+ <p>Veuillez remplir ici vos conditions de rétractations</p>
app/locale/fr_FR/template/magesetup/block/revocation.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Conditions de retour @-->
2
+ <h2><i>Remplissez ici vos conditions de retour.</i></h2>
app/locale/fr_FR/template/magesetup/page/404.html ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <!--@title Page non trouvée @-->
2
+ <!--@identifier no-route @-->
3
+ <!--@root_template one_column @-->
4
+ <h2>404 - Page non trouvée</h2>
5
+ <p>Malheureusement, la page auquelle vous souhaitez accéder n'a pu être trouvée, cela pourrait être dû à une adresse URL non correctement remplie. C'est ainsi qu'est apparu cette erreur 404. Veuillez utiliser s'il vous plaît notre <a href="{{store url="catalogsearch/advanced"}}">moteur de recherche</a> ou bien visitez notre <a href="{{store url=""}}">page d'accueil</a> pour découvrir nos assortiments.</p>
6
+ <ul>
7
+ <li><a href="{{store url='catalogsearch/advanced'}}">Moteur de recherche</a></li>
8
+ <li><a href="{{store url=''}}">Page d'accueil</a></li>
9
+ </ul>
app/locale/fr_FR/template/magesetup/page/business_terms.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title CGV @-->
2
+ <!--@identifier cgv @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/fr_FR/template/magesetup/page/imprint.html ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Mentions légales @-->
2
+ <!--@identifier mentions-legales @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+ <p>
6
+ Le texte placé ci-dessous est seulement un <strong>MODELE</strong> vous permettant de vous aider à créer
7
+ cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique.
8
+ En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte.
9
+ </p>
10
+
11
+ <h2>Mentions légales (Patron)</h2>
12
+
13
+ <h3>{{block type="magesetup/imprint_field" value="shop_name"}}</h3>
14
+
15
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}</p>
16
+
17
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}</p>
18
+
19
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}</p>
20
+
21
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}</p>
22
+
23
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}</p>
24
+
25
+ <p>{{block type="magesetup/imprint_field" value="business_rules"}}</p>
26
+
27
+ <p>
28
+ Vous pouvez contacter nottre service clientèle pour toutes questions ou réclamations auprès du numéro de téléphone suivant: {{block type="magesetup/imprint_field" value="telephone"}} ou bien par email <a href="mailto:{{block type="magesetup/imprint_field" value="email"}}">{{block type="magesetup/imprint_field" value="email"}}</a> ou encore notre formulaire de contact situé sur notre site internet.
29
+ </p>
30
+
31
+ <h3>Droits d'auteur et des marques</h3>
32
+ <p>
33
+ Nous, la société, sommes soucieux de prendre en compte dans toutes les publications les droits d'auteur des graphiques utilisés, des documents sonores, des séquences vidéo et textes, d'utiliser ses propres graphiques, documents sonores, séquences vidéo et textes ou d'utiliser des graphiques sans licence, des documents sonores, des séquences vidéo et des textes.<br>
34
+ Tous les éléments de notre site protégées par des tiers relèvent des dispositions de la loi applicable sur les marques et les droits de propriété des propriétaires enregistrés respectifs.<br>
35
+ La simple mention ne signifie pas que les marques ne sont pas protégées par des droits des tiers! Le droit d'auteur pour tout matériel créé par l'auteur reste avec la propriété de l'auteur.<br>
36
+ Toute reproduction ou utilisation de tels graphiques, documents sonores, séquences vidéo et textes dans d'autres publications électroniques ou imprimées est interdite sans l'autorisation expresse de l'auteur
37
+ </p>
app/locale/fr_FR/template/magesetup/page/order.html ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Commande @-->
2
+ <!--@identifier commande @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+ <p>
6
+ Le texte placé ci-dessous est seulement un <strong>MODELE</strong> vous permettant de vous aider à créer
7
+ cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique.
8
+ En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte.
9
+ </p>
10
+
11
+ <h2>Commandez confortablement et simplement</h2>
12
+
13
+ <h3>Comment puis-je commander chez {{block type="magesetup/imprint_field" value="shop_name"}}?</h3>
14
+
15
+ <h4>1. Panier d'achat</h4>
16
+
17
+ <p>Choisissez un article que vous souhaitez acheter, puis cliquez sur le bouton "Ajouter au panier d'achat". Ainsi sera déposé votre article dans le panier d'achat. Vous pouvez modifier votre panier d'achat à tout moment et avant de confirmer votre commande. Si vous souhaitez modifier le nombre d'article dans le panier, cliquez dans le champ "Quantité" du produit concerné puis validez votre modification grâce au bouton "Actualiser". Vous pouvez également supprimer l'article de votre choix en cliquant sur le bouton "Supprimer" du produit voulu.<br>
18
+ Une fois que les choix faits dans votre panier d'achat vous convient, vous pouvez continuer le processus de commande et nous fournir les informations de livraison et de paiement en cliquant sur "Commander".</p>
19
+
20
+ <h4>2. Commander</h4>
21
+ <p>Enregistrez-vous s'il vous plait avec votre adresse email et votre mot de passe dans le cas où vous possédez déjà un compte dans notre boutique. A défaut, veuillez s'il vous plaît vous enregistrer en tant que nouveau client. Vos données sont collectées conformément à la réglementation de protection des données, traités et utilisés selon (<a href="{{store url="politique-de-confidentialite"}}">Politique de confidentialité</a>). Êtes-vous déjà inscrit, vous pouvez sélectionner la méthode d'expédition. En cliquant sur le bouton "Suivant" pour passer à l'ordre de la prochaine étape.
22
+ </p>
23
+
24
+ <h4>3. Vérification de l'adresse de facturation / Choix du mode de paiement</h4>
25
+
26
+ <p>Veuillez vérifier votre adresse de facturation et choisissez <a href="{{store url="paiement"}}">votre mode de paiement</a>. Puis cliquez sur "Suivant" pour poursuivre la prochaine étape.</p>
27
+
28
+ <h4>4. Vérification de l'adresse de livraison / Choix du mode de livraison</h4>
29
+
30
+ <p>Veuillez vérifier votre adresse de facturation et choisissez <a href="{{store url="livraison"}}">votre mode de livraison</a>. Puis cliquez sur "Suivant" pour poursuivre la prochaine étape.</p>
31
+
32
+ <h4>5. Remplissage du processus de commande / CGV et politique de retour de marchandise</h4>
33
+
34
+ <p>Vous trouverez un sommaire de votre commande: les produits choisis, le mode et l'adresse de livraison ainsi que vos coordonnées personnelles. Vérifiez si toutes les informations fournies sont correctes puis lisez les <a href="{{store url="cgv"}}">conditions générales de vente</a> et les <a href="{{store url="retour"}}">conditions de retour</a>. Vous pouvez confirmer votre commande seulement si vous avez acceptez les CGV et les conditions de retour (cochez la case correspondante). En cliquant sur le bouton "Commander", vous confirmerez l'envoi de votre commande vers nos services.</p>
35
+
36
+ <h4>Droit de rétractation</h4>
37
+
38
+ <p>Toutes les informations sur les <a href="{{store url="cgv#retractation"}}">droits de rétractation</a></p>.
app/locale/fr_FR/template/magesetup/page/payment.html ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Modes de paiement @-->
2
+ <!--@identifier paiement @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+ <p>
6
+ Le texte placé ci-dessous est seulement un <strong>MODELE</strong> vous permettant de vous aider à créer
7
+ cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique.
8
+ En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte.
9
+ </p>
10
+
11
+ <h2>Modes de paiement</h2>
12
+ <p>Nous vous offrons les moyens de paiement suivant. Choisissez celui qui vosu convient le mieux. Les frais d'envoi peuvent être dépendant du mode de paiement choisi.</p>
13
+
14
+ <h3>Virement</h3>
15
+ <p>Veuillez s'il vous plaît effectuer le versement du montant total de votre commande auprès de notre compte bancaire.</p>
16
+
17
+ <h3>Facture</h3>
18
+ <p>Seulement pour les écoles, les administrations et registre du commerce après vérification.</p>
19
+
20
+ <h3>Contre-remboursement</h3>
21
+ <p>Veuillez garder votre facture avec vous; Le livreur n'acceptera à la livraison que de l'argent liquide (pas de chèque). Lors d'un contre-remboursement, des frais de l'ordre de 2 Euros s'ajoutent. Veuillez les régler directement au livreur.</p>
22
+
23
+ <h3>Direct Débit direct</h3>
24
+ <p>Aussitôt que le paiement est confirmé, nous définissons votre commande comme "Payé"</p>
app/locale/fr_FR/template/magesetup/page/privacy.html ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Politique de confidentialité @-->
2
+ <!--@identifier politique-de-confidentialite @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Remplissez ici votre politique de confidentialé.</i></h2>
5
+ <p>
6
+ Le texte placé ci-dessous est seulement un <strong>MODELE</strong> vous permettant de vous aider à créer
7
+ cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique.
8
+ En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte.
9
+ </p>
10
+
11
+ <p>
12
+ (Veuillez indiquer l’identité du responsable du traitement)
13
+ « Les informations recueillies font l’objet d’un traitement informatique destiné à …
14
+ </p>
15
+ <p>
16
+ (Veuillez préciser la finalité)
17
+ Les destinataires des données sont :………………………
18
+ (précisez)
19
+ </p>
20
+ <p>
21
+ Conformément à la loi « informatique et libertés » du 6 janvier 1978 modifiée en 2004, vous bénéficiez d’un droit d’accès et de rectification aux informations qui vous concernent, que vous pouvez exercer en vous adressant à ……………………………………
22
+ (Veuillez préciser le service et l’adresse)
23
+ </p>
24
+ <p>Vous pouvez également, pour des motifs légitimes, vous opposer au traitement des données vous concernant.</p>
app/locale/fr_FR/template/magesetup/page/revocation.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Conditions de retour @-->
2
+ <!--@identifier retour @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="revocation"}}
app/locale/fr_FR/template/magesetup/page/shipping.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Livraison @-->
2
+ <!--@identifier livraison @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Remplissez ici vos conditions de livraison (prix, mode de livraison, etc) et d'éventuelles informations complémentaires concernant les livraisons.</i></h2>
app/locale/it_IT/FireGento_MageSetup.csv ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Display Block below Price","Mostra blocco sotto al prezzo"
2
+ "Display tax info and shipping cost link below the price on all pages","Mostra info su tasse e spese di spedizione sotto al prezzo su tutte le pagine"
3
+ "Display Delivery time on Category Pages","Mostra tempi di consegna nelle categorie"
4
+ "CMS Page for Shipping Info","Pagina CMS per costi di spedizione"
5
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Mostra ""spese di spedizione incl."" al posto di ""spese di spedizione escl."""
6
+ "No Page","Nessuna pagina"
7
+ "No Block","Nessun blocco"
8
+ "Incl. Tax","IVA incl."
9
+ "Incl. %s Tax","incl. IVA %s"
10
+ "Excl. %s Tax","escl. IVA %s"
11
+ "excl. <a href=""%s"">Shipping Cost</a>","<a href=""%s"">Spese di spedizione</a> escl."
12
+ "incl. <a href=""%s"">Shipping Cost</a>","<a href=""%s"">Spese di spedizione</a> incl."
13
+ "Display Product Weight below Price","Mostra peso sotto al prezzo"
14
+ "Unit for Product Weight","Unità di misura per il peso"
15
+ "e.g. g, kg, lb, ...","ad es. g, kg, lb, ..."
16
+ "Shipping Weight %s","Peso spedizione %s"
17
+
18
+ "If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.","Se necessario, aggiungere ulteriori vetrine dello shop (ad es. per diverse lingue) prima di utilizzare questo form"
19
+ "MageSetup has been installed.","MageSetup installato correttamente"
20
+ "Click <a href=""%s"">here</a> to set up your pages, blocks, emails and tax settings.","Clicca <a href=""%s"">qui</a> per impostare pagine CMS, blocchi, e-mail e configurazione delle tasse."
21
+ "Please choose the requested setups:","Seleziona i setup da eseguire:"
22
+ "Run MageSetup","Esegui MageSetup"
23
+ "Update System Config Settings","Aggiorna configurazione di sistema"
24
+ "i.e. newsletter confirmation, account confirmation, ..","ad es. conferma iscrizione alla newsletter, nuova registrazione, etc."
25
+ "Create CMS Pages and Blocks","Crea pagine e blocchi CMS"
26
+ "i.e. shipping, conditions, revocation","ad es. Spedizione, Condizioni generali di vendita, Diritto di recesso, ecc."
27
+ "Create Checkout Agreements","Crea note su CGV per il checkout"
28
+ "Conditions","CGV e diritto di recesso"
29
+ "Display Checkbox on Frontend","Mostra checkbox nel frontend"
30
+ "Require Confirmation on Customer Registration and/or Checkout","Campo obbligatorio per nuova registrazione e checkout"
31
+ "Language Package for CMS Pages/Blocks/Agreements","Pacchetto lingua per pagine e blocchi CMS / Condizioni di vendita"
32
+ "Create Email Templates","Creazione template e-mail"
33
+ "German Email Templates","Template e-mail in tedesco"
34
+ "Configure Tax","Configurazione tasse"
35
+ "All tax settings will be overwritten!","Attenzione: tutte le impostazioni delle tasse saranno sovrascritte!"
36
+ "Update Product Tax Classes","Aggiornamento tasse prodotto"
37
+ Old,Attuale
38
+ New,"Dopo"
39
+ "No tax","Senza tasse"
40
+ "Newsletter Subscribers Status History","Cronologia iscrizioni alla newsletter"
41
+
42
+ "MageSetup: CMS Blocks and Pages have been created.","MageSetup: pagine e blocchi CMS creati correttamente."
43
+ "MageSetup: Checkout Agreements have been created.","MageSetup: condizioni di vendita creati correttamente."
44
+ "MageSetup: Email Templates have been created.","MageSetup: template e-mail creati correttamente."
45
+ "MageSetup: Tax Settings have been created.","MageSetup: impostazioni tasse salvate correttamente."
46
+ "MageSetup: Product Tax Classes have been updated.","MageSetup: classi tasse dei prodotti aggiornate correttamente."
47
+ "MageSetup: System Config Settings have been updated.","MageSetup: configurazione di sistema aggiornata correttamente."
48
+
49
+ "Imprint","Impressum"
50
+ Account,"Conto corrente n°"
51
+ "Account owner","Intestatario c/c"
52
+ "Bank number",ABI/CA
53
+ "Bank name",Banca
54
+ CEO,Amministratore
55
+ "Owner","Proprietario"
56
+ "Responsible according to § 5 TMG","Inhaltlich verantwortlich gemäß § 5 TMG"
57
+ "Responsible for content","Resp. contenuti"
58
+ "Responsible for content address","Indiritto del resp. contenuti"
59
+ "Responsible in the interests of the press law","Verantwortlich im Sinne des Presserechts (V.i.S.d.P.)"
60
+ "E-Mail","E-Mail"
61
+ "Fax","Fax"
62
+ "Financial office","Ufficio tributario"
63
+ "IBAN","IBAN"
64
+ "Register court","Registro delle imprese"
65
+ "Register number","HRB-Nummer"
66
+ "SWIFT","SWIFT"
67
+ "BIC/SWIFT","BIC/SWIFT"
68
+ "Tax number","Tax number"
69
+ "Telephone","Telefono"
70
+ "Web","Web"
71
+ VAT-ID,"Partita IVA"
72
+ "Company 1","Ditta 1"
73
+ "Company 2","Ditta 2"
74
+ Street,Via
75
+ Zip,CAP
76
+ City,Città
77
+ Telephone,Telefono
78
+ "Tax number","Partita IVA"
79
+ "Register court","Tribunale competente"
80
+ "Financial office","Ufficio triburatio"
81
+ "Register number","Iscrizione al registro delle imprese n°"
82
+ "Reference for business rules (physician, physician...)","Verweis auf berufliche Regelungen (z.B. für Ärzte, Apotheker)"
83
+ "Authority (ECG)","Behörde gem. ECG (E-Commerce-Gesetz)"
84
+ "Shareholdings","Beteiligungen"
85
+ "Editorial Concept","Blattlinie"
86
+ "relevant for Austrian shops","relevant für österreichische Shops"
87
+ "Account owner","Intestatario c/c"
88
+ Account,"Conto corrente n°"
89
+ "Bank number",ABI/CAB
90
+ "Bank name",Banca
91
+
92
+ "%s%%","%s%%"
93
+
94
+ "Recommended Extensions","Moduli consigliati"
95
+ "Popular Payment Methods","Metodi di pagamento popolari"
96
+ "Ip anonymization","Mascheramento IP"
97
+ "Ensures that the ip address of the customers doesnt get involved into the tracking","L'indirizzo IP del cliente viene mascherato ai servizi di tracking (Tutela dei dati personali)"
98
+
99
+ "Dynamic Shipping Tax Class Calculation","Calcolo dinamico delle tasse per le spese di spedizione"
100
+ "Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.<br /><b>ATTENTION:</b> This setting overwrites the ""Tax Class for Shipping"" setting above!","Se abilitato, le tasse per la spedizione vengono calcolate in base al prodotto nel carrello con l'aliquota IVA più elevata.<br /><b>ATTENZIONE:</b> Questa impostazione sovrascriva il settaggio ""Classe tasse per le spedizioni""."
101
+
102
+ "Shipping from","Spedizione da"
103
+ "This setting is base for the tax rate setup!","Questo settaggio è utilizzato per la configurazione delle tasse!"
104
+
105
+ "[Show]","[Mostra]"
106
+ "Visible in Checkout","Visibile durante il checkout"
107
+
108
+ "Display Additional Information","Mostra informazioni aggiuntive"
109
+ "Display content from text field below at the checkout confirm page directly above the checkout button","Mostra contenuto del campo sottostante nella pagina di conferma dell'ordine (sotto al pulsante ""Acquista"")"
110
+
111
+ "Directory ""%s"" not found. Locale not installed?","Cartella ""%s"" mancante. Pacchetto lingua installato?"
112
+ "Default Setting","Impostazioni standard"
113
+ "Use Default Setting","Utilizza impostazioni standard"
114
+ "Select Locale","Scegli pacchetto lingua"
115
+ "Create Transational Email Templates to be managed in the Magento admin area","Crea template e-mail (modificabili nel backend di Magento)"
116
+ "Language Package for Email Templates","Pacchetto lingua per i template e-mail"
117
+ "If your desired locale is missing, please check if it installed.","Se il pacchetto lingua richiesto non è presente, non è ancora disponibile in MageSetup"
118
+ "If your desired locale is missing, it is not supported yet by MageSetup.","Se il pacchetto lingua richiesto non è presente, non è ancora disponibile in MageSetup"
119
+
120
+ "Configuration Settings","Impostazioni generali"
121
+ "CMS Settings","Impostazioni CMS"
122
+ "Email Settings","Impostazioni e-mail"
123
+ "Tax Settings","Impostazioni tasse"
124
+
125
+ "Delivery Time","Tempo di consegna"
126
+ "Shipping Costs","Spese di spedizione"
127
+ "Hide estimated shipping costs in cart","Nascondi stima delle spese di spedizione nel carrello"
128
+ "Replace with a link to the shipping costs cms page","Sostituisci con un link alla pagina CMS ""Spese di spedizione"""
129
+ "Here you find information regarding the shipping costs.","Informazioni sulle spese di spedizione"
130
+ "Hide box ""Last Ordered Items""","Nascondi box ""Articoli ordinati di recente"""
131
+ "Tax Settings","Impostazioni tasse"
132
+
133
+ "Display on","Mostra"
134
+ "On checkout (Magento Default)","durante il checkout (Magento-Standard)"
135
+ "On customer registration (or on checkout, if customer not registered before)","Nella registrazione (o nel checkout, se il cliente non è registrato)"
136
+ "On customer registration and on checkout","Nella registrazione e nel checkout"
137
+ Nowhere,Mai
138
+ "Agreements not confirmed.","Condizioni di vendita non accettate"
139
+
140
+ "Base Price","Prezzo Base"
141
+ "Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Cancellazione newsletter per clienti non registrati e double opt-in per clienti registrati"
142
+ "Debit Payment","Bonifico bancario"
143
+ "Cash on Delivery","Contrassegno"
144
+ "Bank Payment","Pagamento anticipato"
145
+ "Invoice Payment","Pagamento su Fattura"
146
+ "Extension Key","Codice modulo"
147
+ "MagentoConnect","MagentoConnect"
app/locale/it_IT/template/magesetup/agreement/business_terms.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Condizioni Generali di Vendita @-->
2
+ <!--@checkbox_text Ho letto e accettato le Condizioni Generali di Vendita. @-->
3
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/it_IT/template/magesetup/agreement/revocation.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Diritto di recesso @-->
2
+ <!--@checkbox_text Ho letto l'informativa sul diritto di recesso. @-->
3
+ {{block type="cms/block" block_id="revocation"}}
app/locale/it_IT/template/magesetup/block/business_terms.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Condizioni Generali di Vendita @-->
2
+ <h2><i>Inserite qui le vostre Condizioni Generali di Vendita.</i></h2>
app/locale/it_IT/template/magesetup/block/revocation.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Diritto di recesso @-->
2
+ <h2><i>Inserite qui le informazioni sul diritto di recesso.</i></h2>
app/locale/it_IT/template/magesetup/page/404.html ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <!--@title Pagina non trovata @-->
2
+ <!--@identifier no-route @-->
3
+ <!--@root_template one_column @-->
4
+ <h2>404 - Pagina non trovata</h2>
5
+ <p>Impossibile trovare la pagina richiesta, probabilmente l'indirizzo non è corretto. Ciò ha causato un errore 404. Utilizza la <a href="{{store url="catalogsearch/advanced"}}">pagina di ricerca</a> o torna alla <a href="{{store url=""}}">homepage</a> per navigare il nostro catalogo.</p>
6
+ <ul>
7
+ <li><a href="{{store url='catalogsearch/advanced'}}">Ricerca</a></li>
8
+ <li><a href="{{store url=''}}">Homepage</a></li>
9
+ </ul>
app/locale/it_IT/template/magesetup/page/business_terms.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Condizioni Generali di Vendita @-->
2
+ <!--@identifier condizioni-generali-di-vendita @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/it_IT/template/magesetup/page/imprint.html ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Note legali @-->
2
+ <!--@identifier note-legali @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+
6
+ <p>I testi a seguito hanno esclusivamente scopo dimostrativo e
7
+ devono essere sostituiti con informazioni corrette modificando
8
+ i singoli blocchi (CMS > Blocchi statici). FireGento e.V. non
9
+ è da considerarsi responsabile in merito alle informazioni
10
+ contenute in questa pagina.</p>
11
+
12
+ <h2>Note legali (Esempio)</h2>
13
+
14
+ <h3>{{block type="magesetup/imprint_field" value="shop_name"}}</h3>
15
+
16
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}</p>
17
+
18
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}</p>
19
+
20
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}</p>
21
+
22
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}</p>
23
+
24
+ <p>{{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}</p>
25
+
26
+ <p>{{block type="magesetup/imprint_field" value="business_rules"}}</p>
27
+
28
+ <p>Potete contattare il nostro Servizio Clienti per informazioni e reclami telefonicamente al numero {{block type="magesetup/imprint_field" value="telephone"}} o tramite e-mail all'indirizzo <a href="mailto:{{block type="magesetup/imprint_field" value="email"}}">{{block type="magesetup/imprint_field" value="email"}}</a>. Per qualsiasi informazione è inoltre possibile usare il form sulla nostra pagina Contatti.</p>
29
+
30
+ <h3>Responsabilità per i link (Esempio)</h3>
31
+
32
+ <p>Nonostante un attento controllo, non ci assumiamo alcuna responsabilità in merito al contenuto di qualsiasi altro sito web cui possiate accedere dal nostro sito internet. Non abbiamo alcun controllo sui contenuti di tali siti e non siamo in grado di garantire l’attendibilità o precisione di qualsiasi informazione linkata ad una pagina esterna.</p>
app/locale/it_IT/template/magesetup/page/order.html ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Ordini @-->
2
+ <!--@identifier ordini @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+
6
+ <p>I testi a seguito hanno esclusivamente scopo dimostrativo e
7
+ devono essere sostituiti con informazioni corrette modificando
8
+ i singoli blocchi (CMS > Blocchi statici). FireGento e.V. non
9
+ è da considerarsi responsabile in merito alle informazioni
10
+ contenute in questa pagina.</p>
11
+
12
+ <h2>Fare acquisti in modo semplice e veloce</h2>
13
+
14
+ <h3>Come posso fare acquisti su {{block type="magesetup/imprint_field" value="shop_name"}}?</h3>
15
+
16
+ <h4>1. Carrello</h4>
17
+
18
+ <p>Scegliete i prodotti che desiderate ordinare cliccando sul pulsante "Aggiungi al carrello".
19
+ Così facendo, gli articoli richiesti verranno aggiunti al carrello. È possibile modificare la
20
+ vostra selezione in qualsiasi momento prima di inviare l'ordine, modificando le quantità
21
+ desiderate o rimuovendo i prodotti attraverso il tasto "Elimina". Facendo click sul pulsante
22
+ "Checkout" potrete accedere al passo successivo.</p>
23
+
24
+ <h4>2. Checkout</h4>
25
+
26
+ <p>Se disponete di un account cliente, effettuate il login inserendo il vostro nome utente
27
+ e la vostra passwort. In caso contrario, potete registrare un nuovo accounto o ordinare in
28
+ modalità "ospite". I vostri dati personali vengono salvati e elaborati in modo confidenziale (<a href="{{store url="privacy"}}">Informativa sulla privacy</a>).
29
+ Facendo click su "Avanti" potrete accedere al passo successivo.</p>
30
+
31
+ <h4>3. Verifica indirizzo di fatturazione / Scelta metodo di pagamento</h4>
32
+
33
+ <p>Verificate ora il vostro indirizzo di fatturazione e selezionate il <a href="{{store url="pagamenti"}}">metodo di
34
+ pagamento</a> che preferite. Facendo click su "Avanti" potrete accedere al passo successivo.</p>
35
+
36
+ <h4>4. Verifica indirizzo di spedizione / Scelta metodo di spedizione</h4>
37
+
38
+ <p>Verificate ora il vostro indirizzo di spedizione e selezionate il <a href="{{store url="spedizioni"}}">metodo di
39
+ spedizione</a> che preferite. Facendo click su "Avanti" potrete accedere al passo successivo.</p>
40
+
41
+ <h4>5. Invio dell'ordine / CGV e diritto di recesso</h4>
42
+
43
+ <p>La pagina successiva contiene un quadro dettagliato del vostro ordine: i prodotti selezionati,
44
+ gli indirizzi di fatturazione e spedizione, i metodi di spedizione e pagamento selezionati e i
45
+ vostri recapiti. Verificate la correttezza di questi dati e controllate le nostre
46
+ <a href="{{store url="condizioni-generali-di-vendita"}}">Condizioni generali di vendita</a> e
47
+ l'informativa sul <a href="{{store url="diritto-di-recesso"}}">diritto di recesso</a> con attenzione.
48
+ Potete ora procedere all'acquisto, dichiarando di avere letto e accettato le CGV e il diritto di recesso.
49
+ Facendo click su "Acquista" riceveremo il vostro ordine.</p>
50
+
51
+ <h4>Diritto di recesso</h4>
52
+
53
+ <p>Maggiori informazioni in merito al <a href="{{store url="condizioni-generali-di-vendita#recesso"}}">Diritto di recesso</a></p>
app/locale/it_IT/template/magesetup/page/payment.html ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@title Pagamenti @-->
2
+ <!--@identifier pagamenti @-->
3
+ <!--@root_template one_column @-->
4
+ <h1>DISCLAIMER</h1>
5
+
6
+ <p>I testi a seguito hanno esclusivamente scopo dimostrativo e
7
+ devono essere sostituiti con informazioni corrette modificando
8
+ i singoli blocchi (CMS > Blocchi statici). FireGento e.V. non
9
+ è da considerarsi responsabile in merito alle informazioni
10
+ contenute in questa pagina.</p>
11
+
12
+ <h2>Pagamenti</h2>
13
+
14
+ <p>Al momento offriamo i seguenti metodi di pagamento Scegliete il metodo
15
+ che preferite. I costi di spedizione possono dipendere dal metodo di pagamento
16
+ selezionato.</p>
17
+
18
+ <h3>Bonifico</h3>
19
+
20
+ <p>Trasferite l'importo dovuto tramite bonifico bancario verso il nostro conto corrente:</p>
21
+
22
+ <h3>Contrassegno</h3>
23
+
24
+ <p>Il corriere incasserà in contanti l'importo dovuto in contanti (no assegni).
25
+ Il pagamento tramite contrassegno comporta un costo aggiuntivo di € 2,00, da
26
+ pagare direttamente al nostro incaricato.</p>
app/locale/it_IT/template/magesetup/page/privacy.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Trattamento dei dati personali @-->
2
+ <!--@identifier privacy @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Inserite qui l'informativa sul trattamento dei dati personali.</i></h2>
app/locale/it_IT/template/magesetup/page/revocation.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Diritto di recesso @-->
2
+ <!--@identifier diritto-di-recesso @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="revocation"}}
app/locale/it_IT/template/magesetup/page/shipping.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Spedizioni @-->
2
+ <!--@identifier spedizioni @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Inserite qui le informazioni sulle spedizioni (tempi, metodi, costi).</i></h2>
app/locale/ru_RU/FireGento_MageSetup.csv ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Display Block below Price","Отображать блок под ценой"
2
+ "Display tax info and shipping cost link below the price on all pages","Отображать ссылку на информацию о налоге и стоимость доставки под ценой на всех страницах"
3
+ "Display Delivery time on Category Pages","Отображать время доставки на страницах категорий"
4
+ "CMS Page for Shipping Info","CMS страница с информацией о доставке"
5
+ "Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Показывать ""вкл. стоимость доставки"" вместо ""без стоимости доставки"""
6
+ "No Page","Нет страницы"
7
+ "No Block","Нет блока"
8
+ "Incl. Tax","Включая налог"
9
+ "Incl. %s Tax","Включая %s налог"
10
+ "Excl. %s Tax","Исключая %s налог"
11
+ "excl. <a href=""%s"">Shipping Cost</a>","искл. <a href=""%s"">Стоимость доставки</a>"
12
+ "incl. <a href=""%s"">Shipping Cost</a>","вкл. <a href=""%s"">Стоимость доставки</a>"
13
+ "Display Product Weight below Price","Отображать вес товара под ценой"
14
+ "Unit for Product Weight","Единица измерения веса товара"
15
+ "e.g. g, kg, lb, ...","например: г, кг, фунты, ..."
16
+ "Shipping Weight %s","Вес посылки %s"
17
+
18
+ "If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.","Если вы хотите добавить дополнительные представления магазинов (для других языков), пожалуйста, сделайте это до сохранения этой формы."
19
+ "MageSetup has been installed.","MageSetup установлен."
20
+ "Click <a href=""%s"">here</a> to set up your pages, blocks, emails and tax settings.","Нажмите <a href=""%s"">сюда</a> для настройки ваших страниц, блоков, писем и налоговых правил."
21
+ "Please choose the requested setups:","Пожалуйста, выберите необходимые установки:"
22
+ "Run MageSetup","Запустить MageSetup"
23
+ "Update System Config Settings","Обновить параметры системных настроек"
24
+ "i.e. newsletter confirmation, account confirmation, ..","т.е. подтверждение подписки, подтверждение учётной записи, .."
25
+ "Create CMS Pages and Blocks","Создать CMS страницы и блоки"
26
+ "i.e. shipping, conditions, revocation","т.е. доставка, условия, отмена"
27
+ "Create Checkout Agreements","Создать Правила продажи"
28
+ "Conditions","Условия"
29
+ "Language Package for CMS Pages/Blocks/Agreements","Языковой пакет для CMS страниц/блоков/соглашений"
30
+ "Create Email Templates","Создать шаблоны писем"
31
+ "German Email Templates","Шабоны писем на немецком языке"
32
+ "Configure Tax","Настроить налоги"
33
+ "Shipping from Germany","Доставка из Германии"
34
+ "All tax settings will be overwritten!","Все настройки налогов будут заменены!"
35
+ "Update Product Tax Classes","Обновить налоговые классы товаров"
36
+ "Old","Старый"
37
+ "New","Новый"
38
+ "Newsletter Subscribers Status History","История статусов подписчиков рассылки"
39
+
40
+ "MageSetup: CMS Blocks and Pages have been created.","MageSetup: CMS блоки и страницы созданы."
41
+ "MageSetup: Checkout Agreements have been created.","MageSetup: Правила продажи созданы."
42
+ "MageSetup: Email Templates have been created.","MageSetup: Шаблоны писем созданы."
43
+ "MageSetup: Tax Settings have been created.","MageSetup: Настройки налогов созданы."
44
+ "MageSetup: Product Tax Classes have been updated.","MageSetup: Налоговые классы товаров обновлены."
45
+ "MageSetup: System Config Settings have been updated.","MageSetup: Параметры системных настроек обновлены."
46
+
47
+ "Imprint","Imprint"
48
+ "Account","Номер счёта"
49
+ "Account owner","Владелец счёта"
50
+ "Bank number","Bank number"
51
+ "Bank name","Название банка"
52
+ "CEO","CEO"
53
+ "Owner","Владелец"
54
+ "Responsible for content","Ответственный за содержимое"
55
+ "Responsible for content address","Ответственный за адрес содержимого"
56
+ "E-Mail","E-Mail"
57
+ "Fax","Факс"
58
+ "IBAN","IBAN"
59
+ "SWIFT","SWIFT"
60
+ "BIC/SWIFT","BIC/SWIFT"
61
+ "Tax number","Tax number"
62
+ "Web","Web"
63
+ "VAT-ID","ИД плательщика НДС"
64
+ "Shop Name","Название магазина"
65
+ "Company 1","Компания 1"
66
+ "Company 2","Компания 2"
67
+ "Street","Улица"
68
+ "Zip","Почтовый индекс"
69
+ "City","Город"
70
+ "Telephone","Телефон"
71
+ "relevant for Austrian shops","актуально для австрийских магазинов"
72
+
73
+ "%s%%","%s%%"
74
+
75
+ "Recommended Extensions","Рекомендуемые модули"
76
+ "Popular Payment Methods","Популярные платёжные методы"
77
+ "Ip anonymization","Ip анонимизация"
78
+ "Ensures that the ip address of the customers doesnt get involved into the tracking","Гарантирует, что IP адреса клиентов не отслеживаются"
79
+
80
+ "Dynamic Shipping Tax Class Calculation","Динамические вычисление налогового класса доставки"
81
+ "Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.<br /><b>ATTENTION:</b> This setting overwrites the ""Tax Class for Shipping"" setting above!","Установите ""да"" для расчёта налоговой ставки на доставку, основанной на наибольшей налоговой ставке товара в корзине.<br /><b>ВНИМАНИЕ:</b> Эта настройка заменяет настройку ""Налоговый класс на доставку"", расположенную выше!"
82
+
83
+ "Germany","Германия"
84
+ "Austria","Австрия"
85
+ "Switzerland","Швейцария"
86
+ "Shipping from","Доставка из"
87
+ "This setting is base for the tax rate setup!","Этот параметр — основа для настроек налоговых ставок!"
88
+
89
+ "[Show]","[Показать]"
90
+ "Visible in Checkout","Видымый в заказе"
91
+
92
+ "Display Additional Information","Отображать дополнительную информацию"
93
+ "Display content from text field below at the checkout confirm page directly above the checkout button","Отображать содержимое из поля ниже на странице подтверждения заказа сразу над кнопкой Заказать"
94
+
95
+ "Directory ""%s"" not found. Locale not installed?","Папка ""%s"" не найдена. Локаль не установлена?"
96
+ "Default Setting","Настройка по умолчанию"
97
+ "Use Default Setting","Использовать настройку по умолчанию"
98
+ "Select Locale","Выберите локаль"
99
+ "Create Transational Email Templates to be managed in the Magento admin area","Создать шаблоны транзакционных писем для возможности редактирования в панели администрирования Magento"
100
+ "Language Package for Email Templates","Языковой пакет для шаблонов писем"
101
+ "If your desired locale is missing, please check if it installed.","Если желаемая локаль отсутствует, пожалуйста, проверьте установлена ли она."
102
+ "If your desired locale is missing, it is not supported yet by MageSetup.","Если желаемая локаль отсутствует, она в данный момент не поддерживается MageSetup."
103
+
104
+ "Configuration Settings","Настройки конфигурации"
105
+ "CMS Settings","Настройки CMS"
106
+ "Email Settings","Настройки Email"
107
+ "Tax Settings","Настройки налогов"
108
+
109
+ "Delivery Time","Время доставки"
110
+ "Shipping Costs","Стоимость доставки"
111
+ "Hide estimated shipping costs in cart","Скрыть рассчитанную стоимость доставки в корзине"
112
+ "Replace with a link to the shipping costs cms page","Заменить ссылкой на CMS страницу с описанием стоимости доставки"
113
+ "Here you find information regarding the shipping costs.","Здесь вы найдёте информацию о стоимости доставки."
114
+ "Hide box ""Last Ordered Items""","Скрыть блок ""Последние заказанные товары"""
115
+
116
+ "Display on","Отображать на"
117
+ "On checkout (Magento Default)","В заказе (стандартном в Magento)"
118
+ "On customer registration (or on checkout, if customer not registered before)","При регистрации клиента (или в заказе, если клиент не зарегистрировался заранее)"
119
+ "On customer registration and on checkout","При регистрации клитента и в заказе"
120
+ "Nowhere","Нигде"
121
+ "Agreements not confirmed.","Соглашения не приняты."
122
+
123
+ "German Language Pack","Немецкий языковой пакет"
124
+ "Base Price","Цена (в основной валюте)"
125
+ "Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Newsletter Unsubscription for Guests, Double Opt In for registered Customers"
126
+ "Debit Payment","Debit Payment"
127
+ "Cash on Delivery","Наличные"
128
+ "Bank Payment","Банковский перевод"
129
+ "Invoice Payment","Invoice Payment"
130
+ "Extension Key","Ключ модуля"
131
+ "MagentoConnect","MagentoConnect"
app/locale/ru_RU/template/magesetup/agreement/business_terms.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Правила продажи @-->
2
+ <!--@checkbox_text Я ознакомился с правилами продажи и принимаю их условия. @-->
3
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/ru_RU/template/magesetup/agreement/revocation.html ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <!--@name Отмена @-->
2
+ <!--@checkbox_text Я прочитал правила отмены. @-->
3
+ {{block type="cms/block" block_id="revocation"}}
app/locale/ru_RU/template/magesetup/block/business_terms.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Правила продажи @-->
2
+ <h2><i>Пожалуйста, впишите сюда ваши правила продажи.</i></h2>
app/locale/ru_RU/template/magesetup/block/revocation.html ADDED
@@ -0,0 +1,2 @@
 
 
1
+ <!--@title Отмена @-->
2
+ <h2><i>Пожалуйста, впишите сюда ваши условия отмены.</i></h2>
app/locale/ru_RU/template/magesetup/page/404.html ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <!--@title Страница не найдена @-->
2
+ <!--@identifier no-route @-->
3
+ <!--@root_template one_column @-->
4
+ <h2>404 - Страница не найдена</h2>
5
+ <p>ЗАпрошенная страница не найдена.</p>
6
+ <ul>
7
+ <li><a href="{{store url='catalogsearch/advanced'}}">Поиск</a></li>
8
+ <li><a href="{{store url=''}}">Главная страница</a></li>
9
+ </ul>
app/locale/ru_RU/template/magesetup/page/business_terms.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Правила продажи @-->
2
+ <!--@identifier business_terms @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="business_terms"}}
app/locale/ru_RU/template/magesetup/page/order.html ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <!--@title Обработка заказов @-->
2
+ <!--@identifier order @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Пожалуйста, впишите сюда подробности вашего процесса обработки заказов.</i></h2>
5
+
app/locale/ru_RU/template/magesetup/page/payment.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Платёжные методы @-->
2
+ <!--@identifier payment @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Пожалуйста, впишите сюда ваши платёжные методы и дополнительные подробности.</i></h2>
app/locale/ru_RU/template/magesetup/page/privacy.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Политика безопасности @-->
2
+ <!--@identifier privacy @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Пожалуйста, впишите сюда вашу политику безопасности.</i></h2>
app/locale/ru_RU/template/magesetup/page/revocation.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Отмена @-->
2
+ <!--@identifier revocation @-->
3
+ <!--@root_template one_column @-->
4
+ {{block type="cms/block" block_id="revocation"}}
app/locale/ru_RU/template/magesetup/page/shipping.html ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <!--@title Доставка @-->
2
+ <!--@identifier shipping @-->
3
+ <!--@root_template one_column @-->
4
+ <h2><i>Пожалуйста, опишите тут доступные в вашем магазине методы доставки и их стоимость.</i></h2>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>FireGento_MageSetup</name>
4
+ <version>2.0.3</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.gnu.org/licenses/gpl-3.0.html">GPL-3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>MageSetup configures a shop for a national market. It creates configuration and tax settings, email templates, cms blocks and pages.</summary>
10
+ <description>&lt;p&gt;Central features of MageSetup are:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Setting of important configuration settings&lt;/li&gt;&lt;li&gt;Predefined tax settings and tax classes for shipping from several countries to worldwide destinations&lt;/li&gt;&lt;li&gt;Assign new tax classes to all products (configurable)&lt;/li&gt;&lt;li&gt;Creation of email templates based on the local language pack. Legal texts can be added to some templates automatically.&lt;/li&gt;&lt;li&gt;Creation and Activation of Checkout Agreements. Agreements can be shown at customer registration instead of or additional to the checkout. They can be required or not.&lt;/li&gt;&lt;li&gt;Creation of default CMS pages like imprint, terms and conditions, privacy, shipping, payment methods.&lt;/li&gt;&lt;li&gt;Create email templates, cms pages and blocks as well as checkout agreements for store views with a different language as well&lt;/li&gt;&lt;li&gt;Possibility to add tax and/or shipping info to all prices&lt;/li&gt;&lt;li&gt;Automatical generation of meta data to products&lt;/li&gt;&lt;li&gt;Saving of every status change of newsletter subscriptions&lt;/li&gt;&lt;li&gt;Presets are configurable via xml files for every country seperately&lt;/li&gt;&lt;li&gt;Many more, see the &lt;a href="https://github.com/firegento/firegento-magesetup/blob/development/docs/features/features.markdown"&gt;full list of features&lt;/a&gt; including several screenshots.&lt;/li&gt;&lt;/ul&gt;</description>
11
+ <notes></notes>
12
+ <authors><author><name>Team FireGento</name><user>team</user><email>team@firegento.com</email></author></authors>
13
+ <date>2013-12-09</date>
14
+ <time>20:29:27</time>
15
+ <contents><target name="magecommunity"><dir name="FireGento"><dir name="MageSetup"><dir name="Block"><dir name="Adminhtml"><file name="Magesetup.php" hash="40af519e21b0d173ca5199a31fc9cf80"/><dir name="Newsletter"><dir name="Subscriber"><dir name="Status"><file name="Grid.php" hash="e6c08d3145c0f2e014f1cc97b24e6292"/></dir><file name="Status.php" hash="42feba327813bf27b0f278289d319459"/></dir></dir><file name="Notifications.php" hash="07513970ac9419f0a90ddadc4832bfff"/></dir><dir name="Bundle"><dir name="Catalog"><dir name="Product"><dir name="Price"><file name="Abstract.php" hash="4c23f3ac457cd5399a86e029223c7046"/></dir><file name="Price.php" hash="b1f4887fb5d7d1c9339fa22a535433bf"/></dir></dir></dir><dir name="Catalog"><dir name="Product"><dir name="Price"><file name="Abstract.php" hash="b94eea40c036a0fbf74eaf9db4d2c732"/></dir><file name="Price.php" hash="d9c3dd83dbcce2ff697cd341d28c55bc"/></dir></dir><dir name="Checkout"><file name="Agreements.php" hash="b4a51dc9229f554324c90e451c902e90"/><file name="Information.php" hash="a0163bde832e562afa44153022944841"/></dir><dir name="Customer"><dir name="Account"><file name="Agreements.php" hash="adf8866dadf490657a2a3ced1ea74206"/></dir></dir><file name="Ga.php" hash="ca957a2fec30e76de72ce1c469d35971"/><dir name="Imprint"><file name="Content.php" hash="685565fc14304575d2906cbb2f40d38b"/><file name="Field.php" hash="cf715e97bd460ac8918104ecf709044a"/></dir></dir><dir name="Helper"><dir name="Catalog"><dir name="Product"><file name="Configuration.php" hash="837662be5981d02993820936dd439ffd"/></dir></dir><dir name="Checkout"><file name="Data.php" hash="1e59f6a38378de31a5d6db5ef4859ff6"/></dir><file name="Data.php" hash="90317b90a4e63869ac223fc18259fbad"/></dir><dir name="Model"><file name="Config.php" hash="13628db92612e3ce03b042d89d1b5dba"/><dir name="Newsletter"><file name="Observer.php" hash="548b8b0791920f50cf7d6b3b91228a02"/><dir name="Subscriber"><file name="Status.php" hash="ebe0082369659bf7304773b66fa62d39"/></dir></dir><file name="Observer.php" hash="54fc958460e1f1ed98a5535afe3911a5"/><dir name="Resource"><dir name="Newsletter"><dir name="Subscriber"><dir name="Status"><file name="Collection.php" hash="40b9805febfb3ec8ce51d83a1a052479"/></dir><file name="Status.php" hash="8d426abd13902d43bf90f720ea454b1b"/></dir></dir></dir><dir name="Setup"><file name="Abstract.php" hash="6d0a8abf7e482b0fb4cef97a2b2a9579"/><file name="Agreements.php" hash="1d3a3fd8a7ec59c2bfda3737e18a9b9a"/><file name="Cms.php" hash="be3d01ed1e38c43aa78910d204527d55"/><file name="Email.php" hash="81faa89767c0d2f650cda02d74fa7870"/><file name="Systemconfig.php" hash="5b3e56e0b4fae685651b848dd23016a0"/><file name="Tax.php" hash="cc5cb2e013c622c905cebbf3e47093df"/></dir><file name="Setup.php" hash="12f7accb3acbc80050302392a9e3cfc1"/><dir name="Source"><file name="AgreementType.php" hash="ca2c5fd52ab145ee124a794f62baaaab"/><dir name="Cms"><file name="Block.php" hash="0901426bf01330373f0ef838c2c812c2"/><file name="Page.php" hash="8de254c2b8b0ad36a732bd6b4e274da4"/></dir><dir name="Tax"><file name="CustomerTaxClass.php" hash="64c096c3915e46976e770eb1e289f175"/><file name="DynamicType.php" hash="f69d37d7595f8ce6bc3919f2fa3616c3"/><file name="NewCustomerTaxClass.php" hash="399426226b484bbfa4bb41104f9fdd8f"/><file name="NewProductTaxClass.php" hash="6bc2b76bc9da97292b2dace735452200"/><file name="ProductTaxClass.php" hash="2978517a32c2ce50d9e6dd6a649d633f"/></dir></dir><dir name="Tax"><file name="Config.php" hash="05c637e6dceb8debed3b92107c3ebf6e"/></dir></dir><dir name="Test"><dir name="Config"><dir name="Main"><dir name="expectations"><file name="testModuleConfig.yaml" hash="fe9f80af6f11096abd54d4b8ee0969a2"/></dir></dir><file name="Main.php" hash="ec10931ba70dedb9df0ba540fbd1c445"/></dir><dir name="Model"><dir name="Source"><dir name="AgreementType"><dir name="expectations"><file name="testGetOptionArray.yaml" hash="2c9de8f042c422e9da57eae98a6e6d0f"/><file name="testToOptionArray.yaml" hash="30a7c238cc60b24ef6d8c5768e4490b1"/></dir></dir><file name="AgreementType.php" hash="da31bc356207ef2ea06ac904c4a2f570"/><dir name="Tax"><dir name="DynamicType"><dir name="expectations"><file name="testToOptionArray.yaml" hash="e62597bccca0517120bb012a67995008"/></dir></dir><file name="DynamicType.php" hash="69e0702fad1a82aed6cedf7c506616bd"/></dir></dir></dir><dir name="features"><file name="product_list.feature" hash="b64eb37aa130127af5ff91f02212adf3"/><file name="product_view.feature" hash="705c4b6679d22042a378c1d37ef08590"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="NewsletterController.php" hash="b237fff0bfbaafe13a4274027b8b38a6"/></dir><file name="FrontendController.php" hash="5cdb34dc324b21266d7e72c9a8f4acf9"/><file name="MagesetupController.php" hash="411416e2aac32f62b3ab6e2a7de6afa9"/></dir><dir name="data"><dir name="magesetup_setup"><file name="data-upgrade-2.0.0-2.0.1.php" hash="b47e11f4aa1ca03b2ea9f68a46b8444c"/><file name="data-upgrade-2.0.1-2.0.2.php" hash="75b6a29840e215cb06540c0e7d40b631"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="cdfedba52afaf3da06659121664edacf"/><dir name="at"><file name="email.xml" hash="c99729df5e11d129cd549af39f81c005"/><file name="tax.xml" hash="595bcbbd3a26b6b9cfc49fda603726ea"/></dir><dir name="ch"><file name="email.xml" hash="c99729df5e11d129cd549af39f81c005"/><file name="tax.xml" hash="8411f8088fe7c0c0e37c212c73b645b8"/></dir><file name="config.xml" hash="ac85faf575b25ff39fc5be9833e9d95c"/><dir name="de"><file name="email.xml" hash="7284f4c146d1faf55dcaa8f05cc60276"/><file name="tax.xml" hash="99c04abbf5e2d355c1daf0b2b4cfbf28"/></dir><dir name="default"><file name="agreement.xml" hash="9a3d31d49154e087693dbb06ec512836"/><file name="cms.xml" hash="f5946193d16deb256f1ad50ab15908da"/><file name="email.xml" hash="6131ec61ce7ffefb1d68ff5c2493a1ff"/><file name="systemconfig.xml" hash="4c071e7e0ae4adad34c4dbd5ee41e19a"/><file name="tax.xml" hash="88618a59c488c05e6fc563abc3817ea4"/></dir><dir name="fr"><file name="email.xml" hash="62d24374c6c5c99f79250f47c463e0f5"/><file name="tax.xml" hash="7bc5e5e99f642f51d7290912e8e3cf45"/></dir><dir name="gb"><file name="tax.xml" hash="cc98f01554bdfc55dc119e672af0a41a"/></dir><dir name="it"><file name="email.xml" hash="ed9d36a38cd56abc271c30b8529ab6e2"/><file name="tax.xml" hash="4eee778c7da2403910dda77ccf1b8cc9"/></dir><dir name="ru"><file name="cms.xml" hash="5116035261e126675094e6c9e5c267d2"/><file name="email.xml" hash="413c6ed61612a7c03e844171c482dc4a"/><file name="systemconfig.xml" hash="15a8de3f7e3075e6aedbb6b6c00b703e"/><file name="tax.xml" hash="232e219268d2234ee5b8cd7a3b547418"/></dir><file name="system.xml" hash="6d407999066c58becbc55842a325abe5"/></dir><dir name="scripts"><file name="GenerateCountryTaxXml.php" hash="fb7b98813562026e80a66a260ab1d35e"/></dir><dir name="sql"><dir name="magesetup_setup"><file name="mysql4-install-0.5.0.php" hash="e921aacbc82e83617fd2fcb1cac294b4"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="586555480698f868afd62cf43702c309"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="2bb22f8dfdbda3dd0e901ec2033bf88c"/><file name="mysql4-upgrade-1.1.3-1.1.4.php" hash="75d1de77de207d07c45988a8612fa814"/><file name="mysql4-upgrade-1.1.4-1.2.0.php" hash="a540fd19a5e7b42bcd5843be9ec9f0b1"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="cdbf0799dcdbde6ca56d043223c851c5"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="9f954426ba24270c3c9ff9621a701558"/><file name="mysql4-upgrade-1.2.2-1.2.3.php" hash="80a1fb9ba236a6f7abe76f94dc2a12c1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FireGento_MageSetup.xml" hash="d1d1b0d38503835f93a3273f9a0ce34d"/></dir></target><target name="magelocale"><dir name="de_AT"><file name="FireGento_MageSetup.csv" hash="9e32878959eb66bb1a2affeddff4c573"/></dir><dir name="de_DE"><file name="FireGento_MageSetup.csv" hash="ed625923b36f1388e1067617e039493a"/><dir name="template"><dir name="magesetup"><dir name="agreement"><file name="business_terms.html" hash="08d8bee54c2fb03eddb0adc23d7e274e"/><file name="revocation.html" hash="05677b80fda54565da0cacedaea4f365"/></dir><dir name="block"><file name="business_terms.html" hash="0f96986590d2a64fd7a2b55e43b7f965"/><file name="revocation.html" hash="0ec2bdedc783b47db6ac538f0e7d7d1b"/></dir><dir name="page"><file name="404.html" hash="be269dd09e9e4290cf44a3a2413bc434"/><file name="business_terms.html" hash="51449b5899f3ba597707bfcfdc90bc76"/><file name="imprint.html" hash="d5cc95d55d7b6341ec234007e80c8a4b"/><file name="order.html" hash="d074e7420356a9048f14273f331570e5"/><file name="payment.html" hash="eb09162116067fbcba1ba84c0fb57639"/><file name="privacy.html" hash="a8445b5f751b668e5ff1ac2e9621b0d4"/><file name="revocation.html" hash="6ac5f8d9ba0f55fb8490e213746f424b"/><file name="shipping.html" hash="9f1eccc97f3202833b97d5c46cb431cd"/></dir></dir></dir></dir><dir name="en_US"><file name="FireGento_MageSetup.csv" hash="f0f27a3e55336040fdbb909cdf2dd96c"/><dir name="template"><dir name="magesetup"><dir name="agreement"><file name="business_terms.html" hash="ef0782b634c45ad53a0b153e4262be31"/><file name="revocation.html" hash="96c3fc8498277ffc7db1c20940e10b22"/></dir><dir name="block"><file name="business_terms.html" hash="d3c29b8986a1280d74e253ef876f8517"/><file name="revocation.html" hash="02ecf946094aaf3d6d359e10c6eb9a15"/></dir><dir name="page"><file name="404.html" hash="ef24222de59d479e006a9854aadd1ab9"/><file name="business_terms.html" hash="5e8a3c758bd5c172cc94eec5872392dd"/><file name="imprint.html" hash="5b5156757cc811f54fd8bb969385143d"/><file name="order.html" hash="13c494c7e71fdd574f58d0f4c2341538"/><file name="payment.html" hash="d5f2f9c460b780f1b7033bf61e8493c0"/><file name="privacy.html" hash="2c9fde1acd5675293284d01ae95109ab"/><file name="revocation.html" hash="9429eabfa9900c84df6d0e8f842b151d"/><file name="shipping.html" hash="f62421a73c1852867f95b10eddf09562"/></dir></dir></dir></dir><dir name="ru_RU"><file name="FireGento_MageSetup.csv" hash="686afa3e878b887b4ec39645484af4f0"/><dir name="template"><dir name="magesetup"><dir name="agreement"><file name="business_terms.html" hash="6324cb1d34261c3fc7da453d67b2593a"/><file name="revocation.html" hash="972a311efd9d9a2f81db699601259c61"/></dir><dir name="block"><file name="business_terms.html" hash="f91b5b1fff5c7433cd3193558884925b"/><file name="revocation.html" hash="723c5a812543e38a231ab349c095dd60"/></dir><dir name="page"><file name="404.html" hash="adc9a947957a70181b05e8f0c88fda52"/><file name="business_terms.html" hash="e527de3d77e98664a307d723e9aa804e"/><file name="order.html" hash="86ee34198060a1dcb40fc9577e83f259"/><file name="payment.html" hash="0b613cf5e24e9c0f7b6fa375c94bda14"/><file name="privacy.html" hash="0085ca06f30eb9b42e3a8caaedcd8d8e"/><file name="revocation.html" hash="0ba1d3e52f2a2ebe200d85de52c152bd"/><file name="shipping.html" hash="94ae3eb57647d0390d485a18a8a7b401"/></dir></dir></dir></dir><dir name="fr_FR"><file name="FireGento_MageSetup.csv" hash="399cb4ece911265fd830c750b49cb7b6"/><dir name="template"><dir name="magesetup"><dir name="agreement"><file name="business_terms.html" hash="06c85aba03fb36477dfc5ed1c0507279"/><file name="revocation.html" hash="a7496f45c125c3967a199dff58bc8ab7"/></dir><dir name="block"><file name="business_terms.html" hash="ad3203fd83cc6f2889e7f9bd6b140416"/><file name="revocation.html" hash="eb7c5d635b68174740983389c5bd1a8e"/></dir><dir name="page"><file name="404.html" hash="3f817bbe5b25886372749e91330b12d3"/><file name="business_terms.html" hash="7b212cf0ae4f65efb1ccaa3a9b45c26b"/><file name="imprint.html" hash="24331f1136322d2fcd5bc7200ce0fab3"/><file name="order.html" hash="9ace1c990d3960fa3e3a8ddab6a2210f"/><file name="payment.html" hash="72db5b37c9733d050b6760407570105a"/><file name="privacy.html" hash="39342651392d29868d52039d9b860c89"/><file name="revocation.html" hash="76657b8808e2e401e7d7e08b199a0b3c"/><file name="shipping.html" hash="b191377982a1d83230ba88950b1d2a05"/></dir></dir></dir></dir><dir name="it_IT"><file name="FireGento_MageSetup.csv" hash="7dee2db5cd36ee47cc3ea3eb07e86a75"/><dir name="template"><dir name="magesetup"><dir name="agreement"><file name="business_terms.html" hash="85021eb464bdf7b978c679e88bb0c7e1"/><file name="revocation.html" hash="95064e9a9d4dd388e556974d8bc97135"/></dir><dir name="block"><file name="business_terms.html" hash="def7695e209d28ab27a456aba89ad677"/><file name="revocation.html" hash="7cdfce1c57b093c006800716ee6becce"/></dir><dir name="page"><file name="404.html" hash="8d48a098b3b2f72c0e5ee5ec35d2ad22"/><file name="business_terms.html" hash="bafb85bd7f2fef3a056c353539a9aa4f"/><file name="imprint.html" hash="edd18ef545ca0d7bb493080d9f5b3c45"/><file name="order.html" hash="2f5406460c3b33eb2ebbd1bec089c8d8"/><file name="payment.html" hash="94bf4e522c78f55a982eef1d4c719712"/><file name="privacy.html" hash="72d877b7d3402493160bd153ae0fc797"/><file name="revocation.html" hash="ff8e3ecb6b1dbd4f0b203b1f311380d2"/><file name="shipping.html" hash="104b43f4c169f9a3e6f682c50ba77b22"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magesetup.xml" hash="fd82dae39afdbf66cd3083a6dcad0f2b"/></dir><dir name="template"><dir name="magesetup"><file name="extensions.phtml" hash="1c06953ee90c77028281d474cafe9d1a"/><file name="form.phtml" hash="064cc58ecd39a850eb43ca95a11d04b7"/><file name="notifications.phtml" hash="3fa83ff056dc684ad436c4ac4989541b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magesetup.xml" hash="1b86b208537a11fc025986323ed366ac"/></dir><dir name="template"><dir name="magesetup"><dir name="checkout"><file name="additional.phtml" hash="72ae4d0da1461cdb8b17e458e92d7bda"/><dir name="multishipping"><file name="agreements.phtml" hash="6694f497f620ffc01f2a2f84802a5ce2"/><file name="overview.phtml" hash="b13628b8c24ed22ea01b409c37f231ea"/></dir><dir name="onepage"><file name="agreements.phtml" hash="a8aa9145a7930930bac524ec2eaab7e9"/></dir></dir><dir name="customer"><dir name="form"><file name="tc-confirmation.phtml" hash="41ee746ca4fca5e357cf072c163fbe26"/></dir></dir><file name="delivery_time.phtml" hash="88a370bd03d26d1661abe4143ed596b0"/><dir name="imprint"><file name="address.phtml" hash="73085209c17ac1b59cce53255e1072b6"/><file name="bank.phtml" hash="369c397c529383bb82755d93489dcd6f"/><file name="communication.phtml" hash="595ef964b371e3ffade648e426a59cc9"/><file name="email_footer.phtml" hash="21a5c888bd0c4b1702d9bf78cd8054c1"/><file name="legal.phtml" hash="aee3232a0a1ba051193017da15f29672"/><file name="tax.phtml" hash="a67861355296387e4787d8eff81e15f7"/></dir><file name="price_info.phtml" hash="3097c99a38e63403f0e7f5a35d245d8d"/><file name="shipping.phtml" hash="3a22d0c339380fec2cd0af388af69266"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="magesetup"><file name="checkout.css" hash="46bb70ddb4f918117b56c5c0ba5c2ef1"/></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.3.0</min><max>7.9.9</max></php></required></dependencies>
18
+ </package>
skin/frontend/base/default/css/magesetup/checkout.css ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #checkout-review-table tfoot tr {
2
+ background-color: #FBFAF6 !important;
3
+ }
4
+
5
+ #checkout-review-table tr.odd,
6
+ #checkout-review-table tr.even {
7
+ background-color: #FBFAF6;
8
+ }
9
+
10
+ #checkout-review-table td.last {
11
+ text-align: right;
12
+ }
13
+ #checkout-review-table td.last .price {
14
+ font-weight: bold;
15
+ }
16
+
17
+ #checkout-review-table-wrapper {
18
+ border: 2px solid #0A263D;
19
+ border-bottom: 0;
20
+ }
21
+
22
+ #opc-review #checkout-step-review .additional-information {
23
+ border: 2px solid #0A263D;
24
+ border-top: 0;
25
+ border-bottom: 0;
26
+ }
27
+
28
+ #checkout-review-submit {
29
+ background-color: #FBFAF6;
30
+ border: 2px solid #0A263D;
31
+ border-top: 0;
32
+ }
33
+
34
+ #opc-review .additional-information {
35
+ clear: both;
36
+ margin:0;
37
+ padding: 15px 10px;
38
+ text-align: right;
39
+ }
40
+
41
+ .checkout-multishipping-overview .additional-information {
42
+ margin: 0;
43
+ padding: 0 10px 25px;
44
+ text-align: right;
45
+ }
46
+
47
+ .checkout-multishipping-overview .checkout-agreements {
48
+ margin-bottom: 25px;
49
+ }
50
+
51
+ .opc .checkout-agreements li,
52
+ .checkout-multishipping-overview .checkout-agreements li {
53
+ margin: 10px 0;
54
+ }
55
+
56
+ .opc .checkout-agreements .agree,
57
+ .checkout-multishipping-overview .checkout-agreements .agree {
58
+ padding-top: 0px;
59
+ padding-bottom: 0px;
60
+ }
61
+
62
+ #review-buttons-container p.f-left {
63
+ display: none;
64
+ }