diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c0fa0fd4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +build.sh +build.default.properties +build.xml +.DS_Store +*.cache.properties +*~ +*.swp +build.properties +.buildpath +.project +.settings +.settings/**/* +.externalToolBuilders +.externalToolBuilders/**/* +.vagrant +.vagrant/**/* +Vagrantfile +/.idea diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..57820c42 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: php +php: + - 5.3 +before_install: + - mkdir test/ + - curl -sS https://getcomposer.org/installer | php + - chmod +x ./composer.phar + - ./composer.phar --version + - ./composer.phar install --dev +before_script: + - CURR_DIR=$(pwd) + - bin/mage-ci install test 1.7.0.2 magento_test -c -t -r http://mage-ci.ecomdev.org + - bin/mage-ci install-module test $CURR_DIR + - git clone https://github.com/EcomDev/EcomDev_PHPUnit.git ./phpunit/ + - bin/mage-ci install-module $CURR_DIR/test $CURR_DIR/phpunit/ +script: + - bin/mage-ci phpunit test diff --git a/README.markdown b/README.markdown new file mode 100644 index 00000000..cede7fc5 --- /dev/null +++ b/README.markdown @@ -0,0 +1,75 @@ +FireGento_MageSetup +===================== +MageSetup configures a shop for a national market. It's the international variant and successor of [GermanSetup](https://github.com/firegento/firegento-germansetup). + +Currently supported countries: Austria, France, Germany, Italy, Russia, Switzerland, United Kingdom. More to follow. + +Build Status +------------ +* Latest Release: [![Master Branch](https://travis-ci.org/firegento/firegento-magesetup.png?branch=master)](https://travis-ci.org/firegento/firegento-magesetup) +* Development Branch: [![Development Branch](https://travis-ci.org/firegento/firegento-magesetup.png?branch=development)](https://travis-ci.org/firegento/firegento-magesetup) + +Facts +------ +- Version: check [config.xml](https://github.com/firegento/firegento-magesetup/blob/master/src/app/code/community/FireGento/MageSetup/etc/config.xml) +- Extension key: FireGento_MageSetup +- [Extension on GitHub](https://github.com/firegento/firegento-magesetup/) + +Description +------------ +Central features of MageSetup are: + +* Setting of important configuration settings +* Predefined tax settings and tax classes for shipping from several countries to worldwide destinations +* Assign new tax classes to all products (configurable) +* Creation of email templates based on the local language pack. Legal texts can be added to some templates automatically. +* 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. +* Creation of default CMS pages like imprint, terms and conditions, privacy, shipping, payment methods. +* Create email templates, cms pages and blocks as well as checkout agreements for store views with a different language as well +* Possibility to add tax and/or shipping info to all prices +* Automatical generation of meta data to products +* Saving of every status change of newsletter subscriptions +* Presets are configurable via xml files for every country seperately + +Requirements +------------ +- PHP >= 5.3.0 + +Compatibility +-------------- +- Magento >= 1.6 + +Installation +----------------------- +Please create the desired websites and store view as well as install any language packs before running MageSetup. + +Copy all files from the src/ folder to your magento directory in order to install the MageSetup module. +After you have installed the module, you should clear the cache and log off from admin panel. When you log on again, you should see the following hint: + + MageSetup has been installed. Click here to set up your pages, blocks, emails and tax settings. + +If you don't see that hint, please check that the configuration setting **System -> Configuration -> Developer -> Template Settings -> Allow Symlinks** is enabled. + +On the linked page, you can make the desired settings and then click "Run MageSetup" on the top or bottom right. The adjustments will be made. + +Support +------- +If you encounter any problems or bugs, please create an issue on [GitHub](https://github.com/firegento/firegento-magesetup/issues). + +Contribution +------------ +Any contribution to the development of MageSetup is highly welcome. The best possibility to provide any code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests). + +Developer +--------- +FireGento Team +* Website: [http://firegento.com](http://firegento.com) +* Twitter: [@firegento](https://twitter.com/firegento) + +Licence +------- +[GNU General Public License, version 3 (GPLv3)](http://opensource.org/licenses/gpl-3.0) + +Copyright +--------- +(c) 2011-2013 FireGento Team diff --git a/composer.json b/composer.json new file mode 100644 index 00000000..1f26be15 --- /dev/null +++ b/composer.json @@ -0,0 +1,25 @@ +{ + "name": "firegento/magesetup", + "license": ["GPL-3.0"], + "type": "magento-module", + "description": "MageSetup configures a shop for a national market. It creates configuration and tax settings, email templates, cms blocks and pages.", + "homepage": "https://github.com/firegento/firegento-magesetup", + "require": { + "magento-hackathon/magento-composer-installer": "*" + }, + "require-dev": { + "ecomdev/mage-ci": "master-dev" + }, + "config": { + "bin-dir": "bin" + }, + "repositories": [ + { + "type": "composer", + "url": "http://packages.firegento.com" + } + ], + "extra":{ + "magento-root-dir": "test/" + } +} diff --git a/docs/api/html/classes/FireGento_MageSetup_Adminhtml_NewsletterController.xhtml b/docs/api/html/classes/FireGento_MageSetup_Adminhtml_NewsletterController.xhtml new file mode 100644 index 00000000..eee0083c --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Adminhtml_NewsletterController.xhtml @@ -0,0 +1,64 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Adminhtml_NewsletterController - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ +
+

\FireGento_MageSetup_Adminhtml_NewsletterController

+
+

Newsletter Subscriber Status Adminhtml Controller

+
+ +

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Magesetup.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Magesetup.xhtml new file mode 100644 index 00000000..2dcef7bb --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Magesetup.xhtml @@ -0,0 +1,201 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Adminhtml_Magesetup - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ +
+

\FireGento_MageSetup_Block_Adminhtml_Magesetup

+
+

Displays a form with some options to setup things

+
+ +

Constructor

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status.xhtml new file mode 100644 index 00000000..cd11675b --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status.xhtml @@ -0,0 +1,54 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ +
+

\FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status

+
+

Newsletter Subscriber Status Grid Container

+
+ +

Constructor

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid.xhtml new file mode 100644 index 00000000..5eed6b95 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid.xhtml @@ -0,0 +1,127 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ +
+

\FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid

+
+

Newsletter Subscriber Status Grid

+
+ +

Constructor

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Notifications.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Notifications.xhtml new file mode 100644 index 00000000..c3b1e98a --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Adminhtml_Notifications.xhtml @@ -0,0 +1,102 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Adminhtml_Notifications - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ +
+

\FireGento_MageSetup_Block_Adminhtml_Notifications

+
+

Displays MageSetup notifications

+
+ +

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price.xhtml new file mode 100644 index 00000000..1dc22014 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price.xhtml @@ -0,0 +1,178 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Bundle_Catalog_Product_Price - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ +
+

\FireGento_MageSetup_Block_Bundle_Catalog_Product_Price

+
+

Enhanced block for product price display of bundle products. Contains the normal price.phtml rendering and additionally a configured static block.

+
+ +

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract.xhtml new file mode 100644 index 00000000..50b6b8d9 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract.xhtml @@ -0,0 +1,30 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract - API Documentation + + + + +
+
+

+ FireGento_MageSetup - API Documentation +

+ +
+ + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Catalog_Product_Price.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Catalog_Product_Price.xhtml new file mode 100644 index 00000000..a951f300 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Catalog_Product_Price.xhtml @@ -0,0 +1,247 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Catalog_Product_Price - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Block_Catalog_Product_Price

+
+

Enhanced block for product price display of all products in spite of bundles (got own block!).

+

+

Contains the normal price.phtml rendering and additionally a configured static block.
+

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Catalog_Product_Price_Abstract.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Catalog_Product_Price_Abstract.xhtml new file mode 100644 index 00000000..65943f1c --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Catalog_Product_Price_Abstract.xhtml @@ -0,0 +1,30 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Catalog_Product_Price_Abstract - API Documentation + + + + +
+ + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Checkout_Agreements.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Checkout_Agreements.xhtml new file mode 100644 index 00000000..86258fd2 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Checkout_Agreements.xhtml @@ -0,0 +1,76 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Checkout_Agreements - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Block_Checkout_Agreements

+
+

Block to display agreements on checkout.

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Checkout_Information.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Checkout_Information.xhtml new file mode 100644 index 00000000..2221a81e --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Checkout_Information.xhtml @@ -0,0 +1,74 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Checkout_Information - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Customer_Account_Agreements.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Customer_Account_Agreements.xhtml new file mode 100644 index 00000000..f36d5807 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Customer_Account_Agreements.xhtml @@ -0,0 +1,60 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Customer_Account_Agreements - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Block_Customer_Account_Agreements

+
+

Block to display agreements on customer registration.

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Ga.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Ga.xhtml new file mode 100644 index 00000000..8fb6a2a7 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Ga.xhtml @@ -0,0 +1,70 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Ga - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Block_Ga

+
+

Block to enable ip anonymization for german tracking.

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Constants

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Imprint_Content.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Imprint_Content.xhtml new file mode 100644 index 00000000..3a8f57b4 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Imprint_Content.xhtml @@ -0,0 +1,127 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Imprint_Content - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Block_Imprint_Field.xhtml b/docs/api/html/classes/FireGento_MageSetup_Block_Imprint_Field.xhtml new file mode 100644 index 00000000..16c8ec3b --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Block_Imprint_Field.xhtml @@ -0,0 +1,143 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Block_Imprint_Field - API Documentation + + + + +
+ + + +
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_FrontendController.xhtml b/docs/api/html/classes/FireGento_MageSetup_FrontendController.xhtml new file mode 100644 index 00000000..bca11410 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_FrontendController.xhtml @@ -0,0 +1,54 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_FrontendController - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_FrontendController

+
+

Adminhtml Controller for dislaying a form for some actions

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Helper_Catalog_Product_Configuration.xhtml b/docs/api/html/classes/FireGento_MageSetup_Helper_Catalog_Product_Configuration.xhtml new file mode 100644 index 00000000..3bc2a090 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Helper_Catalog_Product_Configuration.xhtml @@ -0,0 +1,162 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Helper_Catalog_Product_Configuration - API Documentation + + + + +
+ + + +
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Helper_Checkout_Data.xhtml b/docs/api/html/classes/FireGento_MageSetup_Helper_Checkout_Data.xhtml new file mode 100644 index 00000000..139778e1 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Helper_Checkout_Data.xhtml @@ -0,0 +1,89 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Helper_Checkout_Data - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Helper_Checkout_Data

+
+

Rewrite to fetch required agreement ids.

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Constructor

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Helper_Data.xhtml b/docs/api/html/classes/FireGento_MageSetup_Helper_Data.xhtml new file mode 100644 index 00000000..ffa123a8 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Helper_Data.xhtml @@ -0,0 +1,98 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Helper_Data - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_MagesetupController.xhtml b/docs/api/html/classes/FireGento_MageSetup_MagesetupController.xhtml new file mode 100644 index 00000000..b158a119 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_MagesetupController.xhtml @@ -0,0 +1,74 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_MagesetupController - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_MagesetupController

+
+

Adminhtml Controller for dislaying a form for some actions

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Config.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Config.xhtml new file mode 100644 index 00000000..f33ac3e0 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Config.xhtml @@ -0,0 +1,150 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Config - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Newsletter_Observer.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Newsletter_Observer.xhtml new file mode 100644 index 00000000..c91b0c8d --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Newsletter_Observer.xhtml @@ -0,0 +1,60 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Newsletter_Observer - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Newsletter_Observer

+
+

Observer class

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Newsletter_Subscriber_Status.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Newsletter_Subscriber_Status.xhtml new file mode 100644 index 00000000..e50cbbb1 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Newsletter_Subscriber_Status.xhtml @@ -0,0 +1,54 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Newsletter_Subscriber_Status - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Newsletter_Subscriber_Status

+
+

Subscriber Status Model

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Observer.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Observer.xhtml new file mode 100644 index 00000000..47c1016e --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Observer.xhtml @@ -0,0 +1,269 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Observer - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Observer

+
+

Observer class

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status.xhtml new file mode 100644 index 00000000..c133b36a --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status.xhtml @@ -0,0 +1,54 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status

+
+

Subscriber Status Resource Model

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection.xhtml new file mode 100644 index 00000000..1585178d --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection.xhtml @@ -0,0 +1,54 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection

+
+

Subscriber Status Resource Collection Model

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup.xhtml new file mode 100644 index 00000000..742b6278 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup.xhtml @@ -0,0 +1,141 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup - API Documentation + + + + +
+ + + +
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Abstract.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Abstract.xhtml new file mode 100644 index 00000000..7acc1a0d --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Abstract.xhtml @@ -0,0 +1,222 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup_Abstract - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Setup_Abstract

+
+

Setup class

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Constructor

+
+

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Agreements.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Agreements.xhtml new file mode 100644 index 00000000..ef0e3808 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Agreements.xhtml @@ -0,0 +1,251 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup_Agreements - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Setup_Agreements

+
+

Setup class for Checkout Agreements

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Cms.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Cms.xhtml new file mode 100644 index 00000000..e5b2b8b8 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Cms.xhtml @@ -0,0 +1,397 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup_Cms - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Setup_Cms

+
+

Setup class for CMS pages and blocks

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Constructor

+
+

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Email.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Email.xhtml new file mode 100644 index 00000000..32ee5dde --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Email.xhtml @@ -0,0 +1,357 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup_Email - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Setup_Email

+
+

Setup class for transaction emails

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Constructor

+
+

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Systemconfig.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Systemconfig.xhtml new file mode 100644 index 00000000..91ed22c3 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Systemconfig.xhtml @@ -0,0 +1,230 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup_Systemconfig - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Setup_Systemconfig

+
+

Setup class for Tax Settings

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Tax.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Tax.xhtml new file mode 100644 index 00000000..09b103b0 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Setup_Tax.xhtml @@ -0,0 +1,442 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Setup_Tax - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Setup_Tax

+
+

Setup class for Tax Settings

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Constructor

+
+

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Source_AgreementType.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Source_AgreementType.xhtml new file mode 100644 index 00000000..91b834a9 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Source_AgreementType.xhtml @@ -0,0 +1,98 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Source_AgreementType - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Source_AgreementType

+
+

Source model for attribute "agreement_type"

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Constants

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Source_Cms_Block.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Cms_Block.xhtml new file mode 100644 index 00000000..6ef321ef --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Cms_Block.xhtml @@ -0,0 +1,94 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Source_Cms_Block - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Source_Cms_Block

+
+

CMS Source model for configuration dropdown of CMS static blocks

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Source_Cms_Page.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Cms_Page.xhtml new file mode 100644 index 00000000..a8201ffe --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Cms_Page.xhtml @@ -0,0 +1,94 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Source_Cms_Page - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Source_Cms_Page

+
+

CMS Source model for configuration dropdown of CMS pages

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_DynamicType.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_DynamicType.xhtml new file mode 100644 index 00000000..08778dd7 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_DynamicType.xhtml @@ -0,0 +1,60 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Source_Tax_DynamicType - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Source_Tax_DynamicType

+
+

CMS Source model for configuration dropdown of CMS pages

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass.xhtml new file mode 100644 index 00000000..5a551433 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass.xhtml @@ -0,0 +1,161 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_ProductTaxClass.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_ProductTaxClass.xhtml new file mode 100644 index 00000000..77c24fe5 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Source_Tax_ProductTaxClass.xhtml @@ -0,0 +1,66 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Source_Tax_ProductTaxClass - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Model_Source_Tax_ProductTaxClass

+
+

Tax Source model for new tax classes, possibly not created yet

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Methods

+ + +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Model_Tax_Config.xhtml b/docs/api/html/classes/FireGento_MageSetup_Model_Tax_Config.xhtml new file mode 100644 index 00000000..d04bb4ac --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Model_Tax_Config.xhtml @@ -0,0 +1,106 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Model_Tax_Config - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Test_Config_Main.xhtml b/docs/api/html/classes/FireGento_MageSetup_Test_Config_Main.xhtml new file mode 100644 index 00000000..be75650b --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Test_Config_Main.xhtml @@ -0,0 +1,104 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Test_Config_Main - API Documentation + + + + + + + diff --git a/docs/api/html/classes/FireGento_MageSetup_Test_Model_Source_AgreementType.xhtml b/docs/api/html/classes/FireGento_MageSetup_Test_Model_Source_AgreementType.xhtml new file mode 100644 index 00000000..46f79f15 --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Test_Model_Source_AgreementType.xhtml @@ -0,0 +1,92 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Test_Model_Source_AgreementType - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Test_Model_Source_AgreementType

+
+

PHPUnit Test Class

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/classes/FireGento_MageSetup_Test_Model_Source_Tax_DynamicType.xhtml b/docs/api/html/classes/FireGento_MageSetup_Test_Model_Source_Tax_DynamicType.xhtml new file mode 100644 index 00000000..22d2b3aa --- /dev/null +++ b/docs/api/html/classes/FireGento_MageSetup_Test_Model_Source_Tax_DynamicType.xhtml @@ -0,0 +1,82 @@ + + + + + + FireGento_MageSetup - FireGento_MageSetup_Test_Model_Source_Tax_DynamicType - API Documentation + + + + +
+ + +
+

\FireGento_MageSetup_Test_Model_Source_Tax_DynamicType

+
+

PHPUnit Test Class

