Version Notes
First stable release
Download this release
Release Info
Developer | Magmodules |
Extension | Magmodules_Feedbackcompany |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- app/code/community/Magmodules/Feedbackcompany/Model/Log.php +9 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Observer.php +2 -2
- app/code/community/Magmodules/Feedbackcompany/Model/Productreviews.php +1 -1
- app/code/community/Magmodules/Feedbackcompany/Model/Reviews.php +6 -2
- app/code/community/Magmodules/Feedbackcompany/etc/config.xml +1 -1
- package.xml +4 -4
app/code/community/Magmodules/Feedbackcompany/Model/Log.php
CHANGED
@@ -40,14 +40,21 @@ class Magmodules_Feedbackcompany_Model_Log extends Mage_Core_Model_Abstract
|
|
40 |
* @param string $aUrl
|
41 |
* @param string $oId
|
42 |
*/
|
43 |
-
public function addToLog($type, $sId, $review = '', $res = '', $t = '', $cron = '', $aUrl = '', $oId = '')
|
44 |
{
|
45 |
if (Mage::getStoreConfig('feedbackcompany/log/enabled')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
$data = array(
|
47 |
'type' => $type,
|
48 |
'shop_id' => Mage::getModel('feedbackcompany/api')->getClientId($sId),
|
49 |
'store_id' => $sId,
|
50 |
-
'company' =>
|
51 |
'review_updates' => isset($review['update']) ? $review['update'] : '',
|
52 |
'review_new' => isset($review['new']) ? $review['new'] : '',
|
53 |
'response' => $res,
|
40 |
* @param string $aUrl
|
41 |
* @param string $oId
|
42 |
*/
|
43 |
+
public function addToLog($type, $sId, $review = '', $res = '', $t = '', $cron = '', $aUrl = '', $oId = '')
|
44 |
{
|
45 |
if (Mage::getStoreConfig('feedbackcompany/log/enabled')) {
|
46 |
+
|
47 |
+
$company = isset($review['company']) ? $review['company'] : '';
|
48 |
+
if (empty($company)) {
|
49 |
+
$stats = Mage::getModel('feedbackcompany/stats')->loadByStoreId($sId);
|
50 |
+
$company = $stats->getCompany();
|
51 |
+
}
|
52 |
+
|
53 |
$data = array(
|
54 |
'type' => $type,
|
55 |
'shop_id' => Mage::getModel('feedbackcompany/api')->getClientId($sId),
|
56 |
'store_id' => $sId,
|
57 |
+
'company' => $company,
|
58 |
'review_updates' => isset($review['update']) ? $review['update'] : '',
|
59 |
'review_new' => isset($review['new']) ? $review['new'] : '',
|
60 |
'response' => $res,
|
app/code/community/Magmodules/Feedbackcompany/Model/Observer.php
CHANGED
@@ -44,7 +44,7 @@ class Magmodules_Feedbackcompany_Model_Observer
|
|
44 |
$storeIds = Mage::getModel('feedbackcompany/api')->getStoreIds('cron');
|
45 |
foreach ($storeIds as $storeId) {
|
46 |
$startTime = microtime(true);
|
47 |
-
$results = Mage::getModel('feedbackcompany/reviews')->runUpdate($storeId);
|
48 |
$logModel->addToLog('reviews', $storeId, $results, '', $startTime, 'reviews');
|
49 |
}
|
50 |
}
|
@@ -72,7 +72,7 @@ class Magmodules_Feedbackcompany_Model_Observer
|
|
72 |
$storeIds = Mage::getModel('feedbackcompany/api')->getStoreIds('prcron');
|
73 |
foreach ($storeIds as $storeId) {
|
74 |
$startTime = microtime(true);
|
75 |
-
$results = Mage::getModel('feedbackcompany/productreviews')->runUpdate($storeId);
|
76 |
$logModel->addToLog('productreviews', $storeId, $results, '', $startTime, 'productreviews');
|
77 |
}
|
78 |
}
|
44 |
$storeIds = Mage::getModel('feedbackcompany/api')->getStoreIds('cron');
|
45 |
foreach ($storeIds as $storeId) {
|
46 |
$startTime = microtime(true);
|
47 |
+
$results = Mage::getModel('feedbackcompany/reviews')->runUpdate($storeId, 'last_week');
|
48 |
$logModel->addToLog('reviews', $storeId, $results, '', $startTime, 'reviews');
|
49 |
}
|
50 |
}
|
72 |
$storeIds = Mage::getModel('feedbackcompany/api')->getStoreIds('prcron');
|
73 |
foreach ($storeIds as $storeId) {
|
74 |
$startTime = microtime(true);
|
75 |
+
$results = Mage::getModel('feedbackcompany/productreviews')->runUpdate($storeId, 'last_week');
|
76 |
$logModel->addToLog('productreviews', $storeId, $results, '', $startTime, 'productreviews');
|
77 |
}
|
78 |
}
|
app/code/community/Magmodules/Feedbackcompany/Model/Productreviews.php
CHANGED
@@ -35,7 +35,7 @@ class Magmodules_Feedbackcompany_Model_Productreviews extends Magmodules_Feedbac
|
|
35 |
*
|
36 |
* @return array
|
37 |
*/
|
38 |
-
public function runUpdate($storeId, $type)
|
39 |
{
|
40 |
$feed = $this->getFeed($storeId, $type);
|
41 |
|
35 |
*
|
36 |
* @return array
|
37 |
*/
|
38 |
+
public function runUpdate($storeId, $type = 'last_week')
|
39 |
{
|
40 |
$feed = $this->getFeed($storeId, $type);
|
41 |
|
app/code/community/Magmodules/Feedbackcompany/Model/Reviews.php
CHANGED
@@ -45,7 +45,7 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Magmodules_Feedbackcompan
|
|
45 |
*
|
46 |
* @return array
|
47 |
*/
|
48 |
-
public function runUpdate($storeId, $type)
|
49 |
{
|
50 |
$feed = $this->getFeed($storeId, $type);
|
51 |
|
@@ -54,7 +54,11 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Magmodules_Feedbackcompan
|
|
54 |
}
|
55 |
|
56 |
if (!isset($feed['feed']['reviews'])) {
|
57 |
-
return array(
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
|
60 |
foreach ($feed['feed']['reviews'] as $review) {
|
45 |
*
|
46 |
* @return array
|
47 |
*/
|
48 |
+
public function runUpdate($storeId, $type = 'last_week')
|
49 |
{
|
50 |
$feed = $this->getFeed($storeId, $type);
|
51 |
|
54 |
}
|
55 |
|
56 |
if (!isset($feed['feed']['reviews'])) {
|
57 |
+
return array(
|
58 |
+
'status' => 'ERROR',
|
59 |
+
'update' => 0,
|
60 |
+
'new' => 0
|
61 |
+
);
|
62 |
}
|
63 |
|
64 |
foreach ($feed['feed']['reviews'] as $review) {
|
app/code/community/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Magmodules_Feedbackcompany>
|
23 |
-
<version>1.5.
|
24 |
</Magmodules_Feedbackcompany>
|
25 |
</modules>
|
26 |
<global>
|
20 |
<config>
|
21 |
<modules>
|
22 |
<Magmodules_Feedbackcompany>
|
23 |
+
<version>1.5.2</version>
|
24 |
</Magmodules_Feedbackcompany>
|
25 |
</modules>
|
26 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
-
<version>1.5.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Connect your Magento shop to The Feedback Company</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>2017-05-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="c52f8b4078104065afe0466fc6673ee7"/></dir><file name="Feedbacklog.php" hash="33d41b9b1d3fb50cfda578ae1d8341ce"/><dir name="Feedbackreviews"><file name="Grid.php" hash="b238f2622c144c5fddb70fa6462c6978"/></dir><file name="Feedbackreviews.php" hash="13aaf0170d53498c11eadc65aa91e6df"/><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="e31f4a0080968516ea021ab314851adc"/><file name="Productreviews.php" hash="b628b751d0a6a43252825a0f926d0ef4"/></dir><dir name="Field"><file name="Version.php" hash="740f7a5c64b3e17470f1a3df001fb8e0"/></dir><dir name="Form"><file name="Apicomment.php" hash="36bf6d49e903237df98667a8a14efb5d"/><file name="Heading.php" hash="03a6513f1132603b3571e08a8d7859ee"/><file name="Note.php" hash="d68e01b1691361c36df486bd6bacaf56"/></dir><dir name="Grid"><file name="Experience.php" hash="cdd7d44a95ae745ab37d46f52c2e7d8c"/><file name="Log.php" hash="6fc53eff6f6c4aeabc7642c37d12c779"/><file name="Seconds.php" hash="f5a04ec6fa3e4a5c592765eb98cc6095"/><file name="Stars.php" hash="903a2e8577a23fccd3c660771eb3b2de"/></dir><dir name="Info"><file name="Info.php" hash="bcbd2e5aefbfc62b66cd022291fafd5d"/></dir></dir></dir><file name="Custom.php" hash="36718a3e1081a873778969db844e9097"/><file name="Header.php" hash="675929066739f737121475b630303d1a"/><file name="Reviews.php" hash="9a04ed5b778a5d6d919c18792c4e9af2"/><file name="Sidebar.php" hash="e4bf01419094ba1b9557a70c510c59e6"/></dir><dir name="Helper"><file name="Data.php" hash="03ca54ea4d3708ac8f074be6cb4d2c77"/></dir><dir name="Model"><file name="Api.php" hash="599da979763407af68d3a02178856122"/><file name="Export.php" hash="7395e1522469351b60fdc0c8e198e2ba"/><file name="Log.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>7.9.9</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.5.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL 3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Connect your Magento shop to The Feedback Company</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>2017-05-10</date>
|
14 |
+
<time>12:44:43</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="c52f8b4078104065afe0466fc6673ee7"/></dir><file name="Feedbacklog.php" hash="33d41b9b1d3fb50cfda578ae1d8341ce"/><dir name="Feedbackreviews"><file name="Grid.php" hash="b238f2622c144c5fddb70fa6462c6978"/></dir><file name="Feedbackreviews.php" hash="13aaf0170d53498c11eadc65aa91e6df"/><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="e31f4a0080968516ea021ab314851adc"/><file name="Productreviews.php" hash="b628b751d0a6a43252825a0f926d0ef4"/></dir><dir name="Field"><file name="Version.php" hash="740f7a5c64b3e17470f1a3df001fb8e0"/></dir><dir name="Form"><file name="Apicomment.php" hash="36bf6d49e903237df98667a8a14efb5d"/><file name="Heading.php" hash="03a6513f1132603b3571e08a8d7859ee"/><file name="Note.php" hash="d68e01b1691361c36df486bd6bacaf56"/></dir><dir name="Grid"><file name="Experience.php" hash="cdd7d44a95ae745ab37d46f52c2e7d8c"/><file name="Log.php" hash="6fc53eff6f6c4aeabc7642c37d12c779"/><file name="Seconds.php" hash="f5a04ec6fa3e4a5c592765eb98cc6095"/><file name="Stars.php" hash="903a2e8577a23fccd3c660771eb3b2de"/></dir><dir name="Info"><file name="Info.php" hash="bcbd2e5aefbfc62b66cd022291fafd5d"/></dir></dir></dir><file name="Custom.php" hash="36718a3e1081a873778969db844e9097"/><file name="Header.php" hash="675929066739f737121475b630303d1a"/><file name="Reviews.php" hash="9a04ed5b778a5d6d919c18792c4e9af2"/><file name="Sidebar.php" hash="e4bf01419094ba1b9557a70c510c59e6"/></dir><dir name="Helper"><file name="Data.php" hash="03ca54ea4d3708ac8f074be6cb4d2c77"/></dir><dir name="Model"><file name="Api.php" hash="599da979763407af68d3a02178856122"/><file name="Export.php" hash="7395e1522469351b60fdc0c8e198e2ba"/><file name="Log.php" hash="132b0d9770e8554613c19c8e8f11bdaa"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="160b474f4f0f8a0694e1a58b48a08bb7"/></dir><file name="Log.php" hash="7f3274e718a40b86f0a65b2e43868236"/><dir name="Reviews"><file name="Collection.php" hash="3bc4fb661a490de6bcaabf47cb28b5ef"/></dir><file name="Reviews.php" hash="b6a8289c9166a108770ccd7a6ebaa1ca"/><dir name="Stats"><file name="Collection.php" hash="4b32264f25244bea8271035ba6fdcd11"/></dir><file name="Stats.php" hash="f39e3e5985176166f90d1efad8f6f9e1"/></dir><file name="Observer.php" hash="50b2458add2af785154a0f5db60ac06e"/><file name="Productreviews.php" hash="116b84b0a8d16f5d1f9ccef5b7549cc2"/><dir name="Resource"><file name="Review.php" hash="642185efdb13e3352569de8db5143dc3"/></dir><file name="Reviews.php" hash="71c73a1baea1de38cdfe93d7c52b6c17"/><file name="Stats.php" hash="e2f8277856b5cd140e45d0d80c544f35"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="76a5bcbca7b7116cb41dc3e93b28cd8d"/><file name="Category.php" hash="2581c316eac00170e8e2f64b750cc90b"/><file name="Cronfrequency.php" hash="df64f62f3ad05ec7384726b520a06b99"/><file name="Cronfrequencylong.php" hash="377b7774a51e5ce764a362dedb05c42c"/><file name="Orderstatus.php" hash="2ea6375138086f45bee35ed77e9ba5f1"/><file name="Position.php" hash="a0d3b0ac4b983ed5d51860567df9dde9"/><file name="Reviewlink.php" hash="8e65991e47e15c1e5d0307b838c8f4ed"/><file name="Reviewrating.php" hash="9a1b339777ae59b2a6c18e91ff80fbd9"/><file name="Reviewstatus.php" hash="5c256fc8f818c5adae9935f6aaad4a01"/><file name="Sidebarlink.php" hash="d857edcecafb47cc50afe657e57becfc"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="d5fabbb3cd2dd226972442ef37277051"/><file name="FeedbackreviewsController.php" hash="370be2230ae48167164d4663f4ea5903"/></dir><file name="IndexController.php" hash="f8147b0e9c4c17d1a788794d3c1b92ab"/></dir><dir name="data"><dir name="feedbackcompany_setup"><file name="data-upgrade-1.4.1-1.4.2.php" hash="8f6a22826fad0ac549a6262b9345c5c9"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="491214b7edde15fb9aec6e14b4864284"/><file name="config.xml" hash="05a60f1087c8c42e2dabe562b467b718"/><file name="system.xml" hash="9b20a8742025b7ed2779b2b2c9366585"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="8b38f6cf0eab984143428a2f91244567"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="e82d4f1401aceb89f9f7915564b1366c"/><file name="mysql4-upgrade-1.2.5-1.2.6.php" hash="f01b88c2ce763220c9258e06159e6eeb"/><file name="mysql4-upgrade-1.3.0-1.3.1.php" hash="fc219a71e11dbedcf3539ce9bc02a983"/><file name="mysql4-upgrade-1.4.9-1.5.0.php" hash="782aba5fa8cbe615b66d31e345c037f4"/></dir></dir><file name=".DS_Store" hash="9378dd7fa55de90b8f93165c4b0f1319"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="09b9bc0853764353f794ad6c2a103473"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><file name="index.phtml" hash="e310eeb5bc3db89d1e9a4e1961652399"/><dir name="sidebar"><file name="left.phtml" hash="e469e9dc8f8712b7e30587d660264df5"/><file name="right.phtml" hash="1569639a2862ac91aee96d75ab6fbfc6"/></dir><dir name="widget"><file name="header.phtml" hash="de352dede5eea6f3fd4c73c5e2dd35c9"/><file name="medium.phtml" hash="e28a5036ecb7a628c9df711e31419883"/><file name="sidebar.phtml" hash="4e15d5cba5e32e144f280bd023eb787e"/><file name="small.phtml" hash="a0e649191fce61a37f785c0def04c44f"/></dir></dir></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="widget"><file name="header.phtml" hash="d8d41baef56624250ce596d84ee4d45b"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="756a3b389541d165da00719a018fda50"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Feedbackcompany.xml" hash="4d2ded61e090cc4abee4e42f4dbbe450"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Magmodules_Feedbackcompany.csv" hash="9272e3c03e1faeea8f3ff4e61e780f51"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="33176e1661f83c991e7b45cd5c1a3ab2"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><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="83c843697e71cbe94ddd75bdedcbcf95"/><file name="bkg_rating2x.gif" hash="f71a52080752ca47b4c19810afd72e54"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="6aaa31c8d465a70e007cbf00c7e093dc"/><file name="small_fill.png" hash="2fa2ce516dddb74497ada0ae8be94380"/><file name="small_grey.png" hash="685735e666b7938f19ffe3b420152572"/><file name="sprites.png" hash="5f048cd5c6faf107782a5356678c2800"/><file name="sprites@2x.png" hash="8bbeceb34cb88a53f8e0222025368149"/><file name="star.png" hash="1a0bff565b441621cfa141ea1359e42d"/><file name="stars-colorful-big-empty.png" hash="0c39b599f3711387f3ab73c2c866db5e"/><file name="stars-colorful-big-empty@2x.png" hash="91968a209183fa94981aa1a4f4b881ac"/><file name="stars-colorful-big-filling.png" hash="4e44da064ac05c020a0390be58378c70"/><file name="stars-colorful-big-filling@2x.png" hash="d884648d75c3d39ede9d3b9d152fa377"/><file name="stars-colorful-medium-empty.png" hash="348115c8fcb76a0fdad35adf373c372d"/><file name="stars-colorful-medium-empty@2x.png" hash="80597abaaf487d85b37b38242fd280fd"/><file name="stars-colorful-medium-filling.png" hash="bdabd08dd42a28ffac96c0426cc31f75"/><file name="stars-colorful-medium-filling@2x.png" hash="95d3c2484dea0e65ef3764cca92d7546"/><file name="stars-colorful-small-empty.png" hash="0810018964beb0d0ff758346ea48f380"/><file name="stars-colorful-small-empty@2x.png" hash="95e3450bc9019b50497a07edd36da76a"/><file name="stars-colorful-small-filling.png" hash="7dea18dd80f75e5957ddfff107a5b14b"/><file name="stars-colorful-small-filling@2x.png" hash="c78b5d4766bdba9144333e8420e78e30"/><file name="stars-grayscale-small-empty.png" hash="0810018964beb0d0ff758346ea48f380"/><file name="stars-grayscale-small-empty@2x.png" hash="95e3450bc9019b50497a07edd36da76a"/><file name="stars-grayscale-small-filling.png" hash="5b36c38e55237b3b2932cb46a238ca66"/><file name="stars-grayscale-small-filling@2x.png" hash="a7fad2bb4a7ba031134e60f2b682ec6e"/></dir><file name="richsnippets.css" hash="3660775b91557d874d8f014e07a77d1b"/><file name="sidebar.css" hash="c9393a8e730b016b811a5edde49b354e"/><file name="style.css" hash="6efbfa1e9dd3280315faa26b9d60f379"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><file name="grid.css" hash="ff36b552e8096ab0453af7579ff55499"/><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>7.9.9</max></php></required></dependencies>
|
18 |
</package>
|