Zikkio - Version 1.0.4

Version Notes

Import millions of products with a click and start trading with the power of drop-shipping

Download this release

Release Info

Developer Zikkio
Extension Zikkio
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

app/code/community/Zikkio/Zikkio/Helper/Data.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class Zikkio_Zikkio_Helper_Data extends Mage_Core_Helper_Abstract{
3
+
4
+ }
app/code/community/Zikkio/Zikkio/Model/Observer.php CHANGED
@@ -1,40 +1,24 @@
1
- <?php
2
- class Zikkio_Zikkio_Model_Observer {
3
-
4
- public function saveApiKey() {
5
- Mage::log('ZikkioAdminZikkio_CreateAdminController_Model_Options -> saveApiKey()', null, 'zikkio_LOG.log');
6
-
7
- $zikkio_api_key = Mage::getStoreConfig('catalog/zikkio/zikkio_api', Mage::app()->getStore());
8
- //Mage::log($zikkio_api_key, null, 'zikkio_LOG.log');
9
-
10
- $content_file = '';
11
-
12
- $root_magento = Mage::getBaseDir();
13
-
14
- //Mage::log($root_magento, null, 'zikkio_LOG.log');
15
-
16
- $file = $root_magento."/bridge2cart/bridge.php";
17
- $fh = fopen($file, 'r');
18
-
19
- while (($row_file = fgets($fh)) !== false) {
20
-
21
- //Mage::log($row_file, null, 'zikkio_LOG.log');
22
-
23
- if(preg_match('/M1_TOKEN/i', $row_file)) {
24
- $content_file = $content_file . "\n".'define("M1_TOKEN", "'.$zikkio_api_key.'");'."\n";
25
- //Mage::log($row_file, null, 'zikkio_LOG.log');
26
- }else{
27
- $content_file = $content_file . $row_file;
28
- }
29
-
30
- }
31
-
32
- //Mage::log($content_file, null, 'zikkio_LOG.log');
33
-
34
- file_put_contents($file, $content_file);
35
-
36
- fclose($fh);
37
-
38
- }
39
- }
40
- ?>
1
+ <?php
2
+ class Zikkio_Zikkio_Model_Observer {
3
+
4
+ public function saveApiKey() {
5
+
6
+ $zikkio_api_key = Mage::getStoreConfig('catalog/zikkio/zikkio_api', Mage::app()->getStore());
7
+ $content_file = '';
8
+ $root_magento = Mage::getBaseDir();
9
+
10
+ $file = $root_magento."/bridge2cart/bridge.php";
11
+ $fh = fopen($file, 'r');
12
+
13
+ while (($row_file = fgets($fh)) !== false) {
14
+
15
+ if(preg_match('/M1_TOKEN/i', $row_file)) {
16
+ $content_file = $content_file . "\n".'define("M1_TOKEN", "'.$zikkio_api_key.'");'."\n";
17
+ }else{
18
+ $content_file = $content_file . $row_file;
19
+ }
20
+ }
21
+ file_put_contents($file, $content_file);
22
+ fclose($fh);
23
+ }
24
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Zikkio/Zikkio/controllers/.DS_Store DELETED
Binary file
app/code/community/Zikkio/Zikkio/controllers/Adminhtml/CustomController.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
-
3
- class ZikkioAdminZikkio_CreateAdminController_Adminhtml_CustomController extends Mage_Adminhtml_Controller_Action
4
- {
5
- public function indexAction()
6
- {
7
- $this->loadLayout();
8
- $this->_setActiveMenu('simpleadmin/simple_one');
9
- $leftBlock=$this->getLayout()
10
- ->createBlock('core/text', 'left-admin-block')
11
- ->setText('<h1>Blocco di sinistra</h1>');
12
- $contentBlock=$this->getLayout()
13
- ->createBlock('core/text', 'content-admin-block')
14
- ->setText('<h1>Blocco centrale</h1>');
15
- $this->_addLeft($leftBlock);
16
- $this->_addContent($contentBlock);
17
- $this->renderLayout();
18
- }
19
-
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Zikkio/Zikkio/etc/config.xml CHANGED
@@ -1,32 +1,32 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Zikkio_Zikkio>
5
- <version>1.0.3</version>
6
- <depends>
7
- <!-- no dependencies -->
8
- </depends>
9
- </Zikkio_Zikkio>
10
- </modules>
11
- <global>
12
- <events>
13
- <admin_system_config_section_save_after>
14
- <observers>
15
- <Zikkio_Zikkio_save_api_zikkio>
16
- <type>singleton</type>
17
- <class>Zikkio_Zikkio_Model_Observer</class>
18
- <method>saveApiKey</method>
19
- </Zikkio_Zikkio_save_api_zikkio>
20
- </observers>
21
- </admin_system_config_section_save_after>
22
- </events>
23
- <models>
24
- <Zikkio>
25
- <class>Zikkio_Zikkio_Model</class>
26
- </Zikkio>
27
- </models>
28
- <resources />
29
- <extraconfig />
30
- <blocks />
31
- </global>
32
  </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Zikkio_Zikkio>
5
+ <version>1.0.4</version>
6
+ </Zikkio_Zikkio>
7
+ </modules>
8
+ <global>
9
+ <events>
10
+ <admin_system_config_section_save_after>
11
+ <observers>
12
+ <zikkio_zikkio_save_api_zikkio>
13
+ <type>singleton</type>
14
+ <class>Zikkio_Zikkio_Model_Observer</class>
15
+ <method>saveApiKey</method>
16
+ </zikkio_zikkio_save_api_zikkio>
17
+ </observers>
18
+ </admin_system_config_section_save_after>
19
+ </events>
20
+ <models>
21
+ <zikkio>
22
+ <class>Zikkio_Zikkio_Model</class>
23
+ </zikkio>
24
+ </models>
25
+
26
+ <helpers>
27
+ <zikkio>
28
+ <class>Zikkio_Zikkio_Helper</class>
29
+ </zikkio>
30
+ </helpers>
31
+ </global>
32
  </config>
app/code/community/Zikkio/Zikkio/etc/system.xml CHANGED
@@ -1,27 +1,27 @@
1
- <config>
2
- <sections>
3
- <catalog>
4
- <groups>
5
- <zikkio translate="label">
6
- <label>Zikkio</label>
7
- <frontend_type>text</frontend_type>
8
- <sort_order>50</sort_order>
9
- <show_in_default>1</show_in_default>
10
- <show_in_website>1</show_in_website>
11
- <show_in_store>1</show_in_store>
12
- <fields>
13
- <zikkio_api translate="label">
14
- <label>Please enter here your Zikkio API KEY</label>
15
- <frontend_type>text</frontend_type>
16
- <sort_order>50</sort_order>
17
- <show_in_default>1</show_in_default>
18
- <show_in_website>1</show_in_website>
19
- <show_in_store>1</show_in_store>
20
- <comment>Insert here the API KEY</comment>
21
- </zikkio_api>
22
- </fields>
23
- </zikkio>
24
- </groups>
25
- </catalog>
26
- </sections>
27
  </config>
1
+ <config>
2
+ <sections>
3
+ <catalog>
4
+ <groups>
5
+ <zikkio translate="label">
6
+ <label>Zikkio</label>
7
+ <frontend_type>text</frontend_type>
8
+ <sort_order>50</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>1</show_in_store>
12
+ <fields>
13
+ <zikkio_api translate="label">
14
+ <label>Please enter here your Zikkio API KEY</label>
15
+ <frontend_type>text</frontend_type>
16
+ <sort_order>50</sort_order>
17
+ <show_in_default>1</show_in_default>
18
+ <show_in_website>1</show_in_website>
19
+ <show_in_store>1</show_in_store>
20
+ <comment>Insert here the API KEY</comment>
21
+ </zikkio_api>
22
+ </fields>
23
+ </zikkio>
24
+ </groups>
25
+ </catalog>
26
+ </sections>
27
  </config>
app/etc/modules/Zikkio_Zikkio.xml CHANGED
@@ -1,9 +1,9 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Zikkio_Zikkio>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- </Zikkio_Zikkio>
8
- </modules>
9
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Zikkio_Zikkio>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Zikkio_Zikkio>
8
+ </modules>
9
+ </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zikkio</name>
4
- <version>1.0.3</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>First stable release.</notes>
12
- <authors><author><name>Zikkio</name><user>Zikkio</user><email>account@zikkio.com</email></author></authors>
13
- <date>2016-04-27</date>
14
- <time>08:13:45</time>
15
- <contents><target name="magecommunity"><dir name="Zikkio"><dir name="Zikkio"><dir name="Model"><file name="Observer.php" hash="20bba3d0281a9530f6e52943280a4c40"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomController.php" hash="2f7f538aca59cdda4d82441881aa2d40"/></dir><file name=".DS_Store" hash="0047fe0bc161a58c6088a4e959de43a4"/></dir><dir name="etc"><file name="config.xml" hash="b264918fd5b938f262f0ca61e1b96895"/><file name="system.xml" hash="0f3fea48c17814d138e4da30576464b2"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zikkio_Zikkio.xml" hash="c1139e2f96cfa49d2c4c910adcb08051"/></dir></target><target name="mage"><dir name="bridge2cart"><file name="bridge.php" hash="69aa3dc57467c42bc1660ed1d1202d98"/><file name="index.html" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
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.4</version>
5
  <stability>stable</stability>
6
+ <license uri="https://opensource.org/licenses/osl-3.0.php">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>Import millions of products with a click and start trading with the power of drop-shipping</notes>
12
+ <authors><author><name>Zikkio</name><user>zikkio</user><email>account@zikkio.com</email></author></authors>
13
+ <date>2016-05-25</date>
14
+ <time>14:24:09</time>
15
+ <contents><target name="magecommunity"><dir name="Zikkio"><dir name="Zikkio"><dir name="Helper"><file name="Data.php" hash="bf754598a4fe65877c12cafd769ad149"/></dir><dir name="Model"><file name="Observer.php" hash="8f194df93259aff846cd1da968207be8"/></dir><dir name="etc"><file name="config.xml" hash="d2952e6cc5ae41d6d0ac5051e2ef66d5"/><file name="system.xml" hash="256c0d51bb6fb236fbf9b314d0be6389"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Zikkio_Zikkio.xml" hash="155aee552d731fb3cb73678fcb8704c0"/></dir></target><target name="mage"><dir name="bridge2cart"><file name="bridge.php" hash="69aa3dc57467c42bc1660ed1d1202d98"/><file name="index.html" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>