+
+
    +
  • Author: FireGento Team <team@firegento.com>
  • +
  • Copyright: 2013 FireGento Team (http://www.firegento.de). All rights served.
  • +
  • License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
  • +
+

Members

+ +

Methods

+
+ +
+
+ + diff --git a/docs/api/html/css/normalize.css b/docs/api/html/css/normalize.css new file mode 100644 index 00000000..be675053 --- /dev/null +++ b/docs/api/html/css/normalize.css @@ -0,0 +1,326 @@ +/*! normalize.css v2.0.1 | MIT License | git.io/normalize */ +/* edited by Jens Grochtdreis */ + +/* ========================================================================== + Base + ========================================================================== */ + +/* + * 1. Sets default font family to sans-serif. + * 2. Prevents iOS text size adjust after orientation change, without disabling + * user zoom. + */ + +html { + font-family: sans-serif; /* 1 */ + -webkit-text-size-adjust: 100%; /* 2 */ + -ms-text-size-adjust: 100%; /* 2 */ +} + +/* + * Removes default margin. + */ + +body { + margin: 0; +} + +/* ========================================================================== + Links + ========================================================================== */ + +/* + * Addresses `outline` inconsistency between Chrome and other browsers. + */ + +a:focus { + outline: thin dotted; +} + +/* + * Improves readability when focused and also mouse hovered in all browsers. + */ + +a:active, +a:hover { + outline: 0; +} + +/* ========================================================================== + Typography + ========================================================================== */ + +/* + * Addresses `h1` font sizes within `section` and `article` in Firefox 4+, + * Safari 5, and Chrome. + */ + +h1 { + font-size: 2em; +} + +/* + * Addresses styling not present in IE 8/9, Safari 5, and Chrome. + */ + +abbr[title] { + border-bottom: 1px dotted; +} + +/* + * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome. + */ + +b, +strong { + font-weight: bold; +} + +/* + * Addresses styling not present in Safari 5 and Chrome. + */ + +dfn { + font-style: italic; +} + +/* + * Addresses styling not present in IE 8/9. + */ + +mark { + background: #ff0; + color: #000; +} + + +/* + * Corrects font family set oddly in Safari 5 and Chrome. + */ + +code, +kbd, +pre, +samp { + font-family: monospace, serif; + font-size: 1em; +} + +/* + * Improves readability of pre-formatted text in all browsers. + */ + +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +/* + * Sets consistent quote types. + */ + +q { + quotes: "\201C" "\201D" "\2018" "\2019"; +} + +/* + * Addresses inconsistent and variable font size in all browsers. + */ + +small { + font-size: 80%; +} + +/* + * Prevents `sub` and `sup` affecting `line-height` in all browsers. + */ + +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + top: -0.5em; +} + +sub { + bottom: -0.25em; +} + +/* ========================================================================== + Embedded content + ========================================================================== */ + +/* + * Removes border when inside `a` element in IE 8/9. + */ + +img { + border: 0; +} + +/* + * Corrects overflow displayed oddly in IE 9. + */ + +svg:not(:root) { + overflow: hidden; +} + +/* ========================================================================== + Figures + ========================================================================== */ + +/* + * Addresses margin not present in IE 8/9 and Safari 5. + */ + +figure { + margin: 0; +} + +/* ========================================================================== + Forms + ========================================================================== */ + +/* + * Define consistent border, margin, and padding. + */ + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +/* + * 1. Corrects color not being inherited in IE 8/9. + * 2. Remove padding so people aren't caught out if they zero out fieldsets. + */ + +legend { + border: 0; /* 1 */ + padding: 0; /* 2 */ +} + +/* + * 1. Corrects font family not being inherited in all browsers. + * 2. Corrects font size not being inherited in all browsers. + * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome + */ + +button, +input, +select, +textarea { + font-family: inherit; /* 1 */ + font-size: 100%; /* 2 */ + margin: 0; /* 3 */ +} + +/* + * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in + * the UA stylesheet. + */ + +button, +input { + line-height: normal; +} + +/* + * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` + * and `video` controls. + * 2. Corrects inability to style clickable `input` types in iOS. + * 3. Improves usability and consistency of cursor style between image-type + * `input` and others. + */ + +button, +html input[type="button"], /* 1 */ +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; /* 2 */ + cursor: pointer; /* 3 */ +} + +/* + * Re-set default cursor for disabled elements. + */ + +button[disabled], +input[disabled] { + cursor: default; +} + +/* + * 1. Addresses box sizing set to `content-box` in IE 8/9. + * 2. Removes excess padding in IE 8/9. + */ + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* 1 */ + padding: 0; /* 2 */ +} + +/* + * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome. + * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome + * (include `-moz` to future-proof). + */ + +input[type="search"] { + -webkit-appearance: textfield; /* 1 */ + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; /* 2 */ + box-sizing: content-box; +} + +/* + * Removes inner padding and search cancel button in Safari 5 and Chrome + * on OS X. + */ + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} + +/* + * Removes inner padding and border in Firefox 4+. + */ + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +/* + * 1. Removes default vertical scrollbar in IE 8/9. + * 2. Improves readability and alignment in all browsers. + */ + +textarea { + overflow: auto; /* 1 */ + vertical-align: top; /* 2 */ +} + +/* ========================================================================== + Tables + ========================================================================== */ + +/* + * Remove most spacing between table cells. + */ + +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/docs/api/html/css/oldie.css b/docs/api/html/css/oldie.css new file mode 100644 index 00000000..346f5d49 --- /dev/null +++ b/docs/api/html/css/oldie.css @@ -0,0 +1,23 @@ +/* for IE8 and below */ +/* convert rgba-colours in the background into hex with: http://beijingyoung.com/articles/rgba-argb-converter/ */ +/* strip-off the "a" rgba if it is only "color" */ + +.clearfix { *height:1%; } /* trigger hasLayout for IE6 + 7 */ +h1, h2, h3 { color: rgb(0,0,0);} + +.topbar { + filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#BF000000', EndColorStr='#BF000000'); + zoom: 1!important; +} + +.btn { + *display: inline; + *zoom: 1; + background-color: transparent\9; + filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); +} +.btn:hover, +.btn:focus { + background-color: transparent\9; + filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0); +} \ No newline at end of file diff --git a/docs/api/html/css/styles.css b/docs/api/html/css/styles.css new file mode 100644 index 00000000..8d3fe957 --- /dev/null +++ b/docs/api/html/css/styles.css @@ -0,0 +1,251 @@ +/* styling basics */ +html {padding: 20px 0; background-color: #efefef;} +body {font-family: Arial, sans-serif; font-size: 100.01%;} + +/* clearfix */ +.clearfix:after { clear:both; content:"."; display:block; font-size:0; height:0; visibility:hidden; } +.clearfix { display:block; } /* extra for Safari */ + + +h1, h2, h3, h4, h5, h6 {font-family: Verdana, Arial, Helvetica, sans-serif; } + +/* Topbar */ +.topbar { margin: -20px -20px 2em -20px; padding: 1em 0;} +.topbar a { text-decoration: none;} +.topbar a:hover, .topbar a:focus { text-decoration: underline;} +.topbar h1 { float: left; font-size:1em; margin:0 0 0 2em;} +.topbar .nav { list-style-type:none; float:right; margin:0 2em 0 0;} +.topbar .nav li { float:left;} + +/* page-layout */ +.wrapper { + width: 90%; + max-width: 1200px; + padding: 20px; + margin: 40px auto 0 auto; + background: #fff; + box-shadow: 1px 1px 5px rgba(0,0,0,0.5); +} + +.indexcontent {margin: 1em auto; width: 90%;} + +.navigation {float: left;width: 200px;} +.navigation ul, .navigation li { + list-style-type: none; + padding-left: 0; + margin-left: 0; +} +.navigation a { + display: block; + border-bottom: 1px solid #cecece; + margin-bottom: 0.25em; + padding: 0.5em 0; + text-decoration: none; + color: inherit; + word-wrap: break-word; +} + +.navigation h3 { + clear: both; +} + +.navigation a:hover, .navigation a:focus { + padding-left: 0.75em; + background-color:#f5f5f5; +} + +.content {margin-left: 250px;} + +pre { + display:block; + padding:20px; + margin:0 0 1.5em 0; + font-size: 0.8em; + background-color:#f5f5f5; + border:1px solid #ccc; + border-radius:3px; + white-space:pre; + white-space:pre-wrap; + word-wrap:break-word; + max-width: 700px; +} + +/* ===== Buttons */ +.btn { + display: inline-block; + padding: 4px 14px; + margin-bottom: 0; + line-height: 1.2; + color: #333; + text-align: center; + text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); + vertical-align: middle; + background: #e6e6e6; + background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); + background: -webkit-linear-gradient(top, #ffffff, #e6e6e6); + background: -o-linear-gradient(top, #ffffff, #e6e6e6); + background: -moz-linear-gradient(top, #ffffff, #e6e6e6); + background: linear-gradient(to bottom, #ffffff, #e6e6e6); + border: 1px solid #bbbbbb; + border-color: #e6e6e6 #e6e6e6 #a2a2a2 #bfbfbf; + border-radius: 4px; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); + text-decoration: none; +} + +.btn:hover, +.btn:focus { + background: #e6e6e6; + background: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#ffffff)); + background: -webkit-linear-gradient(top, #e6e6e6, #ffffff); + background: -o-linear-gradient(top, #e6e6e6, #ffffff); + background: -moz-linear-gradient(top, #e6e6e6, #ffffff); + background: linear-gradient(to bottom, #e6e6e6, #ffffff); +} + +.btn:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} + +.btn:active { + background-color: #e6e6e6; + outline: 0; + -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); +} + +.btn.large { + padding: 9px 14px; +} + +/* ========= linklists */ + +.linklist {list-style-type: none;padding-left: 0;margin-left: 0;} +.linklist li {margin: 0 0 0.3em 0;} +.linkbox {float: left;width: 30%;margin-right: 3%;} + + +/* ======== inheritance */ +ul.inheritance {list-style-type:none;} +ul.inheritance li:before {content:"↪ ";} +ul.inheritance li:first-child:before {content:"";} +/* looks strange but is CSS3-selector simulated for oldIE :-) */ +ul.inheritance li + li + li {margin-left: 1em;} +ul.inheritance li + li + li + li {margin-left: 1.5em;} +ul.inheritance li + li + li + li + li {margin-left: 2em;} +ul.inheritance li + li + li + li + li + li {margin-left: 2.5em;} +ul.inheritance li + li + li + li + li + li + li {margin-left: 3em;} + +/* ======== method:param, method:return, method:trows */ +ul.param, ul.return, ul.throws {list-style-type:none;} +h4.param {margin-bottom: 0px;} + +/* ======== method:return, method:trows */ +h4.return, h4.throws {margin-top: 0px; margin-bottom: 0px;} + +/* ========= Footer */ +.footer {clear:both;margin:2em 0 1em 0;padding:0.5em 1em;border-top:2px solid #cecece;font-size: 0.85em;} + +/* =========== + the content ========================================== */ + +/* different labels */ +.label {padding: 0.25em 0.5em; border-radius: 3px;text-transform: uppercase;font-size: 0.5em; color: #fff;} + .private {background-color: #a20000;} + .protected {background-color: #efba00;} + .public {background-color: #00b25c;} + +/* the name of the member-variable */ +.var-member {font-weight: bold;} + +/* which variable type? */ +.var-type {font-style:italic;} + +.label, .var-member, .var-type {display: inline-block;margin-right: 0.5em;} + +/* short description of the variable */ +.var-desc { margin-top: 0.25em;} + +/* optional long description of the variable */ +.var-longdesc{ background-color:#f5f5f5; border:1px solid #ccc; padding:0.4em; margin-top:0.25em;} + +/* list with infos and with vars */ +.extendlist, .varlist, .varinfos {list-style-type: none;} +.varinfos { border-bottom: 1px solid #cecece; padding-bottom: 1em; margin-bottom: 1em;} + +@media only screen and (max-width: 800px) { + .navigation, .content {float: none; position: relative; margin-left: 0; width: auto;} + .navigation h2, .content {clear: both;} + .navigation ul, .navigation li {float: left;} + .navigation h2 {margin-bottom: 0;} + .navigation ul {overflow: hidden;margin-top: 0;} + .navigation a {border-bottom: none; margin-right: 0.5em;padding: 0.4em 0.75em; background-color: #f4f4f4;border-radius: 5px;} + .navigation a:hover, .navigation a:focus {background-color: #cecece;} + .linkbox {float: none;width: auto; margin-right: 0;} +} + + +/* ================== + animations ======================================================= */ + +@media only screen and (min-width: 801px) { + .navigation a { + -webkit-transition: padding-left 0.2s ease-in, background-color 0.2s ease-in; + -moz-transition: padding-left 0.2s ease-in, background-color 0.2s ease-in; + -o-transition: padding-left 0.2s ease-in, background-color 0.2s ease-in; + transition: padding-left 0.2s ease-in, background-color 0.2s ease-in; + } +} + +h4:target { + -webkit-animation: target-fade 2s 1; + -moz-animation: target-fade 2s 1; + -ms-animation: target-fade 2s 1; + animation: target-fade 2s 1; +} + +@-webkit-keyframes target-fade { + 0% { background-color: #ffffff;} + 75% { background-color: #f7d484;} + 100% { background-color: #ffffff;} +} + +@-moz-keyframes target-fade { + 0% { background-color: #ffffff;} + 75% { background-color: #f7d484;} + 100% { background-color: #ffffff;} +} + +@-ms-keyframes target-fade { + 0% { background-color: #ffffff;} + 75% { background-color: #f7d484;} + 100% { background-color: #ffffff;} +} + +@keyframes target-fade { + 0% { background-color: #ffffff;} + 75% { background-color: #f7d484;} + 100% { background-color: #ffffff;} +}​ + + +/* =================== + main colours ======================================== */ + +/* if the background-color is rgba please provide an alternative for oldIE in oldie.css */ +h1, h2, h3 {color: rgba(255,147,30,1);} +.topbar { background-color: rgba(33,40,48,0.75);} +.topbar a {color: #fff;} + +.extendlist a, .linklist a, .var-member a {color: #354225;} + +.extendlist a:hover, .extendlist a:focus, +.linklist a:hover, .linklist a:focus, +.var-member a:hover, .var-member a:focus {color: #5c7340;} + +.param-type { + font-weight:normal; +} diff --git a/docs/api/html/index.xhtml b/docs/api/html/index.xhtml new file mode 100644 index 00000000..c0b8b255 --- /dev/null +++ b/docs/api/html/index.xhtml @@ -0,0 +1,168 @@ + + + + + FireGento_MageSetup - API Documentation + + + + +
+ +
+

FireGento_MageSetup

+

Welcome to the API documentation page. Please select one of the listed classes, interfaces or traits to learn more about the indivdual item. You can navigate back to this page by use of the top navigation bar.

+ +

Classes

+
+ + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Adminhtml_NewsletterController.xml b/docs/api/xml/classes/FireGento_MageSetup_Adminhtml_NewsletterController.xml new file mode 100644 index 00000000..1632e822 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Adminhtml_NewsletterController.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Magesetup.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Magesetup.xml new file mode 100644 index 00000000..c47c920d --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Magesetup.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status.xml new file mode 100644 index 00000000..a9b7324c --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid.xml new file mode 100644 index 00000000..0c367369 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Notifications.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Notifications.xml new file mode 100644 index 00000000..d1eb1468 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Adminhtml_Notifications.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price.xml new file mode 100644 index 00000000..7eced12b --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract.xml new file mode 100644 index 00000000..40b1249b --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Catalog_Product_Price.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Catalog_Product_Price.xml new file mode 100644 index 00000000..4c804cdb --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Catalog_Product_Price.xml @@ -0,0 +1,107 @@ + + + + + Contains the normal price.phtml rendering and additionally a configured static block. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Catalog_Product_Price_Abstract.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Catalog_Product_Price_Abstract.xml new file mode 100644 index 00000000..6bd3b032 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Catalog_Product_Price_Abstract.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Checkout_Agreements.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Checkout_Agreements.xml new file mode 100644 index 00000000..13726ba3 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Checkout_Agreements.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Checkout_Information.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Checkout_Information.xml new file mode 100644 index 00000000..d043c20e --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Checkout_Information.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Customer_Account_Agreements.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Customer_Account_Agreements.xml new file mode 100644 index 00000000..827d775d --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Customer_Account_Agreements.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Ga.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Ga.xml new file mode 100644 index 00000000..09ef8546 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Ga.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Imprint_Content.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Imprint_Content.xml new file mode 100644 index 00000000..bed01c40 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Imprint_Content.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Block_Imprint_Field.xml b/docs/api/xml/classes/FireGento_MageSetup_Block_Imprint_Field.xml new file mode 100644 index 00000000..9bb3c10b --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Block_Imprint_Field.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_FrontendController.xml b/docs/api/xml/classes/FireGento_MageSetup_FrontendController.xml new file mode 100644 index 00000000..f06922c7 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_FrontendController.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Helper_Catalog_Product_Configuration.xml b/docs/api/xml/classes/FireGento_MageSetup_Helper_Catalog_Product_Configuration.xml new file mode 100644 index 00000000..832df355 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Helper_Catalog_Product_Configuration.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Helper_Checkout_Data.xml b/docs/api/xml/classes/FireGento_MageSetup_Helper_Checkout_Data.xml new file mode 100644 index 00000000..a6cafba0 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Helper_Checkout_Data.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Helper_Data.xml b/docs/api/xml/classes/FireGento_MageSetup_Helper_Data.xml new file mode 100644 index 00000000..bb9df5d7 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Helper_Data.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_MagesetupController.xml b/docs/api/xml/classes/FireGento_MageSetup_MagesetupController.xml new file mode 100644 index 00000000..733cc02a --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_MagesetupController.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Config.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Config.xml new file mode 100644 index 00000000..858ace42 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Config.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Newsletter_Observer.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Newsletter_Observer.xml new file mode 100644 index 00000000..4dbc9132 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Newsletter_Observer.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Newsletter_Subscriber_Status.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Newsletter_Subscriber_Status.xml new file mode 100644 index 00000000..cd5c3f04 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Newsletter_Subscriber_Status.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Observer.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Observer.xml new file mode 100644 index 00000000..8894a111 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Observer.xml @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Filters all agreements against the Magento template filter. This enables the Magento +administrator define a cms static block as the content of the checkout agreements.. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status.xml new file mode 100644 index 00000000..374351e5 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection.xml new file mode 100644 index 00000000..ff02cb52 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup.xml new file mode 100644 index 00000000..6e866e6b --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Abstract.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Abstract.xml new file mode 100644 index 00000000..16fe1800 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Abstract.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Agreements.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Agreements.xml new file mode 100644 index 00000000..5e5167cf --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Agreements.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Cms.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Cms.xml new file mode 100644 index 00000000..1fc6f78c --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Cms.xml @@ -0,0 +1,212 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Email.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Email.xml new file mode 100644 index 00000000..7e3010f6 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Email.xml @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Systemconfig.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Systemconfig.xml new file mode 100644 index 00000000..41ecc6a2 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Systemconfig.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Tax.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Tax.xml new file mode 100644 index 00000000..23e97639 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Setup_Tax.xml @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Source_AgreementType.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_AgreementType.xml new file mode 100644 index 00000000..7cecf5b0 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_AgreementType.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Cms_Block.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Cms_Block.xml new file mode 100644 index 00000000..5e71e017 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Cms_Block.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Cms_Page.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Cms_Page.xml new file mode 100644 index 00000000..532d925f --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Cms_Page.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_DynamicType.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_DynamicType.xml new file mode 100644 index 00000000..d359a02e --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_DynamicType.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass.xml new file mode 100644 index 00000000..278cc1ab --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_ProductTaxClass.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_ProductTaxClass.xml new file mode 100644 index 00000000..21328a43 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Source_Tax_ProductTaxClass.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Model_Tax_Config.xml b/docs/api/xml/classes/FireGento_MageSetup_Model_Tax_Config.xml new file mode 100644 index 00000000..735667d7 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Model_Tax_Config.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Test_Config_Main.xml b/docs/api/xml/classes/FireGento_MageSetup_Test_Config_Main.xml new file mode 100644 index 00000000..b68e8b9b --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Test_Config_Main.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Test_Model_Source_AgreementType.xml b/docs/api/xml/classes/FireGento_MageSetup_Test_Model_Source_AgreementType.xml new file mode 100644 index 00000000..3360bc9a --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Test_Model_Source_AgreementType.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/classes/FireGento_MageSetup_Test_Model_Source_Tax_DynamicType.xml b/docs/api/xml/classes/FireGento_MageSetup_Test_Model_Source_Tax_DynamicType.xml new file mode 100644 index 00000000..c58f30d5 --- /dev/null +++ b/docs/api/xml/classes/FireGento_MageSetup_Test_Model_Source_Tax_DynamicType.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/index.xml b/docs/api/xml/index.xml new file mode 100644 index 00000000..31a9eca6 --- /dev/null +++ b/docs/api/xml/index.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/api/xml/source.xml b/docs/api/xml/source.xml new file mode 100644 index 00000000..53554363 --- /dev/null +++ b/docs/api/xml/source.xml @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/features/features.markdown b/docs/features/features.markdown new file mode 100644 index 00000000..babfcb05 --- /dev/null +++ b/docs/features/features.markdown @@ -0,0 +1,117 @@ +FireGento_MageSetup - Features +===================== +##Contents +- [Setup features](#setup-features) +- [Backend features](#backend-features) +- [Frontend features](#frontend-features) + +## Setup Features +### General +- Display a hint to fill out configuration form after first login +![Hint after Installation](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/install-hint.png "Hint after Installation") +- Supports the following countries right now: + * Austria + * France + * Germany + * Italy + * Russia + * Switzerland + * United Kingdom +- **Important:** After form submission, the form still displays the default values. The settings have been changed though + +### Configuration Setup +![Configuration Setup](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/setup-configuration.png "Configuration Setup") + +- Choose a country which will be configured as shipping source +- Set country specific configuration settings (i.e. newsletter confirmation + +### Tax Setup +![Tax Setup](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/setup-tax.png "Tax Setup") + +- Tax settings for the selected country (see **Configuration Setup**) +- All tax classes, rates and rules are deleted in the process and new ones are created +- For EU countries, shipping to all EU countries is supported +- You can select new tax classes for your products (if you have any yet) and customer groups depending on the old tax classes + +### CMS Setup +![CMS Setup](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/setup-cms.png "CMS Setup") + +- Setup preconfigured, language dependant CMS pages: + * 404 error + * Imprint + * Payment Methods + * Privacy + * Shipping Methods + * Order Overview + * Business Terms + * Declaration of Revocation +- Setup CMS static blocks (preconfigured, language dependant): + * Business Terms (is used by static page with same name, checkout agreement and as email content for some emails) + * Declaration of Revocation (is used by static page with same name, checkout agreement and as email content for some emails) + * Footer Links (including links to above pages) +- Setup Checkout Agreements (preconfigured, language dependant) + * Business Terms + * Declaration of Revocation + +You can choose a different language for every store view. + +### Email Setup +![Email Setup](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/setup-email.png "Email Setup") + +- Setup Emails + * Choose a different language for every store view + * Emails are taken from installed language packs + * All emails are created as transational emails and can thus be edited in the Magento admin panel + * Some blocks are added automatically to certain emails (mostly "New Order" and "New customer"): + - Store information (template can be found at **/app/design/frontend/base/default/template/magesetup/imprint/email_footer.phtml**) + - Business terms (taken from created static block) + - Declaration of Revocation (taken from created static block) + +## Backend Features +### New configuration fields for shop information (imprint) +- Can be found in **System -> Configuration -> General -> Imprint** +- Displays entered information in cms page "imprint" and in email footer + +### Checkout Agreements +- Option to display checkout agreements on checkout, and customer registration, on both or none +- Option to make checkout agreements required (display checkbox on frontend) or optional (does not display checkbox, just the test) +![Checkout Agreements](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/checkout-agreements.png "Checkout Agreements") + +### Newsletter Subscribers Status History +- Store all newsletter subscription statusses of all subscribers +- Document all status changes in order to be able to prove subscriptions and unsubscriptions +![Newsletter History](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/newsletter-history.png "Newsletter History") + +### Auto-generate meta data for products +- Generate meta title from product name +- Generate meta keywords from category names +- Generate meta description from short description, (if empty) description or (if still empty) category names +![Product Meta Data Generation](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/product-meta-autogenerate.png "Product Meta Data Generation") + +## Frontend Features +### Info Block below Prices +- Display a block below prices on product list and product view pages +![Block on product view page](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/price-text-view.png "Block on product view page") +- Configure via backend in **System -> Configuration -> Catalog -> Price** +![Price configuration](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/price-configuration.png "Price configuration") + +### Display additional attributes in cart and on checkout review page +- Can be selected by attribute in **Catalog -> Attributes -> Manage Attributes** +![Attribute management](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/attribute-display-checkout.png "Attribute management") +![Additional attribute in cart](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/attribute-display-checkout-cart.png "Additional attribute in cart") + +### Shipping Costs block on cart page +- Block can be replaced with a simple link to the shipping costs cms page +![Shipping costs in cart](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/cart-shipping-costs.png "Shipping costs in cart") +- Can be configured in **System -> Configuration -> Checkout -> Shopping cart -> Hide estimated shipping costs in cart** + +### Redesign Checkout review page +- ![Checkout review page](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/checkout-review.png "Checkout review page") + Regrouping for better overview and due to legal issues +- Display additional text (can be configured in **System -> Configuration -> Checkout -> Checkout Options -> Display Additional Information**) + +### Dynamic Shipping Tax Class Calculation +- Calculate shipping tax class depending on products in cart + * Use highest product tax class as shipping tax class + * Or use the tax rate of products that make up the biggest amount +![Shipping tax class](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/shipping-tax-class.png "Shipping tax class") \ No newline at end of file diff --git a/docs/features/images/attribute-display-checkout-cart.png b/docs/features/images/attribute-display-checkout-cart.png new file mode 100644 index 00000000..8ee6f878 Binary files /dev/null and b/docs/features/images/attribute-display-checkout-cart.png differ diff --git a/docs/features/images/attribute-display-checkout.png b/docs/features/images/attribute-display-checkout.png new file mode 100644 index 00000000..ca1b46d1 Binary files /dev/null and b/docs/features/images/attribute-display-checkout.png differ diff --git a/docs/features/images/cart-shipping-costs.png b/docs/features/images/cart-shipping-costs.png new file mode 100644 index 00000000..a982beeb Binary files /dev/null and b/docs/features/images/cart-shipping-costs.png differ diff --git a/docs/features/images/checkout-agreements.png b/docs/features/images/checkout-agreements.png new file mode 100644 index 00000000..d5f3de46 Binary files /dev/null and b/docs/features/images/checkout-agreements.png differ diff --git a/docs/features/images/checkout-review.png b/docs/features/images/checkout-review.png new file mode 100644 index 00000000..04118f55 Binary files /dev/null and b/docs/features/images/checkout-review.png differ diff --git a/docs/features/images/install-hint.png b/docs/features/images/install-hint.png new file mode 100644 index 00000000..f280aba4 Binary files /dev/null and b/docs/features/images/install-hint.png differ diff --git a/docs/features/images/newsletter-history.png b/docs/features/images/newsletter-history.png new file mode 100644 index 00000000..255be9a6 Binary files /dev/null and b/docs/features/images/newsletter-history.png differ diff --git a/docs/features/images/price-configuration.png b/docs/features/images/price-configuration.png new file mode 100644 index 00000000..a2bb9429 Binary files /dev/null and b/docs/features/images/price-configuration.png differ diff --git a/docs/features/images/price-text-list.png b/docs/features/images/price-text-list.png new file mode 100644 index 00000000..21cacf85 Binary files /dev/null and b/docs/features/images/price-text-list.png differ diff --git a/docs/features/images/price-text-view.png b/docs/features/images/price-text-view.png new file mode 100644 index 00000000..75201a31 Binary files /dev/null and b/docs/features/images/price-text-view.png differ diff --git a/docs/features/images/product-meta-autogenerate.png b/docs/features/images/product-meta-autogenerate.png new file mode 100644 index 00000000..6a9a5a32 Binary files /dev/null and b/docs/features/images/product-meta-autogenerate.png differ diff --git a/docs/features/images/setup-cms.png b/docs/features/images/setup-cms.png new file mode 100644 index 00000000..a8841a27 Binary files /dev/null and b/docs/features/images/setup-cms.png differ diff --git a/docs/features/images/setup-configuration.png b/docs/features/images/setup-configuration.png new file mode 100644 index 00000000..70b47687 Binary files /dev/null and b/docs/features/images/setup-configuration.png differ diff --git a/docs/features/images/setup-email.png b/docs/features/images/setup-email.png new file mode 100644 index 00000000..b634f579 Binary files /dev/null and b/docs/features/images/setup-email.png differ diff --git a/docs/features/images/setup-overview.png b/docs/features/images/setup-overview.png new file mode 100644 index 00000000..c7a07c68 Binary files /dev/null and b/docs/features/images/setup-overview.png differ diff --git a/docs/features/images/setup-tax.png b/docs/features/images/setup-tax.png new file mode 100644 index 00000000..17113133 Binary files /dev/null and b/docs/features/images/setup-tax.png differ diff --git a/docs/features/images/shipping-tax-class.png b/docs/features/images/shipping-tax-class.png new file mode 100644 index 00000000..374a85fc Binary files /dev/null and b/docs/features/images/shipping-tax-class.png differ diff --git a/docs/features/overview.markdown b/docs/features/overview.markdown new file mode 100644 index 00000000..236bb168 --- /dev/null +++ b/docs/features/overview.markdown @@ -0,0 +1,67 @@ +FireGento_MageSetup - the fast way to setup your Magento store +==================================================== +MageSetup is a **free community module** for Magento which simplifies the process to setup your Magento store. +Its broad set of features makes the shops comply to most national laws. +It has evolved from **GermanSetup**, a module which has grown very famous in Germany, Austria and Switzerland. Germany is known to have very rigid laws which was the foremost reason to start this module. + +What does it do? +---------------- +MageSetup provides a new backend form which allows you to make a few decisions, mainly which country you are shipping from and which language(s) you are using. When submitting the form, FireGento_MageSetup does the following: + +* Setup **tax** configuration for worldwide shipping. It sets up all necessary **product** and **customer tax classes** as well as all tax rates and calculation rules. + In particular, the complicated rules for shipping from a EU country are supported, so end customers from another EU country got to pay taxes while companies with a VAT ID don't. +* Create a few **CMS pages** and **static blocks** like imprint, business terms or revocation. The contents of these blocks can be used for checkout agreements or in emails as well. +* Setup **email templates** which allows the admin to adjust the shop emails further. An email footer with shop data is added to all emails, and business terms and the declaration of revocation is added to some. +* Display tax and/or shipping info to all **prices** +* Automatical generation of **meta data** to products +* Saving of every **status change of newsletter subscriptions** + +There are many more features. Please see the [full list of features](https://github.com/firegento/firegento-magesetup/blob/development/docs/features/features.markdown) for a list of all features with screeenshots. + +Which countries does it support? +-------------------------------- +At the moment of writing this post, we support the following countries: + +* Austria +* France +* Germany +* Italy +* Russia +* Switzerland +* United Kingdom + +However, it is quite simple to add your own country. We will post a small developers guide to do so soon. + +Requirements +------------------------- + +### Store Views +Prepare your store views if you have a multi language store before to proceed. + +### Language package +All necessary locale packages should be installed before to proceed the setup. For example, if you want to support German and French countries, +please install the locale de_DE and fr_FR. See [Magento Connect] (http://www.magentocommerce.com/magento-connect/customer-experience/internationalization-localization.html) to get the packages or install them thanks to composer and our [FireGento Module repository](http://packages.firegento.com/). With composer and our example, you should have to add the name "connect20/locale_mage_community_de_DE" and "connect20/locale_mage_community_fr_FR" + + +How to install FireGento_MageSetup? +------------------------- +The module can be installed via + +* MagentoConnect (link will follow) +* [GitHub](https://github.com/firegento/firegento-magesetup/) +* Composer (name "firegento/magesetup" if you are using the [FireGento Module repository](http://packages.firegento.com/) ). + +When the module is installed, please clear the cache, logout and login again. You will see the following hint: +![Hint after Installation](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/install-hint.png "Hint after Installation") +Follow the link, fill out the form and submit in order to apply the settings. +![Setup Form](https://raw.github.com/firegento/firegento-magesetup/development/docs/features/images/setup-overview.png "Setup Form") + +**Attention:** As stated in the setup form, all tax settings will be overwritten. + +Who is behind FireGento_MageSetup? +---------------------------------- +![FireGento Logo](http://www.avs-webentwicklung.de/fileadmin/images/FireGento.png "FireGento Logo") +FireGento is a group of Magento developers, working as freelancers and in companies. Starting in 2011, we began developing free modules for the community. +We don't have any commercial interests. We founded an association in 2013, based in Germany, in order to organize events like the [Magento Hackathons](http://www.mage-hackathon.de/) more easily. +GermanSetup was one of the first modules to be published, and is the most well known project up to now. It's widely used in Germany, Austria and Switzerland up to now. +It was started at a small meeting of ~15 persons at the German North Sea coast, and since then, a lot of work has been done in the free time of a couple of developers at home, at work, at conferences and meetings. diff --git a/modman b/modman new file mode 100644 index 00000000..71b776ed --- /dev/null +++ b/modman @@ -0,0 +1,16 @@ +src/app/code/community/FireGento/MageSetup/ app/code/community/FireGento/MageSetup/ +src/app/etc/modules/FireGento_MageSetup.xml app/etc/modules/FireGento_MageSetup.xml +src/app/locale/de_AT/FireGento_MageSetup.csv app/locale/de_AT/FireGento_MageSetup.csv +src/app/locale/de_DE/FireGento_MageSetup.csv app/locale/de_DE/FireGento_MageSetup.csv +src/app/locale/de_DE/template/magesetup/ app/locale/de_DE/template/magesetup/ +src/app/locale/en_US/FireGento_MageSetup.csv app/locale/en_US/FireGento_MageSetup.csv +src/app/locale/en_US/template/magesetup/ app/locale/en_US/template/magesetup/ +src/app/locale/ru_RU/FireGento_MageSetup.csv app/locale/ru_RU/FireGento_MageSetup.csv +src/app/locale/ru_RU/template/magesetup/ app/locale/ru_RU/template/magesetup/ +src/app/locale/fr_FR/FireGento_MageSetup.csv app/locale/fr_FR/FireGento_MageSetup.csv +src/app/locale/fr_FR/template/magesetup/ app/locale/fr_FR/template/magesetup/ +src/app/design/adminhtml/default/default/layout/magesetup.xml app/design/adminhtml/default/default/layout/magesetup.xml +src/app/design/adminhtml/default/default/template/magesetup/ app/design/adminhtml/default/default/template/magesetup/ +src/app/design/frontend/base/default/layout/magesetup.xml app/design/frontend/base/default/layout/magesetup.xml +src/app/design/frontend/base/default/template/magesetup/ app/design/frontend/base/default/template/magesetup/ +src/skin/frontend/base/default/css/magesetup/ skin/frontend/base/default/css/magesetup diff --git a/phpdox.xml.dist b/phpdox.xml.dist new file mode 100644 index 00000000..268b6164 --- /dev/null +++ b/phpdox.xml.dist @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Magesetup.php b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Magesetup.php new file mode 100644 index 00000000..933b9e2c --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Magesetup.php @@ -0,0 +1,234 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +/** + * Displays a form with some options to setup things + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +class FireGento_MageSetup_Block_Adminhtml_Magesetup extends Mage_Adminhtml_Block_Widget +{ + /** + * Class Constructor + */ + public function __construct() + { + parent::__construct(); + $this->setTitle('MageSetup'); + } + + /** + * Retrieve the POST URL for the form + * + * @return string URL + */ + public function getPostActionUrl() + { + return $this->getUrl('*/*/save'); + } + + /** + * Get old product tax classes + * + * @return array All existing product tax classes + */ + public function getProductTaxClasses() + { + return Mage::getSingleton('magesetup/source_tax_productTaxClass')->getAllOptions(); + } + + /** + * Get old product tax classes + * + * @return array All existing product tax classes + */ + public function getCustomerTaxClasses() + { + return Mage::getSingleton('magesetup/source_tax_customerTaxClass')->getAllOptions(); + } + + /** + * Get new product tax classes (yet to be created) + * + * @return array All new product tax classes + */ + public function getNewProductTaxClasses() + { + return Mage::getSingleton('magesetup/source_tax_newProductTaxClass')->getAllOptions(); + } + + /** + * Get new product tax classes (yet to be created) + * + * @return array All new product tax classes + */ + public function getNewCustomerTaxClasses() + { + return Mage::getSingleton('magesetup/source_tax_newCustomerTaxClass')->getAllOptions(); + } + + /** + * Retrieve the default default new product tax class (yet to be created) + * + * @return int Default Product Tax Class + */ + public function getDefaultProductTaxClass() + { + return Mage::getSingleton('magesetup/source_tax_newProductTaxClass')->getDefaultOption(); + } + + /** + * Retrieve all locales where the directory email/template exists + * + * @return array Locale options for email templates + */ + public function getLocaleOptionsForEmailTemplates() + { + $options = Mage::getSingleton('adminhtml/system_config_source_locale')->toOptionArray(); + foreach ($options as $key => $value) { + $filePath = Mage::getBaseDir('locale') . DS . $value['value'] . DS . 'template' . DS . 'email'; + if (!file_exists($filePath)) { + unset($options[$key]); + } + } + + return $options; + } + + /** + * Retrieve all locales where the directory email/template exists + * + * @return array Locale options for CMS content + */ + public function getLocaleOptionsForCmsContent() + { + $options = Mage::getSingleton('adminhtml/system_config_source_locale')->toOptionArray(); + foreach ($options as $key => $value) { + $filePath = Mage::getBaseDir('locale') . DS . $value['value'] . DS . 'template' . DS . 'magesetup'; + if (!file_exists($filePath)) { + unset($options[$key]); + } + } + + return $options; + } + + /** + * Check if there is more than one Store View + * + * @return bool Flag if there are more than one store + */ + public function isMultiStore() + { + return (sizeof($this->getStores()) > 1); + } + + /** + * Retrieve all stores + * + * @return array All stores + */ + public function getStores() + { + return Mage::app()->getStores(false); + } + + /** + * Retrieve all available countries for MageSetup + * + * @return array All allowed countries + */ + public function getAvailableCountriesForSetup() + { + return Mage::helper('magesetup')->getAvailableCountries(); + } + + /** + * @return string + */ + public function getNewProductTaxClassesJson() + { + $countryTaxClasses = array(); + foreach(Mage::helper('magesetup')->getAvailableCountries() as $countryId => $countryName) { + + $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . $countryId . DS . 'tax.xml'; + + // If the given file does not exist, use the default file + if (!file_exists($configFile)) { + $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . 'default' . DS . 'tax.xml'; + } + + $xml = new SimpleXMLElement(file_get_contents($configFile)); + + $taxClasses = $xml->default->magesetup->tax_classes->default; + foreach($taxClasses->children() as $identifier => $taxClass) { + if ($taxClass->class_type != 'PRODUCT' + || $taxClass->execute != 1 + || strpos($identifier, 'shipping') === 0) { + continue; + } + $countryTaxClasses[$countryId][(string)$taxClass->class_id] = (string)$taxClass->class_name; + } + + $countryTaxClasses[$countryId][] = $this->__('No tax'); + } + + return Zend_Json::encode($countryTaxClasses); + } + + /** + * @return string + */ + public function getNewCustomerTaxClassesJson() + { + $countryTaxClasses = array(); + foreach(Mage::helper('magesetup')->getAvailableCountries() as $countryId => $countryName) { + + $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . $countryId . DS . 'tax.xml'; + + // If the given file does not exist, use the default file + if (!file_exists($configFile)) { + $configFile = Mage::getConfig()->getModuleDir('etc', 'FireGento_MageSetup') . DS . 'default' . DS . 'tax.xml'; + } + + $xml = new SimpleXMLElement(file_get_contents($configFile)); + + $taxClasses = $xml->default->magesetup->tax_classes->default; + foreach($taxClasses->children() as $identifier => $taxClass) { + if ($taxClass->class_type != 'CUSTOMER' + || $taxClass->execute != 1) { + continue; + } + $countryTaxClasses[$countryId][(string)$taxClass->class_id] = (string)$taxClass->class_name; + } + } + + return Zend_Json::encode($countryTaxClasses); + } +} + diff --git a/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status.php b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status.php new file mode 100644 index 00000000..85b66d93 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status.php @@ -0,0 +1,48 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Newsletter Subscriber Status Grid Container + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status + extends Mage_Adminhtml_Block_Widget_Grid_Container +{ + /** + * Class constructor + */ + public function __construct() + { + $this->_controller = 'adminhtml_newsletter_subscriber_status'; + $this->_blockGroup = 'magesetup'; + $this->_headerText = Mage::helper('magesetup')->__('Newsletter Subscribers Status History'); + parent::__construct(); + $this->_removeButton('add'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status/Grid.php b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status/Grid.php new file mode 100644 index 00000000..e6d299d7 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Newsletter/Subscriber/Status/Grid.php @@ -0,0 +1,128 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Newsletter Subscriber Status Grid + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid + extends Mage_Adminhtml_Block_Widget_Grid +{ + /** + * Class constructor + */ + public function __construct() + { + parent::__construct(); + $this->setId('subscriberStatusGrid'); + $this->setDefaultSort('created_at'); + $this->setDefaultDir('DESC'); + $this->setSaveParametersInSession(true); + $this->setUseAjax(true); + } + + /** + * Prepares the grid collection + * + * @see Mage_Adminhtml_Block_Widget_Grid::_prepareCollection() + * @return FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid Grid + */ + protected function _prepareCollection() + { + $collection = Mage::getResourceModel('magesetup/newsletter_subscriber_status_collection'); + $this->setCollection($collection); + + return parent::_prepareCollection(); + } + + /** + * Prepares the grid columns + * + * @see Mage_Adminhtml_Block_Widget_Grid::_prepareColumns() + * @return FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid Grid + */ + protected function _prepareColumns() + { + $this->addColumn('subscriber', array( + 'header' => Mage::helper('newsletter')->__('ID'), + 'index' => 'subscriber', + 'type' => 'int', + 'width' => '75px' + )); + + $this->addColumn('email', array( + 'header' => Mage::helper('newsletter')->__('Email'), + 'index' => 'email' + )); + + $this->addColumn('status', array( + 'header' => Mage::helper('newsletter')->__('Status'), + 'index' => 'status', + 'width' => '150px', + 'type' => 'options', + 'options' => array( + Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE => Mage::helper('newsletter')->__('Not Activated'), + Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED => Mage::helper('newsletter')->__('Subscribed'), + Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED => Mage::helper('newsletter')->__('Unsubscribed'), + Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED => Mage::helper('newsletter')->__('Unconfirmed'), + ) + )); + + $this->addColumn('created_at', array( + 'header' => Mage::helper('adminhtml')->__('Created At'), + 'index' => 'created_at', + 'type' => 'datetime', + 'width' => '150px' + )); + + return parent::_prepareColumns(); + } + + /** + * Retrieve the grid url for ajax reloads + * + * @return string Grid Url + */ + public function getGridUrl() + { + return $this->getUrl('*/*/grid', array('_current'=> true)); + } + + /** + * Deactivate the grid row url + * + * @see Mage_Adminhtml_Block_Widget_Grid::getRowUrl() + * @param Varien_Object $row + * @return bool Row Url + */ + public function getRowUrl($row) + { + return false; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Notifications.php b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Notifications.php new file mode 100644 index 00000000..b43bb236 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Adminhtml/Notifications.php @@ -0,0 +1,82 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +/** + * Displays MageSetup notifications + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +class FireGento_MageSetup_Block_Adminhtml_Notifications extends Mage_Adminhtml_Block_Template +{ + /** + * (non-PHPdoc) + * @see Mage_Core_Block_Template::_construct() + */ + protected function _construct() + { + $this->addData( + array( + 'cache_lifetime'=> null + ) + ); + } + + /** + * Returns a value that indicates if some of the german setup settings have already been initialized. + * + * @return bool Flag if MageSetup is already initialized + */ + public function isInitialized() + { + return Mage::getStoreConfigFlag('magesetup/is_initialized'); + } + + /** + * Get magesetup management url + * + * @return string URL for MageSetup form + */ + public function getManageUrl() + { + return $this->getUrl('adminhtml/magesetup'); + } + + /** + * ACL validation before html generation + * + * @return string Notification content + */ + protected function _toHtml() + { + if (Mage::getSingleton('admin/session')->isAllowed('system/magesetup')) { + return parent::_toHtml(); + } + + return ''; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price.php b/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price.php new file mode 100644 index 00000000..913e3c28 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price.php @@ -0,0 +1,170 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Enhanced block for product price display of bundle products. Contains the normal price.phtml + * rendering and additionally a configured static block. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price + extends FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract +{ + /** + * Add content of template block below price html if defined in config + * + * @return string Price HTML + */ + public function _toHtml() + { + $html = trim(parent::_toHtml()); + + if (empty($html) || !Mage::getStoreConfigFlag('catalog/price/display_block_below_price')) { + return $html; + } + + $html .= $this->getLayout()->createBlock('core/template') + ->setTemplate('magesetup/price_info.phtml') + ->setFormattedTaxRate($this->getFormattedTaxRate()) + ->setIsIncludingTax($this->isIncludingTax()) + ->setIsShowShippingLink($this->isShowShippingLink()) + ->setIsShowWeightInfo($this->getIsShowWeightInfo()) + ->setFormattedWeight($this->getFormattedWeight()) + ->toHtml(); + + return $html; + } + + /** + * Read tax rate from current product. + * + * @return string Tax Rate + */ + public function getTaxRate() + { + if (!$this->getData('tax_rate')) { + $this->setData('tax_rate', $this->_loadTaxCalculationRate($this->getProduct())); + } + + return $this->getData('tax_rate'); + } + + /** + * Retrieves formatted string of tax rate for user output + * + * @return string Formatted Tax Rate for the given locale + */ + public function getFormattedTaxRate() + { + if ($this->getTaxRate() === null + || $this->getProduct()->getTypeId() == 'bundle' + ) { + return ''; + } + + $locale = Mage::app()->getLocale()->getLocaleCode(); + $taxRate = Zend_Locale_Format::toFloat($this->getTaxRate(), array('locale' => $locale)); + + return $this->__('%s%%', $taxRate); + } + + /** + * Returns whether or not the price contains taxes + * + * @return bool Flag if prices are shown with including tax + */ + public function isIncludingTax() + { + if (!$this->getData('is_including_tax')) { + $this->setData('is_including_tax', Mage::getStoreConfig('tax/sales_display/price')); + } + + return $this->getData('is_including_tax'); + } + + /** + * Returns whether the shipping link needs to be shown + * on the frontend or not. + * + * @return bool Flag if shipping link should be displayed + */ + public function isShowShippingLink() + { + $productTypeId = $this->getProduct()->getTypeId(); + $ignoreTypeIds = array('virtual', 'downloadable'); + if (in_array($productTypeId, $ignoreTypeIds)) { + return false; + } + + return true; + } + + /** + * Gets tax percents for current product + * + * @param Mage_Catalog_Model_Product $product Product Model + * @return string Tax Rate + */ + protected function _loadTaxCalculationRate(Mage_Catalog_Model_Product $product) + { + $taxPercent = $product->getTaxPercent(); + if (is_null($taxPercent)) { + $taxClassId = $product->getTaxClassId(); + if ($taxClassId) { + $request = Mage::getSingleton('tax/calculation')->getRateRequest(null, null, null, null); + $taxPercent = Mage::getSingleton('tax/calculation')->getRate($request->setProductClassId($taxClassId)); + } + } + + if ($taxPercent) { + return $taxPercent; + } + + return 0; + } + + /** + * Check if Shipping by Weight is active + * + * @return bool Flag if product weight should be displayed + */ + public function getIsShowWeightInfo() + { + return Mage::getStoreConfigFlag('catalog/price/display_product_weight'); + } + + /** + * Get formatted weight incl. unit + * + * @return string Formatted weight + */ + public function getFormattedWeight() + { + return floatval($this->getProduct()->getWeight()) . ' ' . Mage::getStoreConfig('catalog/price/weight_unit'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price/Abstract.php b/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price/Abstract.php new file mode 100644 index 00000000..c8cebb1d --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Bundle/Catalog/Product/Price/Abstract.php @@ -0,0 +1,52 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Enhanced block for product price display of all products in spite of bundles (got own block!). + * Contains the normal price.phtml rendering and additionally a configured static block. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +if (Mage::getConfig()->getModuleConfig('Sitewards_B2BProfessional')->is('active', 'true')) { + + abstract class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract + extends Sitewards_B2BProfessional_Block_Price + { + + } + +} else { + + abstract class FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract + extends Mage_Bundle_Block_Catalog_Product_Price + { + + } + +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price.php b/src/app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price.php new file mode 100644 index 00000000..0878b29d --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price.php @@ -0,0 +1,253 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Enhanced block for product price display of all products in spite of bundles (got own block!). + * Contains the normal price.phtml rendering and additionally a configured static block. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Block_Catalog_Product_Price + extends FireGento_MageSetup_Block_Catalog_Product_Price_Abstract +{ + /** + * @var array Path to common tier price template + */ + protected $_tierPriceDefaultTemplates = array( + 'catalog/product/view/tierprices.phtml', + 'dermodpro/bcp/catalog/product/view/tierprices.phtml' + ); + + /** + * Add content of template block below price html if defined in config + * + * @return string Price HTML + */ + public function _toHtml() + { + $html = trim(parent::_toHtml()); + + if (empty($html) || !Mage::getStoreConfigFlag('catalog/price/display_block_below_price')) { + return $html; + } + + if (!in_array($this->getTemplate(), $this->_tierPriceDefaultTemplates)) { + $htmlObject = new Varien_Object(); + $htmlObject->setParentHtml($html); + $htmlTemplate = $this->getLayout()->createBlock('core/template') + ->setTemplate('magesetup/price_info.phtml') + ->setFormattedTaxRate($this->getFormattedTaxRate()) + ->setIsIncludingTax($this->isIncludingTax()) + ->setIsIncludingShippingCosts($this->isIncludingShippingCosts()) + ->setIsShowShippingLink($this->isShowShippingLink()) + ->setIsShowWeightInfo($this->getIsShowWeightInfo()) + ->setFormattedWeight($this->getFormattedWeight()) + ->toHtml(); + $htmlObject->setHtml($htmlTemplate); + + $this->_addDeliveryTimeHtml($htmlObject); + + Mage::dispatchEvent('magesetup_after_product_price', + array( + 'html_obj' => $htmlObject, + 'block' => $this, + ) + ); + + $html = $htmlObject->getPrefix(); + $html .= $htmlObject->getParentHtml(); + $html .= $htmlObject->getHtml(); + $html .= $htmlObject->getSuffix(); + } + + return $html; + } + + /** + * Add delivery time on category pages only + * + * @param Varien_Object $htmlObject Transport object + */ + protected function _addDeliveryTimeHtml($htmlObject) + { + if (!Mage::getStoreConfigFlag('catalog/price/display_delivery_time_on_categories')) { + return; + } + + $pathInfo = Mage::app()->getRequest()->getPathInfo(); + if (strpos($pathInfo, 'catalog/category/view') !== false + || strpos($pathInfo, 'catalogsearch/result') !== false) { + if ($this->getProduct()->getDeliveryTime()) { + $html = '

'; + $html .= $this->__('Delivery Time') . ': ' . $this->getProduct()->getDeliveryTime(); + $html .= '

'; + $htmlObject->setSuffix($html); + } + } + } + + /** + * Read tax rate from current product. + * + * @return string Tax Rate + */ + public function getTaxRate() + { + $taxRateKey = 'tax_rate_'.$this->getProduct()->getId(); + if (!$this->getData($taxRateKey)) { + $this->setData($taxRateKey, $this->_loadTaxCalculationRate($this->getProduct())); + } + + return $this->getData($taxRateKey); + } + + /** + * Retrieves formatted string of tax rate for user output + * + * @return string Formatted Tax Rate for the given locale + */ + public function getFormattedTaxRate() + { + if ($this->getTaxRate() === null + || $this->getProduct()->getTypeId() == 'bundle' + ) { + return ''; + } + + $locale = Mage::app()->getLocale()->getLocaleCode(); + $taxRate = Zend_Locale_Format::toFloat($this->getTaxRate(), array('locale' => $locale)); + + return $this->__('%s%%', $taxRate); + } + + /** + * Returns whether or not the price contains taxes + * + * @return bool Flag if prices are shown with including tax + */ + public function isIncludingTax() + { + if (!$this->getData('is_including_tax')) { + $this->setData('is_including_tax', Mage::getStoreConfig('tax/display/type')); + } + + return $this->getData('is_including_tax'); + } + + /** + * Returns whether or not the price contains taxes + * + * @return bool Flag if shipping costs are including taxes + */ + public function isIncludingShippingCosts() + { + if (!$this->getData('is_including_shipping_costs')) { + $this->setData( + 'is_including_shipping_costs', + Mage::getStoreConfig('catalog/price/including_shipping_costs') + ); + } + + return $this->getData('is_including_shipping_costs'); + } + + /** + * Returns whether the shipping link needs to be shown + * on the frontend or not. + * + * @return bool Flag if shipping link should be displayed + */ + public function isShowShippingLink() + { + $productTypeId = $this->getProduct()->getTypeId(); + $ignoreTypeIds = array('virtual', 'downloadable'); + if (in_array($productTypeId, $ignoreTypeIds)) { + return false; + } + + return true; + } + + /** + * Gets tax percents for current product + * + * @param Mage_Catalog_Model_Product $product Product Model + * @return string Tax Rate + */ + protected function _loadTaxCalculationRate(Mage_Catalog_Model_Product $product) + { + $taxPercent = $product->getTaxPercent(); + if (is_null($taxPercent)) { + $taxClassId = $product->getTaxClassId(); + if ($taxClassId) { + $request = Mage::getSingleton('tax/calculation')->getRateRequest(null, null, null, null); + $taxPercent = Mage::getSingleton('tax/calculation')->getRate($request->setProductClassId($taxClassId)); + } + } + + if ($taxPercent) { + return $taxPercent; + } + + return 0; + } + + /** + * Check if Shipping by Weight is active + * + * @return bool Flag if product weight should be displayed + */ + public function getIsShowWeightInfo() + { + return Mage::getStoreConfigFlag('catalog/price/display_product_weight'); + } + + /** + * Get formatted weight incl. unit + * + * @return string Formatted weight + */ + public function getFormattedWeight() + { + return floatval($this->getProduct()->getWeight()) . ' ' . Mage::getStoreConfig('catalog/price/weight_unit'); + } + + /** + * Translate block sentence + * + * @return string Translated text + */ + public function __() + { + $args = func_get_args(); + $expr = new Mage_Core_Model_Translate_Expr(array_shift($args), 'Mage_Catalog'); + array_unshift($args, $expr); + + return Mage::app()->getTranslator()->translate($args); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price/Abstract.php b/src/app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price/Abstract.php new file mode 100644 index 00000000..a3c03b1f --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Catalog/Product/Price/Abstract.php @@ -0,0 +1,63 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Enhanced block for product price display of all products in spite of bundles (got own block!). + * Contains the normal price.phtml rendering and additionally a configured static block. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +if ( + Mage::getConfig()->getModuleConfig('Sitewards_B2BProfessional')->is('active', 'true') + && version_compare (Mage::getConfig()->getModuleConfig('Sitewards_B2BProfessional')->version, '2.1.0', '<=' ) +) { + + abstract class FireGento_MageSetup_Block_Catalog_Product_Price_Abstract + extends Sitewards_B2BProfessional_Block_Price + { + + } + +} elseif (Mage::getConfig()->getModuleConfig('Belvg_CallForPrice')->is('active', 'true')) { + + abstract class FireGento_MageSetup_Block_Catalog_Product_Price_Abstract + extends Belvg_CallForPrice_Block_Catalog_Product_Price + { + + } + +} else { + + abstract class FireGento_MageSetup_Block_Catalog_Product_Price_Abstract + extends Mage_Catalog_Block_Product_Price + { + + } + +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Checkout/Agreements.php b/src/app/code/community/FireGento/MageSetup/Block/Checkout/Agreements.php new file mode 100644 index 00000000..60f78f2d --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Checkout/Agreements.php @@ -0,0 +1,68 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Block to display agreements on checkout. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.2 + */ +class FireGento_MageSetup_Block_Checkout_Agreements extends Mage_Checkout_Block_Agreements +{ + /** + * Filter by "Agreement Type" + * + * @return Mage_Checkout_Model_Resource_Agreement_Collection Agreements + */ + public function getAgreements() + { + $agreements = parent::getAgreements(); + if ($this->_getCustomerSession()->isLoggedIn()) { + $agreements->addFieldToFilter('agreement_type', array('in' => array( + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH, + ))); + } else { + $agreements->addFieldToFilter('agreement_type', array('in' => array( + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH, + ))); + } + return $agreements; + } + + /** + * Retrieve the customer session + * + * @return Mage_Customer_Model_Session Customer Session + */ + protected function _getCustomerSession() + { + return Mage::getSingleton('customer/session'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Checkout/Information.php b/src/app/code/community/FireGento/MageSetup/Block/Checkout/Information.php new file mode 100644 index 00000000..deae0323 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Checkout/Information.php @@ -0,0 +1,70 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Block to enable ip anonymization for german tracking. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Block_Checkout_Information extends Mage_Core_Block_Template +{ + /** + * @var string + */ + const XML_PATH_CHECKOUT_DISPLAY_ADDITIONAL_INFORMATION = 'checkout/options/display_additional_information'; + + /** + * @var string + */ + const XML_PATH_CHECKOUT_ADDITIONAL_INFORMATION = 'checkout/options/additional_information'; + + /** + * Retrieve the additional information for the review page + * + * @return string|bool Additional information + */ + public function getCheckoutAdditionalInformation() + { + $additional = ''; + + if (Mage::getStoreConfigFlag(self::XML_PATH_CHECKOUT_DISPLAY_ADDITIONAL_INFORMATION)) { + $additional = trim(Mage::getStoreConfig(self::XML_PATH_CHECKOUT_ADDITIONAL_INFORMATION)); + } + + // Dispatch Event in order to allow adding more additional information texts + $additionalObject = new Varien_Object(array('text' => $additional)); + Mage::dispatchEvent('checkout_additional_information', array('additional' => $additionalObject)); + $additional = $additionalObject->getText(); + + if (!$additional) { + return false; + } + + return $additional; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Customer/Account/Agreements.php b/src/app/code/community/FireGento/MageSetup/Block/Customer/Account/Agreements.php new file mode 100644 index 00000000..c9f7cf15 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Customer/Account/Agreements.php @@ -0,0 +1,51 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Block to display agreements on customer registration. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.2 + */ +class FireGento_MageSetup_Block_Customer_Account_Agreements extends Mage_Checkout_Block_Agreements +{ + /** + * Filter by "Agreement Type" + * + * @return Mage_Checkout_Model_Resource_Agreement_Collection Agreements + */ + public function getAgreements() + { + $agreements = parent::getAgreements(); + $agreements->addFieldToFilter('agreement_type', array('in' => array( + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH, + ))); + return $agreements; + } + +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Ga.php b/src/app/code/community/FireGento/MageSetup/Block/Ga.php new file mode 100644 index 00000000..a8d93dcc --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Ga.php @@ -0,0 +1,60 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Block to enable ip anonymization for german tracking. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Block_Ga extends Mage_GoogleAnalytics_Block_Ga +{ + const CONFIG_GOOGLE_ANALYTICS_IP_ANONYMIZATION = 'google/analytics/ip_anonymization'; + + /** + * Prepare and return block's html output + * + * @return string Google Analytics JS Tracking Code + */ + protected function _toHtml() + { + $html = parent::_toHtml(); + if (!Mage::getStoreConfigFlag( self::CONFIG_GOOGLE_ANALYTICS_IP_ANONYMIZATION )) { + return $html; + } + + $matches = array(); + $setAccountExpression = '/_gaq\.push\(\[\'_setAccount\', \'[a-zA-Z0-9-_]+\'\]\);\n/'; + $append = '_gaq.push([\'_gat._anonymizeIp\']);'; + + if (preg_match_all($setAccountExpression, $html, $matches) && count($matches) && count($matches[0])) { + $html = preg_replace($setAccountExpression, $matches[0][0] . $append . "\n", $html); + } + + return $html; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Imprint/Content.php b/src/app/code/community/FireGento/MageSetup/Block/Imprint/Content.php new file mode 100644 index 00000000..0379e6ac --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Imprint/Content.php @@ -0,0 +1,103 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Block to retrieve data from imprint config. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Block_Imprint_Content extends Mage_Core_Block_Template +{ + /** + * Constructor to set config store view. + */ + public function __construct() + { + $storeId = $this->getStoreId(); + $this->setData(Mage::getStoreConfig('general/imprint', $storeId)); + } + + /** + * Set StoreId to get impressum data for this store. + * + * @param int $storeId Store id. + */ + public function setStoreId($storeId) + { + $this->setData(Mage::getStoreConfig('general/imprint', $storeId)); + } + + /** + * Getting StoreId to get proper store related + * information in order comments. + * + * @return int|null Store Id + */ + protected function getStoreId() + { + $orderId = $this->getRequest()->getParam('order_id', 0); + if ($orderId > 0) { + return Mage::getSingleton('sales/order')->load($orderId)->getStoreId(); + } + + return null; + } + + /** + * Retrieve the setting "website". If parameter checkForProtocol is true, + * check if there is a valid protocol given, otherwise add http:// manually. + * + * @param bool $checkForProtocol Flag if website url should be checked for http(s) protocol + * @return string Website URL + */ + public function getWeb($checkForProtocol=false) + { + $web = $this->getData('web'); + if ($checkForProtocol && strlen(trim($web))) { + if (strpos($web, 'http://') === false + && strpos($web, 'https://') === false + ) { + $web = 'http://'.$web; + } + } + + return $web; + } + + /** + * Retrieve the specific country name by the selected country code + * + * @return string Country + */ + public function getCountry() + { + $countryCode = $this->getData('country'); + + return Mage::app()->getLocale()->getCountryTranslation($countryCode); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Block/Imprint/Field.php b/src/app/code/community/FireGento/MageSetup/Block/Imprint/Field.php new file mode 100644 index 00000000..39d75ca9 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Block/Imprint/Field.php @@ -0,0 +1,45 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Block to retrieve data from imprint config field. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Block_Imprint_Field extends FireGento_MageSetup_Block_Imprint_Content +{ + /** + * Render imprint field + * + * @return string Field value + */ + protected function _toHtml() + { + return $this->getData($this->getValue()); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Helper/Catalog/Product/Configuration.php b/src/app/code/community/FireGento/MageSetup/Helper/Catalog/Product/Configuration.php new file mode 100644 index 00000000..d89008d7 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Helper/Catalog/Product/Configuration.php @@ -0,0 +1,138 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.5 + */ +/** + * Changed product configuration to add product attributes on checkout + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.5 + */ +class FireGento_MageSetup_Helper_Catalog_Product_Configuration + extends Mage_Catalog_Helper_Product_Configuration +{ + /** + * @var array + */ + protected $_finished = array(); + + /** + * @var array + */ + protected $_products = array(); + + /** + * Merge Attributes + * + * @see parent::getCustomOptions() + * @param Mage_Catalog_Model_Product_Configuration_Item_Interface $item Quote item + * @return array Custom Options + */ + public function getCustomOptions(Mage_Catalog_Model_Product_Configuration_Item_Interface $item) + { + $optionsParent = parent::getCustomOptions($item); + $optionsSelf = $this->_getAttributes($item); + $options = array_merge($optionsSelf, $optionsParent); + + return $options; + } + + /** + * Get the product for the current quote item + * + * @param Mage_Catalog_Model_Product_Configuration_Item_Interface $item Quote item + * @return Mage_Catalog_Model_Product Product Model + */ + protected function _getProduct($item) + { + $productId = $item->getProduct()->getId(); + if (!array_key_exists($productId, $this->_products)) { + /* @var $product Mage_Catalog_Model_Product */ + $product = Mage::getModel('catalog/product') + ->setStoreId(Mage::app()->getStore()->getId()) + ->load($productId); + + $this->_products[$productId] = $product; + } + + return $this->_products[$productId]; + } + + /** + * Retreve the product attributes + * + * @param Mage_Catalog_Model_Product_Configuration_Item_Interface $item Quote item + * @return array Attributes + */ + protected function _getAttributes($item) + { + $itemId = $item->getId(); + if (!isset($this->_finished[$itemId])) { + $this->_finished[$itemId] = true; + $product = $this->_getProduct($item); + $attributes = $this->_getAdditionalData($product); + if (count($attributes) > 0) { + return $attributes; + } + } + + return array(); + } + + /** + * Retrieve the attributes which are visible on the checkout page + * + * @param Mage_Catalog_Model_Product $product Product Model + * @return array Addition data as array + */ + protected function _getAdditionalData(Mage_Catalog_Model_Product $product) + { + $data = array(); + + $attributes = $product->getAttributes(); + foreach ($attributes as $attribute) { + if ($attribute->getIsVisibleOnCheckout()) { + $value = $attribute->getFrontend()->getValue($product); + if (!$product->hasData($attribute->getAttributeCode()) || (string) $value == '') { + $value = ''; + } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) { + $value = Mage::app()->getStore()->convertPrice($value, true); + } + + if (is_string($value) && strlen($value)) { + $data[$attribute->getAttributeCode()] = array( + 'label' => $attribute->getStoreLabel(), + 'value' => $value, + 'print_value' => $value, + 'code' => $attribute->getAttributeCode() + ); + } + } + } + + return $data; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Helper/Checkout/Data.php b/src/app/code/community/FireGento/MageSetup/Helper/Checkout/Data.php new file mode 100644 index 00000000..e8277f7f --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Helper/Checkout/Data.php @@ -0,0 +1,90 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Rewrite to fetch required agreement ids. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Helper_Checkout_Data + extends Mage_Checkout_Helper_Data +{ + /** + * Avoid loss of translation + */ + function __construct() + { + $this->_moduleName = 'Mage_Checkout'; + } + + /** + * Get all required agreement ids + * + * @return array Agreement Ids + **/ + public function getRequiredAgreementIds() + { + if (is_null($this->_agreements)) { + if (!Mage::getStoreConfigFlag('checkout/options/enable_agreements')) { + $this->_agreements = array(); + } else { + $agreements = Mage::getModel('checkout/agreement')->getCollection() + ->addStoreFilter(Mage::app()->getStore()->getId()) + ->addFieldToFilter('is_active', 1) + ->addFieldToFilter('is_required', 1); // Only get Required Elements + + if ($this->_getCustomerSession()->isLoggedIn()) { + $agreements->addFieldToFilter('agreement_type', array('in' => array( + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH, + ))); + } else { + $agreements->addFieldToFilter('agreement_type', array('in' => array( + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CHECKOUT, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH, + ))); + } + + $this->_agreements = $agreements->getAllIds(); + } + } + + return $this->_agreements; + } + + /** + * Retrieve the customer session + * + * @return Mage_Customer_Model_Session Customer Session + */ + protected function _getCustomerSession() + { + return Mage::getSingleton('customer/session'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Helper/Data.php b/src/app/code/community/FireGento/MageSetup/Helper/Data.php new file mode 100644 index 00000000..26d9d52b --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Helper/Data.php @@ -0,0 +1,107 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Dummy data helper for translation issues. + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Helper_Data extends Mage_Core_Helper_Abstract +{ + // Add support for Magento < 1.7 + const XML_PATH_EU_COUNTRIES_LIST = 'general/country/eu_countries'; + + /** + * Generate URL to configured shipping cost page, or '' if none. + * + * @return string Shipping cost url + */ + public function getShippingCostUrl() + { + /** @var $cmsPage Mage_Cms_Model_Page */ + $cmsPage = Mage::getModel('cms/page') + ->setStoreId(Mage::app()->getStore()->getId()) + ->load(Mage::getStoreConfig('catalog/price/cms_page_shipping')); + + if (!$cmsPage->getId() || !$cmsPage->getIsActive()) { + return ''; + } + + return Mage::helper('cms/page')->getPageUrl($cmsPage->getId()); + } + + /** + * Get url of agreement view for checkout + * + * @param Mage_Checkout_Model_Agreement $agreement Agreement + * @return string URL for the given agreement + */ + public function getAgreementUrl(Mage_Checkout_Model_Agreement $agreement) + { + return Mage::getUrl('magesetup/frontend/agreements', array('id' => $agreement->getId())); + } + + /** + * Get available countries + * + * @return array All available countries + */ + public function getAvailableCountries() + { + $availableCountries = array(); + $config = Mage::getConfig()->getNode('global/magesetup/available_countries'); + if ($config) { + foreach (array_keys($config->asArray()) as $countryId) { + $availableCountries[$countryId] = Mage::app()->getLocale()->getCountryTranslation(strtoupper($countryId)); + } + } + asort($availableCountries); + return $availableCountries; + } + + /** + * Check whether specified country is in EU countries list + * + * @param string $countryCode + * @return bool + */ + public function isCountryInEU($countryCode) + { + return in_array(strtoupper($countryCode), $this->getEUCountries()); + } + + /** + * Get countries in the EU + * + * @return array + */ + public function getEUCountries() + { + return explode(',', Mage::getStoreConfig(self::XML_PATH_EU_COUNTRIES_LIST)); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Config.php b/src/app/code/community/FireGento/MageSetup/Model/Config.php new file mode 100644 index 00000000..08076be8 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Config.php @@ -0,0 +1,128 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Config class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +class FireGento_MageSetup_Model_Config extends Varien_Simplexml_Config +{ + const CACHE_ID = 'magesetup_config'; + const CACHE_TAG = 'magesetup_config'; + + /** + * @var string + */ + protected $_country = 'de'; + + /** + * Sets cache ID and cache tags and loads configuration + * + * @param string|Varien_Simplexml_Element $sourceData XML Source Data + */ + public function __construct($sourceData=null) + { + $this->setCacheId(self::CACHE_ID); + $this->setCacheTags(array(self::CACHE_TAG)); + parent::__construct($sourceData); + $this->_loadConfig(); + } + + /** + * Set the current country for the config + * + * @param string $country Country + * @return FireGento_MageSetup_Model_Config Config Model + */ + public function setCountry($country) + { + $this->_country = $country; + return $this; + } + + /** + * Merge default config with config from additional xml files + * + * @return FireGento_MageSetup_Model_Config Config Model + */ + protected function _loadConfig() + { + if (Mage::app()->useCache(self::CACHE_ID)) { + if ($this->loadCache()) { + return $this; + } + } + + if (!is_null(Mage::registry('setup_country'))) { + $this->setCountry(Mage::registry('setup_country')); + } + + $mergeConfig = Mage::getModel('core/config_base'); + $config = Mage::getConfig(); + + // Load additional config files + $this->_addConfigFile('cms.xml', $mergeConfig); + $this->_addConfigFile('email.xml', $mergeConfig); + $this->_addConfigFile('systemconfig.xml', $mergeConfig); + $this->_addConfigFile('agreement.xml', $mergeConfig); + $this->_addConfigFile('tax.xml', $mergeConfig); + + $this->setXml($config->getNode()); + + if (Mage::app()->useCache(self::CACHE_ID)) { + $this->saveCache(); + } + + return $this; + } + + /** + * Add a config file to the given merge config + * + * @param string $fileName File to load + * @param Mage_Core_Model_Config_Base $mergeConfig Global config for merging + */ + protected function _addConfigFile($fileName, $mergeConfig) + { + $config = Mage::getConfig(); + $configFile = $config->getModuleDir('etc', 'FireGento_MageSetup') . DS . $this->_country . DS . $fileName; + + // If the given file does not exist, use the default file + if (!file_exists($configFile)) { + $configFile = $config->getModuleDir('etc', 'FireGento_MageSetup') . DS . 'default' . DS . $fileName; + } + + // Load the given config file + if (file_exists($configFile)) { + if ($mergeConfig->loadFile($configFile)) { + $config->extend($mergeConfig, true); + } + } + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Newsletter/Observer.php b/src/app/code/community/FireGento/MageSetup/Model/Newsletter/Observer.php new file mode 100644 index 00000000..d3182d9f --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Newsletter/Observer.php @@ -0,0 +1,60 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Observer class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Model_Newsletter_Observer +{ + /** + * Saves the subscriber status change in a custom history + * after a subscriber was saved. + * + * @magentoEvent newsletter_subscriber_save_after + * @param Varien_Event_Observer $observer Observer + */ + public function saveSubscriberStatusHistory(Varien_Event_Observer $observer) + { + try { + /* @var $subscriber Mage_Newsletter_Model_Subscriber */ + $subscriber = $observer->getEvent()->getSubscriber(); + + /* @var $status FireGento_MageSetup_Model_Newsletter_Subscriber_Status */ + $status = Mage::getModel('magesetup/newsletter_subscriber_status'); + $status->setData('subscriber', $subscriber->getId()); + $status->setData('status', $subscriber->getData('subscriber_status')); + $status->setData('email', $subscriber->getData('subscriber_email')); + $status->setData('created_at', now()); + $status->save(); + } catch (Exception $e) { + Mage::logException($e); + } + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Newsletter/Subscriber/Status.php b/src/app/code/community/FireGento/MageSetup/Model/Newsletter/Subscriber/Status.php new file mode 100644 index 00000000..0467e1d8 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Newsletter/Subscriber/Status.php @@ -0,0 +1,44 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Subscriber Status Model + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Model_Newsletter_Subscriber_Status + extends Mage_Core_Model_Abstract +{ + /** + * Init resource model + */ + protected function _construct() + { + $this->_init('magesetup/newsletter_subscriber_status'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Observer.php b/src/app/code/community/FireGento/MageSetup/Model/Observer.php new file mode 100644 index 00000000..7db5aa95 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Observer.php @@ -0,0 +1,356 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Observer class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +class FireGento_MageSetup_Model_Observer +{ + /** + * Add "Visible on Checkout Review on Front-end" Option to Attribute Settings + * + * @magentoEvent adminhtml_catalog_product_attribute_edit_prepare_form + * + * @param Varien_Event_Observer $observer Observer + * @return FireGento_MageSetup_Model_Observer Observer + */ + public function addIsVisibleOnCheckoutOption(Varien_Event_Observer $observer) + { + $event = $observer->getEvent(); + $form = $event->getForm(); + + $fieldset = $form->getElement('front_fieldset'); + $source = Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray(); + $fieldset->addField( + 'is_visible_on_checkout', + 'select', + array( + 'name' => 'is_visible_on_checkout', + 'label' => Mage::helper('magesetup')->__('Visible in Checkout'), + 'title' => Mage::helper('magesetup')->__('Visible in Checkout'), + 'values' => $source, + ) + ); + + return $this; + } + + /** + * Filters all agreements + * + * Filters all agreements against the Magento template filter. This enables the Magento + * administrator define a cms static block as the content of the checkout agreements.. + * + * @magentoEvent core_block_abstract_to_html_before + * + * @param Varien_Event_Observer $observer Observer + * @return FireGento_MageSetup_Model_Observer Observer + */ + public function filterAgreements(Varien_Event_Observer $observer) + { + $block = $observer->getEvent()->getBlock(); + if ($block->getType() == 'checkout/agreements') { + if ($agreements = $block->getAgreements()) { + $collection = new Varien_Data_Collection(); + foreach ($agreements as $agreement) { + $agreement->setData('content', $this->_filterString($agreement->getData('content'))); + $agreement->setData('checkbox_text', $this->_filterString($agreement->getData('checkbox_text'))); + $collection->addItem($agreement); + } + $observer->getEvent()->getBlock()->setAgreements($collection); + } + } + + return $this; + } + + /** + * Calls the Magento template filter to transform {{block type="cms/block" block_id="xyz"}} + * into the specific html code + * + * @param string $string Agreement to filter + * @return string Processed String + */ + protected function _filterString($string) + { + $processor = Mage::getModel('cms/template_filter'); + $string = $processor->filter($string); + + return $string; + } + + /** + * Auto-Generates the meta information of a product. + * + * @magentoEvent catalog_product_save_before + * + * @param Varien_Event_Observer $observer Observer + * @return FireGento_MageSetup_Model_Observer Observer + */ + public function autogenerateMetaInformation(Varien_Event_Observer $observer) + { + /* @var $product Mage_Catalog_Model_Product */ + $product = $observer->getEvent()->getProduct(); + + if ($product->getData('meta_autogenerate') == 1) { + // Set Meta Title + $product->setMetaTitle($product->getName()); + + // Set Meta Keywords + $keywords = $this->_getCategoryKeywords($product); + if (!empty($keywords)) { + if (mb_strlen($keywords) > 255) { + $remainder = ''; + $keywords = Mage::helper('core/string')->truncate($keywords, 255, '', $remainder, false); + } + $product->setMetaKeyword($keywords); + } + + // Set Meta Description + $description = $product->getShortDescription(); + if (empty($description)) { + $description = $product->getDescription(); + } + if (empty($description)) { + $description = $keywords; + } + if (mb_strlen($description) > 255) { + $remainder = ''; + $description = Mage::helper('core/string')->truncate($description, 255, '...', $remainder, false); + } + $product->setMetaDescription($description); + } + + return $this; + } + + /** + * Get the categories of the current product + * + * @param Mage_Catalog_Model_Product $product Product + * @return array Categories + */ + protected function _getCategoryKeywords($product) + { + $categories = $product->getCategoryIds(); + $categoryArr = $this->_fetchCategoryNames($categories); + $keywords = $this->_buildKeywords($categoryArr); + + return $keywords; + } + + /** + * Fetches all category names via category path; adds first the assigned + * categories and second all categories via path. + * + * @param array $categories Category Ids + * @return array Categories + */ + protected function _fetchCategoryNames($categories) + { + $return = array( + 'assigned' => array(), + 'path' => array() + ); + + foreach ($categories as $categoryId) { + // Check if category was already added + if (array_key_exists($categoryId, $return['assigned']) + || array_key_exists($categoryId, $return['path']) + ) { + return; + } + + /* @var $category Mage_Catalog_Model_Category */ + $category = Mage::getModel('catalog/category')->load($categoryId); + $return['assigned'][$categoryId] = $category->getName(); + + // Fetch path ids and remove the first two (base and root category) + $path = $category->getPath(); + $pathIds = explode('/', $path); + array_shift($pathIds); + array_shift($pathIds); + + // Fetch the names from path categories + if (count($pathIds) > 0) { + foreach ($pathIds as $pathId) { + if (!array_key_exists($pathId, $return['assigned']) + && !array_key_exists($pathId, $return['path']) + ) { + /* @var $pathCategory Mage_Catalog_Model_Category */ + $pathCategory = Mage::getModel('catalog/category')->load($pathId); + $return['path'][$pathId] = $pathCategory->getName(); + } + } + } + } + + return $return; + } + + /** + * Processes the category array and generates a string + * + * @param array $categoryTypes Categories + * @return string Keywords + */ + protected function _buildKeywords($categoryTypes) + { + if (!$categoryTypes) { + return ''; + } + + $keywords = array(); + foreach ($categoryTypes as $categories) { + $keywords[] = implode(', ', $categories); + } + + return implode(', ', $keywords); + } + + /** + * Add "Required" and "Visible on Custom Creation" Option to Checkout Agreements + * + * @magentoEvent adminhtml_block_html_before + * + * @param Varien_Event_Observer $observer Observer + * @return FireGento_MageSetup_Model_Observer Observer + */ + public function addOptionsForAgreements(Varien_Event_Observer $observer) + { + $block = $observer->getEvent()->getBlock(); + if ($block instanceof Mage_Adminhtml_Block_Checkout_Agreement_Edit_Form) { + $helper = Mage::helper('magesetup'); + $form = $block->getForm(); + + $fieldset = $form->getElement('base_fieldset'); + $fieldset->addField('is_required', 'select', array( + 'label' => $helper->__('Required'), + 'title' => $helper->__('Required'), + 'note' => $helper->__('Display Checkbox on Frontend'), + 'name' => 'is_required', + 'required' => true, + 'options' => array( + '1' => $helper->__('Yes'), + '0' => $helper->__('No'), + ), + )); + + $fieldset->addField('agreement_type', 'select', array( + 'label' => $helper->__('Display on'), + 'title' => $helper->__('Display on'), + 'note' => $helper->__('Require Confirmation on Customer Registration and/or Checkout'), + 'name' => 'agreement_type', + 'required' => true, + 'options' => Mage::getSingleton('magesetup/source_agreementType')->getOptionArray(), + )); + + Mage::dispatchEvent('magesetup_adminhtml_checkout_agreement_edit_form', array( + 'form' => $form, + 'fieldset' => $fieldset, + )); + + $model = Mage::registry('checkout_agreement'); + $form->setValues($model->getData()); + $block->setForm($form); + } + + return $this; + } + + /** + * After updating the quantities of cart items, it might be needed to recalculate the shipping tax + * + * @magentoEvent checkout_cart_update_items_after + * + * @param Varien_Event_Observer $observer Observer + */ + public function recollectAfterQuoteItemUpdate(Varien_Event_Observer $observer) + { + $store = Mage::app()->getStore(); + if (Mage::getStoreConfig(FireGento_MageSetup_Model_Tax_Config::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store) + == FireGento_MageSetup_Model_Tax_Config::USE_TAX_DEPENDING_ON_PRODUCT_VALUES + ) { + Mage::getSingleton('checkout/session') + ->getQuote() + ->setTotalsCollectedFlag(false) + ->collectTotals(); + } + } + + /** + * Get required agreements on custom registration + * + * @return array Customer agreement ids + */ + protected function _getCustomerCreateAgreements() + { + $ids = Mage::getModel('checkout/agreement')->getCollection() + ->addStoreFilter(Mage::app()->getStore()->getId()) + ->addFieldToFilter('is_active', 1) + ->addFieldToFilter('agreement_type', array('in' => array( + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_CUSTOMER, + FireGento_MageSetup_Model_Source_AgreementType::AGREEMENT_TYPE_BOTH, + ))) // Only get Required Elements + ->getAllIds(); + + return $ids; + } + + /** + * Check if there are required agreements for the customer registration + * and validate them if applicable. + * + * @magentoEvent controller_action_predispatch_customer_account_createpost + * + * @param Varien_Event_Observer $observer Observer + */ + public function customerCreatePreDispatch(Varien_Event_Observer $observer) + { + $requiredAgreements = $this->_getCustomerCreateAgreements(); + $controller = $observer->getEvent()->getControllerAction(); + $postedAgreements = array_keys($controller->getRequest()->getPost('agreement', array())); + + if ($diff = array_diff($requiredAgreements, $postedAgreements)) { + $session = Mage::getSingleton('customer/session'); + $session->addException( + new Mage_Customer_Exception('Cannot create customer: agreements not confirmed'), + Mage::helper('magesetup')->__('Agreements not confirmed.') + ); + + $controller->getResponse()->setRedirect( Mage::getUrl('*/*/create', array('_secure' => true)) ); + $controller->setFlag( + $controller->getRequest()->getActionName(), + Mage_Core_Controller_Varien_Action::FLAG_NO_DISPATCH, + true + ); + } + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status.php b/src/app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status.php new file mode 100644 index 00000000..964ad517 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status.php @@ -0,0 +1,44 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Subscriber Status Resource Model + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status + extends Mage_Core_Model_Resource_Db_Abstract +{ + /** + * Init main table and id field name + */ + protected function _construct() + { + $this->_init('magesetup/newsletter_subscriber_status', 'id'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status/Collection.php b/src/app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status/Collection.php new file mode 100644 index 00000000..3f1debfa --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Resource/Newsletter/Subscriber/Status/Collection.php @@ -0,0 +1,44 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Subscriber Status Resource Collection Model + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection + extends Mage_Core_Model_Resource_Db_Collection_Abstract +{ + /** + * Initialize the model and resource for the collection + */ + public function _construct() + { + $this->_init('magesetup/newsletter_subscriber_status'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup.php b/src/app/code/community/FireGento/MageSetup/Model/Setup.php new file mode 100644 index 00000000..404d8c2c --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup.php @@ -0,0 +1,235 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.0 + */ +class FireGento_MageSetup_Model_Setup extends Mage_Core_Model_Abstract +{ + /** + * Setup MageSetup as if a user sends the adminhtml form + * See method _getDefaultParams for possible params + * + * @param array $params Setup params + * @param bool $notify Flag if admin notifications should be added + * @return FireGento_MageSetup_Model_Setup Setup Model + */ + public function setup($params = array(), $notify=false) + { + $defaultParams = $this->_getDefaultParams(); + + $params = array_merge($defaultParams, $params); + + Mage::register('setup_country', $params['country']); + + if ($params['systemconfig']) { + Mage::getSingleton('magesetup/setup_systemconfig')->setup(); + + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: System Config Settings have been updated.') + ); + } + } + + if ($params['cms']) { + if (!is_array($params['cms_locale'])) { + $params['cms_locale'] = array('default' => $params['cms_locale']); + } + Mage::getSingleton('magesetup/setup_cms')->setup($params['cms_locale']); + + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: CMS Blocks and Pages have been created.') + ); + } + } + + if ($params['agreements']) { + if (!is_array($params['cms_locale'])) { + $params['cms_locale'] = array('default' => $params['cms_locale']); + } + Mage::getSingleton('magesetup/setup_agreements')->setup($params['cms_locale']); + + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: Checkout Agreements have been created.') + ); + } + } + + if ($params['email']) { + if (!is_array($params['email_locale'])) { + $params['email_locale'] = array('default' => $params['email_locale']); + } + Mage::getSingleton('magesetup/setup_email')->setup($params['email_locale'], $params['overwrite_emails']); + + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: Email Templates have been created.') + ); + } + } + + if ($params['tax']) { + // Setup tax settings (rules, classes, ..) + Mage::getSingleton('magesetup/setup_tax')->setup(); + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: Tax Settings have been created.') + ); + } + + // Update product tax classes + $this->_updateProductTaxClasses($params); + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: Product Tax Classes have been updated.') + ); + } + + // Update customer tax classes + $this->_updateCustomerTaxClasses($params); + if ($notify) { + $this->_getAdminhtmlSession()->addSuccess( + $this->_getHelper()->__('MageSetup: Customer Tax Classes have been updated.') + ); + } + } + + // Set a config flag to indicate that the setup has been initialized and refresh config cache. + Mage::getModel('eav/entity_setup', 'core_setup')->setConfigData('magesetup/is_initialized', '1'); + Mage::app()->getCacheInstance()->cleanType('config'); + Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => 'config')); + + return $this; + } + + /** + * Get default parameters like they are in the backend form + * + * @return array Default setup params + */ + protected function _getDefaultParams() + { + $productTaxClassTargets = array(); + foreach (Mage::getSingleton('magesetup/source_tax_productTaxClass')->getAllOptions() as $option) { + $productTaxClassTargets[$option['value']] = 1; + } + + $customerTaxClassTargets = array(); + foreach (Mage::getSingleton('magesetup/source_tax_customerTaxClass')->getAllOptions() as $option) { + $customerTaxClassTargets[$option['value']] = 1; + } + + return array( + 'country' => 'de', + 'systemconfig' => true, + 'cms' => true, + 'cms_locale' => array('default' => 'de_DE'), + 'agreements' => true, + 'email' => true, + 'email_locale' => array('default' => 'de_DE'), + 'overwrite_emails' => false, + 'tax' => true, + 'product_tax_class_target' => $productTaxClassTargets, + 'customer_tax_class_target' => $customerTaxClassTargets, + ); + } + + /** + * Update the old product tax classes to the new tax class ids + * + * @param array $params Setup params + */ + protected function _updateProductTaxClasses($params) + { + $taxClasses = $params['product_tax_class_target']; + foreach ($taxClasses as $source => $target) { + if ($target = intval($target)) { + Mage::getSingleton('magesetup/setup_tax')->updateProductTaxClasses($source, $target); + } + } + + $this->_markIndicesOutdated(); + } + + /** + * Update the old product tax classes to the new tax class ids + * + * @param array $params Setup params + */ + protected function _updateCustomerTaxClasses($params) + { + $taxClasses = $params['customer_tax_class_target']; + foreach ($taxClasses as $source => $target) { + if ($target = intval($target)) { + Mage::getSingleton('magesetup/setup_tax')->updateCustomerTaxClasses($source, $target); + } + } + } + + /** + * Mark relevant indices as outdated after changing tax rates + */ + protected function _markIndicesOutdated() + { + // Indexes which need to be updated after setup + $indexes = array('catalog_product_price', 'catalog_product_flat', 'catalog_product_attribute'); + + $indices = Mage::getModel('index/process') + ->getCollection() + ->addFieldToFilter('indexer_code', array('in' => $indexes)); + + foreach ($indices as $index) { + $index->setStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX)->save(); + } + } + + /** + * Retrieve the helper class + * + * @return FireGento_MageSetup_Helper_Data Helper Class + */ + protected function _getHelper() + { + return Mage::helper('magesetup'); + } + + /** + * Retrieve the adminhtml session for setup notifications + * + * @return Mage_Adminhtml_Model_Session Admin Session + */ + protected function _getAdminhtmlSession() + { + return Mage::getSingleton('adminhtml/session'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup/Abstract.php b/src/app/code/community/FireGento/MageSetup/Model/Setup/Abstract.php new file mode 100644 index 00000000..96b4c782 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup/Abstract.php @@ -0,0 +1,163 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +class FireGento_MageSetup_Model_Setup_Abstract extends Mage_Core_Model_Abstract +{ + /** + * @var Mage_Eav_Model_Entity_Setup + */ + protected $_setup; + + /** + * @var Varien_Db_Adapter_Interface + */ + protected $_connection; + + /** + * Setup setup class and connection + */ + public function __construct() + { + $this->_setup = Mage::getModel('eav/entity_setup', 'core_setup'); + $this->_connection = $this->_setup->getConnection(); + } + + /** + * Get config.xml data + * + * @return Varien_Simplexml_Element Config data + */ + public function getConfigData() + { + return Mage::getSingleton('magesetup/config')->getNode('default/magesetup'); + } + + /** + * Saves a system config value for the given config path and the given store id + * + * @param string $configPath Config Path + * @param string $value Value + * @param int|null $storeId Store ID + */ + public function setConfigData($configPath, $value, $storeId = null) + { + $setup = $this->_getSetup(); + if (is_null($storeId)) { + $setup->setConfigData($configPath, $value); + } else { + $setup->setConfigData($configPath, $value, 'stores', $storeId); + } + } + + /** + * Get config.xml data + * + * @param string $node xml node + * @param string|null $childNode if set, child node of the first node + * @return array Config Node + */ + protected function _getConfigNode($node, $childNode = null) + { + $configData = $this->getConfigData()->asArray(); + if ($childNode) { + return $configData[$node][$childNode]; + } else { + return $configData[$node]; + } + } + + /** + * Get template content + * + * @param string $filename Template file name + * @return string Template content + */ + public function getTemplateContent($filename) + { + return @file_get_contents($filename); + } + + /** + * Load a model by attribute code + * + * @param Mage_Core_Model_Abstract $model Collection + * @param string $attributeCode Attribute code + * @param string $value Value + * @return Mage_Core_Model_Abstract + */ + protected function _loadExistingModel($model, $attributeCode, $value) + { + foreach ($model->getCollection() as $singleModel) { + if ($singleModel->getData($attributeCode) == $value) { + $model->load($singleModel->getId()); + + return $model; + } + } + + return $model; + } + + /** + * Retrieve the database connection + * + * @return Varien_Db_Adapter_Interface Database connection + */ + protected function _getConnection() + { + return $this->_connection; + } + + /** + * Retrieve the Magento setup model class + * + * @return Mage_Eav_Model_Entity_Setup Setup Model + */ + protected function _getSetup() + { + return $this->_setup; + } + + /** + * Get setup country ID + * + * @return string + */ + public function getCountryId() + { + if (!$this->_getData('country_id')) { + $this->setData('country_id', Mage::registry('setup_country')); + } + return $this->_getData('country_id'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup/Agreements.php b/src/app/code/community/FireGento/MageSetup/Model/Setup/Agreements.php new file mode 100644 index 00000000..cfe959b4 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup/Agreements.php @@ -0,0 +1,141 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class for Checkout Agreements + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.5.0 + */ +class FireGento_MageSetup_Model_Setup_Agreements extends FireGento_MageSetup_Model_Setup_Abstract +{ + /** + * Setup Checkout Agreements + * + * @param array $locale Locale options + */ + public function setup($locale = array('default' => 'de_DE')) + { + foreach ($locale as $storeId => $localeCode) { + + if (!$localeCode) { + if (sizeof($locale) == 1) { + continue; + } + $localeCode = $locale['default']; + } + + if ($storeId == 'default') { + if (sizeof($locale) > 1) { + continue; + } + $storeId = null; + } + + foreach ($this->_getConfigAgreements() as $name => $data) { + if ($data['execute'] == 1) { + $this->_createAgreement($data, $localeCode, false, $storeId); + } + } + } + + // Set config value to true + $setup = Mage::getModel('eav/entity_setup', 'core_setup'); + $setup->setConfigData('checkout/options/enable_agreements', '1'); + } + + /** + * Collect data and create Agreement + * + * @param array $agreementData Cms page data + * @param string $locale Locale + * @param boolean $override Override cms page if it exists + * @param int|null $storeId Store Id + * @return void + */ + protected function _createAgreement($agreementData, $locale, $override=true, $storeId = null) + { + if (!is_array($agreementData)) { + return; + } + + $filename = Mage::getBaseDir('locale') . DS . $locale . DS . 'template' . DS . $agreementData['filename']; + if (!file_exists($filename)) { + return; + } + + $templateContent = $this->getTemplateContent($filename); + + // Find name + $name = ''; + if (preg_match('//u', $templateContent, $matches)) { + $name = $matches[1]; + $templateContent = str_replace($matches[0], '', $templateContent); + } + + // Find checkbox_text + $checkboxText = ''; + if (preg_match('//u', $templateContent, $matches)) { + $checkboxText = $matches[1]; + $templateContent = str_replace($matches[0], '', $templateContent); + } + + // Remove comment lines + $templateContent = preg_replace('#\{\*.*\*\}#suU', '', $templateContent); + + $agreementData = array( + 'name' => $name, + 'content' => $templateContent, + 'checkbox_text' => $checkboxText, + 'is_active' => $agreementData['is_active'], + 'is_html' => $agreementData['is_html'], + 'is_required' => $agreementData['is_required'], + 'agreement_type' => $agreementData['agreement_type'], + 'stores' => $storeId ? $storeId : 0, + ); + + /* @var $agreement Mage_Checkout_Model_Agreement */ + $agreement = Mage::getModel('checkout/agreement')->setStoreId($storeId)->load($agreementData['name'], 'name'); + if (is_array($agreement->getStores()) && !in_array(intval($storeId), $agreement->getStores())) { + $agreement = Mage::getModel('checkout/agreement'); + } + + if (!(int) $agreement->getId() || $override) { + $agreement->setData($agreementData)->save(); + } + } + + /** + * Get pages/default from config file + * + * @return array Config agreements + */ + protected function _getConfigAgreements() + { + return $this->_getConfigNode('agreements', 'default'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup/Cms.php b/src/app/code/community/FireGento/MageSetup/Model/Setup/Cms.php new file mode 100644 index 00000000..583930a2 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup/Cms.php @@ -0,0 +1,325 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class for CMS pages and blocks + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.5.0 + */ +class FireGento_MageSetup_Model_Setup_Cms extends FireGento_MageSetup_Model_Setup_Abstract +{ + /** + * @var array + */ + protected $_footerLinks = array(); + + /** + * Setup Pages, Blocks and especially Footer Block + * + * @param array $locale Locale options + */ + public function setup($locale = array('default' => 'de_DE')) + { + foreach ($locale as $storeId => $localeCode) { + + if (!$localeCode) { + continue; + } + + if ($storeId == 'default') { + $storeId = null; + } + + // execute pages + foreach ($this->_getConfigPages($locale) as $name => $data) { + if ($data['execute'] == 1) { + $this->_createCmsPage($data, $localeCode, true, $storeId); + } + } + + // execute blocks + foreach ($this->_getConfigBlocks($locale) as $name => $data) { + if ($data['execute'] == 1) { + if ($name == 'footerlinks') { + $this->_updateFooterLinksBlock($data, $storeId); + } else { + $this->_createCmsBlock($data, $localeCode, true, $storeId); + } + } + } + } + } + + /** + * Get pages/default from config file + * + * @return array Config pages + */ + protected function _getConfigPages() + { + return $this->_getConfigNode('pages', 'default'); + } + + /** + * Get blocks/default from config file + * + * @return array Config blocks + */ + protected function _getConfigBlocks() + { + return $this->_getConfigNode('blocks', 'default'); + } + + /** + * Get footer_links/default from config file + * + * @param int|null $storeId Store ID + * @return array Footer Links + */ + protected function _getFooterLinks($storeId) + { + if (!$storeId) { + $storeId = 'default'; + } + if (!isset($this->_footerLinks[$storeId])) { + return array(); + } + return $this->_footerLinks[$storeId]; + } + + /** + * Collect data and create CMS page + * + * @param array $pageData Cms page data + * @param string $locale Locale + * @param boolean $override Override email template if set + * @param int|null $storeId Store ID + * @return void + */ + protected function _createCmsPage($pageData, $locale, $override = true, $storeId = null) + { + if (!is_array($pageData)) { + return; + } + + $data = array( + 'stores' => $storeId ? $storeId : 0, + 'is_active' => 1, + ); + + $filename = Mage::getBaseDir('locale') . DS . $locale . DS . 'template' . DS . $pageData['filename']; + if (!file_exists($filename)) { + return; + } + + $templateContent = $this->getTemplateContent($filename); + + if (preg_match('//u', $templateContent, $matches)) { + $data['title'] = $matches[1]; + $templateContent = str_replace($matches[0], '', $templateContent); + } + + if (preg_match('//us', $templateContent, $matches)) { + $data['identifier'] = $matches[1]; + $templateContent = str_replace($matches[0], '', $templateContent); + } + + if (preg_match('//s', $templateContent, $matches)) { + $data['root_template'] = $matches[1]; + $templateContent = str_replace($matches[0], '', $templateContent); + } + + /** + * Remove comment lines + */ + $templateContent = preg_replace('#\{\*.*\*\}#suU', '', $templateContent); + + $data['content'] = $templateContent; + + $page = Mage::getModel('cms/page')->setStoreId($storeId)->load($data['identifier']); + if (is_array($page->getStoreId()) && !in_array(intval($storeId), $page->getStoreId())) { + $page = Mage::getModel('cms/page'); + } else { + $data['page_id'] = $page->getId(); + } + + if (!(int) $page->getId() || $override) { + $page->setData($data)->save(); + } + + if (!$storeId) { + $storeId = 'default'; + } + + if ($pageData['footerlink'] == 1) { + $this->_footerLinks[$storeId][] = array( + 'title' => $data['title'], + 'target' => $data['identifier'], + ); + } + + if (isset($pageData['config_option'])) { + $this->setConfigData($pageData['config_option'], $data['identifier'], $storeId); + } + } + + /** + * Collect data and create CMS block + * + * @param array $blockData Cms block data + * @param string $locale Locale + * @param boolean $override Override email template if set + * @param int|null $storeId Store ID + * @return void + */ + protected function _createCmsBlock($blockData, $locale, $override = true, $storeId = null) + { + $block = Mage::getModel('cms/block')->setStoreId($storeId)->load($blockData['identifier']); + if (is_array($block->getStores()) && !in_array(intval($storeId), $block->getStores())) { + $block = Mage::getModel('cms/block'); + } + + $filename = Mage::getBaseDir('locale') . DS . $locale . DS . 'template' . DS . $blockData['filename']; + if (!file_exists($filename)) { + return; + } + + $templateContent = $this->getTemplateContent($filename); + + // Find title + if (preg_match('//u', $templateContent, $matches)) { + $blockData['title'] = $matches[1]; + $templateContent = str_replace($matches[0], '', $templateContent); + } + + // Remove comment lines + $templateContent = preg_replace('#\{\*.*\*\}#suU', '', $templateContent); + + if (!$block->getId() || $override) { + $blockData['content'] = $templateContent; + $blockData['stores'] = $storeId ? $storeId : 0; + $blockData['is_active'] = '1'; + $blockData['block_id'] = $block->getId(); + + $block->setData($blockData)->save(); + } + } + + /** + * Generate footer_links block from config data + * + * @param int|null $storeId Store ID + * @return string Footer Links Content + */ + protected function _createFooterLinksContent($storeId) + { + $footerLinksHtml = '
    '; + $footerLinksCounter = 0; + + foreach ($this->_getFooterLinks($storeId) as $data) { + $footerLinksCounter++; + $title = $data['title']; + $target = $data['target']; + $class = ''; + if ($footerLinksCounter == count($this->_getFooterLinks($storeId))) { + $class = 'last'; + } + $footerLinksHtml .= '
  • '; + $footerLinksHtml .= '' . $title . '
  • '; + } + + $footerLinksHtml .= '
'; + + return $footerLinksHtml; + } + + /** + * Update footer_links cms block + * + * @param array $blockData Cms block data + * @param int|null $storeId Store ID + */ + protected function _updateFooterLinksBlock($blockData, $storeId = null) + { + /** @var $block Mage_Cms_Model_Block */ + if (is_null($storeId)) { + $block = $this->_getDefaultBlock('footer_links'); + } else { + $block = Mage::getModel('cms/block')->setStoreId($storeId)->load('footer_links'); + } + + if (is_array($block->getStores()) && !in_array(intval($storeId), $block->getStores())) { + $block = Mage::getModel('cms/block'); + } + + if ($block->getId()) { + + /** @var $backupBlock Mage_Cms_Model_Block */ + $backupBlock = Mage::getModel('cms/block')->load('footer_links_backup'); + if (!$backupBlock->getId()) { + + // create copy of original block + $data = array(); + $data['block_id'] = $block->getId(); + $data['identifier'] = 'footer_links_backup'; + + $block->setData($data)->save(); + + /** @var $block Mage_Cms_Model_Block */ + $block = Mage::getModel('cms/block'); + } + } + + $data = array( + 'title' => 'Footer Links', + 'identifier' => 'footer_links', + 'content' => $this->_createFooterLinksContent($storeId), + 'stores' => $storeId ? $storeId : 0, + 'is_active' => '1', + ); + + if ($storeId) { + $data['stores'] = array($storeId); + } + + $block->addData($data)->save(); + } + + /** + * Retrieve the default block for the given identifier + * + * @param string $identifier Block Identifier + * @return Mage_Cms_Model_Block Block Model + */ + protected function _getDefaultBlock($identifier) + { + return Mage::getResourceModel('cms/block_collection') + ->addFieldToFilter('identifier', $identifier) + ->addStoreFilter(0)->getFirstItem(); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup/Email.php b/src/app/code/community/FireGento/MageSetup/Model/Setup/Email.php new file mode 100644 index 00000000..e0e73385 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup/Email.php @@ -0,0 +1,218 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class for transaction emails + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.5.0 + */ +class FireGento_MageSetup_Model_Setup_Email extends FireGento_MageSetup_Model_Setup_Abstract +{ + /** + * @var array + */ + protected $_localeTemplatePath = array(); + + /** + * Setup Transaction Emails + * + * @param array $locale Locale options + * @param bool $overwrite Flag if locale options should override existing templates + */ + public function setup($locale = array('default' => 'de_DE'), $overwrite = false) + { + foreach ($locale as $storeId => $localeCode) { + + if (!$localeCode) { + continue; + } + + if ($storeId == 'default') { + $storeId = null; + } + + // execute emails + foreach ($this->_getConfigEmails($localeCode) as $data) { + + if ($data['execute'] == 1) { + + // Change override param from false to true to override existing templates for testing + $this->_createEmail($data, $localeCode, $overwrite, $storeId); + } + } + } + } + + /** + * Get email_footers/default from config file + * + * @return array Config email footers + */ + protected function _getConfigEmailFooters() + { + return $this->_getConfigNode('email_footers', 'default'); + } + + /** + * Get emails/default from config file + * + * @return array Config emails + */ + protected function _getConfigEmails() + { + return $this->_getConfigNode('emails', 'default'); + } + + /** + * Create transactional email template + * + * @param array $emailData Template data + * @param string $locale Locale + * @param boolean $override Override email template if set + * @param int|null $storeId Store ID + * @return void + */ + protected function _createEmail($emailData, $locale, $override = true, $storeId = null) + { + $templateCode = $emailData['template_code'] . ' (' . $locale . ')'; + $template = Mage::getModel('core/email_template') + ->loadByCode($templateCode); + + if (!$template->getId() || $override) { + + $localeEmailPath = $this->_getLocaleEmailPath($locale); + + $template + ->setTemplateCode($templateCode) + ->setTemplateType($emailData['template_type']) + ->setModifiedAt(Mage::getSingleton('core/date')->gmtDate()); + + // Filter areas from template file + $templateText = $this->getTemplateContent($localeEmailPath . $emailData['template_file']); + + if (!$templateText) { + return; // file not found: return silently + } + + if (preg_match('//u', $templateText, $matches)) { + $template->setTemplateSubject($matches[1]); + $templateText = str_replace($matches[0], '', $templateText); + } + + if (preg_match('//us', $templateText, $matches)) { + $templateText = str_replace($matches[0], '', $templateText); + } + + if (preg_match('//s', $templateText, $matches)) { + $template->setTemplateStyles($matches[1]); + $templateText = str_replace($matches[0], '', $templateText); + } + + // Remove comment lines + $templateText = preg_replace('#\{\*.*\*\}#suU', '', $templateText); + + $footerBlocks = $this->_getFooterBlocks($emailData); + $templateText = $this->_addFooterBlocks($templateText, $footerBlocks); + + $template + ->setTemplateText($templateText) + ->save(); + } + + $this->setConfigData($emailData['config_data_path'], $template->getId(), $storeId); + } + + /** + * Retrieve email template path for given locale + * + * @param string $locale Locale + * @return string Locale Template Path + */ + protected function _getLocaleEmailPath($locale) + { + if (!isset($this->_localeTemplatePath[$locale])) { + $_localeTemplatePath = Mage::getBaseDir() . DS . 'app' . DS . 'locale' . DS . $locale . DS . 'template' . DS . 'email' . DS; + $this->_localeTemplatePath[$locale] = $_localeTemplatePath; + if (!is_dir($this->_localeTemplatePath[$locale])) { + Mage::throwException( + Mage::helper('magesetup')->__( + 'Directory "%s" not found. Locale not installed?', + $this->_localeTemplatePath[$locale] + ) + ); + } + } + + return $this->_localeTemplatePath[$locale]; + } + + /** + * Add configured blocks before the second last tag + * + * @param string $templateText the content of the template + * @param array $blocks all blocks that should be inserted before penultimate + * @return string the content of the template with the block before penultimate + */ + protected function _addFooterBlocks($templateText, array $blocks = array()) + { + $origTemplateText = $templateText; + $lastPos = strripos($templateText, ''); + $part = substr($templateText, 0, $lastPos); + $penultimatePos = strripos($part, ''); + $templateText = substr($templateText, 0, $penultimatePos); + foreach ($blocks as $block) { + $templateText .= $block; + } + $templateText .= substr($origTemplateText, $penultimatePos); + + return $templateText; + } + + /** + * Get HTML blocks which should be appended to the emails + * + * @param array $emailData Email data + * @return array Footer blocks + */ + protected function _getFooterBlocks($emailData) + { + $configFooters = $this->_getConfigEmailFooters(); + $blocks = array(); + if ($emailData['add_footer'] == 1) { + $blocks[] = $configFooters['footer']; + } + if ($emailData['add_business_terms'] == 1) { + $blocks[] = $configFooters['business_terms']; + } + if ($emailData['add_revocation'] == 1) { + $blocks[] = $configFooters['revocation']; + } + + return $blocks; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup/Systemconfig.php b/src/app/code/community/FireGento/MageSetup/Model/Setup/Systemconfig.php new file mode 100644 index 00000000..b5d48faf --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup/Systemconfig.php @@ -0,0 +1,64 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class for Tax Settings + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.5.0 + */ +class FireGento_MageSetup_Model_Setup_Systemconfig extends FireGento_MageSetup_Model_Setup_Abstract +{ + /** + * Setup Tax setting + */ + public function setup() + { + $this->_updateConfigData(); + } + + /** + * Update configuration settings + */ + protected function _updateConfigData() + { + $setup = $this->_getSetup(); + foreach ($this->_getConfigSystemConfig() as $key => $value) { + $setup->setConfigData(str_replace('__', '/', $key), $value); + } + } + + /** + * Get tax calculations from config file + * + * @return array Config System Config + */ + protected function _getConfigSystemConfig() + { + return $this->_getConfigNode('system_config', 'default'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Setup/Tax.php b/src/app/code/community/FireGento/MageSetup/Model/Setup/Tax.php new file mode 100644 index 00000000..047b8bb0 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Setup/Tax.php @@ -0,0 +1,373 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.2.0 + */ +/** + * Setup class for Tax Settings + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.5.0 + */ +class FireGento_MageSetup_Model_Setup_Tax extends FireGento_MageSetup_Model_Setup_Abstract +{ + /** + * @var Mage_Eav_Model_Entity_Setup + */ + protected $_setup; + + /** + * @var Varien_Db_Adapter_Interface + */ + protected $_connection; + + /** + * Setup setup class and connection + */ + public function __construct() + { + $this->_setup = Mage::getModel('eav/entity_setup', 'core_setup'); + $this->_connection = $this->_setup->getConnection(); + } + + /** + * Setup Tax setting + * + * @return void + */ + public function setup() + { + $canTruncate = true; + + if ($canTruncate) { + $this->_truncateTable('tax/tax_class'); + $this->_truncateTable('tax/tax_calculation_rule'); + $this->_truncateTable('tax/tax_calculation_rate'); + $this->_truncateTable('tax/tax_calculation_rate_title'); + $this->_truncateTable('tax/tax_calculation'); + } + + // Tax classes + $taxClasses = array(); + foreach ($this->_getConfigTaxClasses() as $identifier => $data) { + if ($data['execute'] == 1) { + unset($data['default']); + $taxClasses[$identifier] = $this->_createTaxClass($data); + } + } + + + // Tax Rates + $taxRates = array(); + foreach ($this->_getConfigTaxCalcRates() as $identifier => $data) { + $taxRates[$identifier] = array(); + + if ($data['execute'] == 1) { + foreach ($this->_getCountries() as $country) { + $data['tax_country_id'] = $country; + $data['code'] = $country . ' - ' . $data['label']; + $taxRates[$identifier][] = $this->_createTaxCalcRate($data); + } + } + } + + // Tax rules + foreach ($this->_getConfigTaxCalculations() as $calculation) { + $data = $calculation->asCanonicalArray(); + if ($data['execute'] == 1) { + $rule = Mage::getModel('tax/calculation_rule'); + $rule->setData($data); + foreach ($calculation->attributes() as $attribute => $values) { + switch ($attribute) { + case 'tax_rate': + if (isset($taxRates[(string) $values])) { + $rule->setTaxRate($taxRates[(string) $values]); + } + break; + case 'tax_customer_class': + case 'tax_product_class': + $classes = array(); + foreach (explode(',', (string) $values) as $value) { + if (isset($taxClasses[$value])) { + $classes[] = $taxClasses[$value]; + } + } + $rule->setData($attribute, $classes); + break; + } + } + $rule->save(); + } + } + + // modify config data + $this->_updateConfigData(); + } + + /** + * Get countries for tax rate calculations + * + * If the country is in the EU, all EU countries + * are returned. If not, the array only contains the + * country ID of the configuration setup country + * + * @return array + */ + protected function _getCountries() + { + if (Mage::helper('magesetup')->isCountryInEU($this->getCountryId())) { + return Mage::helper('magesetup')->getEUCountries(); + } + return array(strtoupper($this->getCountryId())); + } + + /** + * Get tax classes from config file + * + * @return array + */ + protected function _getConfigTaxClasses() + { + return $this->_getConfigNode('tax_classes', 'default'); + } + + /** + * Collect data and create tax class + * + * @param array $taxClassData tax class data + * @return int ID of the last inserted item + */ + protected function _createTaxClass($taxClassData) + { + $this->_insertIntoTable('tax/tax_class', $taxClassData); + return $this->_lastInsertId($this->_getTable('tax/tax_class')); + } + + /** + * Get tax calculation rules from config file + * + * @return array + */ + protected function _getConfigTaxCalcRules() + { + return $this->_getConfigNode('tax_calculation_rules', 'default'); + } + + /** + * Get tax calculation rates from config file + * + * @return array + */ + public function _getConfigTaxCalcRates() + { + return $this->_getConfigNode('tax_calculation_rates', 'default'); + } + + /** + * Collect data and create tax calculation rates + * + * @param array $taxCalcRateData tax class data + * @return int ID of the created tax calculation rate + */ + protected function _createTaxCalcRate($taxCalcRateData) + { + // look up label + $label = ''; + if (isset($taxCalcRateData['label'])) { + + $label = $taxCalcRateData['label']; + unset($taxCalcRateData['label']); + } + + // base tax rate db entry + $calculationRateTable = $this->_getTable('tax/tax_calculation_rate'); + $this->_insertIntoTable($calculationRateTable, $taxCalcRateData); + $rateId = $this->_lastInsertId($calculationRateTable); + + // add labels to all store views + if ($label) { + foreach (Mage::app()->getStores() as $storeId => $store) { + $bind = array( + 'tax_calculation_rate_id' => $rateId, + 'store_id' => $storeId, + 'value' => $label, + ); + $this->_insertIntoTable('tax/tax_calculation_rate_title', $bind); + } + } + + return $rateId; + } + + /** + * Get tax calculations from config file + * + * @return Varien_Simplexml_Element + */ + public function _getConfigTaxCalculations() + { + $configData = $this->getConfigData(); + return $configData->xpath('//tax_calculation_rules/default/*'); + } + + /** + * Update configuration settings + * + * @return void + */ + protected function _updateConfigData() + { + $setup = $this->_getSetup(); + foreach ($this->_getConfigTaxConfig() as $key => $value) { + $setup->setConfigData(str_replace('__', '/', $key), $value); + } + } + + /** + * Get tax calculations from config file + * + * @return array + */ + protected function _getConfigTaxConfig() + { + return $this->_getConfigNode('tax_config', 'default'); + } + + /** + * Update the tax class of all products with specified tax class id + * + * @param int $source source tax class id + * @param int $target target tax class id + */ + public function updateProductTaxClasses($source, $target) + { + if (!Mage::getModel('tax/class')->load(intval($target))->getId()) { + return; + } + + $productCollection = Mage::getModel('catalog/product') + ->getCollection() + ->addAttributeToFilter('tax_class_id', intval($source)); + + foreach ($productCollection as $product) { + + /** @var $product Mage_Catalog_Model_Product */ + $product->setTaxClassId(intval($target)); + $product->getResource()->saveAttribute($product, 'tax_class_id'); + } + } + + /** + * Update the tax class of all customer groups with specified tax class id + * + * @param int $source source tax class id + * @param int $target target tax class id + */ + public function updateCustomerTaxClasses($source, $target) + { + if (!Mage::getModel('tax/class')->load(intval($target))->getId()) { + return; + } + + $customerGroupCollection = Mage::getModel('customer/group') + ->getCollection() + ->addFieldToFilter('tax_class_id', intval($source)); + + foreach ($customerGroupCollection as $customerGroup) { + + /** @var $customerGroup Mage_Customer_Model_Group */ + $customerGroup->setTaxClassId(intval($target)); + $customerGroup->save(); + } + } + + /** + * Truncate a database table + * + * DELETE is used, in order to prevent problems with + * foreign key checks. + * + * @param string $table + * @return void + */ + protected function _truncateTable($table) + { + $tableName = $this->_getTable($table); + $this->_getConnection()->delete($tableName); + } + + /** + * Insert a line into a database table + * + * @param string $table + * @param array $data + * @return void + */ + protected function _insertIntoTable($table, $data) + { + unset($data['execute']); + $tableName = $this->_getTable($table); + $this->_getConnection()->insert($tableName, $data); + } + + /** + * @return Varien_Db_Adapter_Pdo_Mysql + */ + protected function _getConnection() + { + return $this->_connection; + } + + /** + * @return Mage_Eav_Model_Entity_Setup + */ + protected function _getSetup() + { + return $this->_setup; + } + + /** + * Get table name from table alias + * + * @param string $tableAlias + * @return string + */ + protected function _getTable($tableAlias) + { + return $this->_getSetup()->getTable($tableAlias); + } + + /** + * Get last insert ID + * + * @param string $table table alias + * @return int + */ + protected function _lastInsertId($table) + { + $tableName = $this->_getTable($table); + return $this->_getConnection()->lastInsertId($tableName); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/AgreementType.php b/src/app/code/community/FireGento/MageSetup/Model/Source/AgreementType.php new file mode 100644 index 00000000..c0f59fb3 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/AgreementType.php @@ -0,0 +1,80 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Source model for attribute "agreement_type" + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.2 + */ +class FireGento_MageSetup_Model_Source_AgreementType +{ + const AGREEMENT_TYPE_CHECKOUT = 0; + const AGREEMENT_TYPE_CUSTOMER = 1; + const AGREEMENT_TYPE_BOTH = 2; + const AGREEMENT_TYPE_NOWHERE = 3; + + /** + * Options getter + * + * @return array Agreement types as option array + */ + public function toOptionArray() + { + $helper = Mage::helper('magesetup'); + return array( + array( + 'value' => self::AGREEMENT_TYPE_CHECKOUT, + 'label' => $helper->__('On checkout (Magento Default)') + ), + array( + 'value' => self::AGREEMENT_TYPE_CUSTOMER, + 'label' => $helper->__('On customer registration (or on checkout, if customer not registered before)') + ), + array( + 'value' => self::AGREEMENT_TYPE_BOTH, + 'label' => $helper->__('On customer registration and on checkout') + ), + array( + 'value' => self::AGREEMENT_TYPE_NOWHERE, + 'label' => $helper->__('Nowhere') + ), + ); + } + + /** + * @return array Agreement types as option hash + */ + public function getOptionArray() + { + $options = array(); + foreach ($this->toOptionArray() as $option) { + $options[$option['value']] = $option['label']; + } + return $options; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Cms/Block.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Cms/Block.php new file mode 100644 index 00000000..2ed344e6 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Cms/Block.php @@ -0,0 +1,84 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * CMS Source model for configuration dropdown of CMS static blocks + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Model_Source_Cms_Block + extends Mage_Eav_Model_Entity_Attribute_Source_Abstract +{ + /** + * @var array $_options cached options + */ + protected $_options; + + /** + * Return option array + * + * @return array Blocks as option array + */ + public function toOptionArray() + { + if (!$this->_options) { + /** @var $blocks Mage_Cms_Model_Resource_Block_Collection */ + $blocks = Mage::getModel('cms/block')->getCollection() + ->addFieldToFilter('is_active', 1) + ->setOrder('identifier', 'ASC'); + + $options = array(); + + foreach ($blocks as $block) { + /** @var $block Mage_Cms_Model_Block */ + $options[$block->getIdentifier()] = $block->getIdentifier(); + } + + foreach ($options as $identifier) { + $this->_options[] = array( + 'value' => $identifier, + 'label' => $identifier, + ); + } + } + + array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('magesetup')->__('No Block'))); + + return $this->_options; + } + + /** + * Get all options as array + * + * @return array Blocks as option array + */ + public function getAllOptions() + { + return $this->toOptionArray(); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Cms/Page.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Cms/Page.php new file mode 100644 index 00000000..b79ad7d9 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Cms/Page.php @@ -0,0 +1,84 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * CMS Source model for configuration dropdown of CMS pages + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +class FireGento_MageSetup_Model_Source_Cms_Page + extends Mage_Eav_Model_Entity_Attribute_Source_Abstract +{ + /** + * @var array $_options cached options + */ + protected $_options; + + /** + * Return option array + * + * @return array Pages as option array + */ + public function toOptionArray() + { + if (!$this->_options) { + /** @var $pages Mage_Cms_Model_Resource_Page_Collection */ + $pages = Mage::getModel('cms/page')->getCollection() + ->addFieldToFilter('is_active', 1) + ->setOrder('identifier', 'ASC'); + + $options = array(); + + foreach ($pages as $page) { + /** @var $page Mage_Cms_Model_Page */ + $options[$page->getIdentifier()] = $page->getIdentifier(); + } + + foreach ($options as $identifier) { + $this->_options[] = array( + 'value' => $identifier, + 'label' => $identifier, + ); + } + } + + array_unshift($this->_options, array('value' => '', 'label' => Mage::helper('magesetup')->__('No Page'))); + + return $this->_options; + } + + /** + * Get all options as array + * + * @return array Pages as option array + */ + public function getAllOptions() + { + return $this->toOptionArray(); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/CustomerTaxClass.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/CustomerTaxClass.php new file mode 100644 index 00000000..a9935870 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/CustomerTaxClass.php @@ -0,0 +1,63 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Tax Source model for existing customer tax classes + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +class FireGento_MageSetup_Model_Source_Tax_CustomerTaxClass extends Mage_Tax_Model_Class_Source_Customer +{ + /** + * Retrieve all product tax classes as array + * + * @param bool $withEmpty Flag if an empty option should be prepended to the option array + * @return array Product tax class option array + */ + public function getAllOptions($withEmpty = false) + { + $options = parent::getAllOptions($withEmpty); + foreach ($options as $optionKey => $option) { + if (intval($option['value']) <= 0) { + continue; + } + + /* @var $customerGroupCollection Mage_Customer_Model_Resource_Group_Collection */ + $customerGroupCollection = Mage::getModel('customer/group') + ->getCollection() + ->addFieldToFilter('tax_class_id', $option['value']) + ->setPageSize(1); + + if (!$customerGroupCollection->getSize()) { + unset($options[$optionKey]); + } + } + + return $options; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/DynamicType.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/DynamicType.php new file mode 100644 index 00000000..5c7edaf0 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/DynamicType.php @@ -0,0 +1,59 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.0 + */ +/** + * CMS Source model for configuration dropdown of CMS pages + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.0 + */ +class FireGento_MageSetup_Model_Source_Tax_DynamicType +{ + /** + * Options getter + * + * @return array Dynamic types as option array + */ + public function toOptionArray() + { + $helper = Mage::helper('magesetup'); + return array( + array( + 'value' => 0, + 'label' => $helper->__('No dynamic shipping tax caluclation') + ), + array( + 'value' => FireGento_MageSetup_Model_Tax_Config::USE_HIGHTES_TAX_ON_PRODUCTS, + 'label' => $helper->__('Use the highest product tax') + ), + array( + 'value' => FireGento_MageSetup_Model_Tax_Config::USE_TAX_DEPENDING_ON_PRODUCT_VALUES, + 'label' => $helper->__('Use the tax rate of products that make up the biggest amount') + ), + ); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/NewCustomerTaxClass.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/NewCustomerTaxClass.php new file mode 100644 index 00000000..31916f17 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/NewCustomerTaxClass.php @@ -0,0 +1,139 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Tax Source model for new customer tax classes, possibly not created yet + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +class FireGento_MageSetup_Model_Source_Tax_NewCustomerTaxClass + extends Mage_Eav_Model_Entity_Attribute_Source_Abstract +{ + /** + * @var array $_options cached options + */ + protected $_options = array(); + + /** + * @var string + */ + protected $_defaultOption = 0; + + /** + * Return option array + * + * @return array New product tax classes as option array + */ + public function toOptionArray() + { + if (!sizeof($this->_options)) { + $taxClasses = $this->_getConfigNode('tax_classes', 'default'); + foreach ($taxClasses as $identifier => $taxClass) { + if ($taxClass['class_type'] != 'CUSTOMER' + || $taxClass['execute'] != 1) { + continue; + } + + $this->_options[] = array( + 'value' => $taxClass['class_id'], + 'label' => $taxClass['class_name'], + ); + } + array_unshift($this->_options, array('value' => '', 'label' =>'')); + } + + return $this->_options; + } + + /** + * Get all options as array + * + * @return array New product tax classes as option array + */ + public function getAllOptions() + { + return $this->toOptionArray(); + } + + /** + * Get default tax class + * + * @return int Default tax class option + */ + public function getDefaultOption() + { + if (!$this->_defaultOption) { + $taxClasses = $this->_getConfigNode('tax_classes', 'default'); + foreach ($taxClasses as $identifier => $taxClass) { + if ($taxClass['class_type'] != 'CUSTOMER' + || $taxClass['execute'] != 1) { + continue; + } + + if ($taxClass['default'] == 1) { + $this->_defaultOption = $taxClass['class_id']; + break; + } + } + } + + return $this->_defaultOption; + + } + + /** + * Get config.xml data + * + * @param string $node xml node + * @param string|null $childNode if set, child node of the first node + * @return array Config node + */ + protected function _getConfigNode($node, $childNode = null) + { + $configData = $this->getConfigData(); + if ($childNode) { + return $configData[$node][$childNode]; + } else { + return $configData[$node]; + } + } + + /** + * Get config.xml data + * + * @return array Config data + */ + public function getConfigData() + { + $configData = Mage::getSingleton('magesetup/config') + ->getNode('default/magesetup') + ->asArray(); + + return $configData; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/NewProductTaxClass.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/NewProductTaxClass.php new file mode 100644 index 00000000..0df5d7e8 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/NewProductTaxClass.php @@ -0,0 +1,141 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Tax Source model for new product tax classes, possibly not created yet + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.5.0 + */ +class FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass + extends Mage_Eav_Model_Entity_Attribute_Source_Abstract +{ + /** + * @var array $_options cached options + */ + protected $_options = array(); + + /** + * @var string + */ + protected $_defaultOption = 0; + + /** + * Return option array + * + * @return array New product tax classes as option array + */ + public function toOptionArray() + { + if (!sizeof($this->_options)) { + $taxClasses = $this->_getConfigNode('tax_classes', 'default'); + foreach ($taxClasses as $identifier => $taxClass) { + if ($taxClass['class_type'] != 'PRODUCT' + || $taxClass['execute'] != 1 + || strpos($identifier, 'shipping') === 0) { + continue; + } + + $this->_options[] = array( + 'value' => $taxClass['class_id'], + 'label' => $taxClass['class_name'], + ); + } + array_unshift($this->_options, array('value' => '', 'label' =>'')); + } + + return $this->_options; + } + + /** + * Get all options as array + * + * @return array New product tax classes as option array + */ + public function getAllOptions() + { + return $this->toOptionArray(); + } + + /** + * Get default tax class + * + * @return int Default tax class option + */ + public function getDefaultOption() + { + if (!$this->_defaultOption) { + $taxClasses = $this->_getConfigNode('tax_classes', 'default'); + foreach ($taxClasses as $identifier => $taxClass) { + if ($taxClass['class_type'] != 'PRODUCT' + || $taxClass['execute'] != 1 + || strpos($identifier, 'shipping') === 0) { + continue; + } + + if ($taxClass['default'] == 1) { + $this->_defaultOption = $taxClass['class_id']; + break; + } + } + } + + return $this->_defaultOption; + + } + + /** + * Get config.xml data + * + * @param string $node xml node + * @param string|null $childNode if set, child node of the first node + * @return array Config node + */ + protected function _getConfigNode($node, $childNode = null) + { + $configData = $this->getConfigData(); + if ($childNode) { + return $configData[$node][$childNode]; + } else { + return $configData[$node]; + } + } + + /** + * Get config.xml data + * + * @return array Config data + */ + public function getConfigData() + { + $configData = Mage::getSingleton('magesetup/config') + ->getNode('default/magesetup') + ->asArray(); + + return $configData; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/ProductTaxClass.php b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/ProductTaxClass.php new file mode 100644 index 00000000..c2e9b3d7 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Source/Tax/ProductTaxClass.php @@ -0,0 +1,63 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Tax Source model for product tax classes + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.0 + */ +class FireGento_MageSetup_Model_Source_Tax_ProductTaxClass extends Mage_Tax_Model_Class_Source_Product +{ + /** + * Retrieve all product tax classes as array + * + * @param bool $withEmpty Flag if an empty option should be prepended to the option array + * @return array Product tax class option array + */ + public function getAllOptions($withEmpty = false) + { + $options = parent::getAllOptions($withEmpty); + foreach ($options as $optionKey => $option) { + if (intval($option['value']) <= 0) { + continue; + } + + /* @var $productCollection Mage_Catalog_Model_Resource_Product_Collection */ + $productCollection = Mage::getModel('catalog/product') + ->getCollection() + ->addAttributeToFilter('tax_class_id', $option['value']) + ->setPageSize(1); + + if (!$productCollection->getSize()) { + unset($options[$optionKey]); + } + } + + return $options; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Model/Tax/Config.php b/src/app/code/community/FireGento/MageSetup/Model/Tax/Config.php new file mode 100644 index 00000000..69b50eaa --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Model/Tax/Config.php @@ -0,0 +1,153 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Tax config model with new shipping tax class calculation + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.6.2 + */ +class FireGento_MageSetup_Model_Tax_Config extends Mage_Tax_Model_Config +{ + const XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX = 'tax/classes/shipping_tax_on_product_tax'; + const USE_HIGHTES_TAX_ON_PRODUCTS = 1; + const USE_TAX_DEPENDING_ON_PRODUCT_VALUES = 2; + + /** + * Get tax class id specified for shipping tax estimation based on highest product + * tax rate of the products in the current customer quote. + * + * @param Mage_Core_Model_Store $store Store Model + * @return int Shipping tax class id + */ + public function getShippingTaxClass($store = null) + { + /** @var Mage_Adminhtml_Model_Session_Quote */ + $adminhtmlSession = Mage::getSingleton('adminhtml/session_quote'); + + /* @var $session Mage_Checkout_Model_Session */ + $session = Mage::getSingleton('checkout/session'); + + if (Mage::app()->getStore()->getId() == Mage_Core_Model_App::ADMIN_STORE_ID && $adminhtmlSession->getQuote()) { + $quoteItems = $adminhtmlSession->getQuote()->getAllItems(); + } elseif ($session->hasQuote()) { + $quoteItems = $session->getQuote()->getAllItems(); + } else { + // This case happens if the store currency is switched by the customer. + // The quote isn't yet set on the session model at the time collectTotals() + // by the session because of the changed currency, which in turn ends up in this + // method, which again triggers collectTotals() by getting the quote from the + // session model, ending in a recursion loop. + $quoteItems = array(); + } + $taxClassIds = array(); + $highestTaxRate = null; + + // Check if feature is enabled and if there are products in cart + if (!Mage::getStoreConfigFlag(self::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store) + || count($quoteItems) == 0 + ) { + $taxClassId = (int) Mage::getStoreConfig(self::CONFIG_XML_PATH_SHIPPING_TAX_CLASS, $store); + + return $taxClassId; + } + + // Fetch the tax rates from the quote items + $taxClassSums = array(); + foreach ($quoteItems as $item) { + + /** @var $item Mage_Sales_Model_Quote_Item */ + if ($item->getParentItem()) { + continue; + } + + if (Mage::getStoreConfig(self::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store) + == self::USE_TAX_DEPENDING_ON_PRODUCT_VALUES + ) { + // sum up all product values grouped by the tax class id + if (isset($taxClassSums[$item->getTaxClassId()])) { + $taxClassSums[$item->getTaxClassId()] += $item->getPriceInclTax() * $item->getQty(); + } else { + $taxClassSums[$item->getTaxClassId()] = $item->getPriceInclTax() * $item->getQty(); + } + } else { + $taxPercent = $this->_loadTaxCalculationRate($item); + if (is_float($taxPercent) && !in_array($taxPercent, $taxClassIds)) { + $taxClassIds[$taxPercent] = $item->getTaxClassId(); + } + } + } + + if (Mage::getStoreConfig(self::XML_PATH_SHIPPING_TAX_ON_PRODUCT_TAX, $store) + == self::USE_TAX_DEPENDING_ON_PRODUCT_VALUES + ) { + // get the highest value of the sums and set the taxClass + arsort($taxClassSums); + if (count($taxClassSums)) { + $highestTaxRate = key($taxClassSums); + } + } else { + // Get the highest tax rate + ksort($taxClassIds); + if (count($taxClassIds)) { + $highestTaxRate = array_pop($taxClassIds); + } + } + + if (!$highestTaxRate || is_null($highestTaxRate)) { + $taxClassId = 0; + } else { + $taxClassId = $highestTaxRate; + } + + return (int) $taxClassId; + } + + /** + * Gets tax percents for current sales quote item + * + * @param Mage_Sales_Model_Quote_Item $item Quote Item + * @return string Tax percent for the given quote item + */ + protected function _loadTaxCalculationRate(Mage_Sales_Model_Quote_Item $item) + { + $taxPercent = $item->getTaxPercent(); + if (is_null($taxPercent)) { + $taxClassId = $item->getTaxClassId(); + if ($taxClassId) { + $request = Mage::getSingleton('tax/calculation')->getRateRequest(null, null, null, null); + $taxPercent = Mage::getSingleton('tax/calculation')->getRate($request->setProductClassId($taxClassId)); + } + } + + if ($taxPercent) { + return $taxPercent; + } + + return 0; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Test/Config/Main.php b/src/app/code/community/FireGento/MageSetup/Test/Config/Main.php new file mode 100644 index 00000000..a5b15fc4 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Config/Main.php @@ -0,0 +1,131 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +/** + * PHPUnit Test Class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +class FireGento_MageSetup_Test_Config_Main extends EcomDev_PHPUnit_Test_Case_Config +{ + /** + * Check it the installed module has the correct module version + */ + public function testModuleConfig() + { + $this->assertModuleVersionGreaterThanOrEquals($this->expected('module')->getVersion()); + $this->assertModuleCodePool($this->expected('module')->getCodePool()); + } + + /** + * Check that GermanSetup is not active + */ + public function testGermanSetupNotActive() + { + $this->assertModuleIsNotActive('', 'FireGento_GermanSetup'); + } + + /** + * Check if the block aliases are returning the correct class names + */ + public function testBlockAliases() + { + $this->assertBlockAlias('magesetup/adminhtml_newsletter_subscriber_status_grid', 'FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status_Grid'); + $this->assertBlockAlias('magesetup/adminhtml_newsletter_subscriber_status', 'FireGento_MageSetup_Block_Adminhtml_Newsletter_Subscriber_Status'); + $this->assertBlockAlias('magesetup/adminhtml_magesetup', 'FireGento_MageSetup_Block_Adminhtml_Magesetup'); + $this->assertBlockAlias('magesetup/adminhtml_notifications', 'FireGento_MageSetup_Block_Adminhtml_Notifications'); + + $this->assertBlockAlias('magesetup/bundle_catalog_product_price_abstract', 'FireGento_MageSetup_Block_Bundle_Catalog_Product_Price_Abstract'); + $this->assertBlockAlias('magesetup/bundle_catalog_product_price', 'FireGento_MageSetup_Block_Bundle_Catalog_Product_Price'); + + $this->assertBlockAlias('magesetup/catalog_product_price_abstract', 'FireGento_MageSetup_Block_Catalog_Product_Price_Abstract'); + $this->assertBlockAlias('magesetup/catalog_product_price', 'FireGento_MageSetup_Block_Catalog_Product_Price'); + + $this->assertBlockAlias('magesetup/checkout_agreements', 'FireGento_MageSetup_Block_Checkout_Agreements'); + $this->assertBlockAlias('magesetup/checkout_information', 'FireGento_MageSetup_Block_Checkout_Information'); + + $this->assertBlockAlias('magesetup/customer_account_agreements', 'FireGento_MageSetup_Block_Customer_Account_Agreements'); + + $this->assertBlockAlias('magesetup/imprint_content', 'FireGento_MageSetup_Block_Imprint_Content'); + $this->assertBlockAlias('magesetup/imprint_field', 'FireGento_MageSetup_Block_Imprint_Field'); + } + + /** + * Check if the helper aliases are returning the correct class names + */ + public function testHelperAliases() + { + $this->assertHelperAlias('magesetup', 'FireGento_MageSetup_Helper_Data'); + $this->assertHelperAlias('magesetup/catalog_product_configuration', 'FireGento_MageSetup_Helper_Catalog_Product_Configuration'); + $this->assertHelperAlias('magesetup/checkout_data', 'FireGento_MageSetup_Helper_Checkout_Data'); + } + + /** + * Check if the helper aliases are returning the correct class names + */ + public function testModelAliases() + { + $this->assertModelAlias('magesetup/newsletter_subscriber_status', 'FireGento_MageSetup_Model_Newsletter_Subscriber_Status'); + $this->assertResourceModelAlias('magesetup/newsletter_subscriber_status', 'FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status'); + $this->assertResourceModelAlias('magesetup/newsletter_subscriber_status_collection', 'FireGento_MageSetup_Model_Resource_Newsletter_Subscriber_Status_Collection'); + + $this->assertModelAlias('magesetup/newsletter_observer', 'FireGento_MageSetup_Model_Newsletter_Observer'); + + $this->assertModelAlias('magesetup/setup_abstract', 'FireGento_MageSetup_Model_Setup_Abstract'); + $this->assertModelAlias('magesetup/setup_agreements', 'FireGento_MageSetup_Model_Setup_Agreements'); + $this->assertModelAlias('magesetup/setup_cms', 'FireGento_MageSetup_Model_Setup_Cms'); + $this->assertModelAlias('magesetup/setup_email', 'FireGento_MageSetup_Model_Setup_Email'); + $this->assertModelAlias('magesetup/setup_systemconfig', 'FireGento_MageSetup_Model_Setup_Systemconfig'); + $this->assertModelAlias('magesetup/setup_tax', 'FireGento_MageSetup_Model_Setup_Tax'); + + $this->assertModelAlias('magesetup/source_cms_block', 'FireGento_MageSetup_Model_Source_Cms_Block'); + $this->assertModelAlias('magesetup/source_cms_page', 'FireGento_MageSetup_Model_Source_Cms_Page'); + $this->assertModelAlias('magesetup/source_tax_dynamicType', 'FireGento_MageSetup_Model_Source_Tax_DynamicType'); + $this->assertModelAlias('magesetup/source_tax_newProductTaxClass', 'FireGento_MageSetup_Model_Source_Tax_NewProductTaxClass'); + $this->assertModelAlias('magesetup/source_tax_productTaxClass', 'FireGento_MageSetup_Model_Source_Tax_ProductTaxClass'); + $this->assertModelAlias('magesetup/source_agreementType', 'FireGento_MageSetup_Model_Source_AgreementType'); + + + $this->assertModelAlias('magesetup/config', 'FireGento_MageSetup_Model_Config'); + $this->assertModelAlias('magesetup/observer', 'FireGento_MageSetup_Model_Observer'); + $this->assertModelAlias('magesetup/setup', 'FireGento_MageSetup_Model_Setup'); + } + + /** + * Check if the rewrites are returning the correct class names + */ + public function testRewrites() + { + $this->assertBlockAlias('googleanalytics/ga', 'FireGento_MageSetup_Block_Ga'); + + $this->assertHelperAlias('catalog/product_configuration', 'FireGento_MageSetup_Helper_Catalog_Product_Configuration'); + $this->assertHelperAlias('checkout/data', 'FireGento_MageSetup_Helper_Checkout_Data'); + + $this->assertModelAlias('tax/config', 'FireGento_MageSetup_Model_Tax_Config'); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Test/Config/Main/expectations/testModuleConfig.yaml b/src/app/code/community/FireGento/MageSetup/Test/Config/Main/expectations/testModuleConfig.yaml new file mode 100644 index 00000000..77a2d756 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Config/Main/expectations/testModuleConfig.yaml @@ -0,0 +1,3 @@ +module: + version: 2.0.0 + code_pool: community diff --git a/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType.php b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType.php new file mode 100644 index 00000000..4efab1cf --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType.php @@ -0,0 +1,77 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +/** + * PHPUnit Test Class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +class FireGento_MageSetup_Test_Model_Source_AgreementType extends EcomDev_PHPUnit_Test_Case +{ + /** + * @var FireGento_MageSetup_Model_Source_AgreementType + */ + protected $_model; + + /** + * Sets up the model class + */ + protected function setUp() + { + parent::setUp(); + $this->_model = Mage::getModel('magesetup/source_agreementType'); + } + + /** + * Test the toOptionArray method + */ + public function testToOptionArray() + { + $actual = $this->_model->toOptionArray(); + $expected = $this->expected('result')->getData(); + + $this->assertEquals( + $expected, + $actual + ); + } + + /** + * Test the getOptionArray method + */ + public function testGetOptionArray() + { + $actual = $this->_model->getOptionArray(); + $expected = $this->expected('result')->getData(); + + $this->assertEquals( + $expected, + $actual + ); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testGetOptionArray.yaml b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testGetOptionArray.yaml new file mode 100644 index 00000000..5970fc7d --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testGetOptionArray.yaml @@ -0,0 +1,5 @@ +result: + 0: "On checkout (Magento Default)" + 1: "On customer registration (or on checkout, if customer not registered before)" + 2: "On customer registration and on checkout" + 3: "Nowhere" diff --git a/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testToOptionArray.yaml b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testToOptionArray.yaml new file mode 100644 index 00000000..fa3d523b --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/AgreementType/expectations/testToOptionArray.yaml @@ -0,0 +1,13 @@ +result: + - + value: 0 + label: "On checkout (Magento Default)" + - + value: 1 + label: "On customer registration (or on checkout, if customer not registered before)" + - + value: 2 + label: "On customer registration and on checkout" + - + value: 3 + label: "Nowhere" diff --git a/src/app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType.php b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType.php new file mode 100644 index 00000000..709a96ae --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType.php @@ -0,0 +1,63 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +/** + * PHPUnit Test Class + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.0 + */ +class FireGento_MageSetup_Test_Model_Source_Tax_DynamicType extends EcomDev_PHPUnit_Test_Case +{ + /** + * @var FireGento_MageSetup_Model_Source_Tax_DynamicType + */ + protected $_model; + + /** + * Sets up the model class + */ + protected function setUp() + { + parent::setUp(); + $this->_model = Mage::getModel('magesetup/source_tax_dynamicType'); + } + + /** + * Test the toOptionArray method + */ + public function testToOptionArray() + { + $actual = $this->_model->toOptionArray(); + $expected = $this->expected('result')->getData(); + + $this->assertEquals( + $expected, + $actual + ); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType/expectations/testToOptionArray.yaml b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType/expectations/testToOptionArray.yaml new file mode 100644 index 00000000..df2f7386 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/Model/Source/Tax/DynamicType/expectations/testToOptionArray.yaml @@ -0,0 +1,10 @@ +result: + - + value: 0 + label: "No dynamic shipping tax caluclation" + - + value: 1 + label: "Use the highest product tax" + - + value: 2 + label: "Use the tax rate of products that make up the biggest amount" diff --git a/src/app/code/community/FireGento/MageSetup/Test/features/product_list.feature b/src/app/code/community/FireGento/MageSetup/Test/features/product_list.feature new file mode 100644 index 00000000..5ee6fc98 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/features/product_list.feature @@ -0,0 +1,25 @@ +Feature: Product List + As a website visitor + I want to see products in a category + So that I can see which products are offered and which tax rate they have + + Scenario: Tax Rate without shipping cost link + Given I set config value for "catalog/price/cms_page_shipping" to "" in "default" scope + And the cache is clean + When I am on "/furniture.html" + Then I should not see text "Inkl. 19% MwSt., zzgl. Versandkosten" + Then I should see text "Inkl. 19% MwSt." + + Scenario: Tax Rate with not included shipping cost link + Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope + And I set config value for "catalog/price/including_shipping_costs" to "0" in "default" scope + And the cache is clean + When I am on "/furniture.html" + Then I should see text "Inkl. 19% MwSt., zzgl. Versandkosten" + + Scenario: Tax Rate with included shipping cost link + Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope + And I set config value for "catalog/price/including_shipping_costs" to "1" in "default" scope + And the cache is clean + When I am on "/furniture.html" + Then I should see text "Inkl. 19% MwSt., inkl. Versandkosten" diff --git a/src/app/code/community/FireGento/MageSetup/Test/features/product_view.feature b/src/app/code/community/FireGento/MageSetup/Test/features/product_view.feature new file mode 100644 index 00000000..b162dd38 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/Test/features/product_view.feature @@ -0,0 +1,25 @@ +Feature: Product List + As a website visitor + I want to see a product detail page + So that I can see what the product costs and which tax rate the product has + + Scenario: Tax Rate without shipping cost link + Given I set config value for "catalog/price/cms_page_shipping" to "" in "default" scope + And the cache is clean + When I am on "/ottoman.html" + Then I should not see text "Inkl. 19% MwSt., zzgl. Versandkosten" + Then I should see text "Inkl. 19% MwSt." + + Scenario: Tax Rate with not included shipping cost link + Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope + And I set config value for "catalog/price/including_shipping_costs" to "0" in "default" scope + And the cache is clean + When I am on "/ottoman.html" + Then I should see text "Inkl. 19% MwSt., zzgl. Versandkosten" + + Scenario: Tax Rate with included shipping cost link + Given I set config value for "catalog/price/cms_page_shipping" to "lieferung" in "default" scope + And I set config value for "catalog/price/including_shipping_costs" to "1" in "default" scope + And the cache is clean + When I am on "/ottoman.html" + Then I should see text "Inkl. 19% MwSt., inkl. Versandkosten" diff --git a/src/app/code/community/FireGento/MageSetup/controllers/Adminhtml/NewsletterController.php b/src/app/code/community/FireGento/MageSetup/controllers/Adminhtml/NewsletterController.php new file mode 100644 index 00000000..ed6d51cc --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/controllers/Adminhtml/NewsletterController.php @@ -0,0 +1,80 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +/** + * Newsletter Subscriber Status Adminhtml Controller + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.1.4 + */ +class FireGento_MageSetup_Adminhtml_NewsletterController extends Mage_Adminhtml_Controller_Action +{ + /** + * Displays the newsletter subscribers status history + */ + public function indexAction() + { + $this->_title($this->__('Newsletter')) + ->_title($this->__('Newsletter Subscribers Status History')); + + if ($this->getRequest()->getParam('ajax')) { + $this->_forward('grid'); + + return; + } + + $this->loadLayout(); + + $this->_setActiveMenu('newsletter/subscriber_status'); + + $this->_addBreadcrumb( + Mage::helper('newsletter')->__('Newsletter'), + Mage::helper('newsletter')->__('Newsletter') + ); + $this->_addBreadcrumb( + Mage::helper('newsletter')->__('Subscribers'), + Mage::helper('newsletter')->__('Subscribers Status History') + ); + + $this->_addContent( + $this->getLayout()->createBlock('magesetup/adminhtml_newsletter_subscriber_status', 'subscriber_status') + ); + + $this->renderLayout(); + } + + /** + * Retrieve the new grid layout via ajax requests + */ + public function gridAction() + { + $this->loadLayout(); + $this->getResponse()->setBody( + $this->getLayout()->createBlock('magesetup/adminhtml_newsletter_subscriber_status_grid')->toHtml() + ); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/controllers/FrontendController.php b/src/app/code/community/FireGento/MageSetup/controllers/FrontendController.php new file mode 100644 index 00000000..3c1c9f2d --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/controllers/FrontendController.php @@ -0,0 +1,64 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Adminhtml Controller for dislaying a form for some actions + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +class FireGento_MageSetup_FrontendController extends Mage_Core_Controller_Front_Action +{ + /** + * Shows the given agreement + */ + public function agreementsAction() + { + $this->loadLayout(); + if ($id = $this->getRequest()->getParam('id')) { + /* @var $processor Mage_Cms_Model_Template_Filter */ + $processor = Mage::getModel('cms/template_filter'); + + /* @var $agreement Mage_Checkout_Model_Agreement */ + $agreement = Mage::getModel('checkout/agreement')->load($id); + + $headBlock = $this->getLayout()->getBlock('head'); + $headBlock->setTitle( + $headBlock->escapeHtml($processor->filter($agreement->getCheckboxText())) + ); + + $agreementText = $agreement->getContent(); + if (!$agreement->getIsHtml()) { + $agreementText = $headBlock->escapeHtml($agreementText); + } + + $agreeBlock = $this->getLayout()->getBlock('agreement'); + $agreeBlock->setText($processor->filter($agreementText)); + } + $this->renderLayout(); + } +} diff --git a/src/app/code/community/FireGento/MageSetup/controllers/MagesetupController.php b/src/app/code/community/FireGento/MageSetup/controllers/MagesetupController.php new file mode 100644 index 00000000..d1431184 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/controllers/MagesetupController.php @@ -0,0 +1,127 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Adminhtml Controller for dislaying a form for some actions + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +class FireGento_MageSetup_MagesetupController extends Mage_Adminhtml_Controller_Action +{ + /** + * Basic action: setup form + */ + public function indexAction() + { + $helper = Mage::helper('magesetup'); + + if (!Mage::getStoreConfig('magesetup/is_initialized')) { + Mage::getSingleton('adminhtml/session')->addNotice( + $this->__('If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.') + ); + } + + $this->_title($helper->__('System')) + ->_title($helper->__('MageSetup')) + ->_title($helper->__('Setup')); + + $this->loadLayout() + ->_setActiveMenu('system/magesetup/setup') + ->_addBreadcrumb($helper->__('MageSetup'), $helper->__('MageSetup')) + ->renderLayout(); + } + + /** + * Basic action: setup save action + * Will be called from form, rendered in indexAction + */ + public function saveAction() + { + if ($this->getRequest()->isPost()) { + $params = $this->_getParams(); + + try { + /* @var $setupModel FireGento_MageSetup_Model_Setup */ + $setupModel = Mage::getModel('magesetup/setup'); + $setupModel->setup($params, true); + } catch (Exception $e) { + $this->_getSession()->addError($e->getMessage()); + Mage::logException($e); + } + } + + $this->_redirect('*/*'); + } + + /** + * Recommended extensions + */ + public function extensionsAction() + { + $helper = Mage::helper('magesetup'); + + $this->_title($helper->__('System')) + ->_title($helper->__('MageSetup')) + ->_title($helper->__('Recommended Extensions')); + + $this->loadLayout() + ->_setActiveMenu('system/magesetup/extensions') + ->_addBreadcrumb($helper->__('MageSetup'), $helper->__('MageSetup')) + ->renderLayout(); + } + + /** + * @return array + */ + protected function _getParams() + { + $params = $this->getRequest()->getParams(); + + if (!isset($params['systemconfig'])) { + $params['systemconfig'] = false; + } + + if (!isset($params['tax'])) { + $params['tax'] = false; + } + + if (!isset($params['cms'])) { + $params['cms'] = false; + } + + if (!isset($params['agreements'])) { + $params['agreements'] = false; + } + + if (!isset($params['email'])) { + $params['email'] = false; + } + + return $params; + } +} diff --git a/src/app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.0-2.0.1.php b/src/app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.0-2.0.1.php new file mode 100644 index 00000000..b4ebe336 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.0-2.0.1.php @@ -0,0 +1,178 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.1 + */ + +/** + * Data upgrade script; Adds Italian region support to Magento ecosystem + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.1 + */ + +/* @var $this Mage_Eav_Model_Entity_Setup */ +$installer = $this; + +$data = array( + 'AG' => 'Agrigento', + 'AL' => 'Alessandria', + 'AN' => 'Ancona', + 'AO' => 'Aosta', + 'AR' => 'Arezzo', + 'AP' => 'Ascoli Piceno', + 'AT' => 'Asti', + 'AV' => 'Avellino', + 'BA' => 'Bari', + 'BT' => 'Barletta-Andria-Trani', + 'BL' => 'Belluno', + 'BN' => 'Benevento', + 'BG' => 'Bergamo', + 'BI' => 'Biella', + 'BO' => 'Bologna', + 'BZ' => 'Bolzano', + 'BS' => 'Brescia', + 'BR' => 'Brindisi', + 'CA' => 'Cagliari', + 'CL' => 'Caltanissetta', + 'CB' => 'Campobasso', + 'CI' => 'Carbonia-Iglesias', + 'CE' => 'Caserta', + 'CT' => 'Catania', + 'CZ' => 'Catanzaro', + 'CH' => 'Chieti', + 'CO' => 'Como', + 'CS' => 'Cosenza', + 'CR' => 'Cremona', + 'KR' => 'Crotone', + 'CN' => 'Cuneo', + 'EN' => 'Enna', + 'FM' => 'Fermo', + 'FE' => 'Ferrara', + 'FI' => 'Firenze', + 'FG' => 'Foggia', + 'FC' => 'Forlì-Cesena', + 'FR' => 'Frosinone', + 'GE' => 'Genova', + 'GO' => 'Gorizia', + 'GR' => 'Grosseto', + 'IM' => 'Imperia', + 'IS' => 'Isernia', + 'SP' => 'La Spezia', + 'AQ' => 'L\'Aquila', + 'LT' => 'Latina', + 'LE' => 'Lecce', + 'LC' => 'Lecco', + 'LI' => 'Livorno', + 'LO' => 'Lodi', + 'LU' => 'Lucca', + 'MC' => 'Macerata', + 'MN' => 'Mantova', + 'MS' => 'Massa-Carrara', + 'MT' => 'Matera', + 'ME' => 'Messina', + 'MI' => 'Milano', + 'MO' => 'Modena', + 'MB' => 'Monza e Brianza', + 'NA' => 'Napoli', + 'NO' => 'Novara', + 'NU' => 'Nuoro', + 'OT' => 'Olbia-Tempio', + 'OR' => 'Oristano', + 'PD' => 'Padova', + 'PA' => 'Palermo', + 'PR' => 'Parma', + 'PV' => 'Pavia', + 'PG' => 'Perugia', + 'PU' => 'Pesaro e Urbino', + 'PE' => 'Pescara', + 'PC' => 'Piacenza', + 'PI' => 'Pisa', + 'PT' => 'Pistoia', + 'PN' => 'Pordenone', + 'PZ' => 'Potenza', + 'PO' => 'Prato', + 'RG' => 'Ragusa', + 'RA' => 'Ravenna', + 'RC' => 'Reggio Calabria', + 'RE' => 'Reggio Emilia', + 'RI' => 'Rieti', + 'RN' => 'Rimini', + 'RM' => 'Roma', + 'RO' => 'Rovigo', + 'SA' => 'Salerno', + 'VS' => 'Medio Campidano', + 'SS' => 'Sassari', + 'SV' => 'Savona', + 'SI' => 'Siena', + 'SR' => 'Siracusa', + 'SO' => 'Sondrio', + 'TA' => 'Taranto', + 'TE' => 'Teramo', + 'TR' => 'Terni', + 'TO' => 'Torino', + 'OG' => 'Ogliastra', + 'TP' => 'Trapani', + 'TN' => 'Trento', + 'TV' => 'Treviso', + 'TS' => 'Trieste', + 'UD' => 'Udine', + 'VA' => 'Varese', + 'VE' => 'Venezia', + 'VB' => 'Verbano-Cusio-Ossola', + 'VC' => 'Vercelli', + 'VR' => 'Verona', + 'VV' => 'Vibo Valentia', + 'VI' => 'Vicenza', + 'VT' => 'Viterbo', +); + +/* @var $region Mage_Directory_Model_Region */ +$region = Mage::getModel('directory/region'); + +$regionTable = $installer->getTable('directory/country_region'); +$regionNameTable = $installer->getTable('directory/country_region_name'); + +foreach ($data as $code => $name) { + $region->loadByCode($code, 'IT'); + if ($region->getId()) { + continue; + } + + $bind = array( + 'country_id' => 'IT', + 'code' => $code, + 'default_name' => $name, + ); + $installer->getConnection()->insert($regionTable, $bind); + $regionId = $installer->getConnection()->lastInsertId($regionTable); + + $bind = array( + 'locale' => 'en_US', + 'region_id' => $regionId, + 'name' => $name, + ); + $installer->getConnection()->insert($regionNameTable, $bind); +} diff --git a/src/app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.1-2.0.2.php b/src/app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.1-2.0.2.php new file mode 100644 index 00000000..070d7d84 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/data/magesetup_setup/data-upgrade-2.0.1-2.0.2.php @@ -0,0 +1,45 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.1 + */ + +/** + * Data upgrade script; for migration from GermanSetup to MageSetup + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 2.0.2 + */ + +/* @var $this Mage_Eav_Model_Entity_Setup */ +$installer = $this; + +$installer->startSetup(); + +if (Mage::getStoreConfig('germansetup/is_initialized')) { + $this->setConfigData('magesetup/is_initialized', 1); +} + +$installer->endSetup(); \ No newline at end of file diff --git a/src/app/code/community/FireGento/MageSetup/etc/adminhtml.xml b/src/app/code/community/FireGento/MageSetup/etc/adminhtml.xml new file mode 100644 index 00000000..cd98bd5e --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/adminhtml.xml @@ -0,0 +1,28 @@ + + + + + + + Newsletter Subscribers Status History + magesetup/adminhtml_newsletter/ + + + + + + + + + + + + Newsletter Subscribers Status History + + + + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/at/email.xml b/src/app/code/community/FireGento/MageSetup/etc/at/email.xml new file mode 100644 index 00000000..d8d2179a --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/at/email.xml @@ -0,0 +1,495 @@ + + + + + + + + + 1 + Neues Admin-Passwort + 2 + admin_password_new.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Admin-Passwort zurücksetzen + 2 + admin_password_reset_confirmation.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Währung Aktualisierung + 1 + currency_update_warning.html + currency/import/error_email_template + 0 + 0 + 0 + + + + 1 + Neues Konto + 2 + account_new.html + customer/create_account/email_template + 1 + 0 + 0 + + + + 1 + Passwort Erinnerung + 2 + password_new.html + customer/password/remind_email_template + 1 + 0 + 0 + + + + 1 + Neues Konto Aktivierung + 2 + account_new_confirmation.html + customer/create_account/email_confirmation_template + 1 + 0 + 0 + + + + 1 + Neues Konto Bestätigung + 2 + account_new_confirmed.html + customer/create_account/email_confirmed_template + 1 + 0 + 0 + + + + 1 + Neues Passwort + 2 + password_new.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Kunden Konto Passwort Zurücksetzen Bestätigung + 2 + account_password_reset_confirmation.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Neue Bestellung + 2 + sales/order_new.html + sales_email/order/template + 1 + 1 + 1 + + + + 1 + Neue Bestellung Gast + 2 + sales/order_new_guest.html + sales_email/order/guest_template + 1 + 1 + 1 + + + + 1 + Bestellung Aktualsierung + 2 + sales/order_update.html + sales_email/order_comment/template + 1 + 0 + 0 + + + + 1 + Bestellung Aktualsierung Gast + 2 + sales/order_update_guest.html + sales_email/order_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Rechnung + 2 + sales/invoice_new.html + sales_email/invoice/template + 1 + 0 + 0 + + + + 1 + Neue Rechnung Gast + 2 + sales/invoice_new_guest.html + sales_email/invoice/guest_template + 1 + 0 + 0 + + + + 1 + Rechnung Aktualisierung + 2 + sales/invoice_update.html + sales_email/invoice_comment/template + 1 + 0 + 0 + + + + 1 + Rechnung Aktualisierung Gast + 2 + sales/invoice_update_guest.html + sales_email/invoice_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Gutschrift + 2 + sales/creditmemo_new.html + sales_email/creditmemo/template + 1 + 0 + 0 + + + + 1 + Neue Gutschrift Gast + 2 + sales/creditmemo_new_guest.html + sales_email/creditmemo/guest_template + 1 + 0 + 0 + + + + 1 + Gutschrift Aktualisierung + 2 + sales/creditmemo_update.html + sales_email/creditmemo_comment/template + 1 + 0 + 0 + + + + 1 + Gutschrift Aktualisierung Gast + 2 + sales/creditmemo_update_guest.html + sales_email/creditmemo_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Lieferung + 2 + sales/shipment_new.html + sales_email/shipment/template + 1 + 0 + 0 + + + + 1 + Neue Lieferung Gast + 2 + sales/shipment_new_guest.html + sales_email/shipment/guest_template + 1 + 0 + 0 + + + + 1 + Lieferung Aktualisierung + 2 + sales/shipment_update.html + sales_email/shipment_comment/template + 1 + 0 + 0 + + + + 1 + Lieferung Aktualisierung Gast + 2 + sales/shipment_update_guest.html + sales_email/shipment_comment/guest_template + 1 + 0 + 0 + + + + 1 + Zahlung fehlgeschlagen + 2 + payment_failed.html + checkout/payment_failed/template + 0 + 0 + 0 + + + + 1 + Protokoll Bereinigung Warnungen + 1 + log_clean_warning.html + system/log/error_email_template + 0 + 0 + 0 + + + + 1 + Newsletter Anmeldung Bestätigung + 2 + newsletter_subscr_confirm.html + newsletter/subscription/confirm_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Anmeldung Erfolg + 2 + newsletter_subscr_success.html + newsletter/subscription/success_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Abmeldung Erfolg + 2 + newsletter_unsub_success.html + newsletter/subscription/un_email_template + 1 + 0 + 0 + + + + 1 + Wunschliste gemeinsam nutzen + 2 + wishlist_share.html + wishlist/email/email_template + 0 + 0 + 0 + + + + 1 + Produkt an einen Freund verschicken + 2 + product_share.html + sendfriend/email/template + 1 + 0 + 0 + + + + 1 + Kontaktformular + 1 + contact_form.html + contacts/email/email_template + 0 + 0 + 0 + + + + 1 + Sitemap Generierung Warnungen + 1 + sitemap_generate_warning.html + sitemap/generate/error_email_template + 0 + 0 + 0 + + + + 1 + Produkt wieder verfügbar + 2 + product_stock_alert.html + catalog/productalert/email_stock_template + 0 + 0 + 0 + + + + 1 + Produkt Preisänderung + 2 + product_price_alert.html + catalog/productalert/email_price_template + 0 + 0 + 0 + + + + 1 + Produkt Cron Fehler + 2 + product_alert_cron_error.html + catalog/productalert_cron/error_email_template + 0 + 0 + 0 + + + + 1 + Kundeneinladung [Invitation] + 2 + enterprise_invitation.html + enterprise_invitation/email/template + 0 + 0 + 0 + + + + 1 + OAuth Tokenänderung [Invitation] + 2 + token.html + oauth/email/template + 0 + 0 + 0 + + + + + +
+ + + {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}} + + + ]]> +
+ +   + + + {{block type="cms/block" block_id="business_terms"}} + + + ]]> + + +   + + + {{block type="cms/block" block_id="revocation"}} + + + ]]> + +
+
+
+
+
diff --git a/src/app/code/community/FireGento/MageSetup/etc/at/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/at/tax.xml new file mode 100644 index 00000000..3e7f79a4 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/at/tax.xml @@ -0,0 +1,171 @@ + + + + + + + + + 1 + Kunden kaufen vollbesteuerte Artikel + 1 + 0 + + + 1 + Kunden kaufen ermäßigtbesteuerte Artikel + 2 + 0 + + + 1 + Ust.-befreite Unternehmen kaufen voll- und ermäßigtbesteuerte Artikel + 2 + 0 + + + + + + + + 1 + 1 + Vollbesteuerte Artikel + PRODUCT + 1 + + + 1 + 2 + Ermäßigtbesteuerte Artikel + PRODUCT + 0 + + + 1 + 3 + Vollbesteuerter Versand + PRODUCT + 0 + + + 1 + 4 + Ermäßigtbesteuerter Versand + PRODUCT + 0 + + + 1 + 5 + Endkunden + CUSTOMER + + + 1 + 6 + USt.-pflichtige Unternehmen + CUSTOMER + + + 1 + 7 + USt.-befreite Unternehmen + CUSTOMER + + + + + + + + 1 + 0 + * + + 20 + + + + 1 + 0 + * + + 10 + + + + 1 + 0 + * + + 0 + + + + + + + + AT + 3 + billing + 1 + 1 + 1 + 1 + AT + 95 + 1234 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + AT + 95 + 1234 + Musterstadt + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/ch/email.xml b/src/app/code/community/FireGento/MageSetup/etc/ch/email.xml new file mode 100644 index 00000000..d8d2179a --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/ch/email.xml @@ -0,0 +1,495 @@ + + + + + + + + + 1 + Neues Admin-Passwort + 2 + admin_password_new.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Admin-Passwort zurücksetzen + 2 + admin_password_reset_confirmation.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Währung Aktualisierung + 1 + currency_update_warning.html + currency/import/error_email_template + 0 + 0 + 0 + + + + 1 + Neues Konto + 2 + account_new.html + customer/create_account/email_template + 1 + 0 + 0 + + + + 1 + Passwort Erinnerung + 2 + password_new.html + customer/password/remind_email_template + 1 + 0 + 0 + + + + 1 + Neues Konto Aktivierung + 2 + account_new_confirmation.html + customer/create_account/email_confirmation_template + 1 + 0 + 0 + + + + 1 + Neues Konto Bestätigung + 2 + account_new_confirmed.html + customer/create_account/email_confirmed_template + 1 + 0 + 0 + + + + 1 + Neues Passwort + 2 + password_new.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Kunden Konto Passwort Zurücksetzen Bestätigung + 2 + account_password_reset_confirmation.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Neue Bestellung + 2 + sales/order_new.html + sales_email/order/template + 1 + 1 + 1 + + + + 1 + Neue Bestellung Gast + 2 + sales/order_new_guest.html + sales_email/order/guest_template + 1 + 1 + 1 + + + + 1 + Bestellung Aktualsierung + 2 + sales/order_update.html + sales_email/order_comment/template + 1 + 0 + 0 + + + + 1 + Bestellung Aktualsierung Gast + 2 + sales/order_update_guest.html + sales_email/order_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Rechnung + 2 + sales/invoice_new.html + sales_email/invoice/template + 1 + 0 + 0 + + + + 1 + Neue Rechnung Gast + 2 + sales/invoice_new_guest.html + sales_email/invoice/guest_template + 1 + 0 + 0 + + + + 1 + Rechnung Aktualisierung + 2 + sales/invoice_update.html + sales_email/invoice_comment/template + 1 + 0 + 0 + + + + 1 + Rechnung Aktualisierung Gast + 2 + sales/invoice_update_guest.html + sales_email/invoice_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Gutschrift + 2 + sales/creditmemo_new.html + sales_email/creditmemo/template + 1 + 0 + 0 + + + + 1 + Neue Gutschrift Gast + 2 + sales/creditmemo_new_guest.html + sales_email/creditmemo/guest_template + 1 + 0 + 0 + + + + 1 + Gutschrift Aktualisierung + 2 + sales/creditmemo_update.html + sales_email/creditmemo_comment/template + 1 + 0 + 0 + + + + 1 + Gutschrift Aktualisierung Gast + 2 + sales/creditmemo_update_guest.html + sales_email/creditmemo_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Lieferung + 2 + sales/shipment_new.html + sales_email/shipment/template + 1 + 0 + 0 + + + + 1 + Neue Lieferung Gast + 2 + sales/shipment_new_guest.html + sales_email/shipment/guest_template + 1 + 0 + 0 + + + + 1 + Lieferung Aktualisierung + 2 + sales/shipment_update.html + sales_email/shipment_comment/template + 1 + 0 + 0 + + + + 1 + Lieferung Aktualisierung Gast + 2 + sales/shipment_update_guest.html + sales_email/shipment_comment/guest_template + 1 + 0 + 0 + + + + 1 + Zahlung fehlgeschlagen + 2 + payment_failed.html + checkout/payment_failed/template + 0 + 0 + 0 + + + + 1 + Protokoll Bereinigung Warnungen + 1 + log_clean_warning.html + system/log/error_email_template + 0 + 0 + 0 + + + + 1 + Newsletter Anmeldung Bestätigung + 2 + newsletter_subscr_confirm.html + newsletter/subscription/confirm_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Anmeldung Erfolg + 2 + newsletter_subscr_success.html + newsletter/subscription/success_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Abmeldung Erfolg + 2 + newsletter_unsub_success.html + newsletter/subscription/un_email_template + 1 + 0 + 0 + + + + 1 + Wunschliste gemeinsam nutzen + 2 + wishlist_share.html + wishlist/email/email_template + 0 + 0 + 0 + + + + 1 + Produkt an einen Freund verschicken + 2 + product_share.html + sendfriend/email/template + 1 + 0 + 0 + + + + 1 + Kontaktformular + 1 + contact_form.html + contacts/email/email_template + 0 + 0 + 0 + + + + 1 + Sitemap Generierung Warnungen + 1 + sitemap_generate_warning.html + sitemap/generate/error_email_template + 0 + 0 + 0 + + + + 1 + Produkt wieder verfügbar + 2 + product_stock_alert.html + catalog/productalert/email_stock_template + 0 + 0 + 0 + + + + 1 + Produkt Preisänderung + 2 + product_price_alert.html + catalog/productalert/email_price_template + 0 + 0 + 0 + + + + 1 + Produkt Cron Fehler + 2 + product_alert_cron_error.html + catalog/productalert_cron/error_email_template + 0 + 0 + 0 + + + + 1 + Kundeneinladung [Invitation] + 2 + enterprise_invitation.html + enterprise_invitation/email/template + 0 + 0 + 0 + + + + 1 + OAuth Tokenänderung [Invitation] + 2 + token.html + oauth/email/template + 0 + 0 + 0 + + + + + +
+ + + {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}} + + + ]]> +
+ +   + + + {{block type="cms/block" block_id="business_terms"}} + + + ]]> + + +   + + + {{block type="cms/block" block_id="revocation"}} + + + ]]> + +
+
+
+
+
diff --git a/src/app/code/community/FireGento/MageSetup/etc/ch/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/ch/tax.xml new file mode 100644 index 00000000..c977fb5c --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/ch/tax.xml @@ -0,0 +1,172 @@ + + + + + + + + + 1 + Kunden kaufen vollbesteuerte Artikel + 1 + 0 + + + 1 + Kunden kaufen ermäßigtbesteuerte Artikel + 2 + 0 + + + 1 + Ust.-befreite Unternehmen kaufen voll- und ermäßigtbesteuerte Artikel + 2 + 0 + + + + + + + + 1 + 1 + Vollbesteuerte Artikel + PRODUCT + 1 + + + 1 + 2 + Ermäßigtbesteuerte Artikel + PRODUCT + 0 + + + 1 + 3 + Vollbesteuerter Versand + PRODUCT + 0 + + + + + + + + + + + 1 + 5 + Endkunden + CUSTOMER + + + 1 + 6 + USt.-pflichtige Unternehmen + CUSTOMER + + + 1 + 7 + USt.-befreite Unternehmen + CUSTOMER + + + + + + + + 1 + 0 + * + + 8 + + + + 1 + 0 + * + + 2.5 + + + + 1 + 0 + * + + 0 + + + + + + + + CH + 3 + billing + 1 + 1 + 1 + 1 + CH + 129 + 1234 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + CH + 129 + 1234 + Musterstadt + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/config.xml b/src/app/code/community/FireGento/MageSetup/etc/config.xml new file mode 100644 index 00000000..f6172e75 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/config.xml @@ -0,0 +1,394 @@ + + + + + + 2.0.2 + + + + + + FireGento_MageSetup_Block + + + + FireGento_MageSetup_Block_Ga + + + + + + FireGento_MageSetup_Helper + + + + FireGento_MageSetup_Helper_Catalog_Product_Configuration + + + + + FireGento_MageSetup_Helper_Checkout_Data + + + + + + FireGento_MageSetup_Model + magesetup_resource + + + FireGento_MageSetup_Model_Resource + + + newsletter_subscriber_status
+
+
+
+ + + FireGento_MageSetup_Model_Tax_Config + + +
+ + + + FireGento_MageSetup + Mage_Catalog_Model_Resource_Eav_Mysql4_Setup + + + + + + + + magesetup/observer + model + autogenerateMetaInformation + + + + + + + magesetup/newsletter_observer + model + saveSubscriberStatusHistory + + + + + + + + + + + + + + + +
+ + + /contacts/ + /review/ + + + + + magesetup.xml + + + + + + + + FireGento_MageSetup.csv + + + + + + + + + magesetup/observer + model + filterAgreements + + + + + + + singleton + FireGento_MageSetup_Model_Observer + recollectAfterQuoteItemUpdate + + + + + + + magesetup/observer + model + customerCreatePreDispatch + + + + + + + standard + + FireGento_MageSetup + magesetup + + + + + + + + + magesetup.xml + + + + + + + + FireGento_MageSetup.csv + + + + + + + + + MageSetup + 11 + + + Setup + adminhtml/magesetup + 10 + + + Recommended Extensions + adminhtml/magesetup/extensions + 15 + + + + + + + + + + + + + + MageSetup + 11 + + + + + + + + + + + + magesetup/observer + model + addIsVisibleOnCheckoutOption + + + + + + + magesetup/observer + model + addOptionsForAgreements + + + + + + + + + + + FireGento_MageSetup + + + + + + + + + 1 + 1 + lieferung + kg + + + + + Beispielshop + Musterfirma GmbH + 12345 + Musterstr. 1 + Musterstadt + info@example.com + + + + + + + 1 + + + + + Yes + + + + + + {{/depend}} +{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}
+{{if street1}}{{var street1}}
{{/if}} +{{depend street2}}{{var street2}}
{{/depend}} +{{depend street3}}{{var street3}}
{{/depend}} +{{depend street4}}{{var street4}}
{{/depend}} +{{if postcode}}{{var postcode}} {{/if}}{{if city}}{{var city}}{{/if}}
+{{var country}}
+{{depend telephone}}Tel: {{var telephone}}{{/depend}} +{{depend fax}}
Fax: {{var fax}}{{/depend}} + ]]> + Fax: {{var fax}}{{/depend}}| + ]]> + + Javascript Template + + #{prefix} #{firstname} #{middlename} #{lastname} #{suffix}
#{street0}
#{street1}
#{street2}
#{street3}
#{postcode} #{city}
#{country_id}
Tel: #{telephone}
Fax: #{fax}]]> +
+
+
+
+ + + + + ä + ae + + + ö + oe + + + ü + ue + + + ß + ss + + + Ä + ae + + + Ö + oe + + + Ü + ue + + + + + + de + + + + + 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 + + +
+ + + + + + + + +
diff --git a/src/app/code/community/FireGento/MageSetup/etc/de/email.xml b/src/app/code/community/FireGento/MageSetup/etc/de/email.xml new file mode 100644 index 00000000..3e02612e --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/de/email.xml @@ -0,0 +1,495 @@ + + + + + + + + + 1 + Neues Admin-Passwort + 2 + admin_password_new.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Admin-Passwort zurücksetzen + 2 + admin_password_reset_confirmation.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Währung Aktualisierung + 1 + currency_update_warning.html + currency/import/error_email_template + 0 + 0 + 0 + + + + 1 + Neues Konto + 2 + account_new.html + customer/create_account/email_template + 1 + 0 + 0 + + + + 1 + Passwort Erinnerung + 2 + password_new.html + customer/password/remind_email_template + 1 + 0 + 0 + + + + 1 + Neues Konto Aktivierung + 2 + account_new_confirmation.html + customer/create_account/email_confirmation_template + 1 + 0 + 0 + + + + 1 + Neues Konto Bestätigung + 2 + account_new_confirmed.html + customer/create_account/email_confirmed_template + 1 + 0 + 0 + + + + 1 + Neues Passwort + 2 + password_new.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Kunden Konto Passwort Zurücksetzen Bestätigung + 2 + account_password_reset_confirmation.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Neue Bestellung + 2 + sales/order_new.html + sales_email/order/template + 1 + 1 + 1 + + + + 1 + Neue Bestellung Gast + 2 + sales/order_new_guest.html + sales_email/order/guest_template + 1 + 1 + 1 + + + + 1 + Bestellung Aktualsierung + 2 + sales/order_update.html + sales_email/order_comment/template + 1 + 0 + 0 + + + + 1 + Bestellung Aktualsierung Gast + 2 + sales/order_update_guest.html + sales_email/order_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Rechnung + 2 + sales/invoice_new.html + sales_email/invoice/template + 1 + 0 + 0 + + + + 1 + Neue Rechnung Gast + 2 + sales/invoice_new_guest.html + sales_email/invoice/guest_template + 1 + 0 + 0 + + + + 1 + Rechnung Aktualisierung + 2 + sales/invoice_update.html + sales_email/invoice_comment/template + 1 + 0 + 0 + + + + 1 + Rechnung Aktualisierung Gast + 2 + sales/invoice_update_guest.html + sales_email/invoice_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Gutschrift + 2 + sales/creditmemo_new.html + sales_email/creditmemo/template + 1 + 0 + 0 + + + + 1 + Neue Gutschrift Gast + 2 + sales/creditmemo_new_guest.html + sales_email/creditmemo/guest_template + 1 + 0 + 0 + + + + 1 + Gutschrift Aktualisierung + 2 + sales/creditmemo_update.html + sales_email/creditmemo_comment/template + 1 + 0 + 0 + + + + 1 + Gutschrift Aktualisierung Gast + 2 + sales/creditmemo_update_guest.html + sales_email/creditmemo_comment/guest_template + 1 + 0 + 0 + + + + 1 + Neue Lieferung + 2 + sales/shipment_new.html + sales_email/shipment/template + 1 + 0 + 0 + + + + 1 + Neue Lieferung Gast + 2 + sales/shipment_new_guest.html + sales_email/shipment/guest_template + 1 + 0 + 0 + + + + 1 + Lieferung Aktualisierung + 2 + sales/shipment_update.html + sales_email/shipment_comment/template + 1 + 0 + 0 + + + + 1 + Lieferung Aktualisierung Gast + 2 + sales/shipment_update_guest.html + sales_email/shipment_comment/guest_template + 1 + 0 + 0 + + + + 1 + Zahlung fehlgeschlagen + 2 + payment_failed.html + checkout/payment_failed/template + 0 + 0 + 0 + + + + 1 + Protokoll Bereinigung Warnungen + 1 + log_clean_warning.html + system/log/error_email_template + 0 + 0 + 0 + + + + 1 + Newsletter Anmeldung Bestätigung + 2 + newsletter_subscr_confirm.html + newsletter/subscription/confirm_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Anmeldung Erfolg + 2 + newsletter_subscr_success.html + newsletter/subscription/success_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Abmeldung Erfolg + 2 + newsletter_unsub_success.html + newsletter/subscription/un_email_template + 1 + 0 + 0 + + + + 1 + Wunschliste gemeinsam nutzen + 2 + wishlist_share.html + wishlist/email/email_template + 0 + 0 + 0 + + + + 1 + Produkt an einen Freund verschicken + 2 + product_share.html + sendfriend/email/template + 1 + 0 + 0 + + + + 1 + Kontaktformular + 1 + contact_form.html + contacts/email/email_template + 0 + 0 + 0 + + + + 1 + Sitemap Generierung Warnungen + 1 + sitemap_generate_warning.html + sitemap/generate/error_email_template + 0 + 0 + 0 + + + + 1 + Produkt wieder verfügbar + 2 + product_stock_alert.html + catalog/productalert/email_stock_template + 0 + 0 + 0 + + + + 1 + Produkt Preisänderung + 2 + product_price_alert.html + catalog/productalert/email_price_template + 0 + 0 + 0 + + + + 1 + Produkt Cron Fehler + 2 + product_alert_cron_error.html + catalog/productalert_cron/error_email_template + 0 + 0 + 0 + + + + 1 + Kundeneinladung [Invitation] + 2 + enterprise_invitation.html + enterprise_invitation/email/template + 0 + 0 + 0 + + + + 1 + OAuth Tokenänderung + 2 + token.html + oauth/email/template + 0 + 0 + 0 + + + + + +
+ + + {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}} + + + ]]> +
+ +   + + + {{block type="cms/block" block_id="business_terms"}} + + + ]]> + + +   + + + {{block type="cms/block" block_id="revocation"}} + + + ]]> + +
+
+
+
+
diff --git a/src/app/code/community/FireGento/MageSetup/etc/de/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/de/tax.xml new file mode 100644 index 00000000..c7f8b9da --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/de/tax.xml @@ -0,0 +1,171 @@ + + + + + + + + + 1 + Kunden kaufen vollbesteuerte Artikel + 1 + 0 + + + 1 + Kunden kaufen ermäßigtbesteuerte Artikel + 2 + 0 + + + 1 + Ust.-befreite Unternehmen kaufen voll- und ermäßigtbesteuerte Artikel + 2 + 0 + + + + + + + + 1 + 1 + Vollbesteuerte Artikel + PRODUCT + 1 + + + 1 + 2 + Ermäßigtbesteuerte Artikel + PRODUCT + 0 + + + 1 + 3 + Vollbesteuerter Versand + PRODUCT + 0 + + + 1 + 4 + Ermäßigtbesteuerter Versand + PRODUCT + 0 + + + 1 + 5 + Endkunden + CUSTOMER + + + 1 + 6 + USt.-pflichtige Unternehmen + CUSTOMER + + + 1 + 7 + USt.-befreite Unternehmen + CUSTOMER + + + + + + + + 1 + 0 + * + + 19 + + + + 1 + 0 + * + + 7 + + + + 1 + 0 + * + + 0 + + + + + + + + DE + 3 + billing + 1 + 1 + 1 + 1 + DE + 79 + 12345 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + DE + 79 + 12345 + Musterstadt + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/default/agreement.xml b/src/app/code/community/FireGento/MageSetup/etc/default/agreement.xml new file mode 100644 index 00000000..fd661c3c --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/default/agreement.xml @@ -0,0 +1,51 @@ + + + + + + + + + 1 + 1 + 1 + 1 + 0 + magesetup/agreement/business_terms.html + + + + 1 + 1 + 1 + 1 + 0 + magesetup/agreement/revocation.html + + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/default/cms.xml b/src/app/code/community/FireGento/MageSetup/etc/default/cms.xml new file mode 100644 index 00000000..31e34f71 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/default/cms.xml @@ -0,0 +1,103 @@ + + + + + + + + + 1 + magesetup/page/404.html + 0 + + + + 1 + magesetup/page/imprint.html + 1 + + + + 1 + magesetup/page/payment.html + 1 + + + + 1 + magesetup/page/privacy.html + 1 + + + + 1 + magesetup/page/shipping.html + 1 + catalog/price/cms_page_shipping + + + + 1 + magesetup/page/order.html + 1 + + + + 1 + magesetup/page/business_terms.html + 1 + + + + 1 + magesetup/page/revocation.html + 1 + + + + + + + + 1 + business_terms + magesetup/block/business_terms.html + + + + 1 + revocation + magesetup/block/revocation.html + + + + 1 + footer_links + + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/default/email.xml b/src/app/code/community/FireGento/MageSetup/etc/default/email.xml new file mode 100644 index 00000000..8a33b973 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/default/email.xml @@ -0,0 +1,495 @@ + + + + + + + + + 1 + New Admin Password + 2 + admin_password_new.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Reset Admin Password + 2 + admin_password_reset_confirmation.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Currency Update + 1 + currency_update_warning.html + currency/import/error_email_template + 0 + 0 + 0 + + + + 1 + New Account + 2 + account_new.html + customer/create_account/email_template + 1 + 0 + 0 + + + + 1 + Password Reminder + 2 + password_new.html + customer/password/remind_email_template + 1 + 0 + 0 + + + + 1 + New Account Confirmation + 2 + account_new_confirmation.html + customer/create_account/email_confirmation_template + 1 + 0 + 0 + + + + 1 + New Account Confirmed + 2 + account_new_confirmed.html + customer/create_account/email_confirmed_template + 1 + 0 + 0 + + + + 1 + New Password + 2 + password_new.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Password Reset Confirmation + 2 + account_password_reset_confirmation.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + New Order + 2 + sales/order_new.html + sales_email/order/template + 1 + 1 + 1 + + + + 1 + New Order Guest + 2 + sales/order_new_guest.html + sales_email/order/guest_template + 1 + 1 + 1 + + + + 1 + Order Update + 2 + sales/order_update.html + sales_email/order_comment/template + 1 + 0 + 0 + + + + 1 + Order Update Guest + 2 + sales/order_update_guest.html + sales_email/order_comment/guest_template + 1 + 0 + 0 + + + + 1 + New Invoice + 2 + sales/invoice_new.html + sales_email/invoice/template + 1 + 0 + 0 + + + + 1 + New Invoice Guest + 2 + sales/invoice_new_guest.html + sales_email/invoice/guest_template + 1 + 0 + 0 + + + + 1 + Rechnung Update + 2 + sales/invoice_update.html + sales_email/invoice_comment/template + 1 + 0 + 0 + + + + 1 + Rechnung Update Guest + 2 + sales/invoice_update_guest.html + sales_email/invoice_comment/guest_template + 1 + 0 + 0 + + + + 1 + New Credit Memo + 2 + sales/creditmemo_new.html + sales_email/creditmemo/template + 1 + 0 + 0 + + + + 1 + New Credit Memo Guest + 2 + sales/creditmemo_new_guest.html + sales_email/creditmemo/guest_template + 1 + 0 + 0 + + + + 1 + Credit Memo Update + 2 + sales/creditmemo_update.html + sales_email/creditmemo_comment/template + 1 + 0 + 0 + + + + 1 + Credit Memo Update Guest + 2 + sales/creditmemo_update_guest.html + sales_email/creditmemo_comment/guest_template + 1 + 0 + 0 + + + + 1 + New Shipment + 2 + sales/shipment_new.html + sales_email/shipment/template + 1 + 0 + 0 + + + + 1 + New Shipment Guest + 2 + sales/shipment_new_guest.html + sales_email/shipment/guest_template + 1 + 0 + 0 + + + + 1 + Shipment Update + 2 + sales/shipment_update.html + sales_email/shipment_comment/template + 1 + 0 + 0 + + + + 1 + Shipment Update Guest + 2 + sales/shipment_update_guest.html + sales_email/shipment_comment/guest_template + 1 + 0 + 0 + + + + 1 + Payment failed + 2 + payment_failed.html + checkout/payment_failed/template + 0 + 0 + 0 + + + + 1 + Log Clean Warnung + 1 + log_clean_warning.html + system/log/error_email_template + 0 + 0 + 0 + + + + 1 + Newsletter Subscription Confirm + 2 + newsletter_subscr_confirm.html + newsletter/subscription/confirm_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Subscription Success + 2 + newsletter_subscr_success.html + newsletter/subscription/success_email_template + 1 + 0 + 0 + + + + 1 + Newsletter Unsubscription Success + 2 + newsletter_unsub_success.html + newsletter/subscription/un_email_template + 1 + 0 + 0 + + + + 1 + Share Wishlist + 2 + wishlist_share.html + wishlist/email/email_template + 0 + 0 + 0 + + + + 1 + Send Product to Friend + 2 + product_share.html + sendfriend/email/template + 1 + 0 + 0 + + + + 1 + Contact Form + 1 + contact_form.html + contacts/email/email_template + 0 + 0 + 0 + + + + 1 + Sitemap Generate Warning + 1 + sitemap_generate_warning.html + sitemap/generate/error_email_template + 0 + 0 + 0 + + + + 1 + Product Stock Alert + 2 + product_stock_alert.html + catalog/productalert/email_stock_template + 0 + 0 + 0 + + + + 1 + Product Price Alert + 2 + product_price_alert.html + catalog/productalert/email_price_template + 0 + 0 + 0 + + + + 1 + Product Alert Cron Error + 2 + product_alert_cron_error.html + catalog/productalert_cron/error_email_template + 0 + 0 + 0 + + + + 1 + Invitation + 2 + enterprise_invitation.html + enterprise_invitation/email/template + 0 + 0 + 0 + + + + 1 + OAuth Token + 2 + token.html + oauth/email/template + 0 + 0 + 0 + + + + + +
+ + + {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}} + + + ]]> +
+ +   + + + {{block type="cms/block" block_id="business_terms"}} + + + ]]> + + +   + + + {{block type="cms/block" block_id="revocation"}} + + + ]]> + +
+
+
+
+
diff --git a/src/app/code/community/FireGento/MageSetup/etc/default/systemconfig.xml b/src/app/code/community/FireGento/MageSetup/etc/default/systemconfig.xml new file mode 100644 index 00000000..df3d892d --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/default/systemconfig.xml @@ -0,0 +1,37 @@ + + + + + + + + 0 + 1 + 1 + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/default/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/default/tax.xml new file mode 100644 index 00000000..0cb8419e --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/default/tax.xml @@ -0,0 +1,316 @@ + + + + + + + + + + 1 + 3 + End Customers buy Products with full Tax + 1 + 0 + + + 1 + 4 + End Customers buy Products with reduced Tax + 2 + 0 + + + + + 1 + 6 + Taxable Companies buy Products with full Tax + 1 + 0 + + + 1 + 8 + Taxable Companies buy Products with reduced Tax + 2 + 0 + + + 1 + 10 + Non-taxable Companies buy Products with full and reduced Tax + 1 + 0 + + + + + 1 + 5 + Shipping with full Tax + 3 + 0 + + + 1 + 7 + Shipping with reduced Tax + 3 + 0 + + + + + + + + + 1 + 1 + Products with full Tax + PRODUCT + 1 + + + 1 + 2 + Products with reduced Tax + PRODUCT + 0 + + + 1 + 3 + End Customers + CUSTOMER + + + 1 + 4 + Shipping with full Tax + PRODUCT + 0 + + + 1 + 7 + Shipping with reduced Tax + PRODUCT + 0 + + + 1 + 5 + Taxable Companies + CUSTOMER + + + 1 + 6 + Non-Taxable Companies + CUSTOMER + + + + + + + + + + 4 + billing + 1 + 1 + 1 + 1 + + + 12345 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + + + 12345 + Sample City + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/fr/email.xml b/src/app/code/community/FireGento/MageSetup/etc/fr/email.xml new file mode 100644 index 00000000..598292ef --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/fr/email.xml @@ -0,0 +1,495 @@ + + + + + + + + + 1 + Nouveau mot de passe d'administration + 2 + admin_password_new.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Mot de passe administration réinitialisé + 2 + admin_password_reset_confirmation.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Actualisation de la devise + 1 + currency_update_warning.html + currency/import/error_email_template + 0 + 0 + 0 + + + + 1 + Nouveau compte + 2 + account_new.html + customer/create_account/email_template + 1 + 0 + 0 + + + + 1 + Rappel du mot de passe + 2 + password_new.html + customer/password/remind_email_template + 1 + 0 + 0 + + + + 1 + Activation du nouveau compte + 2 + account_new_confirmation.html + customer/create_account/email_confirmation_template + 1 + 0 + 0 + + + + 1 + Confirmation du nouveau compte + 2 + account_new_confirmed.html + customer/create_account/email_confirmed_template + 1 + 0 + 0 + + + + 1 + Nouveau mot de passe + 2 + password_new.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Confirmation de réinitialisation du mot de passe client + 2 + account_password_reset_confirmation.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Nouvelle commande + 2 + sales/order_new.html + sales_email/order/template + 1 + 1 + 1 + + + + 1 + Nouvelle commande invité + 2 + sales/order_new_guest.html + sales_email/order/guest_template + 1 + 1 + 1 + + + + 1 + Commande actualisée + 2 + sales/order_update.html + sales_email/order_comment/template + 1 + 0 + 0 + + + + 1 + Commande invité actualisée + 2 + sales/order_update_guest.html + sales_email/order_comment/guest_template + 1 + 0 + 0 + + + + 1 + Nouvelle facture + 2 + sales/invoice_new.html + sales_email/invoice/template + 1 + 0 + 0 + + + + 1 + Nouvelle facture invité + 2 + sales/invoice_new_guest.html + sales_email/invoice/guest_template + 1 + 0 + 0 + + + + 1 + Actualisation de la facture + 2 + sales/invoice_update.html + sales_email/invoice_comment/template + 1 + 0 + 0 + + + + 1 + Actualisation de la facture invité + 2 + sales/invoice_update_guest.html + sales_email/invoice_comment/guest_template + 1 + 0 + 0 + + + + 1 + Nouveau remboursement + 2 + sales/creditmemo_new.html + sales_email/creditmemo/template + 1 + 0 + 0 + + + + 1 + Nouveau remboursement invité + 2 + sales/creditmemo_new_guest.html + sales_email/creditmemo/guest_template + 1 + 0 + 0 + + + + 1 + Actualisation du remboursement + 2 + sales/creditmemo_update.html + sales_email/creditmemo_comment/template + 1 + 0 + 0 + + + + 1 + Actualisation du remboursement invité + 2 + sales/creditmemo_update_guest.html + sales_email/creditmemo_comment/guest_template + 1 + 0 + 0 + + + + 1 + Nouvelle livraison + 2 + sales/shipment_new.html + sales_email/shipment/template + 1 + 0 + 0 + + + + 1 + Nouvelle livraison invité + 2 + sales/shipment_new_guest.html + sales_email/shipment/guest_template + 1 + 0 + 0 + + + + 1 + Actualisation de la livraison + 2 + sales/shipment_update.html + sales_email/shipment_comment/template + 1 + 0 + 0 + + + + 1 + Actualisation de la livraison invité + 2 + sales/shipment_update_guest.html + sales_email/shipment_comment/guest_template + 1 + 0 + 0 + + + + 1 + Paiement échoué + 2 + payment_failed.html + checkout/payment_failed/template + 0 + 0 + 0 + + + + 1 + Alerte de nettoyage du journal + 1 + log_clean_warning.html + system/log/error_email_template + 0 + 0 + 0 + + + + 1 + Confirmation d'inscription à la newsletter + 2 + newsletter_subscr_confirm.html + newsletter/subscription/confirm_email_template + 1 + 0 + 0 + + + + 1 + Succès de l'inscription à la newsletter + 2 + newsletter_subscr_success.html + newsletter/subscription/success_email_template + 1 + 0 + 0 + + + + 1 + Succès de la désinscription à la newsletter + 2 + newsletter_unsub_success.html + newsletter/subscription/un_email_template + 1 + 0 + 0 + + + + 1 + Partage de la liste de souhaits + 2 + wishlist_share.html + wishlist/email/email_template + 0 + 0 + 0 + + + + 1 + Envoi du produit à un ami + 2 + product_share.html + sendfriend/email/template + 1 + 0 + 0 + + + + 1 + Formulaire de contact + 1 + contact_form.html + contacts/email/email_template + 0 + 0 + 0 + + + + 1 + Alerte de génération du Sitemap + 1 + sitemap_generate_warning.html + sitemap/generate/error_email_template + 0 + 0 + 0 + + + + 1 + Produit de nouveau disponible + 2 + product_stock_alert.html + catalog/productalert/email_stock_template + 0 + 0 + 0 + + + + 1 + Modification du prix du produit + 2 + product_price_alert.html + catalog/productalert/email_price_template + 0 + 0 + 0 + + + + 1 + Erreur Cron Produit + 2 + product_alert_cron_error.html + catalog/productalert_cron/error_email_template + 0 + 0 + 0 + + + + 1 + Invitation + 2 + enterprise_invitation.html + enterprise_invitation/email/template + 0 + 0 + 0 + + + + 1 + OAuth: changement de jeton + 2 + token.html + oauth/email/template + 0 + 0 + 0 + + + + + +
+ + + {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}} + + + ]]> +
+ +   + + + {{block type="cms/block" block_id="business_terms"}} + + + ]]> + + +   + + + {{block type="cms/block" block_id="revocation"}} + + + ]]> + +
+
+
+
+
diff --git a/src/app/code/community/FireGento/MageSetup/etc/fr/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/fr/tax.xml new file mode 100644 index 00000000..a4664895 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/fr/tax.xml @@ -0,0 +1,190 @@ + + + + + + + + + 1 + Clients achètent les produits au taux plein (TVA nominale) + 1 + 0 + + + + 1 + Clients achètent les produits au taux réduit de 7% + 1 + 0 + + + + 1 + Clients achètent les produits au taux réduit de 5.5% + 1 + 0 + + + + 1 + Entreprises non-assujetties à la TVA achètent les produits au taux plein (TVA nominale) et au taux réduit (TVA réduite) + 1 + 0 + + + + + + + + 1 + 1 + Produits au taux plein de 19.6% + PRODUCT + 1 + + + 1 + 2 + Produits au taux réduit de 7% + PRODUCT + 0 + + + 1 + 3 + Produits au taux réduit de 5.5% + PRODUCT + 0 + + + 1 + 4 + Livraison avec TVA à taux plein + PRODUCT + 0 + + + + 1 + 5 + Clients finaux + CUSTOMER + + + 1 + 6 + Entreprises assujetties à la TVA + CUSTOMER + + + 1 + 7 + Entreprises non-assujetties à la TVA + CUSTOMER + + + + + + + + 1 + 0 + * + + 19.6 + + + + 1 + 0 + * + + 7 + + + + 1 + 0 + * + + 5.5 + + + + 1 + 0 + * + + 0 + + + + + + + FR + 3 + billing + 1 + 1 + 1 + 1 + FR + + 12345 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + FR + 79 + 12345 + Ma Ville + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/gb/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/gb/tax.xml new file mode 100644 index 00000000..2b6781d7 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/gb/tax.xml @@ -0,0 +1,171 @@ + + + + + + + + + 1 + Customers buy Products with full Tax + 1 + 0 + + + 1 + Customers buy Products with reduced Tax + 2 + 0 + + + 1 + Non-taxable Companies buy Products with full and reduced Tax + 2 + 0 + + + + + + + + 1 + 1 + Products with full Tax + PRODUCT + 1 + + + 1 + 2 + Products with reduced Tax + PRODUCT + 0 + + + 1 + 3 + Shipping with full Tax + PRODUCT + 0 + + + 1 + 4 + Shipping with reduced Tax + PRODUCT + 0 + + + 1 + 5 + End Customers + CUSTOMER + + + 1 + 6 + Taxable Companies + CUSTOMER + + + 1 + 7 + Non-Taxable Companies + CUSTOMER + + + + + + + + 1 + 0 + * + + 20 + + + + 1 + 0 + * + + 5 + + + + 1 + 0 + * + + 0 + + + + + + + + UK + 3 + billing + 1 + 1 + 1 + 1 + UK + + SW1A 1AA + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + UK + + SW1A 1AA + London + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/it/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/it/tax.xml new file mode 100644 index 00000000..69bb8dd1 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/it/tax.xml @@ -0,0 +1,185 @@ + + + + + + + + + 1 + IVA 21% + 1 + 0 + + + 1 + IVA 10% + 2 + 0 + + + 1 + IVA 4% + 3 + 0 + + + 1 + Esenti IVA + 4 + 0 + + + + + + + + 1 + 1 + IVA 21% + PRODUCT + 1 + + + 1 + 2 + IVA 10% + PRODUCT + 0 + + + 1 + 3 + IVA 4% + PRODUCT + 0 + + + 1 + 4 + Spedizione + PRODUCT + 0 + + + 1 + 5 + Clienti privati + CUSTOMER + + + 1 + 6 + Imprese + CUSTOMER + + + 1 + 7 + Imprese esenti IVA + CUSTOMER + + + + + + + + 1 + 0 + * + + 21 + + + + 1 + 0 + * + + 10 + + + + 1 + 0 + * + + 4 + + + + 1 + 0 + * + + 0 + + + + + + + DE + 4 + billing + 1 + 1 + 1 + 1 + DE + 79 + 12345 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + DE + 79 + 12345 + Musterstadt + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/ru/cms.xml b/src/app/code/community/FireGento/MageSetup/etc/ru/cms.xml new file mode 100644 index 00000000..b526d42e --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/ru/cms.xml @@ -0,0 +1,103 @@ + + + + + + + + + 1 + magesetup/page/404.html + 0 + + + + 0 + magesetup/page/imprint.html + 1 + + + + 1 + magesetup/page/payment.html + 1 + + + + 1 + magesetup/page/privacy.html + 1 + + + + 1 + magesetup/page/shipping.html + 1 + catalog/price/cms_page_shipping + + + + 1 + magesetup/page/order.html + 1 + + + + 1 + magesetup/page/business_terms.html + 1 + + + + 1 + magesetup/page/revocation.html + 1 + + + + + + + + 1 + business_terms + magesetup/block/business_terms.html + + + + 1 + revocation + magesetup/block/revocation.html + + + + 1 + footer_links + + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/ru/email.xml b/src/app/code/community/FireGento/MageSetup/etc/ru/email.xml new file mode 100644 index 00000000..d6beff68 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/ru/email.xml @@ -0,0 +1,495 @@ + + + + + + + + + 1 + Панель администрирования. Новый пароль + 2 + admin_password_new.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Панель администрирования. Подтверждение сброса пароля + 2 + admin_password_reset_confirmation.html + admin/emails/forgot_email_template + 0 + 0 + 0 + + + + 1 + Обновление курса валют + 1 + currency_update_warning.html + currency/import/error_email_template + 0 + 0 + 0 + + + + 1 + Новая учётная запись + 2 + account_new.html + customer/create_account/email_template + 1 + 0 + 0 + + + + 1 + Напоминание пароля + 2 + password_new.html + customer/password/remind_email_template + 1 + 0 + 0 + + + + 1 + Новая учётная запись. Подтверждение + 2 + account_new_confirmation.html + customer/create_account/email_confirmation_template + 1 + 0 + 0 + + + + 1 + Новая учётная запись. Подтверждено + 2 + account_new_confirmed.html + customer/create_account/email_confirmed_template + 1 + 0 + 0 + + + + 1 + Новый пароль + 2 + password_new.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Подтверждение сброса пароля + 2 + account_password_reset_confirmation.html + customer/password/forgot_email_template + 1 + 0 + 0 + + + + 1 + Новый заказ + 2 + sales/order_new.html + sales_email/order/template + 1 + 1 + 1 + + + + 1 + Новый заказ для гостя + 2 + sales/order_new_guest.html + sales_email/order/guest_template + 1 + 1 + 1 + + + + 1 + Изменение заказа + 2 + sales/order_update.html + sales_email/order_comment/template + 1 + 0 + 0 + + + + 1 + Изменение заказа для гостя + 2 + sales/order_update_guest.html + sales_email/order_comment/guest_template + 1 + 0 + 0 + + + + 1 + Новый счёт + 2 + sales/invoice_new.html + sales_email/invoice/template + 1 + 0 + 0 + + + + 1 + Новый счёт для гостя + 2 + sales/invoice_new_guest.html + sales_email/invoice/guest_template + 1 + 0 + 0 + + + + 1 + Изменение счёта + 2 + sales/invoice_update.html + sales_email/invoice_comment/template + 1 + 0 + 0 + + + + 1 + Изменение счёта для гостя + 2 + sales/invoice_update_guest.html + sales_email/invoice_comment/guest_template + 1 + 0 + 0 + + + + 1 + Новый возврат + 2 + sales/creditmemo_new.html + sales_email/creditmemo/template + 1 + 0 + 0 + + + + 1 + Новый возврат для гостя + 2 + sales/creditmemo_new_guest.html + sales_email/creditmemo/guest_template + 1 + 0 + 0 + + + + 1 + Изменение возврата + 2 + sales/creditmemo_update.html + sales_email/creditmemo_comment/template + 1 + 0 + 0 + + + + 1 + Изменение возврата для гостя + 2 + sales/creditmemo_update_guest.html + sales_email/creditmemo_comment/guest_template + 1 + 0 + 0 + + + + 1 + Новая доставка + 2 + sales/shipment_new.html + sales_email/shipment/template + 1 + 0 + 0 + + + + 1 + Новая доставка для гостя + 2 + sales/shipment_new_guest.html + sales_email/shipment/guest_template + 1 + 0 + 0 + + + + 1 + Изменение доставки + 2 + sales/shipment_update.html + sales_email/shipment_comment/template + 1 + 0 + 0 + + + + 1 + Изменение доставки для гостя + 2 + sales/shipment_update_guest.html + sales_email/shipment_comment/guest_template + 1 + 0 + 0 + + + + 1 + Платёжная транзакция не удалась + 2 + payment_failed.html + checkout/payment_failed/template + 0 + 0 + 0 + + + + 1 + Предупреждения при очистке лога + 1 + log_clean_warning.html + system/log/error_email_template + 0 + 0 + 0 + + + + 1 + Подписка на новости. Подтверждение + 2 + newsletter_subscr_confirm.html + newsletter/subscription/confirm_email_template + 1 + 0 + 0 + + + + 1 + Подписка на новости. Подписан + 2 + newsletter_subscr_success.html + newsletter/subscription/success_email_template + 1 + 0 + 0 + + + + 1 + Подписка на новости. Отписан + 2 + newsletter_unsub_success.html + newsletter/subscription/un_email_template + 1 + 0 + 0 + + + + 1 + Поделиться листом пожеланий + 2 + wishlist_share.html + wishlist/email/email_template + 0 + 0 + 0 + + + + 1 + Послать инфо о товаре другу + 2 + product_share.html + sendfriend/email/template + 1 + 0 + 0 + + + + 1 + Контактная форма + 1 + contact_form.html + contacts/email/email_template + 0 + 0 + 0 + + + + 1 + Предупреждение при создании карты сайта + 1 + sitemap_generate_warning.html + sitemap/generate/error_email_template + 0 + 0 + 0 + + + + 1 + Product Stock Alert + 2 + product_stock_alert.html + catalog/productalert/email_stock_template + 0 + 0 + 0 + + + + 1 + Оповещение: Изменение цены товара + 2 + product_price_alert.html + catalog/productalert/email_price_template + 0 + 0 + 0 + + + + 1 + Ошибка планировщика задач (Cron): Оповещения о товаре + 2 + product_alert_cron_error.html + catalog/productalert_cron/error_email_template + 0 + 0 + 0 + + + + 1 + Приглашение + 2 + enterprise_invitation.html + enterprise_invitation/email/template + 0 + 0 + 0 + + + + 1 + OAuth Token + 2 + token.html + oauth/email/template + 0 + 0 + 0 + + + + + +
+ + + {{block type="magesetup/imprint_content" template="magesetup/imprint/email_footer.phtml"}} + + + ]]> +
+ +   + + + {{block type="cms/block" block_id="business_terms"}} + + + ]]> + + +   + + + {{block type="cms/block" block_id="revocation"}} + + + ]]> + +
+
+
+
+
diff --git a/src/app/code/community/FireGento/MageSetup/etc/ru/systemconfig.xml b/src/app/code/community/FireGento/MageSetup/etc/ru/systemconfig.xml new file mode 100644 index 00000000..469be9c5 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/ru/systemconfig.xml @@ -0,0 +1,37 @@ + + + + + + + + 0 + 1 + 0 + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/ru/tax.xml b/src/app/code/community/FireGento/MageSetup/etc/ru/tax.xml new file mode 100644 index 00000000..ef9add19 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/ru/tax.xml @@ -0,0 +1,170 @@ + + + + + + + + + 1 + Customers buy products with full tax + 1 + 0 + + + 1 + Customers buy products with reduced tax + 1 + 0 + + + 1 + Non-taxable companies buy products with full and reduced tax + 1 + 0 + + + + + + + + 1 + 1 + Products with full Tax + PRODUCT + 1 + + + 1 + 2 + Products with reduced Tax + PRODUCT + 0 + + + 1 + 3 + Shipping with full Tax + PRODUCT + 0 + + + 1 + 4 + Shipping with reduced Tax + PRODUCT + 0 + + + 1 + 5 + End Consumers + CUSTOMER + + + 1 + 6 + Taxable Companies + CUSTOMER + + + 1 + 7 + Non-Taxable Companies + CUSTOMER + + + + + + + + 1 + 0 + * + + 18 + + + + 1 + 0 + * + + 10 + + + + 1 + 0 + * + + 0 + + + + + + + RU + 3 + billing + 1 + 1 + 1 + 1 + RU + 79 + 12345 + 2 + 2 + 2 + 1 + 2 + 2 + 1 + 0 + 2 + 2 + 2 + 0 + 1 + 1 + RU + 79 + 12345 + Sample City + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/etc/system.xml b/src/app/code/community/FireGento/MageSetup/etc/system.xml new file mode 100644 index 00000000..864da2a6 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/etc/system.xml @@ -0,0 +1,465 @@ + + + + + + + + 1 + 1 + + + + Display tax info and shipping cost link below the price on all pages + select + adminhtml/system_config_source_yesno + 20 + 1 + 1 + 1 + + + + select + adminhtml/system_config_source_yesno + 25 + 1 + 1 + 1 + + + + select + magesetup/source_cms_page + 30 + 1 + 1 + 1 + + + + select + adminhtml/system_config_source_yesno + 40 + 1 + 1 + 1 + + + + select + adminhtml/system_config_source_yesno + 50 + 1 + 1 + 1 + + + + e.g. g, kg, lb, ... + text + 60 + 1 + 1 + 1 + + + + + + + + + + text + 900 + 1 + 1 + 1 + + + + text + 5 + 1 + 1 + 1 + + + + text + 10 + 1 + 1 + 1 + + + + text + 20 + 1 + 1 + 1 + + + + text + 30 + 1 + 1 + 1 + + + + text + 40 + 1 + 1 + 1 + + + + text + 50 + 1 + 1 + 1 + + + + select + adminhtml/system_config_source_country + 55 + 1 + 1 + 0 + 1 + + + + text + 60 + 1 + 1 + 1 + + + + text + 70 + 1 + 1 + 1 + + + + text + 75 + 1 + 1 + 1 + + + + text + 80 + 1 + 1 + 1 + + + + text + 90 + 1 + 1 + 1 + + + + text + 100 + 1 + 1 + 1 + + + + text + 110 + 1 + 1 + 1 + + + + text + 120 + 1 + 1 + 1 + + + + text + 130 + 1 + 1 + 1 + + + + text + 135 + 1 + 1 + 1 + + + + text + 137 + 1 + 1 + 1 + + + + textarea + 138 + 1 + 1 + 1 + + + + text + 139 + 1 + 1 + 1 + + + + text + 140 + 1 + 1 + 1 + + + + textarea + 142 + 1 + 1 + 1 + 1 + + + + relevant for Austrian shops + text + 200 + 1 + 1 + 1 + 1 + + + + relevant for Austrian shops + textarea + 210 + 1 + 1 + 1 + 1 + + + + relevant for Austrian shops + text + 220 + 1 + 1 + 1 + 1 + + + + text + 245 + 1 + 1 + 1 + + + + text + 250 + 1 + 1 + 1 + + + + text + 260 + 1 + 1 + 1 + + + + text + 270 + 1 + 1 + 1 + + + + text + 280 + 1 + 1 + 1 + + + + text + 290 + 1 + 1 + 1 + + + + + + + + + + + + Display content from text field below at the checkout confirm page directly above + the checkout button + + select + adminhtml/system_config_source_yesno + 500 + 1 + 1 + 1 + + + + textarea + 505 + 1 + 1 + 1 + + 1 + + + + + + + + + Replace with a link to the shipping costs cms page + select + adminhtml/system_config_source_yesno + 500 + 1 + 1 + 1 + + + + + + + + + + + + select + adminhtml/system_config_source_yesno + 500 + 1 + 1 + 1 + + + + + + + + + + + + Ensures that the ip address of the customers doesnt get involved into the + tracking + + select + adminhtml/system_config_source_yesno + 190 + 1 + 1 + 1 + + + + + + + + + + + + + ATTENTION: This setting overwrites the "Tax Class for Shipping" setting above!]]> + select + magesetup/source_tax_dynamicType + 11 + 1 + 1 + 0 + + + + + + + diff --git a/src/app/code/community/FireGento/MageSetup/scripts/GenerateCountryTaxXml.php b/src/app/code/community/FireGento/MageSetup/scripts/GenerateCountryTaxXml.php new file mode 100644 index 00000000..97a58999 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/scripts/GenerateCountryTaxXml.php @@ -0,0 +1,24 @@ +getNode('general/country/eu_countries'); + +// Generate tax_calculation_rates + +if ($argc == 0) { + die('Usage is '); +} + diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-install-0.5.0.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-install-0.5.0.php new file mode 100644 index 00000000..a4a99666 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-install-0.5.0.php @@ -0,0 +1,61 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Setup script; Adds the delivery_time attribute for products + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +/* @var $installer Mage_Eav_Model_Entity_Setup */ +$installer = $this; +$installer->startSetup(); + +$installer->addAttribute( + 'catalog_product', + 'delivery_time', + array( + 'label' => 'Lieferzeit', + 'input' => 'text', + 'required' => 0, + 'user_defined' => 1, + 'default' => '2-3 Tage', + 'group' => 'General', + 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, + 'visible' => 1, + 'filterable' => 0, + 'searchable' => 0, + 'comparable' => 1, + 'visible_on_front' => 1, + 'visible_in_advanced_search' => 1, + 'used_in_product_listing' => 1, + 'is_html_allowed_on_front' => 1, + ) +); + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.0.4-1.0.5.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.0.4-1.0.5.php new file mode 100644 index 00000000..23f7c80f --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.0.4-1.0.5.php @@ -0,0 +1,62 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.5 + */ +/** + * Setup script; Adds a new column 'Visible in Checkout' to attributes + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.5 + */ + +/* @var $this Mage_Eav_Model_Entity_Setup */ +$installer = $this; +$installer->startSetup(); + +if (version_compare(Mage::getVersion(), '1.6', '<')) { + + $installer->run(" + ALTER TABLE `{$installer->getTable('catalog/eav_attribute')}` + ADD `is_visible_on_checkout` SMALLINT(5) NOT NULL DEFAULT '0'; + "); + +} else { + + $installer->getConnection()->addColumn( + $installer->getTable('catalog/eav_attribute'), + 'is_visible_on_checkout', + array( + 'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT, + 'unsigned' => true, + 'nullable' => false, + 'default' => '0', + 'comment' => 'Visible in Checkout' + ) + ); + +} + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.2-1.1.3.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.2-1.1.3.php new file mode 100644 index 00000000..5dff2ab4 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.2-1.1.3.php @@ -0,0 +1,61 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.7 + */ +/** + * Setup script; Adds the is_required field for the checkout agreements + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.7 + */ + +/* @var $this Mage_Eav_Model_Entity_Setup */ +$installer = $this; +$installer->startSetup(); + +if (version_compare(Mage::getVersion(), '1.6', '<')) { + + $installer->run(" + ALTER TABLE `{$installer->getTable('checkout/agreement')}` + ADD `is_required` SMALLINT( 5 ) NOT NULL DEFAULT '1' COMMENT 'Agreement is Required' + "); + +} else { + + $installer->getConnection()->addColumn( + $installer->getTable('checkout/agreement'), + 'is_required', + array( + 'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT, + 'unsigned' => true, + 'nullable' => false, + 'default' => '1', + 'comment' => 'Agreement is Required' + ) + ); +} + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.3-1.1.4.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.3-1.1.4.php new file mode 100644 index 00000000..cea70ec5 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.3-1.1.4.php @@ -0,0 +1,94 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.7 + */ +/** + * Setup script; Adds a new table for newsletter subscriber status + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.0.7 + */ + +/* @var $this Mage_Eav_Model_Entity_Setup */ +$installer = $this; +$installer->startSetup(); + +if (version_compare(Mage::getVersion(), '1.6', '<')) { + + $installer->run(" + DROP TABLE IF EXISTS `{$installer->getTable('magesetup/newsletter_subscriber_status')}`; + CREATE TABLE `{$installer->getTable('magesetup/newsletter_subscriber_status')}` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', + `subscriber` int(10) unsigned NOT NULL COMMENT 'Subscriber Id', + `status` int(11) NOT NULL DEFAULT '0' COMMENT 'Subscriber Status', + `email` text COMMENT 'Subscriber Status', + `created_at` timestamp NULL DEFAULT NULL COMMENT 'Changed at', + PRIMARY KEY (`id`) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Newsletter Subscriber Status Table'; + "); + +} else { + + $subscriberStatusTable = $installer->getTable('magesetup/newsletter_subscriber_status'); + if ($installer->getConnection()->isTableExists($subscriberStatusTable)) { + $installer->getConnection()->dropTable($subscriberStatusTable); + } + + $subscriberStatusTable = $installer->getConnection()->newTable($subscriberStatusTable) + ->addColumn('id', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array( + 'unsigned' => true, + 'nullable' => false, + 'primary' => true, + 'identity' => true, + ), + 'ID' + ) + ->addColumn('subscriber', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array( + 'unsigned' => true, + 'nullable' => false, + ), + 'Subscriber Id' + ) + ->addColumn('status', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array( + 'nullable' => false, + 'default' => '0', + ), + 'Subscriber Status' + ) + ->addColumn('email', Varien_Db_Ddl_Table::TYPE_TEXT, null, array( + ), + 'Subscriber Status' + ) + ->addColumn('created_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array( + ), + 'Changed at' + ) + ->setComment('Newsletter Subscriber Status Table'); + $installer->getConnection()->createTable($subscriberStatusTable); + +} + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.4-1.2.0.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.4-1.2.0.php new file mode 100644 index 00000000..e69d8a12 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.1.4-1.2.0.php @@ -0,0 +1,89 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Setup script; Adds the delivery_time attribute for products + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +/** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */ +$installer = $this; +$installer->startSetup(); + +// Update attribute properties +$installer->updateAttribute( + 'catalog_product', + 'delivery_time', + 'is_comparable', + true +); + +$installer->updateAttribute( + 'catalog_product', + 'delivery_time', + 'is_visible_on_front', + true +); + +$installer->updateAttribute( + 'catalog_product', + 'delivery_time', + 'is_visible_in_advanced_search', + true +); + +$installer->updateAttribute( + 'catalog_product', + 'delivery_time', + 'used_in_product_listing', + true +); + +$installer->updateAttribute( + 'catalog_product', + 'delivery_time', + 'is_html_allowed_on_front', + true +); + +$installer->updateAttribute( + 'catalog_product', + 'delivery_time', + 'is_visible_on_checkout', + true +); + +$installer->updateAttribute( + 'catalog_product', + 'short_description', + 'is_visible_on_checkout', + true +); + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.0-1.2.1.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.0-1.2.1.php new file mode 100644 index 00000000..e8662965 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.0-1.2.1.php @@ -0,0 +1,47 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Setup script; Adds the delivery_time attribute for products + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.1 + */ + +/** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */ +$installer = $this; +$installer->startSetup(); + +// Update attribute properties +$installer->updateAttribute( + 'catalog_product', + 'weight', + 'used_in_product_listing', + true +); + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.1-1.2.2.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.1-1.2.2.php new file mode 100644 index 00000000..f2757fbe --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.1-1.2.2.php @@ -0,0 +1,60 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @since 0.1.0 + */ +/** + * Setup script; Adds the is_required field for the checkout agreements + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.2 + */ + +/** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */ +$installer = $this; +$installer->startSetup(); + +if (version_compare(Mage::getVersion(), '1.6', '<')) { + + $installer->run(" + ALTER TABLE `{$installer->getTable('checkout/agreement')}` + ADD `agreement_type` SMALLINT( 5 ) NOT NULL DEFAULT '0' COMMENT 'Agreement Type' + "); + +} else { + + $installer->getConnection()->addColumn( + $installer->getTable('checkout/agreement'), + 'agreement_type', + array( + 'type' => Varien_Db_Ddl_Table::TYPE_SMALLINT, + 'unsigned' => true, + 'nullable' => false, + 'default' => '0', + 'comment' => 'Agreement Type' + ) + ); +} + +$installer->endSetup(); diff --git a/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.2-1.2.3.php b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.2-1.2.3.php new file mode 100644 index 00000000..31104530 --- /dev/null +++ b/src/app/code/community/FireGento/MageSetup/sql/magesetup_setup/mysql4-upgrade-1.2.2-1.2.3.php @@ -0,0 +1,62 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Setup script; Adds the meta_autogenerate attribute for products + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.3 + */ + +/** @var $installer Mage_Catalog_Model_Resource_Eav_Mysql4_Setup */ +$installer = $this; +$installer->startSetup(); + +$installer->addAttribute( + 'catalog_product', + 'meta_autogenerate', + array( + 'label' => 'Auto-Generate Meta-Information', + 'input' => 'select', + 'source' => 'eav/entity_attribute_source_boolean', + 'required' => false, + 'user_defined' => true, + 'default' => '0', + 'group' => 'Meta Information', + 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, + 'visible' => true, + 'filterable' => false, + 'searchable' => false, + 'comparable' => false, + 'visible_on_front' => false, + 'visible_in_advanced_search' => false, + 'used_in_product_listing' => false, + 'is_html_allowed_on_front' => false, + ) +); + +$installer->endSetup(); diff --git a/src/app/design/adminhtml/default/default/layout/magesetup.xml b/src/app/design/adminhtml/default/default/layout/magesetup.xml new file mode 100644 index 00000000..12015ab8 --- /dev/null +++ b/src/app/design/adminhtml/default/default/layout/magesetup.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/app/design/adminhtml/default/default/template/magesetup/extensions.phtml b/src/app/design/adminhtml/default/default/template/magesetup/extensions.phtml new file mode 100644 index 00000000..ca0481af --- /dev/null +++ b/src/app/design/adminhtml/default/default/template/magesetup/extensions.phtml @@ -0,0 +1,120 @@ +
+

