Version Notes
Folder and files permission fixed.
Download this release
Release Info
Developer | Zikkio |
Extension | Zikkio |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- app/code/community/Zikkio/Zikkio/Model/Observer.php +11 -5
- bridge2cart/.DS_Store +0 -0
- bridge2cart/bridge.php +1 -1
- package.xml +5 -5
app/code/community/Zikkio/Zikkio/Model/Observer.php
CHANGED
@@ -32,9 +32,9 @@ class Zikkio_Zikkio_Model_Observer {
|
|
32 |
*/
|
33 |
public function saveApiKey() {
|
34 |
|
35 |
-
$zikkio_api_key = Mage::getStoreConfig('
|
36 |
-
|
37 |
-
|
38 |
|
39 |
$root_magento = Mage::getBaseDir();
|
40 |
$zikkio_bridge_directory = $root_magento . "/bridge2cart";
|
@@ -42,13 +42,19 @@ class Zikkio_Zikkio_Model_Observer {
|
|
42 |
$file = $root_magento . "/bridge2cart/config.php";
|
43 |
|
44 |
$content_file = '<?php define("M1_TOKEN", "' . $zikkio_api_key['zikkio_api'] . '");';
|
|
|
|
|
|
|
45 |
|
46 |
file_put_contents($file, $content_file);
|
|
|
|
|
|
|
|
|
47 |
|
48 |
if (chmod($zikkio_bridge_directory, 0777)) {
|
49 |
-
// more code
|
50 |
chmod($zikkio_bridge_directory, 0755);
|
51 |
}
|
52 |
}
|
53 |
|
54 |
-
}
|
32 |
*/
|
33 |
public function saveApiKey() {
|
34 |
|
35 |
+
$zikkio_api_key = Mage::getStoreConfig('zikkio_settings/zikkio_api', Mage::app()->getStore());
|
36 |
+
|
37 |
+
Mage::log('Zikkio_Zikkio_Model_Observer@saveApiKey()-> '.$zikkio_api_key['zikkio_api'], null, 'HPO.log');
|
38 |
|
39 |
$root_magento = Mage::getBaseDir();
|
40 |
$zikkio_bridge_directory = $root_magento . "/bridge2cart";
|
42 |
$file = $root_magento . "/bridge2cart/config.php";
|
43 |
|
44 |
$content_file = '<?php define("M1_TOKEN", "' . $zikkio_api_key['zikkio_api'] . '");';
|
45 |
+
|
46 |
+
chmod($file, 0777);
|
47 |
+
chmod($zikkio_bridge_directory, 0777);
|
48 |
|
49 |
file_put_contents($file, $content_file);
|
50 |
+
|
51 |
+
if (chmod($file, 0777)) {
|
52 |
+
chmod($file, 0644);
|
53 |
+
}
|
54 |
|
55 |
if (chmod($zikkio_bridge_directory, 0777)) {
|
|
|
56 |
chmod($zikkio_bridge_directory, 0755);
|
57 |
}
|
58 |
}
|
59 |
|
60 |
+
}
|
bridge2cart/.DS_Store
DELETED
Binary file
|
bridge2cart/bridge.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*-----------------------------------------------------------------------------+
|
3 |
| MagneticOne |
|
4 |
| Copyright (c) 2012 MagneticOne.com <contact@magneticone.com> |
|
5 |
-
| All rights reserved
|
6 |
+------------------------------------------------------------------------------+
|
7 |
| PLEASE READ THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "license.txt"|
|
8 |
| FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE |
|
2 |
/*-----------------------------------------------------------------------------+
|
3 |
| MagneticOne |
|
4 |
| Copyright (c) 2012 MagneticOne.com <contact@magneticone.com> |
|
5 |
+
| All rights reserved |
|
6 |
+------------------------------------------------------------------------------+
|
7 |
| PLEASE READ THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "license.txt"|
|
8 |
| FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE |
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Zikkio</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Import millions of products with a click and start trading with the power of drop-shipping.</summary>
|
10 |
<description>Zikkio module is the connector between your Magento and Zikkio service. With Zikkio module active you can import/export orders and products to Zikkio.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Zikkio</name><user>Zikkio</user><email>account@zikkio.com</email></author></authors>
|
13 |
-
<date>2016-10-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Zikkio"><dir name="Zikkio"><dir name="Helper"><file name="Data.php" hash="c0ed36a46c1298365d1ad17e548b5aaf"/></dir><dir name="Model"><file name="Data.php" hash="d98c6fb54881cca19d8a6d46beb39781"/><file name="Observer.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Zikkio</name>
|
4 |
+
<version>1.0.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Import millions of products with a click and start trading with the power of drop-shipping.</summary>
|
10 |
<description>Zikkio module is the connector between your Magento and Zikkio service. With Zikkio module active you can import/export orders and products to Zikkio.</description>
|
11 |
+
<notes>Folder and files permission fixed.</notes>
|
12 |
<authors><author><name>Zikkio</name><user>Zikkio</user><email>account@zikkio.com</email></author></authors>
|
13 |
+
<date>2016-10-27</date>
|
14 |
+
<time>16:34:16</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Zikkio"><dir name="Zikkio"><dir name="Helper"><file name="Data.php" hash="c0ed36a46c1298365d1ad17e548b5aaf"/></dir><dir name="Model"><file name="Data.php" hash="d98c6fb54881cca19d8a6d46beb39781"/><file name="Observer.php" hash="b65ccb303f668899b3985088c5c3fdbc"/><file name="Options.php" hash="5da5644b3f2707fee327d333fc6c6326"/><dir name="Resource"><file name="Setup.php" hash="2708a24475b41a0721cb396c5bff43bc"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="523eed63369b08b95abd1e7966623b65"/></dir><dir name="etc"><file name="config.xml" hash="9d7e2a73b930bad0e78d0f3a9707bcf4"/><file name="system.xml" hash="86bc7ee1d4ba4b7053bdaf941274791f"/></dir><dir name="sql"><dir name="zikkio_setup"><file name="mysql4-install-1-0-5.php" hash="e383c4192893bb9e7b1031f93eefbb92"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="a217b406a4e532687daed39572f422b6"/></dir><file name=".DS_Store" hash="59188e91c463391a4023d18e92666d74"/></dir><file name=".DS_Store" hash="441893c547df16b526351b4785698924"/></dir></target><target name="mageetc"><dir name="modules"><file name="Zikkio_Zikkio.xml" hash="19ddad4db1d8e52f39f58148d5c61372"/></dir></target><target name="mage"><dir name="bridge2cart"><file name="bridge.php" hash="79a7d5c86cdab1e59f9bdc2e0e7c2c8a"/><file name="config.php" hash="e7d47925538152d91fb207daa9d4f57f"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|