Version Notes
improvements for multi shop environments
Download this release
Release Info
| Developer | Komfortkasse |
| Extension | Ltc_Komfortkasse |
| Version | 1.6.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.6.1 to 1.6.2
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.6.
|
| 12 |
const MAXLEN_SSL = 117;
|
| 13 |
const LEN_MCRYPT = 16;
|
| 14 |
|
|
@@ -563,7 +563,7 @@ class Komfortkasse
|
|
| 563 |
*
|
| 564 |
* @return Ambigous <boolean, string>|string
|
| 565 |
*/
|
| 566 |
-
|
| 567 |
{
|
| 568 |
if (!$encryption) {
|
| 569 |
$encryption = Komfortkasse_Config::getConfig(Komfortkasse_Config::encryption);
|
| 8 |
*/
|
| 9 |
class Komfortkasse
|
| 10 |
{
|
| 11 |
+
const PLUGIN_VER = '1.6.2';
|
| 12 |
const MAXLEN_SSL = 117;
|
| 13 |
const LEN_MCRYPT = 16;
|
| 14 |
|
| 563 |
*
|
| 564 |
* @return Ambigous <boolean, string>|string
|
| 565 |
*/
|
| 566 |
+
public static function kkdecrypt($s, $encryption = null, $keystring = null)
|
| 567 |
{
|
| 568 |
if (!$encryption) {
|
| 569 |
$encryption = Komfortkasse_Config::getConfig(Komfortkasse_Config::encryption);
|
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.6.
|
| 12 |
*/
|
| 13 |
$path = Mage::getModuleDir('', 'Ltc_Komfortkasse');
|
| 14 |
global $komfortkasse_order_extension;
|
|
@@ -56,14 +56,14 @@ class Komfortkasse_Order
|
|
| 56 |
$shopIds = Komfortkasse_Config::getRequestParameter('s');
|
| 57 |
if ($shopIds)
|
| 58 |
$shopIds = Komfortkasse::kkdecrypt($shopIds);
|
| 59 |
-
$
|
| 60 |
|
| 61 |
foreach (Mage::app()->getWebsites() as $website) {
|
| 62 |
foreach ($website->getGroups() as $group) {
|
| 63 |
$stores = $group->getStores();
|
| 64 |
foreach ($stores as $store) {
|
| 65 |
$store_code = $store->getCode();
|
| 66 |
-
if (
|
| 67 |
|
| 68 |
$store_id = $store->getId();
|
| 69 |
$store_id_order = array ();
|
| 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.6.2-Magento1
|
| 12 |
*/
|
| 13 |
$path = Mage::getModuleDir('', 'Ltc_Komfortkasse');
|
| 14 |
global $komfortkasse_order_extension;
|
| 56 |
$shopIds = Komfortkasse_Config::getRequestParameter('s');
|
| 57 |
if ($shopIds)
|
| 58 |
$shopIds = Komfortkasse::kkdecrypt($shopIds);
|
| 59 |
+
$store_codes = $shopIds ? explode(',', $shopIds) : array ();
|
| 60 |
|
| 61 |
foreach (Mage::app()->getWebsites() as $website) {
|
| 62 |
foreach ($website->getGroups() as $group) {
|
| 63 |
$stores = $group->getStores();
|
| 64 |
foreach ($stores as $store) {
|
| 65 |
$store_code = $store->getCode();
|
| 66 |
+
if (empty($store_codes) || in_array($store_code, $store_codes)) {
|
| 67 |
|
| 68 |
$store_id = $store->getId();
|
| 69 |
$store_id_order = array ();
|
app/code/community/Ltc/Komfortkasse/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Ltc_Komfortkasse>
|
| 6 |
-
<version>1.6.
|
| 7 |
</Ltc_Komfortkasse>
|
| 8 |
</modules>
|
| 9 |
<global>
|
| 3 |
<config>
|
| 4 |
<modules>
|
| 5 |
<Ltc_Komfortkasse>
|
| 6 |
+
<version>1.6.2</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.6.
|
| 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>
|
|
@@ -16,8 +16,8 @@ Es ist eine Anmeldung auf www.komfortkasse.eu erforderlich (kostenloses Paket ve
|
|
| 16 |
<notes>improvements for multi shop environments</notes>
|
| 17 |
<authors><author><name>Komfortkasse</name><user>komfortkasse</user><email>integration@komfortkasse.eu</email></author></authors>
|
| 18 |
<date>2016-10-14</date>
|
| 19 |
-
<time>13:
|
| 20 |
-
<contents><target name="magecommunity"><dir name="Ltc"><dir name="Komfortkasse"><dir name="Helper"><file name="Data.php" hash="42f1d168bb70725128e15daf305802ba"/><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.6.2</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>
|
| 16 |
<notes>improvements for multi shop environments</notes>
|
| 17 |
<authors><author><name>Komfortkasse</name><user>komfortkasse</user><email>integration@komfortkasse.eu</email></author></authors>
|
| 18 |
<date>2016-10-14</date>
|
| 19 |
+
<time>13:44:11</time>
|
| 20 |
+
<contents><target name="magecommunity"><dir name="Ltc"><dir name="Komfortkasse"><dir name="Helper"><file name="Data.php" hash="42f1d168bb70725128e15daf305802ba"/><file name="Komfortkasse.php" hash="cb3e002089aaee0a0e21d9d35c7ea1c0"/><file name="Komfortkasse.php.bak" hash="2a8cd73b832172bbbed17f2c062f7e4a"/><file name="Komfortkasse_Config.php" hash="991250ec3cdbc9b7b79ab38888e3a022"/><file name="Komfortkasse_Order.php" hash="e250b2d10d2a0fcdbd8794e9166597c5"/></dir><dir name="Model"><file name="Encryptionoptions.php" hash="1fbe2ffc43cc3c1489688d20f4c8af11"/><file name="Observer.php" hash="5b616b6d3651df44f8297c732dc478bb"/></dir><dir name="controllers"><file name="MainController.php" hash="b983fe60b2bbfa3aa1d57850cc6c045b"/></dir><dir name="etc"><file name="config.xml" hash="a3faae91c9e658bc9968fa3234f79344"/><file name="system.xml" hash="4477e69044c79edab2b70691b0236bd8"/></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>
|
