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 |
Version | 1.2 |
Comparing to | |
See all releases |
Version 1.2
- app/code/community/Smarte/EarnieCC/Block/Form.php +47 -0
- app/code/community/Smarte/EarnieCC/Block/Info.php +9 -0
- app/code/community/Smarte/EarnieCC/Checkout/Model/Type/Onepage.php +23 -0
- app/code/community/Smarte/EarnieCC/Checkout/etc/config.xml +17 -0
- app/code/community/Smarte/EarnieCC/Helper/Data.php +152 -0
- app/code/community/Smarte/EarnieCC/Model/Earniecc.php +24 -0
- app/code/community/Smarte/EarnieCC/Sales/Model/Order.php +67 -0
- app/code/community/Smarte/EarnieCC/Sales/etc/config.xml +17 -0
- app/code/community/Smarte/EarnieCC/controllers/IndexController.php +65 -0
- app/code/community/Smarte/EarnieCC/etc/config.xml +121 -0
- app/code/community/Smarte/EarnieCC/etc/system.xml +210 -0
- app/design/adminhtml/default/default/template/earniecc/form.phtml +40 -0
- app/design/adminhtml/default/default/template/earniecc/info.phtml +31 -0
- app/design/frontend/base/default/template/earniecc/form.phtml +122 -0
- app/design/frontend/base/default/template/earniecc/info.phtml +5 -0
- app/etc/modules/Smarte_All.xml +26 -0
- app/locale/de_CH/smarte_EarnieCC.csv +35 -0
- app/locale/de_DE/smarte_EarnieCC.csv +35 -0
- package.xml +35 -0
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/community/Smarte/EarnieCC/Block/Info.php
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Smarte_EarnieCC_Block_Info extends Mage_Payment_Block_Info
|
3 |
+
{
|
4 |
+
protected function _construct()
|
5 |
+
{
|
6 |
+
parent::_construct();
|
7 |
+
$this->setTemplate('earniecc/info.phtml');
|
8 |
+
}
|
9 |
+
}
|
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/community/Smarte/EarnieCC/Model/Earniecc.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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';
|
11 |
+
protected $_infoBlockType = 'earniecc/info';
|
12 |
+
|
13 |
+
// Ausgabe des Titels aus dem Backend
|
14 |
+
public function getCODTitle()
|
15 |
+
{
|
16 |
+
return $this->getConfigData('title');
|
17 |
+
}
|
18 |
+
|
19 |
+
// Ausgabe von Daten aus dem Backend
|
20 |
+
public function getInfoText($fieldname)
|
21 |
+
{
|
22 |
+
return $this->getConfigData($fieldname);
|
23 |
+
}
|
24 |
+
}
|
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/community/Smarte/EarnieCC/controllers/IndexController.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Smarte_EarnieCC_IndexController extends Mage_Core_Controller_Front_Action
|
3 |
+
{
|
4 |
+
public function postAction()
|
5 |
+
{
|
6 |
+
$post = $this->getRequest()->getPost();
|
7 |
+
if ( $post ) {
|
8 |
+
$translate = Mage::getSingleton('core/translate');
|
9 |
+
/* @var $translate Mage_Core_Model_Translate */
|
10 |
+
$translate->setTranslateInline(false);
|
11 |
+
try {
|
12 |
+
$postObject = new Varien_Object();
|
13 |
+
$postObject->setData($post);
|
14 |
+
|
15 |
+
$error = false;
|
16 |
+
|
17 |
+
if (!Zend_Validate::is(trim($post['firstname']) , 'NotEmpty')) {
|
18 |
+
$error = true;
|
19 |
+
}
|
20 |
+
|
21 |
+
if (!Zend_Validate::is(trim($post['lastname']) , 'NotEmpty')) {
|
22 |
+
$error = true;
|
23 |
+
}
|
24 |
+
|
25 |
+
if (!Zend_Validate::is(trim($post['address']) , 'NotEmpty')) {
|
26 |
+
$error = true;
|
27 |
+
}
|
28 |
+
if (!Zend_Validate::is(trim($post['postcode']) , 'NotEmpty')) {
|
29 |
+
$error = true;
|
30 |
+
}
|
31 |
+
if (!Zend_Validate::is(trim($post['city']) , 'NotEmpty')) {
|
32 |
+
$error = true;
|
33 |
+
}
|
34 |
+
if (!Zend_Validate::is(trim($post['country']) , 'NotEmpty')) {
|
35 |
+
$error = true;
|
36 |
+
}
|
37 |
+
|
38 |
+
if (!Zend_Validate::is(trim($post['birthdate']) , 'NotEmpty')) {
|
39 |
+
$error = true;
|
40 |
+
}
|
41 |
+
|
42 |
+
if (!Zend_Validate::is(trim($post['email']), 'EmailAddress')) {
|
43 |
+
$error = true;
|
44 |
+
}
|
45 |
+
|
46 |
+
if (!Zend_Validate::is(trim($post['telephone']) , 'NotEmpty')) {
|
47 |
+
$error = true;
|
48 |
+
}
|
49 |
+
|
50 |
+
if ($error) {
|
51 |
+
throw new Exception();
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
+
if (!$mailTemplate->getSentSuccess()) {
|
56 |
+
throw new Exception();
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
|
app/code/community/Smarte/EarnieCC/etc/config.xml
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<config>
|
4 |
+
<global>
|
5 |
+
<controllers>
|
6 |
+
<earniecc>
|
7 |
+
<rewrite>
|
8 |
+
<indexcontroller>Smarte_EarnieCC_controllers_IndexController</indexcontroller>
|
9 |
+
</rewrite>
|
10 |
+
</earniecc>
|
11 |
+
</controllers>
|
12 |
+
<helpers>
|
13 |
+
<earniecc>
|
14 |
+
<rewrite>
|
15 |
+
<data>Smarte_EarnieCC_Helper_Data</data>
|
16 |
+
</rewrite>
|
17 |
+
</earniecc>
|
18 |
+
</helpers>
|
19 |
+
<models>
|
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>
|
47 |
+
<class>Smarte_EarnieCC_Block</class>
|
48 |
+
</earniecc>
|
49 |
+
</blocks>
|
50 |
+
|
51 |
+
<!-- Definition der Ressourcen -->
|
52 |
+
<resources>
|
53 |
+
|
54 |
+
<!-- Setup,Write,Read Ressourcen definbieren. (Nur Core-Funktionen) -->
|
55 |
+
<earniecc_setup>
|
56 |
+
<setup>
|
57 |
+
<!-- Modul welches verwendet werden soll -->
|
58 |
+
<module>Smarte_EarnieCC</module>
|
59 |
+
</setup>
|
60 |
+
<connection>
|
61 |
+
<use>core_setup</use>
|
62 |
+
</connection>
|
63 |
+
</earniecc_setup>
|
64 |
+
|
65 |
+
<earniecc_write>
|
66 |
+
<use>core_write</use>
|
67 |
+
</earniecc_write>
|
68 |
+
|
69 |
+
<earniecc_read>
|
70 |
+
<use>core_read</use>
|
71 |
+
</earniecc_read>
|
72 |
+
|
73 |
+
</resources>
|
74 |
+
</global>
|
75 |
+
<!-- Uebersetzungen -->
|
76 |
+
<adminhtml>
|
77 |
+
<translate>
|
78 |
+
<modules>
|
79 |
+
<Smarte_EarnieCC>
|
80 |
+
<files>
|
81 |
+
<default>smarte_EarnieCC.csv</default>
|
82 |
+
</files>
|
83 |
+
</Smarte_EarnieCC>
|
84 |
+
</modules>
|
85 |
+
</translate>
|
86 |
+
</adminhtml>
|
87 |
+
|
88 |
+
<frontend>
|
89 |
+
<translate>
|
90 |
+
<modules>
|
91 |
+
<Smarte_EarnieCC>
|
92 |
+
<files>
|
93 |
+
<default>smarte_EarnieCC.csv</default>
|
94 |
+
</files>
|
95 |
+
</Smarte_EarnieCC>
|
96 |
+
</modules>
|
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>
|
115 |
+
<minamount>0</minamount>
|
116 |
+
<maxamount>0</maxamount>
|
117 |
+
</earniecc>
|
118 |
+
</payment>
|
119 |
+
</default>
|
120 |
+
|
121 |
+
</config>
|
app/code/community/Smarte/EarnieCC/etc/system.xml
ADDED
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<!-- Backend TAB payment -->
|
5 |
+
<payment>
|
6 |
+
<groups>
|
7 |
+
<!-- earniecc Fieldset -->
|
8 |
+
<earniecc translate="label" module="payment">
|
9 |
+
<!-- Titel im Backend -->
|
10 |
+
<label>Earnie CC: Mit Kreditkarten Geld verdienen</label>
|
11 |
+
<frontend_type>text</frontend_type>
|
12 |
+
<sort_order>1</sort_order>
|
13 |
+
<!-- In der Standarkonfiguration anzeigen -->
|
14 |
+
<show_in_default>1</show_in_default>
|
15 |
+
<!-- In der Websitekonfiguration anzeigen -->
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<!-- Nicht in der Storekonfiguration anzeigen -->
|
18 |
+
<show_in_store>0</show_in_store>
|
19 |
+
|
20 |
+
<!-- Nun folgend die Defenition der Backend-Eingabefelder -->
|
21 |
+
<fields>
|
22 |
+
|
23 |
+
<note translate="label">
|
24 |
+
<label></label>
|
25 |
+
<frontend_type>note</frontend_type>
|
26 |
+
<sort_order>0</sort_order>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>1</show_in_website>
|
29 |
+
<show_in_store>1</show_in_store>
|
30 |
+
<comment><![CDATA[
|
31 |
+
<a href="http://www.smart-e.ch" target="_blank"><IMG border="0" src="http://www.smart-e.ch/cms/grafik/logo/logo_sehrklein_ohne_hg.png"></a>
|
32 |
+
|
33 |
+
<div style=""><b>Earn Money Module</b> <a href="http://www.smart-e.ch" target="_blank">www.smart-e.ch</a></div>
|
34 |
+
<div style="margin-top:4px;">Kunden ohne Kreditkarten die Möglichkeit geben, einen vorausgefüllten Antrag einzureichen und mit jedem generierten Antrag zusätzlich Geld verdienen.
|
35 |
+
</div> ]]></comment>
|
36 |
+
</note>
|
37 |
+
|
38 |
+
|
39 |
+
<active translate="label">
|
40 |
+
<!-- Bezeichnung des Eingabefeldes -->
|
41 |
+
<label>Aktiviert</label>
|
42 |
+
<!-- Eingabetyp (text,select,mutliselect, text, texarea, etc...) -->
|
43 |
+
<frontend_type>select</frontend_type>
|
44 |
+
<!-- Model welches die Inhalte dere Auswahl liefert -->
|
45 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
46 |
+
<!-- Position im Backend -->
|
47 |
+
<sort_order>1</sort_order>
|
48 |
+
<!-- Kommentar -->
|
49 |
+
<comment><![CDATA[Modul <b>aktivieren</b> oder <b>deaktivieren</b>]]></comment>
|
50 |
+
<!-- Anzeige der jeweiligen Konfig.-Bereiches -->
|
51 |
+
<show_in_default>1</show_in_default>
|
52 |
+
<show_in_website>1</show_in_website>
|
53 |
+
<show_in_store>0</show_in_store>
|
54 |
+
</active>
|
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>
|
62 |
+
</title>
|
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>
|
91 |
+
<show_in_store>0</show_in_store>
|
92 |
+
</allowspecific>
|
93 |
+
|
94 |
+
<!-- Laenderauswahl -->
|
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>
|
112 |
+
</konto>
|
113 |
+
|
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>
|
121 |
+
</clearing>
|
122 |
+
|
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>
|
130 |
+
</inhaber>
|
131 |
+
|
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: <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>
|
208 |
+
</payment>
|
209 |
+
</sections>
|
210 |
+
</config>
|
app/design/adminhtml/default/default/template/earniecc/form.phtml
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; ?>
|
8 |
+
<?php if ($this->getMethod()->getInfoText('konto')): ?>
|
9 |
+
<?php echo ', Konto '; echo $this->getMethod()->getInfoText('konto') ?>
|
10 |
+
<?php endif; ?>
|
11 |
+
<?php if ($this->getMethod()->getInfoText('clearing')): ?>
|
12 |
+
<?php echo ', Clearing: '; echo $this->getMethod()->getInfoText('clearing') ?>
|
13 |
+
<?php endif; ?>
|
14 |
+
<?php if ($this->getMethod()->getInfoText('inhaber')): ?>
|
15 |
+
<?php echo ', lautend auf '; echo $this->getMethod()->getInfoText('inhaber') ?>
|
16 |
+
<?php endif; ?>
|
17 |
+
</div>
|
18 |
+
</li>
|
19 |
+
<li>
|
20 |
+
<div class="input-box">
|
21 |
+
<?php if ($this->getMethod()->getInfoText('iban')): ?>
|
22 |
+
<?php echo 'IBAN '; echo $this->getMethod()->getInfoText('iban') ?><br />
|
23 |
+
<?php endif; ?>
|
24 |
+
</div>
|
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; ?>
|
31 |
+
</div>
|
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/adminhtml/default/default/template/earniecc/info.phtml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/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/etc/modules/Smarte_All.xml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Earnie</name>
|
4 |
+
<version>1.2</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ür eine Kreditkarte - der Shopbetreiber erhä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ür eine Kreditkarte (PrePaid) eines anerkannten und grossen Kreditkartenunternehmens in der Schweiz und können parallel dazu den Zahlungsvorgang mit einer Bankzahlung fortsetzen.
|
13 |
+
|
14 |
+
Der Shopbetreiber wird pro erfolgreich übermittelten Antrag mit CHF 5.00 periodisch entschädigt.
|
15 |
+
|
16 |
+
Der Zahlungsvorgang wird nicht behindert: Dem Kunden ein erstes Email mit einer Vorankündigung sowie ein zweites Email mit einem vorausgefüllten Kartenantrag wird separat zur Bestellbestätigung geschickt. Der Shopbetreiber erhält Reports über die generierten Sales Leads.
|
17 |
+
|
18 |
+
Das Modul ist derzeit nur für die Schweiz funktionsfähig.
|
19 |
+
|
20 |
+
Für die nächsten Releases vorgesehen
|
21 |
+
-------------------------------------------
|
22 |
+
- Version für Deutschland
|
23 |
+
- Bonitätsvorprüfung und Übernahme Risiken der ersten Transaktion (je nach Betragshöhe) - Bankzahlung entfällt</description>
|
24 |
+
<notes>Für den nächsten Release vorgesehen
|
25 |
+
-------------------------------------------
|
26 |
+
- Bonitätsvorprüfung und Übernahme Risiken der ersten Transaktion (je nach Betragshöhe) - Bankzahlung entfällt
|
27 |
+
- Version fü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>13:29:59</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>
|