__('Recommended Extensions') ?>

+

+
+ +
+
+

__('Recommended Extensions') ?>

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
__('German Language Pack') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2317/
http://connect20.magentocommerce.com/community/Locale_Mage_community_de_DE
 
__('FireGento PDF') ?>
http://www.magentocommerce.com/magento-connect/pdf-9999.html
http://connect20.magentocommerce.com/community/FireGento_Pdf
 
__('Base Price') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2897/
http://connect20.magentocommerce.com/community/DerModPro_BasePrice
 
__('Newsletter Unsubscription for Guests, Double Opt In for registered Customers') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/15534/
http://connect20.magentocommerce.com/community/Loewenstark_Newsletter
 
+
+
+
+ +
+
+

__('Popular Payment Methods') ?>

+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
__('Debit Payment') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2606/
http://connect20.magentocommerce.com/community/DebitPayment
 
__('Cash on Delivery') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2360/
http://connect20.magentocommerce.com/community/CashOnDelivery
 
__('Bank Payment') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/2298/
http://connect20.magentocommerce.com/community/BankPayment
 
__('Invoice Payment') ?>
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/17239/s/invoice-6810/
http://connect20.magentocommerce.com/community/InvoicePayment
 
+
+
+
diff --git a/src/app/design/adminhtml/default/default/template/magesetup/form.phtml b/src/app/design/adminhtml/default/default/template/magesetup/form.phtml new file mode 100644 index 00000000..14891e99 --- /dev/null +++ b/src/app/design/adminhtml/default/default/template/magesetup/form.phtml @@ -0,0 +1,345 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.4.0 + */ +?> + + +
+

