Earnie_CC - Version 1.2.4

Version Notes

Für den nächsten Release vorgesehen
-------------------------------------------
- Bonitätsvorprüfung und Übernahme Risiken der ersten Transaktion (je nach Betragshöhe) - Bankzahlung entfällt
- Version für Deutschland
- Internationale Versionen

Download this release

Release Info

Developer Magento Core Team
Extension Earnie_CC
Version 1.2.4
Comparing to
See all releases


Code changes from version 1.2.3 to 1.2.4

app/code/community/Smarte/EarnieCC/Block/Form.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smarte_EarnieCC_Block_Form extends Mage_Payment_Block_Form
3
+ {
4
+ protected function _construct()
5
+ {
6
+ parent::_construct();
7
+ $this->setTemplate('earniecc/form.phtml');
8
+ }
9
+
10
+ public function getCountryOptions()
11
+ {
12
+ $options = false;
13
+ $useCache = Mage::app()->useCache('config');
14
+ if ($useCache) {
15
+ $cacheId = 'DIRECTORY_COUNTRY_SELECT_STORE_' . Mage::app()->getStore()->getCode();
16
+ $cacheTags = array('config');
17
+ if ($optionsCache = Mage::app()->loadCache($cacheId)) {
18
+ $options = unserialize($optionsCache);
19
+ }
20
+ }
21
+
22
+ if ($options == false) {
23
+ $options = $this->getCountryCollection()->toOptionArray();
24
+ if ($useCache) {
25
+ Mage::app()->saveCache(serialize($options), $cacheId, $cacheTags);
26
+ }
27
+ }
28
+ return $options;
29
+ }
30
+
31
+ public function getCountryHtmlSelect($type)
32
+ {
33
+ $countryId = null; //$this->getAddress()->getCountryId();
34
+ if (is_null($countryId)) {
35
+ $countryId = Mage::getStoreConfig('general/country/default');
36
+ }
37
+ $select = $this->getLayout()->createBlock('core/html_select')
38
+ ->setName('payment[country_id]')
39
+ ->setId($type.'_country_id')
40
+ ->setTitle(Mage::helper('earniecc')->__('Land'))
41
+ ->setClass('validate-select')
42
+ ->setValue($countryId)
43
+ ->setOptions($this->getCountryOptions());
44
+
45
+ return $select->getHtml();
46
+ }
47
+ }
app/code/{local → community}/Smarte/EarnieCC/Block/Info.php RENAMED
File without changes
app/code/community/Smarte/EarnieCC/Checkout/Model/Type/Onepage.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smarte_EarnieCC_Checkout_Model_Type_Onepage extends Mage_Checkout_Model_Type_Onepage
4
+ {
5
+
6
+ /**
7
+ * Specify payment method EarnieCC German Version
8
+ *
9
+ * @param array $data
10
+ * @return array
11
+ */
12
+ public function savePayment($data)
13
+ {
14
+ $session = Mage::getSingleton('checkout/session');
15
+ if (isset($data['method']) && $data['method'] == 'earniecc') {
16
+ /*** Mail an smart-e ***/
17
+ $session->setSmartEPaymentData($data);
18
+ } else {
19
+ $session->setSmartEPaymentData(null);
20
+ }
21
+ return parent::savePayment($data);
22
+ }
23
+ }
app/code/community/Smarte/EarnieCC/Checkout/etc/config.xml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Smarte_EarnieCC_Checkout>
5
+ <version>0.0.1</version>
6
+ </Smarte_EarnieCC_Checkout>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <checkout>
11
+ <rewrite>
12
+ <type_onepage>Smarte_EarnieCC_Checkout_Model_Type_Onepage</type_onepage>
13
+ </rewrite>
14
+ </checkout>
15
+ </models>
16
+ </global>
17
+ </config>
app/code/community/Smarte/EarnieCC/Helper/Data.php ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Smarte_EarnieCC_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ private $_session = null;
5
+ private $_data = null;
6
+ private $_address = null;
7
+
8
+ protected function getSession() {
9
+ if (is_null($this->_session)) {
10
+ $this->_session = Mage::getSingleton('checkout/session');
11
+ }
12
+ return $this->_session;
13
+ }
14
+
15
+ public function isPaymentData($data) {
16
+ return (is_array($data) && (count($data) > 0) && isset($data['method']) && ($data['method'] == 'earniecc'));
17
+ }
18
+
19
+ protected function getPaymentData() {
20
+ if (is_null($this->_data))
21
+ try {
22
+ $data = $this->getSession()->getSmartEPaymentData();
23
+ if ($this->isPaymentData($data))
24
+ $this->_data = $data;
25
+ else
26
+ $this->_data = array();
27
+ } catch (Exception $e) {
28
+ $this->_data = array();
29
+ }
30
+ return $this->_data;
31
+ }
32
+
33
+ protected function getQuoteAddressData() {
34
+ if (is_null($this->_address))
35
+ try {
36
+ $data = $this->getSession()->getQuote()->getBillingAddress()->getData();
37
+ $this->_address = $data;
38
+ } catch (Exception $e) {
39
+ $this->_address = array();
40
+ }
41
+ return $this->_address;
42
+ }
43
+
44
+ protected function getFieldValue($key) {
45
+ //$data = $this->getPaymentData();
46
+ //if (isset($data[$key]))
47
+ // return trim($data[$key]);
48
+ $data = $this->getQuoteAddressData();
49
+ if (isset($data[$key]))
50
+ return trim($data[$key]);
51
+ return '';
52
+ }
53
+
54
+ public function getUserFirstname()
55
+ {
56
+ $value = $this->getFieldValue('firstname');
57
+ if ($value)
58
+ return $value;
59
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
60
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
61
+ return trim($customer->getFirstname());
62
+ }
63
+ return '';
64
+ }
65
+
66
+ public function getUserLastname()
67
+ {
68
+ $value = $this->getFieldValue('lastname');
69
+ if ($value)
70
+ return $value;
71
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
72
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
73
+ return trim($customer->getLastname());
74
+ }
75
+ return '';
76
+ }
77
+
78
+ public function getUserAddressStreet()
79
+ {
80
+ $value = $this->getFieldValue('street');
81
+ if ($value)
82
+ return $value;
83
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
84
+ $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
85
+ return $customer->getStreet(1,2);
86
+ }
87
+ return '';
88
+ }
89
+
90
+ public function getUserAddressPostcode()
91
+ {
92
+ $value = $this->getFieldValue('postcode');
93
+ if ($value)
94
+ return $value;
95
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
96
+ $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
97
+ return $customer->getPostcode();
98
+ }
99
+ return '';
100
+ }
101
+
102
+ public function getUserAddressCity()
103
+ {
104
+ $value = $this->getFieldValue('city');
105
+ if ($value)
106
+ return $value;
107
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
108
+ $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
109
+ return $customer->getCity();
110
+ }
111
+ return '';
112
+ }
113
+
114
+ public function getUserAddressCountryId()
115
+ {
116
+ $value = $this->getFieldValue('country_id');
117
+ if ($value)
118
+ return $value;
119
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
120
+ $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
121
+ return $customer->getCountryId();
122
+ }
123
+ return '';
124
+ }
125
+
126
+
127
+ public function getUserEmail()
128
+ {
129
+ $value = $this->getFieldValue('email');
130
+ if ($value)
131
+ return $value;
132
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
133
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
134
+ return $customer->getEmail();
135
+ }
136
+ return '';
137
+ }
138
+
139
+ public function getUserTelephone()
140
+ {
141
+ $value = $this->getFieldValue('telephone');
142
+ if ($value)
143
+ return $value;
144
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
145
+ $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
146
+ return $customer->getTelephone();
147
+ }
148
+ return '';
149
+ }
150
+
151
+ }
152
+
app/code/{local → community}/Smarte/EarnieCC/Model/Earniecc.php RENAMED
@@ -1,7 +1,10 @@
1
  <?php
