Zikkio - Version 1.0.6

Version Notes

New attributes added

Download this release

Release Info

Developer Zikkio
Extension Zikkio
Version 1.0.6
Comparing to
See all releases


Code changes from version 1.0.5 to 1.0.6

app/code/community/Zikkio/.DS_Store ADDED
Binary file
app/code/community/Zikkio/Zikkio/.DS_Store ADDED
Binary file
app/code/community/Zikkio/Zikkio/Helper/Data.php CHANGED
@@ -1,4 +1,9 @@
1
  <?php
2
- class Zikkio_Zikkio_Helper_Data extends Mage_Core_Helper_Abstract{
3
 
4
- }
 
 
 
 
 
 
1
  <?php
 
2
 
3
+ class Zikkio_Zikkio_Helper_Data extends Mage_Core_Helper_Abstract {
4
+
5
+ protected function _isAllowed() {
6
+ return true;
7
+ }
8
+
9
+ }
app/code/community/Zikkio/Zikkio/Model/.DS_Store ADDED
Binary file
app/code/community/Zikkio/Zikkio/Model/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class Zikkio_Zikkio_Helper_Data extends Mage_Core_Helper_Abstract {
3
+ protected function _isAllowed() {
4
+ return true;
5
+ }
6
+ }
app/code/community/Zikkio/Zikkio/Model/Observer.php CHANGED
@@ -1,23 +1,54 @@
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
 
8
  $root_magento = Mage::getBaseDir();
9
- $zikkio_bridge_directory = $root_magento."/bridge2cart";
10
 
11
- $file = $root_magento."/bridge2cart/config.php";
12
 
13
- $content_file = '<?php define("M1_TOKEN", "'.$zikkio_api_key.'");';
14
 
15
  file_put_contents($file, $content_file);
16
-
17
- if( chmod($zikkio_bridge_directory, 0777) ) {
18
- // more code
19
- chmod($zikkio_bridge_directory, 0755);
20
- }
21
  }
22
-
23
  }
1
  <?php
 
2
 