__('MageSetup') ?>

+

+ getButtonHtml($this->__('Run MageSetup'), 'setupForm.submit();', 'save'); ?> +

+
+ +

__('Please choose the requested setups:') ?>

+ +
+
+ +
+

__('Configuration Settings') ?>

+
+
+ +
+
+ + + + + + + + + + + + + + +
+ + + Notification + __('This setting is base for the tax rate setup!') ?> +
 
+ + + __('i.e. newsletter confirmation, account confirmation, ..') ?> +
+
+
+ + +
+

__('Tax Settings') ?>

+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
+ + + Notification + __('All tax settings will be overwritten!') ?> +
+ + + getProductTaxClasses() as $oldTaxClass): ?> + + + + + + + + +
__('Old') ?>: __('New') ?>: + +
+
+ + + getCustomerTaxClasses() as $oldTaxClass): ?> + + + + + + + + +
__('Old') ?>: __('New') ?>: + +
+
+
+
+ + +
+

__('CMS Settings') ?>

+
+
+ +
+
+ + + + + + + + + + + + + + + + + + isMultiStore()): ?> + + + + + + + +
+ + + __('i.e. shipping, conditions, revocation') ?> +
+ + + __('Conditions') ?> +
+ + + __('Language Package for CMS Pages/Blocks/Agreements') ?>
+ <?php echo $this->__('Notification') ?> + __('If your desired locale is missing, it is not supported yet by MageSetup.') ?> +
+ + getWebsites(false) as $website): ?> + + getStores() as $store): ?> + + + + + + + +
getName() ?> > getName() ?> + +
+
+
+
+ +
+