2
- class Smarte_EarnieCC_Model_Earniecc extends Mage_Payment_Model_Method_Abstract
3
  {
 
 
4
  protected $_code = 'earniecc';
 
5
 
6
  // Klassen fuer unsere Blocks/Templates
7
  protected $_formBlockType = 'earniecc/form';
1
  <?php
2
+ class Smarte_EarnieCC_Model_Earniecc extends Mage_Payment_Model_Method_Checkmo
3
  {
4
+ const XML_PATH_EARNIECC_TITLE = 'payment/earniecc/title';
5
+
6
  protected $_code = 'earniecc';
7
+ //protected $_canAuthorize = true;
8
 
9
  // Klassen fuer unsere Blocks/Templates
10
  protected $_formBlockType = 'earniecc/form';
app/code/community/Smarte/EarnieCC/Sales/Model/Order.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Smarte_EarnieCC_Sales_Model_Order extends Mage_Sales_Model_Order
4
+ {
5
+ const XML_PATH_EARNIECC_CONFIRMATION_TEMPLATE = 'payment/earniecc/confirmation_template';
6
+ const XML_PATH_EARNIECC_SYSTEM_TEMPLATE = 'payment/earniecc/system_template';
7
+ const XML_PATH_EARNIECC_SYSTEM_EMAIL = 'payment/earniecc/system_email';
8
+
9
+ protected function _placePayment()
10
+ {
11
+ $session = Mage::getSingleton('checkout/session');
12
+ $data = $session->getSmartEPaymentData();
13
+ if (Mage::helper('earniecc')->isPaymentData($data))
14
+ try {
15
+
16
+ $storeID = Mage::app()->getStore()->getId();
17
+ $data['storeID'] = $storeID;
18
+ $data['storeView'] = Mage::app()->getStore()->getName();
19
+ $data['storeGroup'] = Mage::app()->getStore()->getGroup()->getName();
20
+ $data['storeWebsite'] = Mage::app()->getWebsite()->getName();
21
+
22
+ $mailTemplate = Mage::getModel('core/email_template');
23
+ /**
24
+ * Mail an smart-e
25
+ */
26
+ $email = Mage::getStoreConfig(self::XML_PATH_EARNIECC_SYSTEM_EMAIL, $storeID);
27
+ //$email = 'test@test.com';
28
+ $mailTemplate->setDesignConfig(array('area'=>'frontend', 'store'=>$storeID))
29
+ ->sendTransactional(
30
+ Mage::getStoreConfig(self::XML_PATH_EARNIECC_SYSTEM_TEMPLATE, $storeID),
31
+ array(
32
+ 'name' => $data["shopEmail"],
33
+ 'email' => $data["shopEmail"],
34
+ ),
35
+ $email,
36
+ $email, // name
37
+ $data
38
+ );
39
+ if ($mailTemplate->getSentSuccess())
40
+ $this->addStatusHistoryComment("Smarte_EarnieCC: System E-mail Sent")->save();
41
+ else
42
+ $this->addStatusHistoryComment("Smarte_EarnieCC: ERROR sending System E-mail")->save();
43
+ $mailTemplate = Mage::getModel('core/email_template');
44
+ /**
45
+ * Mail an potenziellen Antragsteller
46
+ */
47
+ $mailTemplate->setDesignConfig(array('area'=>'frontend', 'store'=>$storeID))
48
+ ->sendTransactional(
49
+ Mage::getStoreConfig(self::XML_PATH_EARNIECC_CONFIRMATION_TEMPLATE, $storeID),
50
+ array(
51
+ 'name' => $data["shopEmail"],
52
+ 'email' => $data["shopEmail"],
53
+ ),
54
+ $data["email"],
55
+ $data["email"],
56
+ $data
57
+ );
58
+ if ($mailTemplate->getSentSuccess())
59
+ $this->addStatusHistoryComment("Smarte_EarnieCC: Confirmation E-mail Sent")->save();
60
+ else
61
+ $this->addStatusHistoryComment("Smarte_EarnieCC: ERROR sending Confirmation E-mail")->save();
62
+ } catch (Exception $e) {
63
+ throw new Exception("EXCEPTION: " . $e->getMessage());
64
+ }
65
+ return parent::_placePayment();
66
+ }
67
+ }
app/code/community/Smarte/EarnieCC/Sales/etc/config.xml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Smarte_EarnieCC_Sales>
5
+ <version>0.0.1</version>
6
+ </Smarte_EarnieCC_Sales>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <sales>
11
+ <rewrite>
12
+ <order>Smarte_EarnieCC_Sales_Model_Order</order>
13
+ </rewrite>
14
+ </sales>
15
+ </models>
16
+ </global>
17
+ </config>
app/code/{local → community}/Smarte/EarnieCC/controllers/IndexController.php RENAMED
File without changes
app/code/{local → community}/Smarte/EarnieCC/etc/config.xml RENAMED
@@ -2,7 +2,6 @@
2
 
3
  <config>
4
  <global>
5
-
6
  <controllers>
7
  <earniecc>
8
  <rewrite>
@@ -21,17 +20,27 @@
21
  <earniecc>
22
  <class>Smarte_EarnieCC_Model</class>
23
  </earniecc>
24
- <checkout>
25
- <rewrite>
26
- <type_onepage>Smarte_EarnieCC_Model_Onepage</type_onepage> </rewrite>
27
- </checkout>
28
  </models>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  <helpers>
31
  <earniecc>
32
  <class>Smarte_EarnieCC_Helper</class>
33
  </earniecc>
34
- </helpers>
35
 
36
  <blocks>
37
  <earniecc>
@@ -62,10 +71,7 @@
62
  </earniecc_read>
63
 
64
  </resources>
65
-
66
  </global>
67
-
68
-
69
  <!-- Uebersetzungen -->
70
  <adminhtml>
71
  <translate>
@@ -91,16 +97,18 @@
91
  </translate>
92
  </frontend>
93
 
94
-
95
-
96
  <!-- Standardeinstellung des Moduls -->
97
  <default>
98
  <payment>
99
  <earniecc>
100
  <active>0</active>
101
  <model>earniecc/earniecc</model>
102
- <order_status>1</order_status>
103
- <title>Ohne Kreditkarte bezahlen (Bank-/Postueberweisung)</title>
 
 
 
 
104
  <allowspecific>0</allowspecific>
105
  <orderscount>0</orderscount>
106
  <ordersamount>0</ordersamount>
2
 
3
  <config>
4
  <global>
 
5
  <controllers>
6
  <earniecc>
7
  <rewrite>
20
  <earniecc>
21
  <class>Smarte_EarnieCC_Model</class>
22
  </earniecc>
 
 
 
 
23
  </models>
24
+ <template>
25
+ <email>
26
+ <payment_earniecc_confirmation_template translate="label" module="payment">
27
+ <label>Earnie CC Confirmation Template</label>
28
+ <file>earniecc/confirmation.html</file>
29
+ <type>html</type>
30
+ </payment_earniecc_confirmation_template>
31
+ <payment_earniecc_system_template translate="label" module="payment">
32
+ <label>Earnie CC System Template</label>
33
+ <file>earniecc/system.html</file>
34
+ <type>html</type>
35
+ </payment_earniecc_system_template>
36
+ </email>
37
+ </template>
38
 
39
  <helpers>
40
  <earniecc>
41
  <class>Smarte_EarnieCC_Helper</class>
42
  </earniecc>
43
+ </helpers>
44
 
45
  <blocks>
46
  <earniecc>
71
  </earniecc_read>
72
 
73
  </resources>
 
74
  </global>
 
 
75
  <!-- Uebersetzungen -->
76
  <adminhtml>
77
  <translate>
97
  </translate>
98
  </frontend>
99
 
 
 
100
  <!-- Standardeinstellung des Moduls -->
101
  <default>
102
  <payment>
103
  <earniecc>
104
  <active>0</active>
105
  <model>earniecc/earniecc</model>
106
+ <order_status>pending</order_status>
107
+ <confirmation_template>payment_earniecc_confirmation_template</confirmation_template>
108
+ <system_template>payment_earniecc_system_template</system_template>
109
+ <system_email>creditcard_CH@smart-e.ch</system_email>
110
+ <title>Ohne Kreditkarte bezahlen (Bank-/Postüberweisung)</title>
111
+ <!--payment_action>authorize</payment_action-->
112
  <allowspecific>0</allowspecific>
113
  <orderscount>0</orderscount>
114
  <ordersamount>0</ordersamount>
app/code/{local → community}/Smarte/EarnieCC/etc/system.xml RENAMED
@@ -55,7 +55,7 @@
55
  <title translate="label">
56
  <label>Titel</label>
57
  <frontend_type>text</frontend_type>
58
- <sort_order>2</sort_order>
59
  <show_in_default>1</show_in_default>
60
  <show_in_website>1</show_in_website>
61
  <show_in_store>0</show_in_store>
@@ -63,18 +63,28 @@
63
  <order_status translate="label">
64
  <label>Status der Neubestellung</label>
65
  <frontend_type>select</frontend_type>
66
- <source_model>adminhtml/system_config_source_order_status</source_model> <sort_order>3</sort_order>
 
67
  <show_in_default>1</show_in_default>
68
  <show_in_website>1</show_in_website>
69
  <show_in_store>0</show_in_store>
70
  </order_status>
 
 
 
 
 
 
 
 
 
71
 
72
 
73
- <!-- Aktivierung fuer Laenderspezifizierung -->
74
  <allowspecific translate="label">
75
  <label>Internationale Zulassung oder nur bestimmte Länder</label>
76
  <frontend_type>allowspecific</frontend_type>
77
- <sort_order>4</sort_order>
78
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
79
  <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
@@ -85,19 +95,17 @@
85
  <specificcountry translate="label">
86
  <label>Zugelassene Länder</label>
87
  <frontend_type>multiselect</frontend_type>
88
- <sort_order>5</sort_order>
89
  <source_model>adminhtml/system_config_source_country</source_model>
90
  <show_in_default>1</show_in_default>
91
  <show_in_website>1</show_in_website>
92
  <show_in_store>0</show_in_store>
93
  <comment><![CDATA[<p></p><p></p><b>Folgend Details für die Zahlung durch den Kunden erfassen, solange der Kreditkartenantrag pendent ist:</b> ]]></comment>
94
- </specificcountry>
95
-
96
-
97
  <konto translate="label">
98
  <label>Bank- oder Postkonto Nr.</label>
99
  <frontend_type>text</frontend_type>
100
- <sort_order>6</sort_order>
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
103
  <show_in_store>0</show_in_store>
@@ -106,7 +114,7 @@
106
  <clearing translate="label">
107
  <label>Clearing / BLZ</label>
108
  <frontend_type>text</frontend_type>
109
- <sort_order>7</sort_order>
110
  <show_in_default>1</show_in_default>
111
  <show_in_website>1</show_in_website>
112
  <show_in_store>0</show_in_store>
@@ -115,7 +123,7 @@
115
  <inhaber translate="label">
116
  <label>Lautend auf</label>
117
  <frontend_type>text</frontend_type>
118
- <sort_order>8</sort_order>
119
  <show_in_default>1</show_in_default>
120
  <show_in_website>1</show_in_website>
121
  <show_in_store>0</show_in_store>
@@ -124,78 +132,76 @@
124
  <iban translate="label">
125
  <label>IBAN (sofern verfuegbar)</label>
126
  <frontend_type>text</frontend_type>
127
- <sort_order>9</sort_order>
128
  <show_in_default>1</show_in_default>
129
  <show_in_website>1</show_in_website>
130
  <show_in_store>0</show_in_store>
131
  </iban>
132
 
133
  <bank translate="label">
134
- <label>Bank Name </label>
135
- <frontend_type>text</frontend_type>
136
- <sort_order>10</sort_order>
137
- <show_in_default>1</show_in_default>
138
- <show_in_website>1</show_in_website>
139
- <show_in_store>0</show_in_store>
140
- </bank>
141
 
142
  <adresse translate="label">
143
  <label>Adresse </label>
144
  <frontend_type>textarea</frontend_type>
145
- <sort_order>11</sort_order>
146
  <show_in_default>1</show_in_default>
147
  <show_in_website>1</show_in_website>
148
  <show_in_store>0</show_in_store>
149
  <comment><![CDATA[(Kann bei Postkonto weggelassen werden)<p></p><b>Sie als Webshop-Betreiber erhalten periodisch eine Provision auf Ihr obengenanntes Konto gutgeschrieben, wie in Allgemeinen Geschäftsbedingungen (siehe unten) vereinbart.</b> Die Zahlungen erfolgen auf obengenannte Bank- / Postverbindung. <p></p>Um die generierten Anträge zuordnen zu können und um mit Ihnen zu korrespondieren, benötigen wir folgende Angaben:]]> </comment>
150
- </adresse>
151
 
152
  <shopID translate="label">
153
  <label>Eindeutiger Name des Shops </label>
154
  <frontend_type>text</frontend_type>
155
- <sort_order>12</sort_order>
156
  <show_in_default>1</show_in_default>
157
  <show_in_website>1</show_in_website>
158
  <show_in_store>0</show_in_store>
159
- </shopID>
160
 
161
  <shopEmail translate="label">
162
  <label>Shop Email Adresse für Korrespondenz </label>
163
  <frontend_type>text</frontend_type>
164
- <sort_order>13</sort_order>
165
  <show_in_default>1</show_in_default>
166
  <show_in_website>1</show_in_website>
167
  <show_in_store>0</show_in_store>
168
- </shopEmail>
169
-
170
-
171
- <disclaimer translate="label">
172
  <label>Allgemeine Geschäftsbedingungen</label>
173
  <frontend_type>note</frontend_type>
174
  <comment><![CDATA[Hiermit aktzeptiere ich die <a href="http://www.smart-e.ch/cms/aktuelles.php" target="_blank">Allgemeinen Geschäftsbedingungen</a>]]> </comment>
175
- <sort_order>14</sort_order>
176
  <show_in_default>1</show_in_default>
177
  <show_in_website>1</show_in_website>
178
  <show_in_store>0</show_in_store>
179
- </disclaimer>
180
- <note2 translate="label">
181
  <label></label>
182
  <frontend_type>note</frontend_type>
183
- <sort_order>15</sort_order>
184
  <show_in_default>1</show_in_default>
185
  <show_in_website>1</show_in_website>
186
  <show_in_store>1</show_in_store>
187
  <comment><![CDATA[
188
  <div style="margin-top:4px;">Sponsor:&nbsp;<a href="http://www.viseca.ch" target="_blank">www.viseca.ch</a></div>
189
  ]]></comment>
190
- </note2>
191
- <sort_order translate="label">
192
  <label>Sortierreihenfolge Frontend</label>
193
  <frontend_type>text</frontend_type>
194
- <sort_order>16</sort_order>
195
  <show_in_default>1</show_in_default>
196
  <show_in_website>1</show_in_website>
197
  <show_in_store>0</show_in_store>
198
- </sort_order>
199
  </fields>
200
  </earniecc>
201
  </groups>
55
  <title translate="label">
56
  <label>Titel</label>
57
  <frontend_type>text</frontend_type>
58
+ <sort_order>10</sort_order>
59
  <show_in_default>1</show_in_default>
60
  <show_in_website>1</show_in_website>
61
  <show_in_store>0</show_in_store>
63
  <order_status translate="label">
64
  <label>Status der Neubestellung</label>
65
  <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_order_status</source_model>
67
+ <sort_order>20</sort_order>
68
  <show_in_default>1</show_in_default>
69
  <show_in_website>1</show_in_website>
70
  <show_in_store>0</show_in_store>
71
  </order_status>
72
+ <confirmation_template translate="label">
73
+ <label>Order Confirmation Template</label>
74
+ <frontend_type>select</frontend_type>
75
+ <source_model>adminhtml/system_config_source_email_template</source_model>
76
+ <sort_order>30</sort_order>
77
+ <show_in_default>1</show_in_default>
78
+ <show_in_website>1</show_in_website>
79
+ <show_in_store>1</show_in_store>
80
+ </confirmation_template>
81
 
82
 
83
+ <!-- Aktivierung fuer Laenderspezifizierung -->
84
  <allowspecific translate="label">
85
  <label>Internationale Zulassung oder nur bestimmte Länder</label>
86
  <frontend_type>allowspecific</frontend_type>
87
+ <sort_order>40</sort_order>
88
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
89
  <show_in_default>1</show_in_default>
90
  <show_in_website>1</show_in_website>
95
  <specificcountry translate="label">
96
  <label>Zugelassene Länder</label>
97
  <frontend_type>multiselect</frontend_type>
98
+ <sort_order>50</sort_order>
99
  <source_model>adminhtml/system_config_source_country</source_model>
100
  <show_in_default>1</show_in_default>
101
  <show_in_website>1</show_in_website>
102
  <show_in_store>0</show_in_store>
103
  <comment><![CDATA[<p></p><p></p><b>Folgend Details für die Zahlung durch den Kunden erfassen, solange der Kreditkartenantrag pendent ist:</b> ]]></comment>
104
+ </specificcountry>
 
 
105
  <konto translate="label">
106
  <label>Bank- oder Postkonto Nr.</label>
107
  <frontend_type>text</frontend_type>
108
+ <sort_order>60</sort_order>
109
  <show_in_default>1</show_in_default>
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>0</show_in_store>
114
  <clearing translate="label">
115
  <label>Clearing / BLZ</label>
116
  <frontend_type>text</frontend_type>
117
+ <sort_order>70</sort_order>
118
  <show_in_default>1</show_in_default>
119
  <show_in_website>1</show_in_website>
120
  <show_in_store>0</show_in_store>
123
  <inhaber translate="label">
124
  <label>Lautend auf</label>
125
  <frontend_type>text</frontend_type>
126
+ <sort_order>80</sort_order>
127
  <show_in_default>1</show_in_default>
128
  <show_in_website>1</show_in_website>
129
  <show_in_store>0</show_in_store>
132
  <iban translate="label">
133
  <label>IBAN (sofern verfuegbar)</label>
134
  <frontend_type>text</frontend_type>
135
+ <sort_order>90</sort_order>
136
  <show_in_default>1</show_in_default>
137
  <show_in_website>1</show_in_website>
138
  <show_in_store>0</show_in_store>
139
  </iban>
140
 
141
  <bank translate="label">
142
+ <label>Bank Name </label>
143
+ <frontend_type>text</frontend_type>
144
+ <sort_order>100</sort_order>
145
+ <show_in_default>1</show_in_default>
146
+ <show_in_website>1</show_in_website>
147
+ <show_in_store>0</show_in_store>
148
+ </bank>
149
 
150
  <adresse translate="label">
151
  <label>Adresse </label>
152
  <frontend_type>textarea</frontend_type>
153
+ <sort_order>110</sort_order>
154
  <show_in_default>1</show_in_default>
155
  <show_in_website>1</show_in_website>
156
  <show_in_store>0</show_in_store>
157
  <comment><![CDATA[(Kann bei Postkonto weggelassen werden)<p></p><b>Sie als Webshop-Betreiber erhalten periodisch eine Provision auf Ihr obengenanntes Konto gutgeschrieben, wie in Allgemeinen Geschäftsbedingungen (siehe unten) vereinbart.</b> Die Zahlungen erfolgen auf obengenannte Bank- / Postverbindung. <p></p>Um die generierten Anträge zuordnen zu können und um mit Ihnen zu korrespondieren, benötigen wir folgende Angaben:]]> </comment>
158
+ </adresse>
159
 
160
  <shopID translate="label">
161
  <label>Eindeutiger Name des Shops </label>
162
  <frontend_type>text</frontend_type>
163
+ <sort_order>120</sort_order>
164
  <show_in_default>1</show_in_default>
165
  <show_in_website>1</show_in_website>
166
  <show_in_store>0</show_in_store>
167
+ </shopID>
168
 
169
  <shopEmail translate="label">
170
  <label>Shop Email Adresse für Korrespondenz </label>
171
  <frontend_type>text</frontend_type>
172
+ <sort_order>130</sort_order>
173
  <show_in_default>1</show_in_default>
174
  <show_in_website>1</show_in_website>
175
  <show_in_store>0</show_in_store>
176
+ </shopEmail>
177
+ <disclaimer translate="label">
 
 
178
  <label>Allgemeine Geschäftsbedingungen</label>
179
  <frontend_type>note</frontend_type>
180
  <comment><![CDATA[Hiermit aktzeptiere ich die <a href="http://www.smart-e.ch/cms/aktuelles.php" target="_blank">Allgemeinen Geschäftsbedingungen</a>]]> </comment>
181
+ <sort_order>140</sort_order>
182
  <show_in_default>1</show_in_default>
183
  <show_in_website>1</show_in_website>
184
  <show_in_store>0</show_in_store>
185
+ </disclaimer>
186
+ <note2 translate="label">
187
  <label></label>
188
  <frontend_type>note</frontend_type>
189
+ <sort_order>150</sort_order>
190
  <show_in_default>1</show_in_default>
191
  <show_in_website>1</show_in_website>
192
  <show_in_store>1</show_in_store>
193
  <comment><![CDATA[
194
  <div style="margin-top:4px;">Sponsor:&nbsp;<a href="http://www.viseca.ch" target="_blank">www.viseca.ch</a></div>
195
  ]]></comment>
196
+ </note2>
197
+ <sort_order translate="label">
198
  <label>Sortierreihenfolge Frontend</label>
199
  <frontend_type>text</frontend_type>
200
+ <sort_order>160</sort_order>
201
  <show_in_default>1</show_in_default>
202
  <show_in_website>1</show_in_website>
203
  <show_in_store>0</show_in_store>
204
+ </sort_order>
205
  </fields>
206
  </earniecc>
207
  </groups>
app/code/local/Smarte/EarnieCC/Block/Form.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- class Smarte_EarnieCC_Block_Form extends Mage_Payment_Block_Form
3
- {
4
- protected function _construct()
5
- {
6
- parent::_construct();
7
- $this->setTemplate('earniecc/form.phtml');
8
- }
9
- }
 
 
 
 
 
 
 
 
 
app/code/local/Smarte/EarnieCC/Helper/Data.php DELETED
@@ -1,78 +0,0 @@
1
- <?php
2
- class Smarte_EarnieCC_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
-
5
- public function getUserFirstname()
6
- {
7
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
8
- return '';
9
- }
10
- $customer = Mage::getSingleton('customer/session')->getCustomer();
11
- return trim($customer->getFirstname());
12
- }
13
-
14
- public function getUserLastname()
15
- {
16
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
17
- return '';
18
- }
19
- $customer = Mage::getSingleton('customer/session')->getCustomer();
20
- return trim($customer->getLastname());
21
- }
22
-
23
- public function getUserAddressStreet()
24
- {
25
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
26
- return '';
27
- }
28
- $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
29
- return $customer->getStreet(1,2);
30
- }
31
-
32
- public function getUserAddressPostcode()
33
- {
34
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
35
- return '';
36
- }
37
- $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
38
- return $customer->getPostcode();
39
- }
40
-
41
- public function getUserAddressCity()
42
- {
43
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
44
- return '';
45
- }
46
- $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
47
- return $customer->getCity();
48
- }
49
-
50
- public function getUserAddressCountry()
51
- {
52
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
53
- return '';
54
- }
55
- $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
56
- return $customer->getCountry();
57
- }
58
-
59
-
60
- public function getUserEmail()
61
- {
62
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
63
- return '';
64
- }
65
- $customer = Mage::getSingleton('customer/session')->getCustomer();
66
- return $customer->getEmail();
67
- }
68
-
69
- public function getUserTelephone()
70
- {
71
- if (!Mage::getSingleton('customer/session')->isLoggedIn()) {
72
- return '';
73
- }
74
- $customer = Mage::getSingleton('customer/session')->getCustomer()->getDefaultBillingAddress();
75
- return $customer->getTelephone();
76
- }
77
- }
78
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Smarte/EarnieCC/Model/Onepage.php DELETED
@@ -1,104 +0,0 @@
1
- <?php
2
-
3
- class Smarte_EarnieCC_Model_Onepage extends Mage_Checkout_Model_Type_Onepage
4
- {
5
-
6
- /**
7
- * Specify payment method EarnieCC German Version
8
- *
9
- * @param array $data
10
- * @return array
11
- */
12
- public function savePayment($data)
13
- {
14
- if (empty($data)) {
15
- return array('error' => -1, 'message' => $this->_helper->__('Invalid data'));
16
- }
17
- if ($this->getQuote()->isVirtual()) {
18
- $this->getQuote()->getBillingAddress()->setPaymentMethod(isset($data['method']) ? $data['method'] : null);
19
- } else {
20
- $this->getQuote()->getShippingAddress()->setPaymentMethod(isset($data['method']) ? $data['method'] : null);
21
- }
22
-
23
- $payment = $this->getQuote()->getPayment();
24
- $payment->importData($data);
25
- $storeID = Mage::app()->getStore()->getId();
26
- $storeView = Mage::app()->getStore()->getName();
27
- $storeGroup = Mage::app()->getStore()->getGroup()->getName();
28
- $storeWebsite = Mage::app()->getWebsite()->getName();
29
-
30
- $this->getQuote()->save();
31
-
32
- /*** Mail an smart-e ***/
33
-
34
- $to1 = "creditcard_CH@smart-e.ch";
35
- $subject1 = "Kreditkartenantrag an smart-e von " .$data["shopID"];
36
- $body1 =''.$data["shopID"].'
37
- '.$data["shopEmail"].'
38
- '.$data["firstname"].'
39
- '.$data["lastname"].'
40
- '.$data["address"].'
41
- '.$data["postcode"].'
42
- '.$data["city"].'
43
- '.$data["country"].'
44
- '.$data["birthdate"].'
45
- '.$data["email"].'
46
- '.$data["telephone"].'
47
-
48
- Weitere Store ID
49
- ----------------
50
- Store ID: '.$storeID.'
51
- Store View: '.$storeView.'
52
- Store Group: '.$storeGroup.'
53
- Store Website: '.$storeWebsite.'
54
- ';
55
-
56
- $header1 = 'From:' .$data["shopEmail"] . "\r\n" .
57
- 'Reply-To:' .$data["email"] . "\r\n" .
58
- 'X-Mailer: PHP/' . phpversion();
59
-
60
- mail($to1, $subject1, $body1, $header1);
61
-
62
- /*** Mail an potenziellen Antragsteller ***/
63
-
64
- $to2 = $data["email"];
65
- $subject2 = "Kreditkartenantrag von " .$data["shopID"];
66
- $body2 ='Sehr geehrte Dame, sehr geehrter Herr,
67
-
68
- Vielen Dank fuer Ihr Interesse an einer Kreditkarte. Wir haben Ihre untenstehenden Angaben an einen Dienstleister uebermittelt, welcher das fuer Sie geeignetste Kartenprodukt evaluiert und Ihnen direkt einen vorausgefuellten Kreditkartenantrag uebermittelt.
69
-
70
- Vorname: '.$data["firstname"].'
71
- Name: '.$data["lastname"].'
72
- Adresse: '.$data["address"].'
73
- PLZ: '.$data["postcode"].'
74
- Wohnort: '.$data["city"].'
75
- Land: '.$data["country"].'
76
- Geburtsdatum: '.$data["birthdate"].'
77
- Email: '.$data["email"].'
78
- Telefon: '.$data["telephone"].'
79
-
80
- Der Absender dieser Email wird smart-e GmbH sein - smart-e waehlt ein fuer Sie passendes Kreditartenprodukt aus. Das Angebot von smart-e wird eine Karte eines bekannten Schweizerischen Kreditkarteninstituts beinhalten. Sie sollten dieses Angebot sorgfaeltig pruefen und koennnen, muessen aber nicht, darauf eintreten.
81
-
82
- Von unserem Shop ('.$data["shopID"].') erhalten Sie separat eine Bestellbestaetigung mit weiteren Angaben fuer die Zahlung, solange Sie noch keine Kreditkarte haben.
83
-
84
- Herzlichen Dank fuer Ihre Bestellung und freundliche Gruesse
85
-
86
- '.$data["shopID"].'
87
- '.$data["shopEmail"].'
88
- ';
89
-
90
- $header2 = 'From:' .$data["email"] . "\r\n" .
91
- 'Reply-To:' .$data["email"] . "\r\n" .
92
- 'X-Mailer: PHP/' . phpversion();
93
-
94
- if (mail($to2, $subject2, $body2, $header2)) {
95
- } else {
96
- }
97
-
98
- $this->getCheckout()
99
- ->setStepData('payment', 'complete', true)
100
- ->setStepData('review', 'allow', true);
101
-
102
- return array();
103
- }
104
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/earniecc/form.phtml CHANGED
@@ -1,79 +1,7 @@
1
- <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
2
-
3
  <fieldset class="form-list">
4
  <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
5
  <li>
6
-
7
- <div class="option">
8
- <input name="creditcardoffer" type="checkbox" id="creditcardoffer" value="yes" checked="checked" /> Ja, ich moechte eine unverbindliche Offerte fuer eine Kreditkarte an meine Mailadresse erhalten, damit ich das naechste Mal direkt im www bestellen kann (Felder werden vorausgefüllt, sofern Sie als Kunde angemeldet sind).
9
- </li>
10
- <li>
11
- <table width="624" border="0">
12
- <tr>
13
- <td><div class="input-box">
14
- <label for="firstname"><?php echo Mage::helper('earniecc')->__('Vorname') ?> <span class="required">*</span></label><br />
15
- <input name="payment[firstname]" id="firstname" title="<?php echo Mage::helper('earniecc')->__('Vorname') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserFirstname()) ?>" class="required-entry input-text" type="text" />
16
- </div></td>
17
- <td><div class="input-box">
18
- <label for="lastname"><?php echo Mage::helper('earniecc')->__('Familienname') ?> <span class="required">*</span></label><br />
19
- <input name="payment[lastname]" id="lastname" title="<?php echo Mage::helper('earniecc')->__('Familienname') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserLastname()) ?>" class="required-entry input-text" type="text" />
20
- </div></td>
21
- <tr>
22
- <td colspan="2">
23
- <div class="input-box">
24
- <label for="address"><?php echo Mage::helper('earniecc')->__('Adresse/Hausnummer') ?> <span class="required">*</span></label><br />
25
- <input name="payment[address]" id="address" title="<?php echo Mage::helper('earniecc')->__('Adresse/Hausnummer') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressStreet()) ?>" class="required-entry input-text" type="text" />
26
- </div>
27
- </td>
28
- </tr>
29
- <tr>
30
- <td><div class="input-text">
31
- <label for="postcode"><?php echo Mage::helper('earniecc')->__('PLZ') ?> <span class="required">*</span></label><br />
32
- <input name="payment[postcode]" id="postcode" title="<?php echo Mage::helper('earniecc')->__('PLZ') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressPostcode()) ?>" class="required-entry input-textarea" type="textarea" />
33
- </div></td>
34
- <td>
35
- <div class="input-box">
36
-
37
- <label for="city"><?php echo Mage::helper('earniecc')->__('Wohnort') ?> <span class="required">*</span></label><br />
38
- <input name="payment[city]" id="city" title="<?php echo Mage::helper('earniecc')->__('Wohnort') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressCity()) ?>" class="required-entry input-text" type="text" />
39
- </div>
40
- </td>
41
- </tr>
42
- <tr>
43
- <td><div class="textarea">
44
- <specificcountry translate="label"><label for="country"><?php echo Mage::helper('earniecc')->__('Land') ?> </label><br />
45
- <input name="payment[country]" id="country" title="<?php echo Mage::helper('earniecc')->__('Land') ?>" value="Schweiz" readonly />
46
- </div>
47
- </specificcountry>
48
- </td>
49
- <td>
50
- <div class="input-text">
51
- <label for="birthdate"><?php echo Mage::helper('earniecc')->__('Geburtsdatum') ?> <span class="required">*</span></label><br />
52
- <input name="payment[birthdate]" id="birthdate" title="<?php echo Mage::helper('earniecc')->__('Geburtsdatum') ?>" class="required-entry input-text" type="text" />
53
- </div></td>
54
- </tr>
55
- <tr>
56
- <td><div class="input-box">
57
- <label for="email"><?php echo Mage::helper('earniecc')->__('Email') ?> <span class="required">*</span></label><br />
58
- <input name="payment[email]" id="email" title="<?php echo Mage::helper('earniecc')->__('Email') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserEmail()) ?>" class="required-entry validate-email input-text" type="text" />
59
- </div></td>
60
- <td>
61
-
62
- <div class="input-box">
63
- <label for="telephone"><?php echo Mage::helper('earniecc')->__('Mobile/Telefon') ?></label><br />
64
- <input name="payment[telephone]" id="telephone" title="<?php echo Mage::helper('earniecc')->__('Mobile/Telefon') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserTelephone()) ?>" class="input-textarea" type="textarea" />
65
- </div>
66
- </td>
67
- </tr>
68
- </table>
69
- </li>
70
- <li>
71
- <div class="input-text">
72
- <b>Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen:</b>
73
- </div>
74
- </li>
75
- <li>
76
- <div class="input-text">
77
  <?php if ($this->getMethod()->getInfoText('bank')): ?>
78
  <?php echo $this->getMethod()->getInfoText('bank') ?>
79
  <?php endif; ?>
@@ -97,7 +25,6 @@
97
  </li>
98
  <li>
99
  <div class="input-box">
100
- Adresse:
101
  <?php if ($this->getMethod()->getInfoText('adresse')): ?>
102
  <?php echo $this->getMethod()->getInfoText('adresse') ?><br />
103
  <?php endif; ?>
@@ -105,13 +32,9 @@
105
  </li>
106
  <li>
107
  <div class="input-box">
108
- <b>Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden. </b>
109
  </div>
110
- </li>
111
- <li>
112
- <div class="input-text" style="visibility:hidden"> (Sicherheitsfelder für internen Gebrauch: Shop Name <input name="payment[shopID]" value="<?php if ($this->getMethod()->getInfoText('shopID')): ?><?php echo $this->getMethod()->getInfoText('shopID') ?><?php endif; ?>" class="input-textarea" type="textarea" readonly="readonly" /> und Shop Email <input name="payment[shopEmail]" value="<?php if ($this->getMethod()->getInfoText('shopEmail')): ?><?php echo $this->getMethod()->getInfoText('shopEmail') ?><?php endif; ?>" class="input-textarea" type="textarea" readonly="readonly"/>)
113
- </div>
114
-
115
- </li>
116
  </ul>
117
  </fieldset>
 
 
1
  <fieldset class="form-list">
2
  <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
3
  <li>
4
+ <div class="input-box">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  <?php if ($this->getMethod()->getInfoText('bank')): ?>
6
  <?php echo $this->getMethod()->getInfoText('bank') ?>
7
  <?php endif; ?>
25
  </li>
26
  <li>
27
  <div class="input-box">
 
28
  <?php if ($this->getMethod()->getInfoText('adresse')): ?>
29
  <?php echo $this->getMethod()->getInfoText('adresse') ?><br />
30
  <?php endif; ?>
32
  </li>
33
  <li>
34
  <div class="input-box">
35
+ Lieferung erfolgt nach Eintreffen der Bezahlung
36
  </div>
37
+ </li>
38
+
 
 
 
 
39
  </ul>
40
  </fieldset>
app/design/frontend/base/default/template/earniecc/form.phtml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
2
+ <fieldset class="form-list">
3
+ <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
4
+ <li>
5
+
6
+ <div class="option">
7
+ <input class="required-entry" name="creditcardoffer" type="checkbox" id="creditcardoffer" value="yes" checked="checked" />
8
+ <?php echo Mage::helper('earniecc')->__('LBL_CONFIRMATION', $this->htmlEscape($this->helper('earniecc')->getUserEmail())) ?>
9
+ </li>
10
+ <li>
11
+ <table width="624" border="0">
12
+ <tr>
13
+ <td><div class="input-box">
14
+ <label class="required" for="earniecc_firstname"><?php echo Mage::helper('earniecc')->__('Vorname') ?> <em>*</em></label><br />
15
+ <input name="payment[firstname]" id="earniecc_firstname" title="<?php echo Mage::helper('earniecc')->__('Vorname') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserFirstname()) ?>" class="required-entry input-text" type="text" />
16
+ </div></td>
17
+ <td><div class="input-box">
18
+ <label class="required" for="earniecc_lastname"><?php echo Mage::helper('earniecc')->__('Familienname') ?> <em>*</em></label><br />
19
+ <input name="payment[lastname]" id="earniecc_lastname" title="<?php echo Mage::helper('earniecc')->__('Familienname') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserLastname()) ?>" class="required-entry input-text" type="text" />
20
+ </div></td>
21
+ <tr>
22
+ <td colspan="2">
23
+ <div class="input-box">
24
+ <label class="required" for="earniecc_address"><?php echo Mage::helper('earniecc')->__('Adresse/Hausnummer') ?> <em>*</em></label><br />
25
+ <input name="payment[address]" id="earniecc_address" title="<?php echo Mage::helper('earniecc')->__('Adresse/Hausnummer') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressStreet()) ?>" class="required-entry input-text" type="text" />
26
+ </div>
27
+ </td>
28
+ </tr>
29
+ <tr>
30
+ <td><div class="input-text">
31
+ <label class="required" for="earniecc_postcode"><?php echo Mage::helper('earniecc')->__('PLZ') ?> <em>*</em></label><br />
32
+ <input name="payment[postcode]" id="earniecc_postcode" title="<?php echo Mage::helper('earniecc')->__('PLZ') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressPostcode()) ?>" class="required-entry input-text" type="text" />
33
+ </div></td>
34
+ <td>
35
+ <div class="input-box">
36
+
37
+ <label class="required" for="earniecc_city"><?php echo Mage::helper('earniecc')->__('Wohnort') ?> <em>*</em></label><br />
38
+ <input name="payment[city]" id="earniecc_city" title="<?php echo Mage::helper('earniecc')->__('Wohnort') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressCity()) ?>" class="required-entry input-text" type="text" />
39
+ </div>
40
+ </td>
41
+ </tr>
42
+ <tr>
43
+ <td><div class="field">
44
+
45
+ <label class="required" for="earniecc_country"><?php echo Mage::helper('earniecc')->__('Land') ?> <em>*</em></label><br />
46
+ <div class="input-box">
47
+ <?php echo $this->getCountryHtmlSelect('earniecc') ?>
48
+ </div>
49
+ </div>
50
+ </td>
51
+ <td>
52
+ <div class="input-text">
53
+ <label class="required" for="earniecc_birthdate"><?php echo Mage::helper('earniecc')->__('Geburtsdatum') ?> <em>*</em></label><br />
54
+ <input name="payment[birthdate]" id="earniecc_birthdate" title="<?php echo Mage::helper('earniecc')->__('Geburtsdatum') ?>" class="required-entry input-text" type="text" />
55
+ </div></td>
56
+ </tr>
57
+ <tr>
58
+ <td><div class="input-box">
59
+ <label class="required" for="earniecc_email"><?php echo Mage::helper('earniecc')->__('Email') ?> <em>*</em></label><br />
60
+ <input name="payment[email]" id="earniecc_email" title="<?php echo Mage::helper('earniecc')->__('Email') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserEmail()) ?>" class="required-entry validate-email input-text" type="text" />
61
+ </div></td>
62
+ <td>
63
+
64
+ <div class="input-box">
65
+ <label for="earniecc_telephone"><?php echo Mage::helper('earniecc')->__('Mobile/Telefon') ?></label><br />
66
+ <input name="payment[telephone]" id="earniecc_telephone" title="<?php echo Mage::helper('earniecc')->__('Mobile/Telefon') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserTelephone()) ?>" class="input-text" type="text" />
67
+ </div>
68
+ </td>
69
+ </tr>
70
+ </table>
71
+ </li>
72
+ <li>
73
+ <div class="input-text">
74
+ <b><?php echo Mage::helper('earniecc')->__('Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen') ?>:</b>
75
+ </div>
76
+ </li>
77
+ <li>
78
+ <div class="input-text">
79
+ <?php if ($this->getMethod()->getInfoText('bank')): ?>
80
+ <?php echo $this->getMethod()->getInfoText('bank') ?>
81
+ <?php endif; ?>
82
+ <?php if ($this->getMethod()->getInfoText('konto')): ?>
83
+ <?php echo ', Konto '; echo $this->getMethod()->getInfoText('konto') ?>
84
+ <?php endif; ?>
85
+ <?php if ($this->getMethod()->getInfoText('clearing')): ?>
86
+ <?php echo ', Clearing: '; echo $this->getMethod()->getInfoText('clearing') ?>
87
+ <?php endif; ?>
88
+ <?php if ($this->getMethod()->getInfoText('inhaber')): ?>
89
+ <?php echo ', lautend auf '; echo $this->getMethod()->getInfoText('inhaber') ?>
90
+ <?php endif; ?>
91
+ </div>
92
+ </li>
93
+ <li>
94
+ <div class="input-box">
95
+ <?php if ($this->getMethod()->getInfoText('iban')): ?>
96
+ <?php echo 'IBAN '; echo $this->getMethod()->getInfoText('iban') ?><br />
97
+ <?php endif; ?>
98
+ </div>
99
+ </li>
100
+ <li>
101
+ <div class="input-box">
102
+ <?php echo Mage::helper('earniecc')->__('Adresse'); ?>:
103
+ <?php if ($this->getMethod()->getInfoText('adresse')): ?>
104
+ <?php echo $this->getMethod()->getInfoText('adresse') ?><br />
105
+ <?php endif; ?>
106
+ </div>
107
+ </li>
108
+ <li>
109
+ <div class="input-box">
110
+ <b><?php echo Mage::helper('earniecc')->__('Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden.') ?></b>
111
+ </div>
112
+ </li>
113
+ <li>
114
+ <div class="input-text" style="visibility:hidden">
115
+ (<?php echo Mage::helper('earniecc')->__('TXT_HIDDEN_1'); ?>
116
+ <input name="payment[shopID]" value="<?php if ($this->getMethod()->getInfoText('shopID')): ?><?php echo $this->getMethod()->getInfoText('shopID') ?><?php endif; ?>" class="input-textarea" type="textarea" readonly="readonly" /> <?php echo Mage::helper('earniecc')->__('TXT_HIDDEN_2'); ?> <input name="payment[shopEmail]" value="<?php if ($this->getMethod()->getInfoText('shopEmail')): ?><?php echo $this->getMethod()->getInfoText('shopEmail') ?><?php endif; ?>" class="input-textarea" type="textarea" readonly="readonly"/>
117
+ )
118
+ </div>
119
+
120
+ </li>
121
+ </ul>
122
+ </fieldset>
app/design/frontend/base/default/template/earniecc/info.phtml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <p>
2
+ <?php
3
+ echo Mage::getStoreConfig(Smarte_EarnieCC_Model_Earniecc::XML_PATH_EARNIECC_TITLE);
4
+ ?>
5
+ </p>
app/design/frontend/default/default/template/earniecc/form.phtml DELETED
@@ -1,117 +0,0 @@
1
- <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
2
-
3
- <fieldset class="form-list">
4
- <ul id="payment_form_<?php echo $this->getMethodCode(); ?>" style="display:none">
5
- <li>
6
-
7
- <div class="option">
8
- <input name="creditcardoffer" type="checkbox" id="creditcardoffer" value="yes" checked="checked" /> Ja, ich moechte eine unverbindliche Offerte fuer eine Kreditkarte an meine Mailadresse erhalten, damit ich das naechste Mal direkt im www bestellen kann (Felder werden vorausgefüllt, sofern Sie als Kunde angemeldet sind).
9
- </li>
10
- <li>
11
- <table width="624" border="0">
12
- <tr>
13
- <td><div class="input-box">
14
- <label for="firstname"><?php echo Mage::helper('earniecc')->__('Vorname') ?> <span class="required">*</span></label><br />
15
- <input name="payment[firstname]" id="firstname" title="<?php echo Mage::helper('earniecc')->__('Vorname') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserFirstname()) ?>" class="required-entry input-text" type="text" />
16
- </div></td>
17
- <td><div class="input-box">
18
- <label for="lastname"><?php echo Mage::helper('earniecc')->__('Familienname') ?> <span class="required">*</span></label><br />
19
- <input name="payment[lastname]" id="lastname" title="<?php echo Mage::helper('earniecc')->__('Familienname') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserLastname()) ?>" class="required-entry input-text" type="text" />
20
- </div></td>
21
- <tr>
22
- <td colspan="2">
23
- <div class="input-box">
24
- <label for="address"><?php echo Mage::helper('earniecc')->__('Adresse/Hausnummer') ?> <span class="required">*</span></label><br />
25
- <input name="payment[address]" id="address" title="<?php echo Mage::helper('earniecc')->__('Adresse/Hausnummer') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressStreet()) ?>" class="required-entry input-text" type="text" />
26
- </div>
27
- </td>
28
- </tr>
29
- <tr>
30
- <td><div class="input-text">
31
- <label for="postcode"><?php echo Mage::helper('earniecc')->__('PLZ') ?> <span class="required">*</span></label><br />
32
- <input name="payment[postcode]" id="postcode" title="<?php echo Mage::helper('earniecc')->__('PLZ') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressPostcode()) ?>" class="required-entry input-textarea" type="textarea" />
33
- </div></td>
34
- <td>
35
- <div class="input-box">
36
-
37
- <label for="city"><?php echo Mage::helper('earniecc')->__('Wohnort') ?> <span class="required">*</span></label><br />
38
- <input name="payment[city]" id="city" title="<?php echo Mage::helper('earniecc')->__('Wohnort') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserAddressCity()) ?>" class="required-entry input-text" type="text" />
39
- </div>
40
- </td>
41
- </tr>
42
- <tr>
43
- <td><div class="textarea">
44
- <specificcountry translate="label"><label for="country"><?php echo Mage::helper('earniecc')->__('Land') ?> </label><br />
45
- <input name="payment[country]" id="country" title="<?php echo Mage::helper('earniecc')->__('Land') ?>" value="Schweiz" readonly />
46
- </div>
47
- </specificcountry>
48
- </td>
49
- <td>
50
- <div class="input-text">
51
- <label for="birthdate"><?php echo Mage::helper('earniecc')->__('Geburtsdatum') ?> <span class="required">*</span></label><br />
52
- <input name="payment[birthdate]" id="birthdate" title="<?php echo Mage::helper('earniecc')->__('Geburtsdatum') ?>" class="required-entry input-text" type="text" />
53
- </div></td>
54
- </tr>
55
- <tr>
56
- <td><div class="input-box">
57
- <label for="email"><?php echo Mage::helper('earniecc')->__('Email') ?> <span class="required">*</span></label><br />
58
- <input name="payment[email]" id="email" title="<?php echo Mage::helper('earniecc')->__('Email') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserEmail()) ?>" class="required-entry validate-email input-text" type="text" />
59
- </div></td>
60
- <td>
61
-
62
- <div class="input-box">
63
- <label for="telephone"><?php echo Mage::helper('earniecc')->__('Mobile/Telefon') ?></label><br />
64
- <input name="payment[telephone]" id="telephone" title="<?php echo Mage::helper('earniecc')->__('Mobile/Telefon') ?>" value="<?php echo $this->htmlEscape($this->helper('earniecc')->getUserTelephone()) ?>" class="input-textarea" type="textarea" />
65
- </div>
66
- </td>
67
- </tr>
68
- </table>
69
- </li>
70
- <li>
71
- <div class="input-text">
72
- <b>Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen:</b>
73
- </div>
74
- </li>
75
- <li>
76
- <div class="input-text">
77
- <?php if ($this->getMethod()->getInfoText('bank')): ?>
78
- <?php echo $this->getMethod()->getInfoText('bank') ?>
79
- <?php endif; ?>
80
- <?php if ($this->getMethod()->getInfoText('konto')): ?>
81
- <?php echo ', Konto '; echo $this->getMethod()->getInfoText('konto') ?>
82
- <?php endif; ?>
83
- <?php if ($this->getMethod()->getInfoText('clearing')): ?>
84
- <?php echo ', Clearing: '; echo $this->getMethod()->getInfoText('clearing') ?>
85
- <?php endif; ?>
86
- <?php if ($this->getMethod()->getInfoText('inhaber')): ?>
87
- <?php echo ', lautend auf '; echo $this->getMethod()->getInfoText('inhaber') ?>
88
- <?php endif; ?>
89
- </div>
90
- </li>
91
- <li>
92
- <div class="input-box">
93
- <?php if ($this->getMethod()->getInfoText('iban')): ?>
94
- <?php echo 'IBAN '; echo $this->getMethod()->getInfoText('iban') ?><br />
95
- <?php endif; ?>
96
- </div>
97
- </li>
98
- <li>
99
- <div class="input-box">
100
- Adresse:
101
- <?php if ($this->getMethod()->getInfoText('adresse')): ?>
102
- <?php echo $this->getMethod()->getInfoText('adresse') ?><br />
103
- <?php endif; ?>
104
- </div>
105
- </li>
106
- <li>
107
- <div class="input-box">
108
- <b>Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden. </b>
109
- </div>
110
- </li>
111
- <li>
112
- <div class="input-text" style="visibility:hidden"> (Sicherheitsfelder für internen Gebrauch: Shop Name <input name="payment[shopID]" value="<?php if ($this->getMethod()->getInfoText('shopID')): ?><?php echo $this->getMethod()->getInfoText('shopID') ?><?php endif; ?>" class="input-textarea" type="textarea" readonly="readonly" /> und Shop Email <input name="payment[shopEmail]" value="<?php if ($this->getMethod()->getInfoText('shopEmail')): ?><?php echo $this->getMethod()->getInfoText('shopEmail') ?><?php endif; ?>" class="input-textarea" type="textarea" readonly="readonly"/>)
113
- </div>
114
-
115
- </li>
116
- </ul>
117
- </fieldset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/earniecc/info.phtml DELETED
@@ -1,31 +0,0 @@
1
- <p>
2
- <?php echo $this->getMethod()->getTitle() ?><br />
3
-
4
- <?php if ($this->getMethod()->getInfoText('bank')): ?>
5
- <?php echo 'Bank: '; echo $this->getMethod()->getInfoText('bank') ?><br />
6
- <?php endif; ?>
7
-
8
-
9
- <?php if ($this->getMethod()->getInfoText('konto')): ?>
10
- <?php echo 'Konto: '; echo $this->getMethod()->getInfoText('konto') ?><br />
11
- <?php endif; ?>
12
-
13
- <?php if ($this->getMethod()->getInfoText('clearing')): ?>
14
- <?php echo 'Clearing: '; echo $this->getMethod()->getInfoText('clearing') ?><br />
15
- <?php endif; ?>
16
-
17
- <?php if ($this->getMethod()->getInfoText('inhaber')): ?>
18
- <?php echo 'Lautend auf: '; echo $this->getMethod()->getInfoText('inhaber') ?><br />
19
- <?php endif; ?>
20
-
21
- <?php if ($this->getMethod()->getInfoText('iban')): ?>
22
- <?php echo 'IBAN: '; echo $this->getMethod()->getInfoText('iban') ?><br />
23
- <?php endif; ?>
24
- <?php if ($this->getMethod()->getInfoText('adresse')): ?>
25
- <?php echo 'Adresse: '; echo $this->getMethod()->getInfoText('adresse') ?><br />
26
- <?php endif; ?>
27
-
28
- <?php echo 'Lieferung erfolgt nach Eintreffen der Bezahlung'; ?><br />
29
-
30
-
31
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Smarte_All.xml CHANGED
@@ -1,20 +1,26 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
- <Smarte_Ueberweisung>
5
  <active>true</active>
6
- <codePool>local</codePool>
 
 
 
 
 
7
  <depends>
8
- <Mage_Payment />
9
  </depends>
10
  <version>1.0</version>
11
- </Smarte_Ueberweisung>
12
- <Smarte_EarnieCC>
13
  <active>true</active>
14
- <codePool>local</codePool>
15
  <depends>
16
- <Mage_Checkout />
17
  </depends>
18
- </Smarte_EarnieCC>
 
19
  </modules>
20
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <modules>
4
+ <Smarte_EarnieCC>
5
  <active>true</active>
6
+ <codePool>community</codePool>
7
+ <version>1.0</version>
8
+ </Smarte_EarnieCC>
9
+ <Smarte_EarnieCC_Checkout>
10
+ <active>true</active>
11
+ <codePool>community</codePool>
12
  <depends>
13
+ <Mage_Checkout />
14
  </depends>
15
  <version>1.0</version>
16
+ </Smarte_EarnieCC_Checkout>
17
+ <Smarte_EarnieCC_Sales>
18
  <active>true</active>
19
+ <codePool>community</codePool>
20
  <depends>
21
+ <Mage_Sales />
22
  </depends>
23
+ <version>1.0</version>
24
+ </Smarte_EarnieCC_Sales>
25
  </modules>
26
  </config>
app/locale/de_CH/smarte_EarnieCC.csv ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ID,ID
2
+ Name,Bezeichnung
3
+ Tags,Tags
4
+ Summary,Zusammenfassung
5
+ Single element, Einzelnes Element
6
+ List of %s elements,Liste von %s Elementen
7
+ Edit Element'%s,Bearbeite Elemente %s
8
+ Add New,Neu
9
+ Element(s),Element(e)
10
+ Add New Element,Neues Element erstellen
11
+ Element Details,Element Detailansicht
12
+ Action,Aktion
13
+ Edit,Bearbeiten
14
+ Delete,Löschen
15
+ Item Details, Element Details
16
+
17
+ "LBL_CONFIRMATION", "Ja, ich moechte eine unverbindliche Offerte fuer eine Kreditkarte an meine Mailadresse (%s) erhalten, damit ich das naechste Mal direkt im www bestellen kann."
18
+ "Vorname","Vorname"
19
+ "Familienname","Familienname"
20
+ "Adresse/Hausnummer","Adresse/Hausnummer"
21
+ "PLZ","PLZ"
22
+ "Wohnort","Wohnort"
23
+ "Land","Land"
24
+ "Geburtsdatum","Geburtsdatum"
25
+ "Email","Email"
26
+ "Mobile/Telefon","Mobile/Telefon"
27
+ "Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen","Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen"
28
+ "Konto","Konto"
29
+ "Clearing","Clearing"
30
+ "lautend auf","lautend auf"
31
+ "IBAN","IBAN"
32
+ "Adresse","Adresse"
33
+ "Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden.","Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden."
34
+ "TXT_HIDDEN_1","Sicherheitsfelder für internen Gebrauch: Shop Name"
35
+ "TXT_HIDDEN_2","und Shop Email"
app/locale/de_DE/smarte_EarnieCC.csv ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ID,ID
2
+ Name,Bezeichnung
3
+ Tags,Tags
4
+ Summary,Zusammenfassung
5
+ Single element, Einzelnes Element
6
+ List of %s elements,Liste von %s Elementen
7
+ Edit Element'%s,Bearbeite Elemente %s
8
+ Add New,Neu
9
+ Element(s),Element(e)
10
+ Add New Element,Neues Element erstellen
11
+ Element Details,Element Detailansicht
12
+ Action,Aktion
13
+ Edit,Bearbeiten
14
+ Delete,Löschen
15
+ Item Details, Element Details
16
+
17
+ "LBL_CONFIRMATION", "Ja, ich moechte eine unverbindliche Offerte fuer eine Kreditkarte an meine Mailadresse (%s) erhalten, damit ich das naechste Mal direkt im www bestellen kann."
18
+ "Vorname","Vorname"
19
+ "Familienname","Familienname"
20
+ "Adresse/Hausnummer","Adresse/Hausnummer"
21
+ "PLZ","PLZ"
22
+ "Wohnort","Wohnort"
23
+ "Land","Land"
24
+ "Geburtsdatum","Geburtsdatum"
25
+ "Email","Email"
26
+ "Mobile/Telefon","Mobile/Telefon"
27
+ "Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen","Zwischenzeitlich bitte ausstehenden Betrag auf folgendes Konto einzahlen"
28
+ "Konto","Konto"
29
+ "Clearing","Clearing"
30
+ "lautend auf","lautend auf"
31
+ "IBAN","IBAN"
32
+ "Adresse","Adresse"
33
+ "Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden.","Die Lieferung erfolgt nach Eintreffen der Bezahlung - in Zukunft koennen Sie Ihre Kreditkarte verwenden."
34
+ "TXT_HIDDEN_1","Sicherheitsfelder für internen Gebrauch: Shop Name"
35
+ "TXT_HIDDEN_2","und Shop Email"
package.xml CHANGED
@@ -1,38 +1,35 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Earnie_CC</name>
4
- <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">AFL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Kunden ohne Kreditkarte erhalten ein Offer f&#xFC;r eine Kreditkarte und k&#xF6;nnen parallel dazu den Zahlungsvorgang mit einer Bankzahlung fortsetzen - der Shopbetreiber wird pro &#xFC;bermittelten Antrag mit CHF 5.00 periodisch entsch&#xE4;digt (derzeit f&#xFC;r die Schweiz funktionsf&#xE4;hig).</summary>
10
- <description>Kunden ohne Kreditkarte erhalten ein Offer f&#xFC;r eine Kreditkarte (PrePaid) eines anerkannten und grossen Kreditkartenunternehmens in der Schweiz und k&#xF6;nnen parallel dazu den Zahlungsvorgang mit einer Bankzahlung fortsetzen - der Shopbetreiber wird pro &#xFC;bermittelten Antrag mit CHF 5.00 periodisch entsch&#xE4;digt (derzeit f&#xFC;r die Schweiz funktionsf&#xE4;hig).
11
 
12
- Der Zahlungsvorgang wird nicht behindert: Dem Kunden ein erstes Email mit einer Vorank&#xFC;ndigung sowie ein zweites Email mit einem vorausgef&#xFC;llten Kartenantrag wird separat zur Bestellbest&#xE4;tigung geschickt.
13
 
14
- Der Shopbetreiber erh&#xE4;lt Reports &#xFC;ber die generierten Sales Leads.
15
 
16
- Beispiele, allgemeine Gesch&#xE4;ftsbbedingungen und Screenshots hier http://www.smart-e.ch/cms/aktuelles.php</description>
17
- <notes>1.2.2 Tested
18
- ------------------
19
- - Zusammenspiel mit anderen Zahlungsarten --&gt; OK
20
- - Funzen die anderen Mails (Kontaktformular etc.) noch? --&gt; OK
21
- - Authorize action is not available --&gt; Behoben, OK
22
 
23
- 1.2.3 Tested
24
- ------------------
25
- Bug im Admin-Bereich behoben
26
 
27
- F&#xFC;r 2.0 vorgesehen
28
- ---------------------------
29
- - Felder vorausgef&#xFC;llt auch bei Anmeldung als 'registriert'
30
  - Version f&#xFC;r Deutschland
31
- - Bonit&#xE4;tsvorpr&#xFC;fung und &#xDC;bernahme Risiken der ersten Transaktion (je nach Betragsh&#xF6;he) - Bankzahlung entf&#xE4;llt</notes>
32
- <authors><author><name>Jonathan Buehler</name><user>auto-converted</user><email>jon.buehler@smart-e.ch</email></author></authors>
33
- <date>2010-09-21</date>
34
- <time>20:27:26</time>
35
- <contents><target name="mageetc"><dir name="modules"><file name="Smarte_All.xml" hash="adba924f77e0d02dba31087ec993fcf3"/></dir></target><target name="magelocal"><dir name="Smarte"><dir name="EarnieCC"><dir name="Block"><file name="Form.php" hash="bc605621989808a5d7e61836c0428780"/><file name="Info.php" hash="0d19672b086626be9c51bb201a0333f0"/></dir><dir name="controllers"><file name="IndexController.php" hash="ab7fbe2dfe17ee845cd8958b7271d6ef"/></dir><dir name="etc"><file name="config.xml" hash="335a30bb09a526a4023c8e693178d92e"/><file name="system.xml" hash="4b61d57d22a5bd5712ae80cda5129bfc"/></dir><dir name="Helper"><file name="Data.php" hash="86d95efe90bc263cb5ba29351eb39ab4"/></dir><dir name="Model"><file name="Earniecc.php" hash="c43703fe006fcecef0b218cd90a3f128"/><file name="Onepage.php" hash="d2c2c41cccee56c25c2f1f2e3b584bad"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="earniecc"><file name="form.phtml" hash="692657de38ca9ba7835992f31a46ea6a"/><file name="info.phtml" hash="b18ebb6a3ad36f0239e74e2f68081bf6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="earniecc"><file name="form.phtml" hash="692657de38ca9ba7835992f31a46ea6a"/><file name="info.phtml" hash="b18ebb6a3ad36f0239e74e2f68081bf6"/></dir></dir></dir></dir></dir></target></contents>
 
 
 
 
 
36
  <compatible/>
37
- <dependencies><required><package><name></name><channel>community</channel><min></min><max></max></package></required></dependencies>
38
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Earnie_CC</name>
4
+ <version>1.2.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">AFL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Kunden ohne Kreditkarte erhalten ein Offer f&#xFC;r eine Kreditkarte - der Shopbetreiber erh&#xE4;lt CHF 5.00</summary>
10
+ <description>Kunden ohne Kreditkarte nicht verlieren und dabei Geld verdienen!
11
 
12
+ Kunden ohne Kreditkarte erhalten ein Offer f&#xFC;r eine Kreditkarte (PrePaid) eines anerkannten und grossen Kreditkartenunternehmens in der Schweiz und k&#xF6;nnen parallel dazu den Zahlungsvorgang mit einer Bankzahlung fortsetzen.
13
 
14
+ Der Shopbetreiber wird pro erfolgreich &#xFC;bermittelten Antrag mit CHF 5.00 periodisch entsch&#xE4;digt.
15
 
16
+ Der Zahlungsvorgang wird nicht behindert: Dem Kunden ein erstes Email mit einer Vorank&#xFC;ndigung sowie ein zweites Email mit einem vorausgef&#xFC;llten Kartenantrag wird separat zur Bestellbest&#xE4;tigung geschickt. Der Shopbetreiber erh&#xE4;lt Reports &#xFC;ber die generierten Sales Leads.
 
 
 
 
 
17
 
18
+ Das Modul ist derzeit nur f&#xFC;r die Schweiz funktionsf&#xE4;hig.
 
 
19
 
20
+ F&#xFC;r die n&#xE4;chsten Releases vorgesehen
21
+ -------------------------------------------
 
22
  - Version f&#xFC;r Deutschland
23
+ - Bonit&#xE4;tsvorpr&#xFC;fung und &#xDC;bernahme Risiken der ersten Transaktion (je nach Betragsh&#xF6;he) - Bankzahlung entf&#xE4;llt</description>
24
+ <notes>F&#xFC;r den n&#xE4;chsten Release vorgesehen
25
+ -------------------------------------------
26
+ - Bonit&#xE4;tsvorpr&#xFC;fung und &#xDC;bernahme Risiken der ersten Transaktion (je nach Betragsh&#xF6;he) - Bankzahlung entf&#xE4;llt
27
+ - Version f&#xFC;r Deutschland
28
+ - Internationale Versionen</notes>
29
+ <authors><author><name>Smarte</name><user>auto-converted</user><email>jon.buehler@smart-e.ch</email></author></authors>
30
+ <date>2011-03-06</date>
31
+ <time>14:15:24</time>
32
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="earniecc"><file name="form.phtml" hash="ef3a50e54ed8704bf8aa3c26ad1c5df7"/><file name="info.phtml" hash="b18ebb6a3ad36f0239e74e2f68081bf6"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="earniecc"><file name="form.phtml" hash="c70f93f6c34807a87d684e35aaa23dca"/><file name="info.phtml" hash="6054ad0ccad0925aa9254f05300c35f3"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_CH"><file name="smarte_EarnieCC.csv" hash="fad5ae6656ee5bd7d0c1395c9551cb2e"/></dir><dir name="de_DE"><file name="smarte_EarnieCC.csv" hash="fad5ae6656ee5bd7d0c1395c9551cb2e"/></dir></target><target name="mageetc"><dir name="modules"><file name="Smarte_All.xml" hash="b8e9a71ef72192eb38d1b928a3b17ac3"/></dir></target><target name="magecommunity"><dir name="Smarte"><dir name="EarnieCC"><dir name="Block"><file name="Form.php" hash="b1c090d3bda95fd9d3f739aec2dc2063"/><file name="Info.php" hash="0d19672b086626be9c51bb201a0333f0"/></dir><dir name="Checkout"><dir name="etc"><file name="config.xml" hash="61bb00119148e8d22917f31fa2cdcf85"/></dir><dir name="Model"><dir name="Type"><file name="Onepage.php" hash="727ffd2a55bb840f3d2c7a1c628006a3"/></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="ab7fbe2dfe17ee845cd8958b7271d6ef"/></dir><dir name="etc"><file name="config.xml" hash="6e5e402f0cef15fd60d2d7bc1bcac9c4"/><file name="system.xml" hash="8beab3f418e39b8e023a9ab0dbf3d458"/></dir><dir name="Helper"><file name="Data.php" hash="65716bb60e9e289873b0fa1343391d89"/></dir><dir name="Model"><file name="Earniecc.php" hash="7319151315a17377d9aee4778a16290a"/></dir><dir name="Sales"><dir name="etc"><file name="config.xml" hash="0e099e1f0a463b8acbc411b69acd7ab3"/></dir><dir name="Model"><file name="Order.php" hash="4d3d9731aba73297e5301603126cdb82"/></dir></dir></dir></dir></target></contents>
33
  <compatible/>
34
+ <dependencies><required><package><name>Mage_Checkout</name><channel>community</channel><min></min><max></max></package><package><name>Mage_Sales</name><channel>community</channel><min></min><max></max></package></required></dependencies>
35
  </package>