Version Notes
Improved support for virtual goods
Download this release
Release Info
| Developer | Komfortkasse |
| Extension | Ltc_Komfortkasse |
| Version | 1.2.3.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.3.2 to 1.2.3.3
app/code/community/Ltc/Komfortkasse/Helper/Komfortkasse.php
CHANGED
|
@@ -8,7 +8,7 @@ require_once 'Komfortkasse_Order.php';
|
|
| 8 |
*/
|
| 9 |
class Komfortkasse
|
| 10 |
{
|
| 11 |
-
const PLUGIN_VER = '1.2.3.
|
| 12 |
const MAXLEN_SSL = 117;
|
| 13 |
const LEN_MCRYPT = 16;
|
| 14 |
|
| 8 |
*/
|
| 9 |
class Komfortkasse
|
| 10 |
{
|
| 11 |
+
const PLUGIN_VER = '1.2.3.3';
|
| 12 |
const MAXLEN_SSL = 117;
|
| 13 |
const LEN_MCRYPT = 16;
|
| 14 |
|
app/code/community/Ltc/Komfortkasse/Helper/Komfortkasse_Order.php
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
* status: data type according to the shop system
|
| 9 |
* delivery_ and billing_: _firstname, _lastname, _company, _street, _postcode, _city, _countrycode
|
| 10 |
* products: an Array of item numbers
|
| 11 |
-
* @version 1.2.
|
| 12 |
*/
|
| 13 |
$path = Mage::getModuleDir('', 'Ltc_Komfortkasse');
|
| 14 |
if (file_exists("{$path}/Helper/Komfortkasse_Order_Extension.php") === true) {
|
|
@@ -60,8 +60,8 @@ class Komfortkasse_Order
|
|
| 60 |
return $ret;
|
| 61 |
|
| 62 |
}
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
|
| 67 |
/**
|
|
@@ -92,8 +92,8 @@ class Komfortkasse_Order
|
|
| 92 |
return $ret;
|
| 93 |
|
| 94 |
}
|
| 95 |
-
|
| 96 |
-
|
| 97 |
|
| 98 |
|
| 99 |
/**
|
|
@@ -122,7 +122,6 @@ class Komfortkasse_Order
|
|
| 122 |
$ret ['amount'] = $order->getGrandTotal();
|
| 123 |
$ret ['currency_code'] = $order->getOrderCurrencyCode();
|
| 124 |
$ret ['exchange_rate'] = $order->getBaseToOrderRate();
|
| 125 |
-
$ret ['language_code'] = substr($conf_general ['locale'] ['code'], 0, 2) . '-' . $order->getBillingAddress()->getCountryId();
|
| 126 |
|
| 127 |
// Rechnungsnummer
|
| 128 |
$invoiceColl = $order->getInvoiceCollection();
|
|
@@ -132,21 +131,30 @@ class Komfortkasse_Order
|
|
| 132 |
}
|
| 133 |
}
|
| 134 |
|
| 135 |
-
$
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
| 142 |
|
| 143 |
-
$
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
foreach ($order->getAllItems() as $itemId => $item) {
|
| 152 |
$sku = $item->getSku();
|
|
@@ -164,8 +172,8 @@ class Komfortkasse_Order
|
|
| 164 |
return $ret;
|
| 165 |
|
| 166 |
}
|
| 167 |
-
|
| 168 |
-
|
| 169 |
|
| 170 |
|
| 171 |
/**
|
|
@@ -195,8 +203,8 @@ class Komfortkasse_Order
|
|
| 195 |
return $ret;
|
| 196 |
|
| 197 |
}
|
| 198 |
-
|
| 199 |
-
|
| 200 |
|
| 201 |
|
| 202 |
/**
|
|
@@ -270,8 +278,8 @@ class Komfortkasse_Order
|
|
| 270 |
));
|
| 271 |
|
| 272 |
}
|
| 273 |
-
|
| 274 |
-
|
| 275 |
|
| 276 |
|
| 277 |
/**
|
|
@@ -299,8 +307,8 @@ class Komfortkasse_Order
|
|
| 299 |
$creditMemo->save();
|
| 300 |
|
| 301 |
}
|
| 302 |
-
|
| 303 |
-
|
| 304 |
|
| 305 |
|
| 306 |
/**
|
|
@@ -315,8 +323,4 @@ class Komfortkasse_Order
|
|
| 315 |
$object->save();
|
| 316 |
|
| 317 |
}
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
}//end class
|
| 8 |
* status: data type according to the shop system
|
| 9 |
* delivery_ and billing_: _firstname, _lastname, _company, _street, _postcode, _city, _countrycode
|
| 10 |
* products: an Array of item numbers
|
| 11 |
+
* @version 1.2.3.3-Magento
|
| 12 |
*/
|
| 13 |
$path = Mage::getModuleDir('', 'Ltc_Komfortkasse');
|
| 14 |
if (file_exists("{$path}/Helper/Komfortkasse_Order_Extension.php") === true) {
|
| 60 |
return $ret;
|
| 61 |
|
| 62 |
}
|
| 63 |
+
|
| 64 |
+
// end getOpenIDs()
|
| 65 |
|
| 66 |
|
| 67 |
/**
|
| 92 |
return $ret;
|
| 93 |
|
| 94 |
}
|
| 95 |
+
|
| 96 |
+
// end getRefundIDs()
|
| 97 |
|
| 98 |
|
| 99 |
/**
|
| 122 |
$ret ['amount'] = $order->getGrandTotal();
|
| 123 |
$ret ['currency_code'] = $order->getOrderCurrencyCode();
|
| 124 |
$ret ['exchange_rate'] = $order->getBaseToOrderRate();
|
|
|
|
| 125 |
|
| 126 |
// Rechnungsnummer
|
| 127 |
$invoiceColl = $order->getInvoiceCollection();
|
| 131 |
}
|
| 132 |
}
|
| 133 |
|
| 134 |
+
$shippingAddress = $order->getShippingAddress();
|
| 135 |
+
if ($shippingAddress) {
|
| 136 |
+
$ret ['delivery_firstname'] = utf8_encode($shippingAddress->getFirstname());
|
| 137 |
+
$ret ['delivery_lastname'] = utf8_encode($shippingAddress->getLastname());
|
| 138 |
+
$ret ['delivery_company'] = utf8_encode($shippingAddress->getCompany());
|
| 139 |
+
$ret ['delivery_street'] = utf8_encode($shippingAddress->getStreetFull());
|
| 140 |
+
$ret ['delivery_postcode'] = utf8_encode($shippingAddress->getPostcode());
|
| 141 |
+
$ret ['delivery_city'] = utf8_encode($shippingAddress->getCity());
|
| 142 |
+
$ret ['delivery_countrycode'] = utf8_encode($shippingAddress->getCountryId());
|
| 143 |
+
}
|
| 144 |
|
| 145 |
+
$billingAddress = $order->getBillingAddress();
|
| 146 |
+
if ($billingAddress) {
|
| 147 |
+
$ret ['language_code'] = substr($conf_general ['locale'] ['code'], 0, 2) . '-' . $billingAddress->getCountryId();
|
| 148 |
+
$ret ['billing_firstname'] = utf8_encode($billingAddress->getFirstname());
|
| 149 |
+
$ret ['billing_lastname'] = utf8_encode($billingAddress->getLastname());
|
| 150 |
+
$ret ['billing_company'] = utf8_encode($billingAddress->getCompany());
|
| 151 |
+
$ret ['billing_street'] = utf8_encode($billingAddress->getStreetFull());
|
| 152 |
+
$ret ['billing_postcode'] = utf8_encode($billingAddress->getPostcode());
|
| 153 |
+
$ret ['billing_city'] = utf8_encode($billingAddress->getCity());
|
| 154 |
+
$ret ['billing_countrycode'] = utf8_encode($billingAddress->getCountryId());
|
| 155 |
+
} else {
|
| 156 |
+
$ret ['language_code'] = substr($conf_general ['locale'] ['code'], 0, 2);
|
| 157 |
+
}
|
| 158 |
|
| 159 |
foreach ($order->getAllItems() as $itemId => $item) {
|
| 160 |
$sku = $item->getSku();
|
| 172 |
return $ret;
|
| 173 |
|
| 174 |
}
|
| 175 |
+
|
| 176 |
+
// end getOrder()
|
| 177 |
|
| 178 |
|
| 179 |
/**
|
| 203 |
return $ret;
|
| 204 |
|
| 205 |
}
|
| 206 |
+
|
| 207 |
+
// end getRefund()
|
| 208 |
|
| 209 |
|
| 210 |
/**
|
| 278 |
));
|
| 279 |
|
| 280 |
}
|
| 281 |
+
|
| 282 |
+
// end updateOrder()
|
| 283 |
|
| 284 |
|
| 285 |
/**
|
| 307 |
$creditMemo->save();
|
| 308 |
|
| 309 |
}
|
| 310 |
+
|
| 311 |
+
// end updateRefund()
|
| 312 |
|
| 313 |
|
| 314 |
/**
|
| 323 |
$object->save();
|
| 324 |
|
| 325 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
}//end class
|
app/code/community/Ltc/Komfortkasse/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Ltc_Komfortkasse>
|
| 6 |
-
<version>1.2.3.
|
| 7 |
</Ltc_Komfortkasse>
|
| 8 |
</modules>
|
| 9 |
<global>
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Ltc_Komfortkasse>
|
| 6 |
+
<version>1.2.3.3</version>
|
| 7 |
</Ltc_Komfortkasse>
|
| 8 |
</modules>
|
| 9 |
<global>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Ltc_Komfortkasse</name>
|
| 4 |
-
<version>1.2.3.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -13,11 +13,11 @@ Zusätzlich können automatische Zahlungserinnerungen versendet werden u
|
|
| 13 |

|
| 14 |
Es ist eine Anmeldung auf www.komfortkasse.eu erforderlich (kostenloses Paket verfügbar).
|
| 15 |
</description>
|
| 16 |
-
<notes>Improved support for
|
| 17 |
<authors><author><name>Komfortkasse</name><user>komfortkasse</user><email>integration@komfortkasse.eu</email></author></authors>
|
| 18 |
-
<date>2015-04-
|
| 19 |
-
<time>
|
| 20 |
-
<contents><target name="magecommunity"><dir name="Ltc"><dir name="Komfortkasse"><dir name="Helper"><file name="Data.php" hash="d9245da9131fd90ed1f2cab0d9a2b888"/><file name="Komfortkasse.php" hash="
|
| 21 |
<compatible/>
|
| 22 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
| 23 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Ltc_Komfortkasse</name>
|
| 4 |
+
<version>1.2.3.3</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://creativecommons.org/licenses/by-nd/4.0/">CC BY-ND 4.0</license>
|
| 7 |
<channel>community</channel>
|
| 13 |

|
| 14 |
Es ist eine Anmeldung auf www.komfortkasse.eu erforderlich (kostenloses Paket verfügbar).
|
| 15 |
</description>
|
| 16 |
+
<notes>Improved support for virtual goods</notes>
|
| 17 |
<authors><author><name>Komfortkasse</name><user>komfortkasse</user><email>integration@komfortkasse.eu</email></author></authors>
|
| 18 |
+
<date>2015-04-21</date>
|
| 19 |
+
<time>19:26:41</time>
|
| 20 |
+
<contents><target name="magecommunity"><dir name="Ltc"><dir name="Komfortkasse"><dir name="Helper"><file name="Data.php" hash="d9245da9131fd90ed1f2cab0d9a2b888"/><file name="Komfortkasse.php" hash="c65c18c51964788c12b74ba1ca1717e9"/><file name="Komfortkasse_Config.php" hash="bd7c6f9752f2ddea4675c29437466cd0"/><file name="Komfortkasse_Order.php" hash="e396480dd6903e4444cc96ade005e8c2"/></dir><dir name="Model"><file name="Observer.php" hash="5b616b6d3651df44f8297c732dc478bb"/></dir><dir name="controllers"><file name="MainController.php" hash="36b64665160ae38daeb9416e1d40ca05"/></dir><dir name="etc"><file name="config.xml" hash="61f94c2f60f9f71111576b6343423e79"/><file name="system.xml" hash="60684635fed231ff9acdf76ece84786d"/></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="KomfortkasseEncryptionOptions.php" hash="fea880dd3e60c13ede05be53511a6d93"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ltc_Komfortkasse.xml" hash="433066ef75047d9468dcea87888283d2"/></dir></target></contents>
|
| 21 |
<compatible/>
|
| 22 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
| 23 |
</package>
|