__('Email Settings') ?>

+
+
+ +
+
+ + + + + + + + + + + + + isMultiStore()): ?> + + + + + + + +
+ + __('Create Transational Email Templates to be managed in the Magento admin area') ?>
+ + + __('Language Package for Email Templates') ?>
+ <?php echo $this->__('Notification') ?> + __('If your desired locale is missing, please check if it installed.') ?> +
+ + getWebsites(false) as $website): ?> + + getStores() as $store): ?> + + + + + + + +
getName() ?> > getName() ?> + +
+
+
+
+
+
+ + + diff --git a/src/app/design/adminhtml/default/default/template/magesetup/notifications.phtml b/src/app/design/adminhtml/default/default/template/magesetup/notifications.phtml new file mode 100644 index 00000000..98e72ba2 --- /dev/null +++ b/src/app/design/adminhtml/default/default/template/magesetup/notifications.phtml @@ -0,0 +1,7 @@ + +isInitialized()): ?> +
+ helper('magesetup')->__('MageSetup has been installed.') ?> + helper('magesetup')->__('Click here to set up your pages, blocks, emails and tax settings.', $this->getManageUrl()) ?> +
+ diff --git a/src/app/design/frontend/base/default/layout/magesetup.xml b/src/app/design/frontend/base/default/layout/magesetup.xml new file mode 100644 index 00000000..477c7798 --- /dev/null +++ b/src/app/design/frontend/base/default/layout/magesetup.xml @@ -0,0 +1,520 @@ + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + simple + magesetup/catalog_product_price + + + + virtual + magesetup/catalog_product_price + + + + grouped + magesetup/catalog_product_price + + + + downloadable + magesetup/catalog_product_price + + + + configurable + magesetup/catalog_product_price + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + bundle + magesetup/bundle_catalog_product_price + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + css/magesetup/checkout.css + + + + + + + + agreements + + + + + + + + + + + + + + css/magesetup/checkout.css + + + + + magesetup/checkout/multishipping/overview.phtml + + + agreements + + + + + + + + + + + + + + + + + + + reorder + + + + + reorder + + + + diff --git a/src/app/design/frontend/base/default/template/magesetup/checkout/additional.phtml b/src/app/design/frontend/base/default/template/magesetup/checkout/additional.phtml new file mode 100644 index 00000000..c1fca7f6 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/checkout/additional.phtml @@ -0,0 +1,31 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +getCheckoutAdditionalInformation()): ?> +
+ +
+ diff --git a/src/app/design/frontend/base/default/template/magesetup/checkout/multishipping/agreements.phtml b/src/app/design/frontend/base/default/template/magesetup/checkout/multishipping/agreements.phtml new file mode 100644 index 00000000..8f0ce59b --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/checkout/multishipping/agreements.phtml @@ -0,0 +1,57 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Checkout Agreements + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +/** + * @var $this Mage_Checkout_Block_Agreements + */ + +/* @var $helper FireGento_MageSetup_Helper_Data */ +$helper = $this->helper('magesetup'); +?> + +getAgreements()) return; ?> + +
    +getAgreements() as $_a): ?> +
  1. +

    + getIsRequired()): ?> + + + + __('[Show]') ?> +

    +
  2. + +
