Version Notes
First stable release
Download this release
Release Info
Developer | Magmodules |
Extension | Magmodules_Kiyoh |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- app/code/local/Magmodules/Kiyoh/Model/Api.php +2 -1
- app/code/local/Magmodules/Kiyoh/Model/Stats.php +2 -0
- app/code/local/Magmodules/Kiyoh/controllers/Adminhtml/KiyohlogController.php +1 -1
- app/code/local/Magmodules/Kiyoh/controllers/Adminhtml/KiyohreviewsController.php +1 -0
- app/code/local/Magmodules/Kiyoh/etc/config.xml +1 -1
- package.xml +7 -7
app/code/local/Magmodules/Kiyoh/Model/Api.php
CHANGED
@@ -46,6 +46,7 @@ class Magmodules_Kiyoh_Model_Api extends Mage_Core_Model_Abstract {
|
|
46 |
$api_url = 'https://' . $api_url . '/xml/recent_company_reviews.xml?connectorcode=' . $api_key . '&company_id=' . $api_id . '&reviewcount=10000';
|
47 |
}
|
48 |
|
|
|
49 |
if($api_id) {
|
50 |
$xml = simplexml_load_file($api_url);
|
51 |
if($xml) {
|
@@ -114,7 +115,7 @@ class Magmodules_Kiyoh_Model_Api extends Mage_Core_Model_Abstract {
|
|
114 |
}
|
115 |
}
|
116 |
}
|
117 |
-
return $store_ids;
|
118 |
}
|
119 |
|
120 |
}
|
46 |
$api_url = 'https://' . $api_url . '/xml/recent_company_reviews.xml?connectorcode=' . $api_key . '&company_id=' . $api_id . '&reviewcount=10000';
|
47 |
}
|
48 |
|
49 |
+
|
50 |
if($api_id) {
|
51 |
$xml = simplexml_load_file($api_url);
|
52 |
if($xml) {
|
115 |
}
|
116 |
}
|
117 |
}
|
118 |
+
return $store_ids;
|
119 |
}
|
120 |
|
121 |
}
|
app/code/local/Magmodules/Kiyoh/Model/Stats.php
CHANGED
@@ -37,6 +37,8 @@ class Magmodules_Kiyoh_Model_Stats extends Mage_Core_Model_Abstract {
|
|
37 |
$config = new Mage_Core_Model_Config();
|
38 |
$config->saveConfig('kiyoh/general/url', $feed->company->url, 'stores', $storeid);
|
39 |
$config->saveConfig('kiyoh/general/company', $feed->company->name, 'stores', $storeid);
|
|
|
|
|
40 |
}
|
41 |
|
42 |
if($feed->company->total_reviews > 0) {
|
37 |
$config = new Mage_Core_Model_Config();
|
38 |
$config->saveConfig('kiyoh/general/url', $feed->company->url, 'stores', $storeid);
|
39 |
$config->saveConfig('kiyoh/general/company', $feed->company->name, 'stores', $storeid);
|
40 |
+
$config->saveConfig('kiyoh/general/url', $feed->company->url, 'default', 0);
|
41 |
+
$config->saveConfig('kiyoh/general/company', $feed->company->name, 'default', 0);
|
42 |
}
|
43 |
|
44 |
if($feed->company->total_reviews > 0) {
|
app/code/local/Magmodules/Kiyoh/controllers/Adminhtml/KiyohlogController.php
CHANGED
@@ -36,7 +36,7 @@ class Magmodules_Kiyoh_Adminhtml_KiyohlogController extends Mage_Adminhtml_Contr
|
|
36 |
if(!is_array($LogIds)) {
|
37 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('kiyoh')->__('Please select item(s)'));
|
38 |
} else {
|
39 |
-
|
40 |
foreach ($LogIds as $id) {
|
41 |
$log = Mage::getModel('kiyoh/log')->load($id)->delete();
|
42 |
}
|
36 |
if(!is_array($LogIds)) {
|
37 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('kiyoh')->__('Please select item(s)'));
|
38 |
} else {
|
39 |
+
try {
|
40 |
foreach ($LogIds as $id) {
|
41 |
$log = Mage::getModel('kiyoh/log')->load($id)->delete();
|
42 |
}
|
app/code/local/Magmodules/Kiyoh/controllers/Adminhtml/KiyohreviewsController.php
CHANGED
@@ -34,6 +34,7 @@ class Magmodules_Kiyoh_Adminhtml_KiyohreviewsController extends Mage_Adminhtml_C
|
|
34 |
public function processAction() {
|
35 |
$storeids = Mage::getModel('kiyoh/api')->getStoreIds();
|
36 |
$start_time = microtime(true);
|
|
|
37 |
foreach($storeids as $storeid) {
|
38 |
$msg = '';
|
39 |
$api_id = Mage::getStoreConfig('kiyoh/general/api_id', $storeid);
|
34 |
public function processAction() {
|
35 |
$storeids = Mage::getModel('kiyoh/api')->getStoreIds();
|
36 |
$start_time = microtime(true);
|
37 |
+
|
38 |
foreach($storeids as $storeid) {
|
39 |
$msg = '';
|
40 |
$api_id = Mage::getStoreConfig('kiyoh/general/api_id', $storeid);
|
app/code/local/Magmodules/Kiyoh/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Kiyoh>
|
26 |
-
<version>1.0.
|
27 |
</Magmodules_Kiyoh>
|
28 |
</modules>
|
29 |
<global>
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Kiyoh>
|
26 |
+
<version>1.0.5</version>
|
27 |
</Magmodules_Kiyoh>
|
28 |
</modules>
|
29 |
<global>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Kiyoh</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Connect your Magento shop to KiyOh</summary>
|
10 |
<description>Connect your Magento shop to KiyOh</description>
|
11 |
<notes>First stable release</notes>
|
12 |
-
<authors><author><name>Magmodules</name><user>
|
13 |
-
<date>2015-04-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Kiyoh"><dir name="Block"><dir name="Adminhtml"><dir name="Kiyohlog"><file name="Grid.php" hash="39d3a230b792a146bcb7ea6fc5975d5a"/></dir><dir name="Kiyohreviews"><dir name="Renderer"><file name="Experience.php" hash="abf99c6f9a07589b8fe2bcf63b9edb48"/></dir><file name="
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Kiyoh</name>
|
4 |
+
<version>1.0.5</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>OSL 3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Connect your Magento shop to KiyOh</summary>
|
10 |
<description>Connect your Magento shop to KiyOh</description>
|
11 |
<notes>First stable release</notes>
|
12 |
+
<authors><author><name>Magmodules</name><user>magmodules</user><email>info@magmodules.nl</email></author></authors>
|
13 |
+
<date>2015-04-13</date>
|
14 |
+
<time>17:41:41</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Kiyoh"><dir name="Block"><dir name="Adminhtml"><dir name="Kiyohlog"><file name="Grid.php" hash="39d3a230b792a146bcb7ea6fc5975d5a"/></dir><file name="Kiyohlog.php" hash="0499fae2c8246c1224e42003422dbb0f"/><dir name="Kiyohreviews"><file name="Grid.php" hash="e4326ccf1ea00dff4a664ecfbd03e9f7"/><dir name="Renderer"><file name="Experience.php" hash="abf99c6f9a07589b8fe2bcf63b9edb48"/></dir></dir><file name="Kiyohreviews.php" hash="bf7858406e19fe69785022922c1c4ae1"/><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="119648013568daa5953dc8db0a386868"/><file name="Test.php" hash="019586f9d0a4bc7bb431a3df2cf7c4d9"/></dir><dir name="Form"><file name="Heading.php" hash="6c99f624f1267ed1500a708f3e01fea3"/></dir><dir name="Grid"><file name="Log.php" hash="7971522fb582fdedaa1624f2878d1304"/><file name="Seconds.php" hash="ab77b3a2da42984db58388d119c2e07c"/><file name="Stars.php" hash="4544f1fec819ec465d69ad1c562ae31c"/></dir><dir name="Info"><file name="Info.php" hash="53ee9e0e47ad2a27b61f03884a25dedc"/></dir></dir></dir><file name="Custom.php" hash="c1c9496401966f3713cfa6241e900f55"/><file name="Reviews.php" hash="7bcd015d8b85db14758f96780af8831f"/><file name="Sidebar.php" hash="e08d1fb1cb3fb80137e4ad61d5e78b5a"/><file name="Snippets.php" hash="b5b26063a091c14c2b5cbcfd01007282"/></dir><dir name="Helper"><file name="Data.php" hash="26e039a882e0e89977c0b438fa51c681"/></dir><dir name="Model"><file name="Api.php" hash="c3682c35afb57c463e03051d7fb17ea2"/><file name="Log.php" hash="bcf9328adcf61b84164b86ff3e14914f"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="b9cc585b00e4e372a6fe2ce36677f546"/></dir><file name="Log.php" hash="e60478150048e9c4e6d4197ae12f6f16"/><dir name="Reviews"><file name="Collection.php" hash="0a16cd2660475f7fd498403437cd0bf7"/></dir><file name="Reviews.php" hash="de8cd145282dc3105e963cf845f45e25"/><dir name="Stats"><file name="Collection.php" hash="bdfb3db30e754ae539ba445678570eaf"/></dir><file name="Stats.php" hash="c917baef200f1ce4dfe391e7444bf280"/></dir><file name="Observer.php" hash="27441c1b02caae831d10888b9c6c6ac9"/><file name="Reviews.php" hash="2f670c038014619ab0a9ca7668a0de9c"/><file name="Stats.php" hash="ece361fe84475119e23d7ca89808fad4"/><dir name="System"><dir name="Config"><file name="Flushcache.php" hash="90f9342571a9f3ee9121436f8952fe49"/><dir name="Source"><file name="Cronfrequency.php" hash="83243ce547e81705df4497b7e94922fe"/><file name="Kiyoh.php" hash="239df03e58cf9a2ba7519384428bde8f"/><file name="Orderstatus.php" hash="7e42dbf2ab2e5f3544cf34da1fd1a04c"/><file name="Position.php" hash="74bc6ab7cb4560b682ebdbf82d891b08"/><file name="Sidebarlink.php" hash="c576f54e39f067bae18999aa26874fe1"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="KiyohlogController.php" hash="3a140fb6b7dd453b2148bd61e6461c62"/><file name="KiyohreviewsController.php" hash="f7d2ab10e84b2f40e5dfd70270426b49"/></dir><file name="IndexController.php" hash="09bd38e43ead00a123ded748281f3607"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d5a32f8a2cdc35d3bf688c488f1d2f3f"/><file name="config.xml" hash="20ef4f984051bd42e1256e209dc2cba0"/><file name="system.xml" hash="ee734d012962a3c1b58b1b582627e2e0"/></dir><dir name="sql"><dir name="kiyoh_setup"><file name="mysql4-install-1.0.0.php" hash="bf048fb7428e3aba9e078a06e38afe20"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_kiyoh.xml" hash="8e873ae1213e8db26169cc21a532cea6"/></dir><dir name="template"><dir name="magmodules"><dir name="kiyoh"><file name="index.phtml" hash="12b24e4ec169d7b11e31c0f5831a7553"/><dir name="sidebar"><file name="left.phtml" hash="4dc24d52c5da32a49a31fce39d8db4cb"/><file name="right.phtml" hash="aebc83a4492669b7b985647a32eb4375"/></dir><dir name="widget"><file name="custom.phtml" hash="cfd6918fd847a440d2cd555c1c67e6a9"/><file name="richsnippets.phtml" hash="3620ef28597f4efbee122129a4eb7125"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_kiyoh.xml" hash="ea960e10667c3a1d3df2527c7f1d0561"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Kiyoh.xml" hash="4ad6b4740e25b3587cc0692f444838e2"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Magmodules_Kiyoh.csv" hash="aebc857a62316eff52568e6f553653fb"/></dir><dir name="nl_NL"><file name="Magmodules_Kiyoh.csv" hash="7328e07b299d0ad348753c7c8f9e8abb"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="kiyoh"><dir><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="bkg_rating.gif" hash="0efa835d6b68d7f8042170b182ace2a9"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="89e94131c585fe977c77ef312cad3206"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir></dir><file name="richsnippets.css" hash="02e1731917f79a91e7b4c9f131d623c8"/><file name="sidebar.css" hash="ed9bac8878ed90310d364afd61b44bc1"/><file name="style.css" hash="b081241691d7042267d42d58c3417c6d"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="kiyoh"><file name="grid.css" hash="8236836bfb11ba1a52bec1cea1ea64b0"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|