3
+ class Zikkio_Zikkio_Model_Observer {
4
+
5
+ protected function _isAllowed() {
6
+ return true;
7
+ }
8
+
9
+ /*
10
+ public function cloneMSRP(Varien_Event_Observer $observer) {
11
+ //Mage::log('Zikkio_Zikkio_Model_Observer@cloneMSRP()', null, 'HPO.log');
12
+
13
+ $product = $observer->getEvent()->getProduct();
14
+
15
+ //Mage::log($product->getId(), null, 'HPO.log');
16
+ $productId = $product->getId();
17
+ //Mage::log($product->getStoreId(), null, 'HPO.log');
18
+ $storeId = $product->getStoreId();
19
+
20
+ $msrp_default = Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'msrp', $storeId);
21
+ $zikkio_msrp = Mage::getResourceModel('catalog/product')->getAttributeRawValue($productId, 'zikkio_msrp', $storeId);
22
+
23
+ //Mage::log($msrp_default, null, 'HPO.log');
24
+ //Mage::log($zikkio_msrp, null, 'HPO.log');
25
+
26
+ if(!$zikkio_msrp) {
27
+ $product->setData('zikkio_msrp', $msrp_default);
28
+ $product->save();
29
+ }
30
+
31
+ }
32
+ */
33
  public function saveApiKey() {
34
 
35
+ $zikkio_api_key = Mage::getStoreConfig('zikkio/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";
41
 
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
  }
app/code/community/Zikkio/Zikkio/Model/Options.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Zikkio_Zikkio_Model_Options {
4
+ protected function _isAllowed() {
5
+ return true;
6
+ }
7
+ }
app/code/community/Zikkio/Zikkio/Model/Resource/.DS_Store ADDED
Binary file
app/code/community/Zikkio/Zikkio/Model/Resource/Setup.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ class Zikkio_Zikkio_Model_Resource_Setup extends Mage_Core_Model_Resource_Setup {
4
+ /* NULL */
5
+ }
app/code/community/Zikkio/Zikkio/etc/config.xml CHANGED
@@ -1,12 +1,66 @@
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>
@@ -17,16 +71,18 @@
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>
1
  <?xml version="1.0"?>
2
+
3
  <config>
4
+
5
  <modules>
6
  <Zikkio_Zikkio>
7
+ <version>1.0.5</version>
8
  </Zikkio_Zikkio>
9
  </modules>
10
+
11
+ <adminhtml>
12
+ <acl>
13
+ <resources>
14
+ <all>
15
+ <title>Allow Everything</title>
16
+ </all>
17
+ <admin>
18
+ <children>
19
+ <system>
20
+ <children>
21
+ <config>
22
+ <children>
23
+ <zikkio_settings>
24
+ <title>Zikkio Settings</title>
25
+ </zikkio_settings>
26
+ </children>
27
+ </config>
28
+ </children>
29
+ </system>
30
+ </children>
31
+ </admin>
32
+ </resources>
33
+ </acl>
34
+ </adminhtml>
35
+
36
+ <global>
37
+
38
+ <resources>
39
+ <zikkio_setup>
40
+ <setup>
41
+ <module>Zikkio_Zikkio</module>
42
+ <class>Zikkio_Zikkio_Model_Resource_Setup</class>
43
+ </setup>
44
+
45
+ <connection>
46
+ <use>core_setup</use>
47
+ </connection>
48
+ </zikkio_setup>
49
+ </resources>
50
+
51
  <events>
52
+ <!--
53
+ <catalog_product_edit_action>
54
+ <observers>
55
+ <zikkio_zikkio_clonemsrp>
56
+ <type>singleton</type>
57
+ <class>Zikkio_Zikkio_Model_Observer</class>
58
+ <method>cloneMSRP</method>
59
+ </zikkio_zikkio_clonemsrp>
60
+ </observers>
61
+ </catalog_product_edit_action>
62
+ -->
63
+
64
  <admin_system_config_section_save_after>
65
  <observers>
66
  <zikkio_zikkio_save_api_zikkio>
71
  </observers>
72
  </admin_system_config_section_save_after>
73
  </events>
74
+
75
  <models>
76
  <zikkio>
77
  <class>Zikkio_Zikkio_Model</class>
78
  </zikkio>
79
  </models>
80
 
81
+ <helpers>
82
  <zikkio>
83
  <class>Zikkio_Zikkio_Helper</class>
84
  </zikkio>
85
  </helpers>
86
+
87
  </global>
88
  </config>
app/code/community/Zikkio/Zikkio/etc/system.xml CHANGED
@@ -1,27 +1,63 @@
 
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
+ <?xml version="1.0"?>
2
  <config>
3
+ <tabs>
4
+ <zikkio_settings translate="label" module="zikkio">
5
+ <label>Zikkio</label>
6
+ <sort_order>200</sort_order>
7
+ </zikkio_settings>
8
+ </tabs>
9
+
10
  <sections>
11
+ <zikkio_settings translate="label" module="zikkio">
12
+ <label>Zikkio Settings</label>
13
+ <tab>zikkio_settings</tab>
14
+ <frontend_type>text</frontend_type>
15
+ <sort_order>2000</sort_order>
16
+ <show_in_default>1</show_in_default>
17
+ <show_in_website>1</show_in_website>
18
+ <show_in_store>1</show_in_store>
19
  <groups>
20
+ <zikkio_api translate="label">
21
+ <label>Zikkio API</label>
22
  <frontend_type>text</frontend_type>
23
+ <sort_order>2000</sort_order>
24
  <show_in_default>1</show_in_default>
25
  <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
  <fields>
28
  <zikkio_api translate="label">
29
  <label>Please enter here your Zikkio API KEY</label>
30
  <frontend_type>text</frontend_type>
31
+ <sort_order>1</sort_order>
32
  <show_in_default>1</show_in_default>
33
  <show_in_website>1</show_in_website>
34
  <show_in_store>1</show_in_store>
35
  <comment>Insert here the API KEY</comment>
36
  </zikkio_api>
37
  </fields>
38
+ </zikkio_api>
39
+ <!--
40
+ <section_two translate="label">
41
+ <label>Section One</label>
42
+ <frontend_type>text</frontend_type>
43
+ <sort_order>2</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ <fields>
48
+ <custom_field_one>
49
+ <label>Custom Text Field</label>
50
+ <frontend_type>text</frontend_type>
51
+ <sort_order>1</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>1</show_in_store>
55
+ <comment>Example of text field.</comment>
56
+ </custom_field_one>
57
+ </fields>
58
+ </section_two>
59
+ -->
60
+ </groups>
61
+ </zikkio_settings>
62
  </sections>
63
+ </config>
app/code/community/Zikkio/Zikkio/sql/.DS_Store ADDED
Binary file
app/code/community/Zikkio/Zikkio/sql/zikkio_setup/.DS_Store ADDED
Binary file
app/code/community/Zikkio/Zikkio/sql/zikkio_setup/mysql4-install-1-0-5.php ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * DELETE FROM `core_resource` WHERE ((`code` = 'zikkio_setup' AND `code` = 'zikkio_setup' COLLATE utf8mb4_bin));
5
+ */
6
+
7
+ //die('mysql4-install-1-0-5.php');
8
+
9
+ $installer = $this;
10
+ $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
11
+
12
+ $installer->startSetup();
13
+ $setup->addAttributeGroup('catalog_product', 'Default', 'Zikkio', 1000);
14
+
15
+ $setup->addAttribute('catalog_product', 'zikkio_asin', array(
16
+ 'group' => 'Zikkio',
17
+ 'type' => 'text',
18
+ 'backend' => '',
19
+ 'label' => 'Zikkio ASIN',
20
+ 'class' => '',
21
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, //SCOPE_GLOBAL
22
+ 'visible' => true,
23
+ 'required' => false,
24
+ 'user_defined' => true,
25
+ 'searchable' => false,
26
+ 'filterable' => false,
27
+ 'comparable' => false,
28
+ 'visible_on_front' => false,
29
+ 'unique' => false,
30
+ 'apply_to' => 'simple,configurable,bundle,grouped',
31
+ 'is_configurable' => false,
32
+ 'visible_on_front' => 0,
33
+ 'visible_in_advanced_search' => 0,
34
+ 'is_html_allowed_on_front' => 0,
35
+ ));
36
+
37
+ $setup->addAttribute('catalog_product', 'zikkio_ean', array(
38
+ 'group' => 'Zikkio',
39
+ 'type' => 'text',
40
+ 'backend' => '',
41
+ 'label' => 'Zikkio EAN',
42
+ 'class' => '',
43
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, //SCOPE_GLOBAL
44
+ 'visible' => true,
45
+ 'required' => false,
46
+ 'user_defined' => true,
47
+ 'searchable' => false,
48
+ 'filterable' => false,
49
+ 'comparable' => false,
50
+ 'visible_on_front' => false,
51
+ 'unique' => false,
52
+ 'apply_to' => 'simple,configurable,bundle,grouped',
53
+ 'is_configurable' => false,
54
+ 'visible_on_front' => 0,
55
+ 'visible_in_advanced_search' => 0,
56
+ 'is_html_allowed_on_front' => 0,
57
+ ));
58
+
59
+ $setup->addAttribute('catalog_product', 'zikkio_msrp', array(
60
+ 'group' => 'Zikkio',
61
+ 'type' => 'text',
62
+ 'backend' => '',
63
+ 'label' => 'Zikkio MSRP',
64
+ 'class' => '',
65
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, //SCOPE_GLOBAL
66
+ 'visible' => true,
67
+ 'required' => false,
68
+ 'user_defined' => true,
69
+ 'searchable' => false,
70
+ 'filterable' => false,
71
+ 'comparable' => false,
72
+ 'visible_on_front' => false,
73
+ 'unique' => false,
74
+ 'apply_to' => 'simple,configurable,bundle,grouped',
75
+ 'is_configurable' => false,
76
+ 'visible_on_front' => 0,
77
+ 'visible_in_advanced_search' => 0,
78
+ 'is_html_allowed_on_front' => 0,
79
+ ));
80
+
81
+ $setup->addAttribute('catalog_product', 'zikkio_retailers_price', array(
82
+ 'group' => 'Zikkio',
83
+ 'type' => 'text',
84
+ 'backend' => '',
85
+ 'label' => 'Zikkio Retailers Price',
86
+ 'class' => '',
87
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, //SCOPE_GLOBAL
88
+ 'visible' => true,
89
+ 'required' => false,
90
+ 'user_defined' => true,
91
+ 'searchable' => false,
92
+ 'filterable' => false,
93
+ 'comparable' => false,
94
+ 'visible_on_front' => false,
95
+ 'unique' => false,
96
+ 'apply_to' => 'simple,configurable,bundle,grouped',
97
+ 'is_configurable' => false,
98
+ 'visible_on_front' => 0,
99
+ 'visible_in_advanced_search' => 0,
100
+ 'is_html_allowed_on_front' => 0,
101
+ ));
102
+
103
+ $setup->addAttribute('catalog_product', 'zikkio_upc', array(
104
+ 'group' => 'Zikkio',
105
+ 'type' => 'text',
106
+ 'backend' => '',
107
+ 'label' => 'Zikkio UPC',
108
+ 'class' => '',
109
+ 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, //SCOPE_GLOBAL
110
+ 'visible' => true,
111
+ 'required' => false,
112
+ 'user_defined' => true,
113
+ 'searchable' => false,
114
+ 'filterable' => false,
115
+ 'comparable' => false,
116
+ 'visible_on_front' => false,
117
+ 'unique' => false,
118
+ 'apply_to' => 'simple,configurable,bundle,grouped',
119
+ 'is_configurable' => false,
120
+ 'visible_on_front' => 0,
121
+ 'visible_in_advanced_search' => 0,
122
+ 'is_html_allowed_on_front' => 0,
123
+ ));
124
+
125
+ $installer->endSetup();
app/etc/modules/Zikkio_Zikkio.xml CHANGED
@@ -4,6 +4,9 @@
4
  <Zikkio_Zikkio>
5
  <active>true</active>
6
  <codePool>community</codePool>
 
 
 
7
  </Zikkio_Zikkio>
8
  </modules>
9
  </config>
4
  <Zikkio_Zikkio>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <depends>
8
+ <Mage_Eav/>
9
+ </depends>
10
  </Zikkio_Zikkio>
11
  </modules>
12
  </config>
bridge2cart/.DS_Store ADDED
Binary file
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zikkio</name>
4
- <version>1.0.5</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-07-04</date>
14
- <time>11:39:32</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="b3a44d2041d37a603604f6ac3e5f3c16"/></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="84b71a49ce41efa85a2872f824c6b171"/><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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Zikkio</name>
4
+ <version>1.0.6</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>New attributes added</notes>
12
  <authors><author><name>Zikkio</name><user>Zikkio</user><email>account@zikkio.com</email></author></authors>
13
+ <date>2016-10-17</date>
14
+ <time>15:02:28</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="3625aab13faf944dd8e7876b8f2e8cb0"/><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="84b71a49ce41efa85a2872f824c6b171"/><file name="config.php" hash="e7d47925538152d91fb207daa9d4f57f"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>