diff --git a/src/app/design/frontend/base/default/template/magesetup/checkout/multishipping/overview.phtml b/src/app/design/frontend/base/default/template/magesetup/checkout/multishipping/overview.phtml new file mode 100644 index 00000000..381dbe7d --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/checkout/multishipping/overview.phtml @@ -0,0 +1,240 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +
+
+

__('Review Order') ?>

+
+ getMessagesBlock()->getGroupedHtml() ?> +
+ getChildHtml('agreements') ?> + +
+

__('Billing Information') ?>

+
+
+ getBillingAddress() ?> +
+

__('Billing Address') ?> | __('Change') ?>

+
+
+
+ format('html') ?> +
+
+
+
+
+
+
+

__('Payment Method') ?> | __('Change') ?>

+
+
+ + + getPaymentHtml() ?> +
+
+
+
+ helper('tax')->displayCartBothPrices() ? 2 : 1); ?> +
+

__('Shipping Information') ?>

+ getShippingAddresses() as $_index => $_address): ?> +

__('Address %s of %s', ($_index+1), $this->getShippingAddressCount()) ?>

+
+
+
+

__('Shipping To') ?> | __('Change') ?>

+
+
+
+ format('html') ?> +
+
+
+
+
+

__('Shipping Method') ?> | __('Change') ?>

+
+
+ getShippingAddressRate($_address)): ?> +

+ escapeHtml($_rate->getCarrierTitle()) ?> - escapeHtml($_rate->getMethodTitle()) ?> + getShippingPriceExclTax($_address); ?> + getShippingPriceInclTax($_address); ?> + + helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?> + (__('Incl. Tax'); ?> ) + +

+ +
+
+
+
+

__('Items') ?> | __('Edit Items') ?>

+ + + + helper('tax')->displayCartBothPrices()): ?> + + + + + helper('tax')->displayCartBothPrices()): ?> + + + + + + + + + + helper('tax')->displayCartBothPrices()): ?> + + + + + + + + + + renderTotals($this->getShippingAddressTotals($_address)); ?> + + + getShippingAddressItems($_address) as $_item): ?> + getRowItemHtml($_item); ?> + + +
__('Product Name') ?>__('Price') ?>__('Qty') ?>__('Subtotal') ?>
helper('tax')->getIncExcTaxLabel(false) ?>helper('tax')->getIncExcTaxLabel(true) ?>helper('tax')->getIncExcTaxLabel(false) ?>helper('tax')->getIncExcTaxLabel(true) ?>
+ +
+ getShippingAddressCount()!=$_index+1): ?> +
+ + +
+ getQuote()->hasVirtualItems()): ?> +
+

__('Other Items in Your Order') ?>

+
+
+

__('Items') ?> | __('Edit Items') ?>

+ helper('tax')->displayCartBothPrices() ? 2 : 1); ?> + + + + helper('tax')->displayCartBothPrices()): ?> + + + + + helper('tax')->displayCartBothPrices()): ?> + + + + + + + + + + helper('tax')->displayCartBothPrices()): ?> + + + + + + + + + + renderTotals($this->getBillinAddressTotals()); ?> + + + getVirtualItems() as $_item): ?> + getRowItemHtml($_item); ?> + + +
__('Product Name') ?>__('Price') ?>__('Qty') ?>__('Subtotal') ?>
helper('tax')->getIncExcTaxLabel(false) ?>helper('tax')->getIncExcTaxLabel(true) ?>helper('tax')->getIncExcTaxLabel(false) ?>helper('tax')->getIncExcTaxLabel(true) ?>
+ +
+
+ + + getChildHtml('items_after'); ?> + +
+
+
+
+ __('Grand Total:') ?> helper('checkout')->formatPrice($this->getTotal()) ?> +
+ +
+
+
+ +
+
+ +
+ +
diff --git a/src/app/design/frontend/base/default/template/magesetup/checkout/onepage/agreements.phtml b/src/app/design/frontend/base/default/template/magesetup/checkout/onepage/agreements.phtml new file mode 100644 index 00000000..922f055a --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/checkout/onepage/agreements.phtml @@ -0,0 +1,60 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Checkout Agreements + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.2 + */ + +/** + * @var $this FireGento_MageSetup_Block_Checkout_Agreements + */ + +/** @var $helper FireGento_MageSetup_Helper_Data */ +$helper = Mage::helper('magesetup'); +$agreements = $this->getAgreements(); +?> + + + +
+
    + +
  1. +

    + getIsRequired()): ?> + + + + __('[Show]') ?> +

    +
  2. + +
+
diff --git a/src/app/design/frontend/base/default/template/magesetup/customer/form/tc-confirmation.phtml b/src/app/design/frontend/base/default/template/magesetup/customer/form/tc-confirmation.phtml new file mode 100644 index 00000000..f0e14467 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/customer/form/tc-confirmation.phtml @@ -0,0 +1,55 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Checkout Agreements + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +/** + * @var $this Mage_Checkout_Block_Agreements + */ + +/* @var $helper FireGento_MageSetup_Helper_Data */ +$helper = $this->helper('magesetup'); +?> + +getAgreements()) return; ?> + +getAgreements() as $_a): ?> +
  • +

    + getIsRequired() ): ?> + + + + __( '[Show]' ) ?> +

    +
  • + diff --git a/src/app/design/frontend/base/default/template/magesetup/delivery_time.phtml b/src/app/design/frontend/base/default/template/magesetup/delivery_time.phtml new file mode 100644 index 00000000..f77a7dc7 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/delivery_time.phtml @@ -0,0 +1,44 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Template for displaying delivery time + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.0 + */ + +/** + * @var $this Mage_Catalog_Block_Product_View_Abstract + */ +?> + +getProduct()->getDeliveryTime()): ?> +

    + __('Delivery Time') ?>: getProduct()->getDeliveryTime() ?> +

    + diff --git a/src/app/design/frontend/base/default/template/magesetup/imprint/address.phtml b/src/app/design/frontend/base/default/template/magesetup/imprint/address.phtml new file mode 100644 index 00000000..04728af6 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/imprint/address.phtml @@ -0,0 +1,37 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +getCompanyFirst() ?>
    +getCompanySecond()))): ?> + getCompanySecond() ?>
    + +getStreet() ?>
    +getZip() ?> getCity() ?> +getCountry()))): ?> +
    getCountry()?> + diff --git a/src/app/design/frontend/base/default/template/magesetup/imprint/bank.phtml b/src/app/design/frontend/base/default/template/magesetup/imprint/bank.phtml new file mode 100644 index 00000000..585d48f9 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/imprint/bank.phtml @@ -0,0 +1,51 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + + +getBankAccount())) || strlen(trim($this->getSwift()))): ?> +

    Bankverbindung

    + + +getBankAccountOwner()))): ?> + __('Account owner') ?>: getBankAccountOwner() ?>
    + +getBankAccount()))): ?> + __('Account') ?>: getBankAccount() ?>
    + +getBankCodeNumber()))): ?> + __('Bank number') ?>: getBankCodeNumber() ?>
    + +getBankName()))): ?> + __('Bank name') ?>: getBankName() ?>
    + +getSwift()))): ?> + __('SWIFT') ?>: getSwift() ?>
    + +getIban()))): ?> + __('IBAN') ?>: getIban() ?>
    + diff --git a/src/app/design/frontend/base/default/template/magesetup/imprint/communication.phtml b/src/app/design/frontend/base/default/template/magesetup/imprint/communication.phtml new file mode 100644 index 00000000..1112e9b9 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/imprint/communication.phtml @@ -0,0 +1,38 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +getTelephone()))): ?> + __('Telephone') ?>: getTelephone() ?>
    + +getFax()))): ?> +__('Fax') ?>: getFax() ?>
    + +getWeb()))): ?> +__('Web') ?>: getWeb() ?>
    + +__('E-Mail') ?>: getEmail() ?> diff --git a/src/app/design/frontend/base/default/template/magesetup/imprint/email_footer.phtml b/src/app/design/frontend/base/default/template/magesetup/imprint/email_footer.phtml new file mode 100644 index 00000000..e1b89e0f --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/imprint/email_footer.phtml @@ -0,0 +1,102 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +

    getShopName() ?>

    + +

    + getCompanyFirst() ?>
    + getCompanySecond()))): ?> + getCompanySecond() ?>
    + + getStreet() ?>
    + getZip() ?> getCity() ?> +

    + +

    + getTelephone()))): ?> + __('Telephone') ?>: getTelephone() ?>
    + + getFax()))): ?> + __('Fax') ?>: getFax() ?>
    + + getWeb()))): ?> + __('Web') ?>: getWeb() ?>
    + + __('E-Mail') ?>: getEmail() ?> +

    + +

    + getFinancialOffice()))): ?> + __('Financial office') ?>: getFinancialOffice() ?>
    + + getTaxNumber()))): ?> + __('Tax number') ?>: getTaxNumber() ?>
    + + getVatId()))): ?> + __('VAT-ID') ?>: getVatId() ?>
    + +

    + +

    + getCeo()))): ?> + __('CEO') ?>: getCeo() ?>
    + + getOwner()))): ?> + __('Owner') ?>: getOwner() ?>
    + + getCourt()))): ?> + __('Register court') ?>: getCourt() ?>
    + + getRegisterNumber()))): ?> + __('Register number') ?>: getRegisterNumber() ?>
    + + getBusinessRules()))): ?> + __('Reference for business rules') ?>: getBusinessRules() ?> + +

    + +

    + getBankAccountOwner()))): ?> + __('Account owner') ?>: getBankAccountOwner() ?>
    + + getBankAccount()))): ?> + __('Account') ?>: getBankAccount() ?>
    + + getBankCodeNumber()))): ?> + __('Bank number') ?>: getBankCodeNumber() ?>
    + + getBankName()))): ?> + __('Bank name') ?>: getBankName() ?>
    + + getSwift()))): ?> + __('SWIFT') ?>: getSwift() ?>
    + + getIban()))): ?> + __('IBAN') ?>: getIban() ?>
    + +

    diff --git a/src/app/design/frontend/base/default/template/magesetup/imprint/legal.phtml b/src/app/design/frontend/base/default/template/magesetup/imprint/legal.phtml new file mode 100644 index 00000000..b5fa7ce7 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/imprint/legal.phtml @@ -0,0 +1,68 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +getCeo()))): ?> + __('CEO') ?>: getCeo() ?>
    + +getOwner()))): ?> +__('Owner') ?>: getOwner() ?>
    + +getContentResponsableName())) || strlen(trim($this->getContentResponsableAddress()))): ?> +

    __('Responsible according to § 5 TMG'); ?>:

    + +getContentResponsableName()))): ?> +__('Responsible for content') ?>: getContentResponsableName() ?>
    + +getContentResponsableAddress()))): ?> +__('Responsible for content address') ?>: getContentResponsableAddress() ?>
    + +getContentResponsablePressLaw()))): ?> +__('Responsible in the interests of the press law') ?>: getContentResponsablePressLaw() ?>
    + +getVatId()))): ?> + __('VAT-ID') ?>: getVatId() ?>
    + +getCourt()))): ?> + __('Register court') ?>: getCourt() ?>
    + +getRegisterNumber()))): ?> + __('Register number') ?>: getRegisterNumber() ?>
    + +getBusinessRules()))): ?> + __('Reference for business rules') ?>: getBusinessRules() ?>
    + +getAuthority()))): ?> + __('Authority (ECG)') ?>: getAuthority() ?>
    + +getShareholdings()))): ?> + __('Shareholdings') ?>: getShareholdings()) ?>
    + +getEditorialConcept()))): ?> + __('Editorial Concept') ?>: getEditorialConcept() ?>
    + diff --git a/src/app/design/frontend/base/default/template/magesetup/imprint/tax.phtml b/src/app/design/frontend/base/default/template/magesetup/imprint/tax.phtml new file mode 100644 index 00000000..4032bed6 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/imprint/tax.phtml @@ -0,0 +1,37 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +?> + +getFinancialOffice()))): ?> + __('Financial office') ?>: getFinancialOffice() ?>
    + +getTaxNumber()))): ?> + __('Tax number') ?>: getTaxNumber() ?>
    + +getVatId()))): ?> + __('VAT-ID') ?>: getVatId() ?>
    + diff --git a/src/app/design/frontend/base/default/template/magesetup/price_info.phtml b/src/app/design/frontend/base/default/template/magesetup/price_info.phtml new file mode 100644 index 00000000..6dc96815 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/price_info.phtml @@ -0,0 +1,70 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Template for tax display and shipping cost link + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ + +/** + * @var $this FireGento_MageSetup_Block_Catalog_Product_Price + */ +?> + +getShippingCostUrl() ?> +getIsShowShippingLink() ): ?> + getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_EXCLUDING_TAX ): ?> + getIsIncludingShippingCosts() ): ?> + __( 'Excl. %s Tax', $this->getFormattedTaxRate() ) ?>, __( 'incl. Shipping Cost', $shippingCostUrl ) ?> + + __( 'Excl. %s Tax', $this->getFormattedTaxRate() ) ?>, __( 'excl. Shipping Cost', $shippingCostUrl ) ?> + + getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX ): ?> + getIsIncludingShippingCosts() ): ?> + __( 'Incl. %s Tax', $this->getFormattedTaxRate() ) ?>, __( 'incl. Shipping Cost', $shippingCostUrl ) ?> + + __( 'Incl. %s Tax', $this->getFormattedTaxRate() ) ?>, __( 'excl. Shipping Cost', $shippingCostUrl ) ?> + + getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_BOTH ): ?> + getIsIncludingShippingCosts() ): ?> + __('incl. Shipping Cost', $shippingCostUrl) ?> + + __('excl. Shipping Cost', $shippingCostUrl) ?> + + + getIsShowWeightInfo()): ?> + (__('Shipping Weight %s', $this->getFormattedWeight()) ?>) + + + getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_EXCLUDING_TAX ): ?> + __( 'Excl. %s Tax', $this->getFormattedTaxRate() ) ?> + getIsIncludingTax() == Mage_Tax_Model_Config::DISPLAY_TYPE_INCLUDING_TAX ): ?> + __( 'Incl. %s Tax', $this->getFormattedTaxRate() ) ?> + + diff --git a/src/app/design/frontend/base/default/template/magesetup/shipping.phtml b/src/app/design/frontend/base/default/template/magesetup/shipping.phtml new file mode 100644 index 00000000..9bd70549 --- /dev/null +++ b/src/app/design/frontend/base/default/template/magesetup/shipping.phtml @@ -0,0 +1,46 @@ + + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 0.1.0 + */ +/** + * Template for shipping cost link + * + * @category FireGento + * @package FireGento_MageSetup + * @author FireGento Team + * @copyright 2013 FireGento Team (http://www.firegento.de). All rights served. + * @license http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3) + * @version $Id:$ + * @since 1.2.0 + */ + +/** + * @var $this Mage_Checkout_Block_Cart_Shipping + */ +?> + +getShippingCostUrl() ?> + + + diff --git a/src/app/etc/modules/FireGento_MageSetup.xml b/src/app/etc/modules/FireGento_MageSetup.xml new file mode 100644 index 00000000..deba5925 --- /dev/null +++ b/src/app/etc/modules/FireGento_MageSetup.xml @@ -0,0 +1,35 @@ + + + + + + true + community + + + false + + + diff --git a/src/app/locale/de_AT/FireGento_MageSetup.csv b/src/app/locale/de_AT/FireGento_MageSetup.csv new file mode 100644 index 00000000..64585534 --- /dev/null +++ b/src/app/locale/de_AT/FireGento_MageSetup.csv @@ -0,0 +1,3 @@ +"VAT-ID","UID" +"Register number","Firmenbuchnummer" +"SWIFT","BIC/SWIFT" \ No newline at end of file diff --git a/src/app/locale/de_DE/FireGento_MageSetup.csv b/src/app/locale/de_DE/FireGento_MageSetup.csv new file mode 100644 index 00000000..97ff5470 --- /dev/null +++ b/src/app/locale/de_DE/FireGento_MageSetup.csv @@ -0,0 +1,151 @@ +"Display Block below Price","Block unterhalb der Preise darstellen" +"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" +"Display Delivery time on Category Pages","Lieferzeit auf Produktübersichtsseiten anzeigen" +"CMS Page for Shipping Info","CMS-Seite für Versandkosten" +"Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Zeige ""inkl. Versandkosten"" statt ""zzgl. Versandkosten""" +"Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Zeige ""inkl. Versandkosten"" statt ""zzgl. Versandkosten""" +"No Page","Keine Seite" +"No Block","Kein Block" +"Incl. Tax","Inkl. MwSt." +"Incl. %s Tax","Inkl. %s MwSt." +"Excl. %s Tax","Zzgl. %s MwSt." +"excl. Shipping Cost","zzgl. Versandkosten" +"incl. Shipping Cost","inkl. Versandkosten" +"Display Product Weight below Price","Produktgewicht unterhalb der Preise darstellen" +"Unit for Product Weight","Einheit für Produktgewicht" +"e.g. g, kg, lb, ...","z.B. g, kg, lb, ..." +"Shipping Weight %s","Versandgewicht %s" + +"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." +"MageSetup has been installed.","MageSetup wurde installiert." +"Click here to set up your pages, blocks, emails and tax settings.","Klicken Sie hier, um CMS-Seiten, Blöcke, E-Mails und Steuer-Einstellungen zu initialisieren." +"Please choose the requested setups:","Bitte wählen Sie die gewünschten Setups:" +"Run MageSetup","MageSetup ausführen" +"Update System Config Settings","Einstellungen in der Systemkonfiguration aktualisieren" +"i.e. newsletter confirmation, account confirmation, ..","z.B. Newsletter Bestätigung, Benutzerkonto Bestätigung, .." +"Create CMS Pages and Blocks","CMS-Seiten und Statische Blöcke erstellen" +"i.e. shipping, conditions, revocation","z.B. Versand, AGB, Widerruf" +"Create Checkout Agreements","Bestellbedingungen erstellen" +"Conditions","AGB und Widerrufsbelehrung" +"Display Checkbox on Frontend","Checkbox im Frontend anzeigen" +"Require Confirmation on Customer Registration and/or Checkout","Pflichtfeld bei Kundenregistrierung und/oder Checkout" +"Language Package for CMS Pages/Blocks/Agreements","Sprachpaket für CMS-Seiten/-Blocks/Bestellbedingungen" +"Create Email Templates","Email-Templates erstellen" +"German Email Templates","Deutsche Email-Vorlagen" +"Configure Tax","Steuereinstellungen konfigurieren" +"Shipping from Germany","Versand aus Deutschland" +"All tax settings will be overwritten!","Alle Steuereinstellungen werden überschrieben!" +"Update Product Tax Classes","Produktsteuerklassen neu zuweisen" +"Update Customer Tax Classes","Kundensteuerklassen neu zuweisen" +"Old","Alt" +"New","Neu" +"No tax","Keine Steuern" +"Newsletter Subscribers Status History","Newsletter Abonnenten Status Historie" + +"MageSetup: CMS Blocks and Pages have been created.","MageSetup: CMS-Blocks und Seiten wurden erfolgreich angelegt." +"MageSetup: Checkout Agreements have been created.","MageSetup: Bestellbedingungen wurden erfolgreich angelegt." +"MageSetup: Email Templates have been created.","MageSetup: Email-Vorlagen wurden erfolgreich angelegt." +"MageSetup: Tax Settings have been created.","MageSetup: Steuereinstellungen wurden erfolgreich angelegt." +"MageSetup: Product Tax Classes have been updated.","MageSetup: Produktsteuerklassen wurden aktualisiert." +"MageSetup: System Config Settings have been updated.","MageSetup: Einstellungen in der Systemkonfiguration wurden aktualisiert." + +"Imprint","Impressum" +"Account","Kontonummer" +"Account owner","Kontoinhaber" +"Bank number","BLZ" +"Bank name","Kreditinstitut" +"CEO","Geschäftsführer" +"Owner","Inhaber" +"Responsible according to § 5 TMG","Inhaltlich verantwortlich gemäß § 5 TMG" +"Responsible for content","Inhalt. Verantwortlicher" +"Responsible for content address","Adresse des inhalt. Verantwortlichen" +"Responsible in the interests of the press law","Verantwortlich im Sinne des Presserechts (V.i.S.d.P.)" +"E-Mail","E-Mail" +"Fax","Fax" +"Financial office","Finanzamt" +"IBAN","IBAN" +"Register court","Registergericht" +"Register number","HRB-Nummer" +"SWIFT","SWIFT" +"BIC/SWIFT","BIC/SWIFT" +"Tax number","Steuernummer" +"Telephone","Telefon" +"Web","Web" +"VAT-ID","USt.Id." +"Company 1","Firma 1" +"Company 2","Firma 2" +"Street","Straße" +"Zip","PLZ" +"City","Ort" +"Telephone","Telefon" +"Tax number","Steuernummer" +"Register court","Zuständiges Gericht" +"Financial office","Zuständiges Finanzamt" +"Register number","HRB Nummer" +"Reference for business rules (physician, physician...)","Verweis auf berufliche Regelungen (z.B. für Ärzte, Apotheker)" +"Authority (ECG)","Behörde gem. ECG (E-Commerce-Gesetz)" +"Shareholdings","Beteiligungen" +"Editorial Concept","Blattlinie" +"relevant for Austrian shops","relevant für österreichische Shops" +"Account owner","Kontoinhaber" +"Account","Kontonummer" +"Bank number","BLZ" +"Bank name","Kreditinstitut" + +"%s%%","%s%%" + +"Recommended Extensions","Empfohlene Erweiterungen" +"Popular Payment Methods","Beliebte Zahlungsmethoden" +"Ip anonymization", "IP Adresse verschleiern" +"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)" + +"Dynamic Shipping Tax Class Calculation","Dynamische Berechnung der Versand-Steuerklasse" +"Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.
    ATTENTION: 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.
    ACHTUNG: Diese Einstellung überschreibt die Einstellung ""Steuerklasse für den Versand"" darüber." + +"Shipping from","Versand aus" +"This setting is base for the tax rate setup!","Diese Einstellung wird für das Setup der Steuereinstellungen verwendet!" + +"[Show]","[Anzeigen]" +"Visible in Checkout","Sichtbar im Bestellprozess" + +"Display Additional Information","Zusatzinformation anzeigen" +"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)" + +"Directory ""%s"" not found. Locale not installed?","Verzeichnis ""%s"" nicht gefunden. Ist das Sprachpaket korrekt installiert?" +"Default Setting","Standardeinstellung" +"Use Default Setting","Standardeinstellung benutzen" +"Select Locale","Gewähltes Spachpaket" +"Create Transational Email Templates to be managed in the Magento admin area","Transaktions-Emails erzeugen, die im Magento-Admin-Bereich verwaltet werden können." +"Language Package for Email Templates","Spachpaket für Email-Templates" +"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." +"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." + +"Configuration Settings","Konfigurations-Einstellungen" +"CMS Settings","CMS-Einstellungen" +"Email Settings","Email-Einstellungen" +"Tax Settings","Steuer-Einstellungen" + +"Delivery Time","Lieferzeit" +"Shipping Costs","Versandkosten" +"Hide estimated shipping costs in cart","Geschätzte Versandkosten im Warenkorb verstecken" +"Replace with a link to the shipping costs cms page","Mit einem Link zur CMS-Seite ""Versandkosten"" ersetzen" +"Here you find information regarding the shipping costs.","Hier finden Sie Informationen zu den Versandkosten." +"Hide box ""Last Ordered Items""","Box ""Zuletzt bestellte Artikel"" verstecken" +"Tax Settings","Steuer-Einstellungen" + +"Display on","Anzeigen in" +"On checkout (Magento Default)","Im Checkout (Magento-Standard)" +"On customer registration (or on checkout, if customer not registered before)","In der Kundenregistrierung (oder im Checkout, wenn der Kunde vorher nicht registriert ist)" +"On customer registration and on checkout","In der Kundenregistrierung und im Checkout" +"Nowhere","Nirgendwo" +"Agreements not confirmed.","Bedingungen wurden nicht bestätigt." + +"German Language Pack","Deutsches Sprachpaket" +"Base Price","Grundpreis-Modul (PAngV)" +"Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Newsletter Abmeldung als Gast und Double Opt-In für registrierte Kunden" +"Debit Payment","Bankeinzug/Lastschrift" +"Cash on Delivery","Nachnahme" +"Bank Payment","Vorkasse" +"Invoice Payment","Rechnung" +"Extension Key","Extension Key" +"MagentoConnect","MagentoConnect" \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/agreement/business_terms.html b/src/app/locale/de_DE/template/magesetup/agreement/business_terms.html new file mode 100644 index 00000000..d4abda77 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/agreement/business_terms.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/agreement/revocation.html b/src/app/locale/de_DE/template/magesetup/agreement/revocation.html new file mode 100644 index 00000000..c54f166f --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/agreement/revocation.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/block/business_terms.html b/src/app/locale/de_DE/template/magesetup/block/business_terms.html new file mode 100644 index 00000000..8a387a3f --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/block/business_terms.html @@ -0,0 +1,2 @@ + +

    Fügen Sie hier Ihre Allgemeinen Geschäftsbedingungen ein.

    diff --git a/src/app/locale/de_DE/template/magesetup/block/revocation.html b/src/app/locale/de_DE/template/magesetup/block/revocation.html new file mode 100644 index 00000000..3c03e82a --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/block/revocation.html @@ -0,0 +1,2 @@ + +

    Fügen Sie hier Ihre vollständige Widerrufsbelehrung ein.

    diff --git a/src/app/locale/de_DE/template/magesetup/page/404.html b/src/app/locale/de_DE/template/magesetup/page/404.html new file mode 100644 index 00000000..504ad705 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/404.html @@ -0,0 +1,9 @@ + + + +

    404 - Seite nicht gefunden

    +

    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 Suche oder wechseln Sie zu unserer Startseite um in unserem umfangreichen Sortiment zu stöbern.

    + diff --git a/src/app/locale/de_DE/template/magesetup/page/business_terms.html b/src/app/locale/de_DE/template/magesetup/page/business_terms.html new file mode 100644 index 00000000..76e81463 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/business_terms.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/page/imprint.html b/src/app/locale/de_DE/template/magesetup/page/imprint.html new file mode 100644 index 00000000..6348cfe1 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/imprint.html @@ -0,0 +1,37 @@ + + + +

    DISCLAIMER

    + +

    Die hier bereitgestellten Mustertexte sind ausdrücklich als +MUSTER zu verstehen und müssen in jedem Fall durch +eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt +werden. Weder FireGento e.V. noch Trusted Shops tragen für die +Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.

    + +

    Impressum (Muster)

    + +

    {{block type="magesetup/imprint_field" value="shop_name"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}

    + +

    {{block type="magesetup/imprint_field" value="business_rules"}}

    + +

    Sie erreichen unseren Kundendienst für Fragen Reklamationen und Beanstandungen unter Telefon: {{block type="magesetup/imprint_field" value="telephone"}} sowie per Email unter {{block type="magesetup/imprint_field" value="email"}}. Für Anfragen können Sie auch das Kontaktformular auf unserer Internetseite nutzen.

    + +

    Disclaimer (Muster)

    + +

    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.

    + +

    Urheber- und Kennzeichenrecht

    + +

    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.

    + diff --git a/src/app/locale/de_DE/template/magesetup/page/order.html b/src/app/locale/de_DE/template/magesetup/page/order.html new file mode 100644 index 00000000..6e6285c9 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/order.html @@ -0,0 +1,38 @@ + + + +

    DISCLAIMER

    + +

    Die hier bereitgestellten Mustertexte sind ausdrücklich als +MUSTER zu verstehen und müssen in jedem Fall durch +eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt +werden. Weder FireGento e.V. noch Trusted Shops tragen für die +Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.

    + +

    Bestellvorgang, einfach und bequem bestellen

    + +

    Wie kann ich bei {{block type="magesetup/imprint_field" value="shop_name"}} bestellen?

    + +

    1. Warenkorb

    + +

    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.

    + +

    2. Kasse

    + +

    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 (Datenschutzhinweis). 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.

    + +

    3. Rechnungsadresse prüfen / Zahlungsweise auswählen

    + +

    Überprüfen Sie nun Ihre Rechnungsadresse und geben Sie Ihre gewünschte Zahlungsweise an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.

    + +

    4. Versandadresse prüfen / Versandart auswählen

    + +

    Überprüfen Sie nun Ihre Versandadresse und geben Sie Ihre gewünschte Versandart an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.

    + +

    5. Bestellvorgang abschließen / AGB und Widerrufsbelehrung

    + +

    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 Allgemeinen Geschäftsbedingungen und die Widerrufsbelehrung 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.

    + +

    Widerrufsrecht für Verbraucher

    + +

    Alle Informationen zum Widerrufsrecht

    \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/page/payment.html b/src/app/locale/de_DE/template/magesetup/page/payment.html new file mode 100644 index 00000000..6804f205 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/payment.html @@ -0,0 +1,30 @@ + + + +

    DISCLAIMER

    + +

    Die hier bereitgestellten Mustertexte sind ausdrücklich als +MUSTER zu verstehen und müssen in jedem Fall durch +eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt +werden. Weder der FireGento e.V. noch Trusted Shops tragen für die +Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.

    + +

    Zahlungsarten

    + +

    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.

    + +

    Vorkasse

    + +

    Bitte überweisen Sie den Gesamtbetrag Ihrer Bestellung auf unser Konto.

    + +

    Rechnung

    + +

    Nur für Schulen, Behörden und im Handelsregister eingetragene Unternehmen nach Prüfung.

    + +

    Nachnahme

    + +

    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.

    + +

    Lastschrift

    + +

    Wir ziehen den Rechnungsbetrag Ihrer Bestellung von Ihrem hinterlegten Bankkonto nach der getätigten Bestellung ein.

    \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/page/privacy.html b/src/app/locale/de_DE/template/magesetup/page/privacy.html new file mode 100644 index 00000000..82e58e4c --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/privacy.html @@ -0,0 +1,4 @@ + + + +

    Fügen Sie hier Ihre Datenschutzerklärung ein.

    diff --git a/src/app/locale/de_DE/template/magesetup/page/revocation.html b/src/app/locale/de_DE/template/magesetup/page/revocation.html new file mode 100644 index 00000000..9fd4d81a --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/revocation.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/de_DE/template/magesetup/page/shipping.html b/src/app/locale/de_DE/template/magesetup/page/shipping.html new file mode 100644 index 00000000..782212b3 --- /dev/null +++ b/src/app/locale/de_DE/template/magesetup/page/shipping.html @@ -0,0 +1,4 @@ + + + +

    Fügen Sie hier Ihre Versandkostenaufstellung und weitere Einzelheiten zur Lieferung ein.

    diff --git a/src/app/locale/en_US/FireGento_MageSetup.csv b/src/app/locale/en_US/FireGento_MageSetup.csv new file mode 100644 index 00000000..286c2928 --- /dev/null +++ b/src/app/locale/en_US/FireGento_MageSetup.csv @@ -0,0 +1,151 @@ +"Display Block below Price","Display Block below Price" +"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" +"Display Delivery time on Category Pages","Display Delivery time on Category Pages" +"CMS Page for Shipping Info","CMS Page for Shipping Info" +"Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""" +"Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""" +"No Page","No Page" +"No Block","No Block" +"Incl. Tax","Incl. Tax" +"Incl. %s Tax","Incl. %s Tax" +"Excl. %s Tax","Excl. %s Tax" +"excl. Shipping Cost","excl. Shipping Cost" +"incl. Shipping Cost","incl. Shipping Cost" +"Display Product Weight below Price","Display Product Weight below Price" +"Unit for Product Weight","Unit for Product Weight" +"e.g. g, kg, lb, ...","e.g. g, kg, lb, ..." +"Shipping Weight %s","Shipping Weight %s" + +"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." +"MageSetup has been installed.","MageSetup has been installed." +"Click here to set up your pages, blocks, emails and tax settings.","Click here to set up your pages, blocks, emails and tax settings." +"Please choose the requested setups:","Please choose the requested setups:" +"Run MageSetup","Run MageSetup" +"Update System Config Settings","Update System Config Settings" +"i.e. newsletter confirmation, account confirmation, ..","i.e. newsletter confirmation, account confirmation, .." +"Create CMS Pages and Blocks","Create CMS Pages and Blocks" +"i.e. shipping, conditions, revocation","i.e. shipping, conditions, revocation" +"Create Checkout Agreements","Create Checkout Agreements" +"Conditions","Conditions" +"Display Checkbox on Frontend","Display Checkbox on Frontend" +"Require Confirmation on Customer Registration and/or Checkout","Require Confirmation on Customer Registration and/or Checkout" +"Language Package for CMS Pages/Blocks/Agreements","Language Package for CMS Pages/Blocks/Agreements" +"Create Email Templates","Create Email Templates" +"German Email Templates","German Email Templates" +"Configure Tax","Configure Tax" +"Shipping from Germany","Shipping from Germany" +"All tax settings will be overwritten!","All tax settings will be overwritten!" +"Update Product Tax Classes","Update Product Tax Classes" +"Update Customer Tax Classes","Update Customer Tax Classes" +"Old","Old" +"New","New" +"No tax","No tax" +"Newsletter Subscribers Status History","Newsletter Subscribers Status History" + +"MageSetup: CMS Blocks and Pages have been created.","MageSetup: CMS Blocks and Pages have been created." +"MageSetup: Checkout Agreements have been created.","MageSetup: Checkout Agreements have been created." +"MageSetup: Email Templates have been created.","MageSetup: Email Templates have been created." +"MageSetup: Tax Settings have been created.","MageSetup: Tax Settings have been created." +"MageSetup: Product Tax Classes have been updated.","MageSetup: Product Tax Classes have been updated." +"MageSetup: System Config Settings have been updated.","MageSetup: System Config Settings have been updated." + +"Imprint","Imprint" +"Account","Account" +"Account owner","Account owner" +"Bank number","Bank number" +"Bank name","Bank name" +"CEO","CEO" +"Owner","Owner" +"Responsible according to § 5 TMG","Responsible according to § 5 TMG" +"Responsible for content","Responsible for content" +"Responsible for content address","Responsible for content address" +"Responsible in the interests of the press law","Responsible in the interests of the press law" +"E-Mail","E-Mail" +"Fax","Fax" +"Financial office","Financial office" +"IBAN","IBAN" +"Register court","Register court" +"Register number","Register number" +"SWIFT","SWIFT" +"BIC/SWIFT","BIC/SWIFT" +"Tax number","Tax number" +"Telephone","Telephone" +"Web","Web" +"VAT-ID","VAT-ID" +"Company 1","Company 1" +"Company 2","Company 2" +"Street","Street" +"Zip","Zip" +"City","City" +"Telephone","Telephone" +"Tax number","Tax number" +"Register court","Register court" +"Financial office","Financial office" +"Register number","Register number" +"Reference for business rules (physician, physician...)","Reference for business rules (physician, physician...)" +"Authority (ECG)","Authority (ECG)" +"Shareholdings","Shareholdings" +"Editorial Concept","Editorial Concept" +"relevant for Austrian shops","relevant for Austrian shops" +"Account owner","Account owner" +"Account","Account" +"Bank number","Bank number" +"Bank name","Bank name" + +"%s%%","%s%%" + +"Recommended Extensions","Recommended Extensions" +"Popular Payment Methods in Germany","Popular Payment Methods in Germany" +"Ip anonymization","Ip anonymization" +"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" + +"Dynamic Shipping Tax Class Calculation","Dynamic Shipping Tax Class Calculation" +"Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.
    ATTENTION: 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.
    ATTENTION: This setting overwrites the ""Tax Class for Shipping"" setting above!" + +"Shipping from","Shipping from" +"This setting is base for the tax rate setup!","This setting is base for the tax rate setup!" + +"[Show]","[Show]" +"Visible in Checkout","Visible in Checkout" + +"Display Additional Information","Display Additional Information" +"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" + +"Directory ""%s"" not found. Locale not installed?","Directory ""%s"" not found. Locale not installed?" +"Default Setting","Default Setting" +"Use Default Setting","Use Default Setting" +"Select Locale","Select Locale" +"Create Transational Email Templates to be managed in the Magento admin area","Create Transational Email Templates to be managed in the Magento admin area" +"Language Package for Email Templates","Language Package for Email Templates" +"If your desired locale is missing, please check if it installed.","If your desired locale is missing, please check if it installed." +"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." + +"Configuration Settings","Configuration Settings" +"CMS Settings","CMS Settings" +"Email Settings","Email Settings" +"Tax Settings","Tax Settings" + +"Delivery Time","Delivery Time" +"Shipping Costs","Shipping Costs" +"Hide estimated shipping costs in cart","Hide estimated shipping costs in cart" +"Replace with a link to the shipping costs cms page","Replace with a link to the shipping costs cms page" +"Here you find information regarding the shipping costs.","Here you find information regarding the shipping costs." +"Hide box ""Last Ordered Items""","Hide box ""Last Ordered Items""" +"Tax Settings","Tax Settings" + +"Display on","Display on" +"On checkout (Magento Default)","On checkout (Magento Default)" +"On customer registration (or on checkout, if customer not registered before)","On customer registration (or on checkout, if customer not registered before)" +"On customer registration and on checkout","On customer registration and on checkout" +"Nowhere","Nowhere" +"Agreements not confirmed.","Agreements not confirmed." + +"German Language Pack","German Language Pack" +"Base Price","Base Price" +"Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Newsletter Unsubscription for Guests, Double Opt In for registered Customers" +"Debit Payment","Debit Payment" +"Cash on Delivery","Cash on Delivery" +"Bank Payment","Bank Payment" +"Invoice Payment","Invoice Payment" +"Extension Key","Extension Key" +"MagentoConnect","MagentoConnect" \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/agreement/business_terms.html b/src/app/locale/en_US/template/magesetup/agreement/business_terms.html new file mode 100644 index 00000000..5be0f81b --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/agreement/business_terms.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/agreement/revocation.html b/src/app/locale/en_US/template/magesetup/agreement/revocation.html new file mode 100644 index 00000000..11a7ffb4 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/agreement/revocation.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/block/business_terms.html b/src/app/locale/en_US/template/magesetup/block/business_terms.html new file mode 100644 index 00000000..61452f55 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/block/business_terms.html @@ -0,0 +1,2 @@ + +

    Please insert your Business Terms here.

    diff --git a/src/app/locale/en_US/template/magesetup/block/revocation.html b/src/app/locale/en_US/template/magesetup/block/revocation.html new file mode 100644 index 00000000..aedd75f9 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/block/revocation.html @@ -0,0 +1,2 @@ + +

    Please insert your Declaration of Revocation here.

    diff --git a/src/app/locale/en_US/template/magesetup/page/404.html b/src/app/locale/en_US/template/magesetup/page/404.html new file mode 100644 index 00000000..1bb5218a --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/404.html @@ -0,0 +1,9 @@ + + + +

    404 - Page not found

    +

    The requested page could not be found.

    + diff --git a/src/app/locale/en_US/template/magesetup/page/business_terms.html b/src/app/locale/en_US/template/magesetup/page/business_terms.html new file mode 100644 index 00000000..6ee3ce7b --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/business_terms.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/page/imprint.html b/src/app/locale/en_US/template/magesetup/page/imprint.html new file mode 100644 index 00000000..2f228fdd --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/imprint.html @@ -0,0 +1,39 @@ + + + +

    Please insert your imprint here.

    + +

    DISCLAIMER

    + +

    Die hier bereitgestellten Mustertexte sind ausdrücklich als +MUSTER zu verstehen und müssen in jedem Fall durch +eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt +werden. Weder FireGento e.V. noch Trusted Shops tragen für die +Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.

    + +

    Impressum (Muster)

    + +

    {{block type="magesetup/imprint_field" value="shop_name"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}

    + +

    {{block type="magesetup/imprint_field" value="business_rules"}}

    + +

    Sie erreichen unseren Kundendienst für Fragen Reklamationen und Beanstandungen unter Telefon: {{block type="magesetup/imprint_field" value="telephone"}} sowie per Email unter {{block type="magesetup/imprint_field" value="email"}}. Für Anfragen können Sie auch das Kontaktformular auf unserer Internetseite nutzen.

    + +

    Disclaimer (Muster)

    + +

    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.

    + +

    Urheber- und Kennzeichenrecht

    + +

    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.

    + diff --git a/src/app/locale/en_US/template/magesetup/page/order.html b/src/app/locale/en_US/template/magesetup/page/order.html new file mode 100644 index 00000000..badc4fd2 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/order.html @@ -0,0 +1,40 @@ + + + +

    Please insert details about your order process here.

    + +

    DISCLAIMER

    + +

    Die hier bereitgestellten Mustertexte sind ausdrücklich als +MUSTER zu verstehen und müssen in jedem Fall durch +eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt +werden. Weder FireGento e.V. noch Trusted Shops tragen für die +Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.

    + +

    Bestellvorgang, einfach und bequem bestellen

    + +

    Wie kann ich bei {{block type="magesetup/imprint_field" value="shop_name"}} bestellen?

    + +

    1. Warenkorb

    + +

    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.

    + +

    2. Kasse

    + +

    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 (Datenschutzhinweis). 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.

    + +

    3. Rechnungsadresse prüfen / Zahlungsweise auswählen

    + +

    Überprüfen Sie nun Ihre Rechnungsadresse und geben Sie Ihre gewünschte Zahlungsweise an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.

    + +

    4. Versandadresse prüfen / Versandart auswählen

    + +

    Überprüfen Sie nun Ihre Versandadresse und geben Sie Ihre gewünschte Versandart an. Durch Klicken des Buttons "Weiter" gelangen Sie zum nächsten Bestellschritt.

    + +

    5. Bestellvorgang abschließen / AGB und Datenschutz

    + +

    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 Allgemeinen Geschäftsbedingungen und die Widerrufsbelehrung 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.

    + +

    Widerrufsrecht für Verbraucher

    + +

    Alle Informationen zum Widerrufsrecht

    \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/page/payment.html b/src/app/locale/en_US/template/magesetup/page/payment.html new file mode 100644 index 00000000..ba841855 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/payment.html @@ -0,0 +1,32 @@ + + + +

    Please insert your payment methods and further details here.

    + +

    DISCLAIMER

    + +

    Die hier bereitgestellten Mustertexte sind ausdrücklich als +MUSTER zu verstehen und müssen in jedem Fall durch +eigene rechtssichere Texte unter CMS -> Statische Blöcke ersetzt +werden. Weder der FireGento e.V. noch Trusted Shops tragen für die +Richtigkeit und Vollständigkeit dieser Texte eine Verantwortung.

    + +

    Zahlungsarten

    + +

    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.

    + +

    Vorkasse

    + +

    Bitte überweisen Sie den Gesamtbetrag Ihrer Bestellung auf unser Konto.

    + +

    Rechnung

    + +

    Nur für Schulen, Behörden und im Handelsregister eingetragene Unternehmen nach Prüfung.

    + +

    Nachnahme

    + +

    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.

    + +

    Lastschrift

    + +

    Wir ziehen den Rechnungsbetrag Ihrer Bestellung von Ihrem hinterlegten Bankkonto nach der getätigten Bestellung ein.

    \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/page/privacy.html b/src/app/locale/en_US/template/magesetup/page/privacy.html new file mode 100644 index 00000000..4ee14687 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/privacy.html @@ -0,0 +1,4 @@ + + + +

    Please insert your Privacy Declaration here.

    diff --git a/src/app/locale/en_US/template/magesetup/page/revocation.html b/src/app/locale/en_US/template/magesetup/page/revocation.html new file mode 100644 index 00000000..9fd88056 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/revocation.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/en_US/template/magesetup/page/shipping.html b/src/app/locale/en_US/template/magesetup/page/shipping.html new file mode 100644 index 00000000..d7b10240 --- /dev/null +++ b/src/app/locale/en_US/template/magesetup/page/shipping.html @@ -0,0 +1,4 @@ + + + +

    Please insert your shipping methods and shipping costs here.

    diff --git a/src/app/locale/fr_FR/FireGento_MageSetup.csv b/src/app/locale/fr_FR/FireGento_MageSetup.csv new file mode 100644 index 00000000..be1d5098 --- /dev/null +++ b/src/app/locale/fr_FR/FireGento_MageSetup.csv @@ -0,0 +1,143 @@ +"Display Block below Price","Afficher le block en dessous du prix" +"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" +"Display Delivery time on Category Pages","Afficher le délai de livraison dans les pages de catégories" +"CMS Page for Shipping Info","Page CMS pour les informations de livraison" +"Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Afficher ""incl. les frais de livraison"" au lieu ""excl. les frais de livraison""" +"No Page","Pas de page" +"No Block","Pas Block" +"Incl. Tax","Incl. TVA." +"Incl. %s Tax","Incl. %s TVA" +"Excl. %s Tax","Excl. %s TVA" +"excl. Shipping Cost","excl. frais de livraison" +"incl. Shipping Cost","inkl. frais de livraison" +"Display Product Weight below Price","Placer le poids du produit en dessous du prix" +"Unit for Product Weight","Unité pour le poids du produit" +"e.g. g, kg, lb, ...","expl. g, kg, lb, ..." +"Shipping Weight %s","Poids de la livraison %s" + +"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" +"MageSetup has been installed.","MageSetup a été installé." +"Click here to set up your pages, blocks, emails and tax settings.","Cliquez ici, pour mettre en place vos pages, blocks, emails et réglages de taxe." +"Please choose the requested setups:","Veuillez choisir les réglages suivants:" +"Run MageSetup","Lancer MageSetup" +"Update System Config Settings","Mettre à jour les réglages du système" +"i.e. newsletter confirmation, account confirmation, ..","expl. confirmation de Newsletter, de création de compte, .." +"Create CMS Pages and Blocks","Créer les pages CMS et les blocks" +"i.e. shipping, conditions, revocation","expl. Livraison, CGV, Conditions de retour" +"Create Checkout Agreements","Créer un accord de commande" +"Conditions","CGV et conditions de retour" +"Display Checkbox on Frontend","Montrer la case à cocher dans le Frontend" +"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" +"Language Package for CMS Pages/Blocks/Agreements","Paquet de langue pour les pages CMS/Blocks/Accords" +"Create Email Templates","Créer les modèles d'emails" +"German Email Templates","Modèle d'email allemand" +"Configure Tax","Réglage des taxes" +"Shipping from Germany","Livraison depuis l'allemagne" +"All tax settings will be overwritten!","Tous les réglages de taxes seront supprimés" +"Update Product Tax Classes","Mettre à jour les classes de taxe" +"Old","Ancien" +"New","Nouveau" +"Newsletter Subscribers Status History","Historique des status des abonnés à la newsletter" + +"MageSetup: CMS Blocks and Pages have been created.","MageSetup: les blocks CMS et pages ont été créés." +"MageSetup: Checkout Agreements have been created.","MageSetup: les accords de commande ont éré créés" +"MageSetup: Email Templates have been created.","MageSetup: les modèles d'emails ont éré créés." +"MageSetup: Tax Settings have been created.","MageSetup: les réglages de taxe ont éré créés." +"MageSetup: Product Tax Classes have been updated.","MageSetup: Les classes de taxe produit ont été mis à jour" +"MageSetup: System Config Settings have been updated.","MageSetup: les réglages de la configuration système ont été mis à jour." + +"Imprint","Mentions légales" +"Account","Numéro de compte" +"Account owner","Propriétaire du compte" +"Bank number","Numéro de la banque" +"Bank name","Nom de la banque" +"CEO","Chef d'entreprise" +"Owner","Propriétaire" +"Responsible according to § 5 TMG","Responsable selon l'article XXX" +"Responsible for content","Responsable éditorial" +"Responsible for content address","Responsable du contenu des liens" +"Responsible in the interests of the press law","Attaché de presse" +"E-Mail","E-Mail" +"Fax","Fax" +"Financial office","Bureau des finances" +"IBAN","IBAN" +"Register court","Tribunal de commerce" +"Register number","Numéro du tribunal de commerce" +"SWIFT","SWIFT" +"BIC/SWIFT","BIC/SWIFT" +"Tax number","Numéro de TVA" +"Telephone","Téléphone" +"Web","Web" +"VAT-ID","Numéro de TVA" +"Company 1","Société 1" +"Company 2","Société 2" +"Street","Rue" +"Zip","Code postal" +"City","Ville" +"Reference for business rules (physician, physician...)","Référence aux régimes professionnels (expl. pour les médecins, pharmaciens)" +"Authority (ECG)","Autorité acc. ECG (loi E-Commerce)" +"Shareholdings","Investissements" +"Editorial Concept","Concept éditorial" +"relevant for Austrian shops","Relevant pour les boutiques autrichiennes" + +"%s%%","%s%%" + +"Recommended Extensions","Extensions recommandées" +"Popular Payment Methods","Méthodes de paiement populaires" +"Ip anonymization", "Anonymisation de l'adresse IP" +"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é)" + +"Dynamic Shipping Tax Class Calculation","Calculation dynamique de la classe de taxe de livraison" +"Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.
    ATTENTION: 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..
    ATTENTION: Ce réglage écrit par dessus le réglage ""Classe de taxe pour la livraison""." + +"Germany","Allemagne" +"Austria","Autriche" +"Switzerland","Suisse" +"Russia","Russie" +"France","France" +"Shipping from","Livraison depuis" +"This setting is base for the tax rate setup!","Ce réglage sert pour la configuration des taux de TVA!" + +"[Show]","[Afficher]" +"Visible in Checkout","Visible dans le processus de commande" + +"Display Additional Information","Affichage des informations complémentaires" +"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""" + +"Directory ""%s"" not found. Locale not installed?","Dossier ""%s"" non trouvé. Est-ce que le paquet de langue a été installé correctement?" +"Default Setting","Réglage par défaut" +"Use Default Setting","Utiliser le réglage par défaut" +"Select Locale","Choisissez le paquet de langue" +"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." +"Language Package for Email Templates","Paquet de langue pour les modèles d'email" +"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é." +"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" + +"Configuration Settings","Réglages de la configuration" +"CMS Settings","Réglages CMS" +"Email Settings","Réglages Email" +"Tax Settings","Réglages Taxe" + +"Delivery Time","Délai de livraison" +"Shipping Costs","Frais de livraison" +"Hide estimated shipping costs in cart","Cacher les frais de livraison dans le panier d'achat" +"Replace with a link to the shipping costs cms page","Remplacer avec un lien vers la page CMS des ""frais de livraison""" +"Here you find information regarding the shipping costs.","Vous trouverez ici des informations concernant les frais de livraison." +"Hide box ""Last Ordered Items""","Cacher la boite ""Derniers produits achetés""" + +"Display on","Afficher dans" +"On checkout (Magento Default)","Pendant le processus de commande (Standard Magento)" +"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)" +"On customer registration and on checkout","Pendant le processus de commande et l'enregistrement du client" +"Nowhere","Nulle part" +"Agreements not confirmed.","Les accords n'ont pas été confirmé" + +"German Language Pack","Paquet de langue allemand" +"Base Price","Module Prix de base (PAngV)" +"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 " +"Debit Payment","Paiement par débit" +"Cash on Delivery","Contre-remboursement" +"Bank Payment","Virement" +"Invoice Payment","Facture" +"Extension Key","Extension Key" +"MagentoConnect","MagentoConnect" \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/agreement/business_terms.html b/src/app/locale/fr_FR/template/magesetup/agreement/business_terms.html new file mode 100644 index 00000000..4e37af1c --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/agreement/business_terms.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/agreement/revocation.html b/src/app/locale/fr_FR/template/magesetup/agreement/revocation.html new file mode 100644 index 00000000..ccc46014 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/agreement/revocation.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/block/business_terms.html b/src/app/locale/fr_FR/template/magesetup/block/business_terms.html new file mode 100644 index 00000000..3ca90c77 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/block/business_terms.html @@ -0,0 +1,6 @@ + +

    Remplissez ici vos conditions générales de vente.

    + + +

    Conditions de retractions

    +

    Veuillez remplir ici vos conditions de rétractations

    \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/block/revocation.html b/src/app/locale/fr_FR/template/magesetup/block/revocation.html new file mode 100644 index 00000000..fe6e1c09 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/block/revocation.html @@ -0,0 +1,2 @@ + +

    Remplissez ici vos conditions de retour.

    diff --git a/src/app/locale/fr_FR/template/magesetup/page/404.html b/src/app/locale/fr_FR/template/magesetup/page/404.html new file mode 100644 index 00000000..e07555eb --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/404.html @@ -0,0 +1,9 @@ + + + +

    404 - Page non trouvée

    +

    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 moteur de recherche ou bien visitez notre page d'accueil pour découvrir nos assortiments.

    + diff --git a/src/app/locale/fr_FR/template/magesetup/page/business_terms.html b/src/app/locale/fr_FR/template/magesetup/page/business_terms.html new file mode 100644 index 00000000..e65d1043 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/business_terms.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/page/imprint.html b/src/app/locale/fr_FR/template/magesetup/page/imprint.html new file mode 100644 index 00000000..5833ef52 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/imprint.html @@ -0,0 +1,37 @@ + + + +

    DISCLAIMER

    +

    + Le texte placé ci-dessous est seulement un MODELE vous permettant de vous aider à créer + cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique. + En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte. +

    + +

    Mentions légales (Patron)

    + +

    {{block type="magesetup/imprint_field" value="shop_name"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/address.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/communication.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/legal.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/tax.phtml"}}

    + +

    {{block type="magesetup/imprint_content" template="magesetup/imprint/bank.phtml"}}

    + +

    {{block type="magesetup/imprint_field" value="business_rules"}}

    + +

    + 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 {{block type="magesetup/imprint_field" value="email"}} ou encore notre formulaire de contact situé sur notre site internet. +

    + +

    Droits d'auteur et des marques

    +

    + 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.
    + 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.
    + 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.
    + 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 +

    \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/page/order.html b/src/app/locale/fr_FR/template/magesetup/page/order.html new file mode 100644 index 00000000..efa682a1 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/order.html @@ -0,0 +1,38 @@ + + + +

    DISCLAIMER

    +

    + Le texte placé ci-dessous est seulement un MODELE vous permettant de vous aider à créer + cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique. + En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte. +

    + +

    Commandez confortablement et simplement

    + +

    Comment puis-je commander chez {{block type="magesetup/imprint_field" value="shop_name"}}?

    + +

    1. Panier d'achat

    + +

    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.
    + 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".

    + +

    2. Commander

    +

    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 (Politique de confidentialité). Ê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. +

    + +

    3. Vérification de l'adresse de facturation / Choix du mode de paiement

    + +

    Veuillez vérifier votre adresse de facturation et choisissez votre mode de paiement. Puis cliquez sur "Suivant" pour poursuivre la prochaine étape.

    + +

    4. Vérification de l'adresse de livraison / Choix du mode de livraison

    + +

    Veuillez vérifier votre adresse de facturation et choisissez votre mode de livraison. Puis cliquez sur "Suivant" pour poursuivre la prochaine étape.

    + +

    5. Remplissage du processus de commande / CGV et politique de retour de marchandise

    + +

    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 conditions générales de vente et les conditions de retour. 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.

    + +

    Droit de rétractation

    + +

    Toutes les informations sur les droits de rétractation

    . \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/page/payment.html b/src/app/locale/fr_FR/template/magesetup/page/payment.html new file mode 100644 index 00000000..70eb94e5 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/payment.html @@ -0,0 +1,24 @@ + + + +

    DISCLAIMER

    +

    + Le texte placé ci-dessous est seulement un MODELE vous permettant de vous aider à créer + cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique. + En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte. +

    + +

    Modes de paiement

    +

    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.

    + +

    Virement

    +

    Veuillez s'il vous plaît effectuer le versement du montant total de votre commande auprès de notre compte bancaire.

    + +

    Facture

    +

    Seulement pour les écoles, les administrations et registre du commerce après vérification.

    + +

    Contre-remboursement

    +

    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.

    + +

    Direct Débit direct

    +

    Aussitôt que le paiement est confirmé, nous définissons votre commande comme "Payé"

    \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/page/privacy.html b/src/app/locale/fr_FR/template/magesetup/page/privacy.html new file mode 100644 index 00000000..016a89bf --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/privacy.html @@ -0,0 +1,24 @@ + + + +

    Remplissez ici votre politique de confidentialé.

    +

    + Le texte placé ci-dessous est seulement un MODELE vous permettant de vous aider à créer + cette page. Vous devez dans tous les cas modifier ce texte sous CMS > Block statique. + En aucun cas, l'association Firegento et Trusted Shop porte la responsabilité de ce texte. +

    + +

    +(Veuillez indiquer l’identité du responsable du traitement) +« Les informations recueillies font l’objet d’un traitement informatique destiné à … +

    +

    +(Veuillez préciser la finalité) +Les destinataires des données sont :……………………… +(précisez) +

    +

    +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 à …………………………………… +(Veuillez préciser le service et l’adresse) +

    +

    Vous pouvez également, pour des motifs légitimes, vous opposer au traitement des données vous concernant.

    \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/page/revocation.html b/src/app/locale/fr_FR/template/magesetup/page/revocation.html new file mode 100644 index 00000000..d3bf1bc6 --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/revocation.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/fr_FR/template/magesetup/page/shipping.html b/src/app/locale/fr_FR/template/magesetup/page/shipping.html new file mode 100644 index 00000000..c547af6b --- /dev/null +++ b/src/app/locale/fr_FR/template/magesetup/page/shipping.html @@ -0,0 +1,4 @@ + + + +

    Remplissez ici vos conditions de livraison (prix, mode de livraison, etc) et d'éventuelles informations complémentaires concernant les livraisons.

    diff --git a/src/app/locale/ru_RU/FireGento_MageSetup.csv b/src/app/locale/ru_RU/FireGento_MageSetup.csv new file mode 100644 index 00000000..ba6834e1 --- /dev/null +++ b/src/app/locale/ru_RU/FireGento_MageSetup.csv @@ -0,0 +1,131 @@ +"Display Block below Price","Отображать блок под ценой" +"Display tax info and shipping cost link below the price on all pages","Отображать ссылку на информацию о налоге и стоимость доставки под ценой на всех страницах" +"Display Delivery time on Category Pages","Отображать время доставки на страницах категорий" +"CMS Page for Shipping Info","CMS страница с информацией о доставке" +"Show ""incl. Shipping Cost"" instead of ""excl. Shipping Cost""","Показывать ""вкл. стоимость доставки"" вместо ""без стоимости доставки""" +"No Page","Нет страницы" +"No Block","Нет блока" +"Incl. Tax","Включая налог" +"Incl. %s Tax","Включая %s налог" +"Excl. %s Tax","Исключая %s налог" +"excl. Shipping Cost","искл. Стоимость доставки" +"incl. Shipping Cost","вкл. Стоимость доставки" +"Display Product Weight below Price","Отображать вес товара под ценой" +"Unit for Product Weight","Единица измерения веса товара" +"e.g. g, kg, lb, ...","например: г, кг, фунты, ..." +"Shipping Weight %s","Вес посылки %s" + +"If you want to add additional StoreViews (i.e. for multiple languages), please do so before submitting this form.","Если вы хотите добавить дополнительные представления магазинов (для других языков), пожалуйста, сделайте это до сохранения этой формы." +"MageSetup has been installed.","MageSetup установлен." +"Click here to set up your pages, blocks, emails and tax settings.","Нажмите сюда для настройки ваших страниц, блоков, писем и налоговых правил." +"Please choose the requested setups:","Пожалуйста, выберите необходимые установки:" +"Run MageSetup","Запустить MageSetup" +"Update System Config Settings","Обновить параметры системных настроек" +"i.e. newsletter confirmation, account confirmation, ..","т.е. подтверждение подписки, подтверждение учётной записи, .." +"Create CMS Pages and Blocks","Создать CMS страницы и блоки" +"i.e. shipping, conditions, revocation","т.е. доставка, условия, отмена" +"Create Checkout Agreements","Создать Правила продажи" +"Conditions","Условия" +"Language Package for CMS Pages/Blocks/Agreements","Языковой пакет для CMS страниц/блоков/соглашений" +"Create Email Templates","Создать шаблоны писем" +"German Email Templates","Шабоны писем на немецком языке" +"Configure Tax","Настроить налоги" +"Shipping from Germany","Доставка из Германии" +"All tax settings will be overwritten!","Все настройки налогов будут заменены!" +"Update Product Tax Classes","Обновить налоговые классы товаров" +"Old","Старый" +"New","Новый" +"Newsletter Subscribers Status History","История статусов подписчиков рассылки" + +"MageSetup: CMS Blocks and Pages have been created.","MageSetup: CMS блоки и страницы созданы." +"MageSetup: Checkout Agreements have been created.","MageSetup: Правила продажи созданы." +"MageSetup: Email Templates have been created.","MageSetup: Шаблоны писем созданы." +"MageSetup: Tax Settings have been created.","MageSetup: Настройки налогов созданы." +"MageSetup: Product Tax Classes have been updated.","MageSetup: Налоговые классы товаров обновлены." +"MageSetup: System Config Settings have been updated.","MageSetup: Параметры системных настроек обновлены." + +"Imprint","Imprint" +"Account","Номер счёта" +"Account owner","Владелец счёта" +"Bank number","Bank number" +"Bank name","Название банка" +"CEO","CEO" +"Owner","Владелец" +"Responsible for content","Ответственный за содержимое" +"Responsible for content address","Ответственный за адрес содержимого" +"E-Mail","E-Mail" +"Fax","Факс" +"IBAN","IBAN" +"SWIFT","SWIFT" +"BIC/SWIFT","BIC/SWIFT" +"Tax number","Tax number" +"Web","Web" +"VAT-ID","ИД плательщика НДС" +"Shop Name","Название магазина" +"Company 1","Компания 1" +"Company 2","Компания 2" +"Street","Улица" +"Zip","Почтовый индекс" +"City","Город" +"Telephone","Телефон" +"relevant for Austrian shops","актуально для австрийских магазинов" + +"%s%%","%s%%" + +"Recommended Extensions","Рекомендуемые модули" +"Popular Payment Methods","Популярные платёжные методы" +"Ip anonymization","Ip анонимизация" +"Ensures that the ip address of the customers doesnt get involved into the tracking","Гарантирует, что IP адреса клиентов не отслеживаются" + +"Dynamic Shipping Tax Class Calculation","Динамические вычисление налогового класса доставки" +"Set to ""yes"" if you want to calculate the shipping tax rate based on the highest product tax rate in cart.
    ATTENTION: This setting overwrites the ""Tax Class for Shipping"" setting above!","Установите ""да"" для расчёта налоговой ставки на доставку, основанной на наибольшей налоговой ставке товара в корзине.
    ВНИМАНИЕ: Эта настройка заменяет настройку ""Налоговый класс на доставку"", расположенную выше!" + +"Germany","Германия" +"Austria","Австрия" +"Switzerland","Швейцария" +"Shipping from","Доставка из" +"This setting is base for the tax rate setup!","Этот параметр — основа для настроек налоговых ставок!" + +"[Show]","[Показать]" +"Visible in Checkout","Видымый в заказе" + +"Display Additional Information","Отображать дополнительную информацию" +"Display content from text field below at the checkout confirm page directly above the checkout button","Отображать содержимое из поля ниже на странице подтверждения заказа сразу над кнопкой Заказать" + +"Directory ""%s"" not found. Locale not installed?","Папка ""%s"" не найдена. Локаль не установлена?" +"Default Setting","Настройка по умолчанию" +"Use Default Setting","Использовать настройку по умолчанию" +"Select Locale","Выберите локаль" +"Create Transational Email Templates to be managed in the Magento admin area","Создать шаблоны транзакционных писем для возможности редактирования в панели администрирования Magento" +"Language Package for Email Templates","Языковой пакет для шаблонов писем" +"If your desired locale is missing, please check if it installed.","Если желаемая локаль отсутствует, пожалуйста, проверьте установлена ли она." +"If your desired locale is missing, it is not supported yet by MageSetup.","Если желаемая локаль отсутствует, она в данный момент не поддерживается MageSetup." + +"Configuration Settings","Настройки конфигурации" +"CMS Settings","Настройки CMS" +"Email Settings","Настройки Email" +"Tax Settings","Настройки налогов" + +"Delivery Time","Время доставки" +"Shipping Costs","Стоимость доставки" +"Hide estimated shipping costs in cart","Скрыть рассчитанную стоимость доставки в корзине" +"Replace with a link to the shipping costs cms page","Заменить ссылкой на CMS страницу с описанием стоимости доставки" +"Here you find information regarding the shipping costs.","Здесь вы найдёте информацию о стоимости доставки." +"Hide box ""Last Ordered Items""","Скрыть блок ""Последние заказанные товары""" + +"Display on","Отображать на" +"On checkout (Magento Default)","В заказе (стандартном в Magento)" +"On customer registration (or on checkout, if customer not registered before)","При регистрации клиента (или в заказе, если клиент не зарегистрировался заранее)" +"On customer registration and on checkout","При регистрации клитента и в заказе" +"Nowhere","Нигде" +"Agreements not confirmed.","Соглашения не приняты." + +"German Language Pack","Немецкий языковой пакет" +"Base Price","Цена (в основной валюте)" +"Newsletter Unsubscription for Guests, Double Opt In for registered Customers","Newsletter Unsubscription for Guests, Double Opt In for registered Customers" +"Debit Payment","Debit Payment" +"Cash on Delivery","Наличные" +"Bank Payment","Банковский перевод" +"Invoice Payment","Invoice Payment" +"Extension Key","Ключ модуля" +"MagentoConnect","MagentoConnect" diff --git a/src/app/locale/ru_RU/template/magesetup/agreement/business_terms.html b/src/app/locale/ru_RU/template/magesetup/agreement/business_terms.html new file mode 100644 index 00000000..343bf12e --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/agreement/business_terms.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/ru_RU/template/magesetup/agreement/revocation.html b/src/app/locale/ru_RU/template/magesetup/agreement/revocation.html new file mode 100644 index 00000000..c560cd00 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/agreement/revocation.html @@ -0,0 +1,3 @@ + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/ru_RU/template/magesetup/block/business_terms.html b/src/app/locale/ru_RU/template/magesetup/block/business_terms.html new file mode 100644 index 00000000..618e96ab --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/block/business_terms.html @@ -0,0 +1,2 @@ + +

    Пожалуйста, впишите сюда ваши правила продажи.

    diff --git a/src/app/locale/ru_RU/template/magesetup/block/revocation.html b/src/app/locale/ru_RU/template/magesetup/block/revocation.html new file mode 100644 index 00000000..b2eca4b2 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/block/revocation.html @@ -0,0 +1,2 @@ + +

    Пожалуйста, впишите сюда ваши условия отмены.

    diff --git a/src/app/locale/ru_RU/template/magesetup/page/404.html b/src/app/locale/ru_RU/template/magesetup/page/404.html new file mode 100644 index 00000000..8023da56 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/404.html @@ -0,0 +1,9 @@ + + + +

    404 - Страница не найдена

    +

    ЗАпрошенная страница не найдена.

    + \ No newline at end of file diff --git a/src/app/locale/ru_RU/template/magesetup/page/business_terms.html b/src/app/locale/ru_RU/template/magesetup/page/business_terms.html new file mode 100644 index 00000000..37c42b65 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/business_terms.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="business_terms"}} \ No newline at end of file diff --git a/src/app/locale/ru_RU/template/magesetup/page/order.html b/src/app/locale/ru_RU/template/magesetup/page/order.html new file mode 100644 index 00000000..f0ee4225 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/order.html @@ -0,0 +1,5 @@ + + + +

    Пожалуйста, впишите сюда подробности вашего процесса обработки заказов.

    + diff --git a/src/app/locale/ru_RU/template/magesetup/page/payment.html b/src/app/locale/ru_RU/template/magesetup/page/payment.html new file mode 100644 index 00000000..40333b81 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/payment.html @@ -0,0 +1,4 @@ + + + +

    Пожалуйста, впишите сюда ваши платёжные методы и дополнительные подробности.

    diff --git a/src/app/locale/ru_RU/template/magesetup/page/privacy.html b/src/app/locale/ru_RU/template/magesetup/page/privacy.html new file mode 100644 index 00000000..aecbe12e --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/privacy.html @@ -0,0 +1,4 @@ + + + +

    Пожалуйста, впишите сюда вашу политику безопасности.

    diff --git a/src/app/locale/ru_RU/template/magesetup/page/revocation.html b/src/app/locale/ru_RU/template/magesetup/page/revocation.html new file mode 100644 index 00000000..81daf446 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/revocation.html @@ -0,0 +1,4 @@ + + + +{{block type="cms/block" block_id="revocation"}} \ No newline at end of file diff --git a/src/app/locale/ru_RU/template/magesetup/page/shipping.html b/src/app/locale/ru_RU/template/magesetup/page/shipping.html new file mode 100644 index 00000000..7ad67018 --- /dev/null +++ b/src/app/locale/ru_RU/template/magesetup/page/shipping.html @@ -0,0 +1,4 @@ + + + +

    Пожалуйста, опишите тут доступные в вашем магазине методы доставки и их стоимость.

    \ No newline at end of file diff --git a/src/skin/frontend/base/default/css/magesetup/checkout.css b/src/skin/frontend/base/default/css/magesetup/checkout.css new file mode 100644 index 00000000..a824ae32 --- /dev/null +++ b/src/skin/frontend/base/default/css/magesetup/checkout.css @@ -0,0 +1,64 @@ +#checkout-review-table tfoot tr { + background-color: #FBFAF6 !important; +} + +#checkout-review-table tr.odd, +#checkout-review-table tr.even { + background-color: #FBFAF6; +} + +#checkout-review-table td.last { + text-align: right; +} +#checkout-review-table td.last .price { + font-weight: bold; +} + +#checkout-review-table-wrapper { + border: 2px solid #0A263D; + border-bottom: 0; +} + +#opc-review #checkout-step-review .additional-information { + border: 2px solid #0A263D; + border-top: 0; + border-bottom: 0; +} + +#checkout-review-submit { + background-color: #FBFAF6; + border: 2px solid #0A263D; + border-top: 0; +} + +#opc-review .additional-information { + clear: both; + margin:0; + padding: 15px 10px; + text-align: right; +} + +.checkout-multishipping-overview .additional-information { + margin: 0; + padding: 0 10px 25px; + text-align: right; +} + +.checkout-multishipping-overview .checkout-agreements { + margin-bottom: 25px; +} + +.opc .checkout-agreements li, +.checkout-multishipping-overview .checkout-agreements li { + margin: 10px 0; +} + +.opc .checkout-agreements .agree, +.checkout-multishipping-overview .checkout-agreements .agree { + padding-top: 0px; + padding-bottom: 0px; +} + +#review-buttons-container p.f-left { + display: none; +} \ No newline at end of file