Version Notes
First stable release
Download this release
Release Info
Developer | Magmodules |
Extension | Magmodules_Feedbackcompany |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.6 to 1.4.7
app/code/community/Magmodules/Feedbackcompany/Model/Api.php
CHANGED
@@ -51,20 +51,20 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
51 |
curl_setopt($request, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $client_token));
|
52 |
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
53 |
$api_result = json_decode($content = curl_exec($request));
|
54 |
-
|
55 |
if($api_result) {
|
56 |
-
if($api_result->message
|
57 |
-
$
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
68 |
} else {
|
69 |
$result['status'] = 'ERROR';
|
70 |
$result['error'] = Mage::helper('feedbackcompany')->__('Error connect to the API.');
|
@@ -83,7 +83,6 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
83 |
}
|
84 |
|
85 |
if($api_id) {
|
86 |
-
echo $api_url; exit;
|
87 |
$xml = simplexml_load_file($api_url);
|
88 |
if($xml) {
|
89 |
return $xml;
|
51 |
curl_setopt($request, CURLOPT_HTTPHEADER, array('Authorization: Bearer ' . $client_token));
|
52 |
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
53 |
$api_result = json_decode($content = curl_exec($request));
|
|
|
54 |
if($api_result) {
|
55 |
+
if(isset($api_result->message)) {
|
56 |
+
if($api_result->message == 'OK') {
|
57 |
+
$result['status'] = 'OK';
|
58 |
+
$result['feed'] = $api_result->data[0];
|
59 |
+
return $result;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
$config = new Mage_Core_Model_Config();
|
63 |
+
$config->saveConfig('feedbackcompany/productreviews/client_token', '', 'stores', $storeid);
|
64 |
+
Mage::app()->getCacheInstance()->cleanType('config');
|
65 |
+
$result['status'] = 'ERROR';
|
66 |
+
$result['error'] = $api_result->error;
|
67 |
+
return $result;
|
68 |
} else {
|
69 |
$result['status'] = 'ERROR';
|
70 |
$result['error'] = Mage::helper('feedbackcompany')->__('Error connect to the API.');
|
83 |
}
|
84 |
|
85 |
if($api_id) {
|
|
|
86 |
$xml = simplexml_load_file($api_url);
|
87 |
if($xml) {
|
88 |
return $xml;
|
app/code/community/Magmodules/Feedbackcompany/Model/Productreviews.php
CHANGED
@@ -85,7 +85,7 @@ class Magmodules_Feedbackcompany_Model_Productreviews extends Mage_Core_Model_Ab
|
|
85 |
$string = str_replace(" ?","?",$string);
|
86 |
$string = str_replace(" !","!",$string);
|
87 |
preg_match('/^.*[^\s](\.|\?|\!)/U', $string, $match);
|
88 |
-
if(
|
89 |
return $match[0];
|
90 |
} else {
|
91 |
return Mage::helper('core/string')->truncate($string, 50) . '...';
|
85 |
$string = str_replace(" ?","?",$string);
|
86 |
$string = str_replace(" !","!",$string);
|
87 |
preg_match('/^.*[^\s](\.|\?|\!)/U', $string, $match);
|
88 |
+
if(!empty($match[0])) {
|
89 |
return $match[0];
|
90 |
} else {
|
91 |
return Mage::helper('core/string')->truncate($string, 50) . '...';
|
app/code/community/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
-
<version>1.4.
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
+
<version>1.4.7</version>
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
-
<version>1.4.
|
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>2016-
|
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="0b35dd7762cf181dc8215a1283d81e5f"/></dir><file name="Feedbacklog.php" hash="03448637e329d9aed31916c403f237a7"/><dir name="Feedbackreviews"><file name="Grid.php" hash="034b652b83b627d464f4d566b1a8dd19"/><dir name="Renderer"><file name="Experience.php" hash="58e6b4524ee8c4e95e76a2fa29309f4f"/></dir></dir><file name="Feedbackreviews.php" hash="b9c0059184019f277dde9b70b94bfa37"/><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="fba16d7671930510e1d2d70483e43581"/><file name="Productreviews.php" hash="1e7da9da2ec3eb28e5fde451c8cfb781"/><file name="Test.php" hash="95bb230b8c02d349cbb4c8a914ea2fd6"/></dir><dir name="Field"><file name="Version.php" hash="e67d6a20e44fa7aebaabc3b03fe35fdf"/></dir><dir name="Form"><file name="Heading.php" hash="6392f0a879d8b475c5ec93aec74fa11d"/><file name="Note.php" hash="80abe28a9156c42dfc3ea61a2e265fc3"/></dir><dir name="Grid"><file name="Log.php" hash="f48fe4676148cb91f8150a726289c50d"/><file name="Seconds.php" hash="a3c061430ffb9bb59bc18308d8bf1bbf"/><file name="Stars.php" hash="bc6bbb13c6e58fcb0c389e94def62ecb"/></dir><dir name="Info"><file name="Info.php" hash="d5cee3ad9bd83a02211c72ac68649772"/></dir></dir></dir><file name="Custom.php" hash="3c5fe7bb2629fbed033bb681bad6f440"/><file name="Header.php" hash="44a5dc7866157c032b0c90f27d162b5f"/><file name="Reviews.php" hash="88505fc0d4c17fa6bf89448bdf547ceb"/><file name="Sidebar.php" hash="446fdbf3b47e27bbc76118f2db2eeb7f"/></dir><dir name="Helper"><file name="Data.php" hash="d3d1fcd8506de1d90e39bf0c85771751"/></dir><dir name="Model"><file name="Api.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>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.4.7</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>2016-07-01</date>
|
14 |
+
<time>14:54:39</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="0b35dd7762cf181dc8215a1283d81e5f"/></dir><file name="Feedbacklog.php" hash="03448637e329d9aed31916c403f237a7"/><dir name="Feedbackreviews"><file name="Grid.php" hash="034b652b83b627d464f4d566b1a8dd19"/><dir name="Renderer"><file name="Experience.php" hash="58e6b4524ee8c4e95e76a2fa29309f4f"/></dir></dir><file name="Feedbackreviews.php" hash="b9c0059184019f277dde9b70b94bfa37"/><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="fba16d7671930510e1d2d70483e43581"/><file name="Productreviews.php" hash="1e7da9da2ec3eb28e5fde451c8cfb781"/><file name="Test.php" hash="95bb230b8c02d349cbb4c8a914ea2fd6"/></dir><dir name="Field"><file name="Version.php" hash="e67d6a20e44fa7aebaabc3b03fe35fdf"/></dir><dir name="Form"><file name="Heading.php" hash="6392f0a879d8b475c5ec93aec74fa11d"/><file name="Note.php" hash="80abe28a9156c42dfc3ea61a2e265fc3"/></dir><dir name="Grid"><file name="Log.php" hash="f48fe4676148cb91f8150a726289c50d"/><file name="Seconds.php" hash="a3c061430ffb9bb59bc18308d8bf1bbf"/><file name="Stars.php" hash="bc6bbb13c6e58fcb0c389e94def62ecb"/></dir><dir name="Info"><file name="Info.php" hash="d5cee3ad9bd83a02211c72ac68649772"/></dir></dir></dir><file name="Custom.php" hash="3c5fe7bb2629fbed033bb681bad6f440"/><file name="Header.php" hash="44a5dc7866157c032b0c90f27d162b5f"/><file name="Reviews.php" hash="88505fc0d4c17fa6bf89448bdf547ceb"/><file name="Sidebar.php" hash="446fdbf3b47e27bbc76118f2db2eeb7f"/></dir><dir name="Helper"><file name="Data.php" hash="d3d1fcd8506de1d90e39bf0c85771751"/></dir><dir name="Model"><file name="Api.php" hash="b5eadb74ed217c45f92d12a536903fc6"/><file name="Export.php" hash="228b209a4c2eeb7d39ba56eb7649c98d"/><file name="Log.php" hash="4280f12a6802bdb2d438d1ef0623daa0"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="ae1342456877a1fae35eae8724c923c4"/></dir><file name="Log.php" hash="78b2b64a97bb8f6fa76afd60c6a5757f"/><dir name="Reviews"><file name="Collection.php" hash="59f40c5d3de2c2c00eda58edf82afec3"/></dir><file name="Reviews.php" hash="f5237ea23f972634b63cb3aeadb4a0ec"/><dir name="Stats"><file name="Collection.php" hash="c5556305c5bd4a47d962755df17c14d4"/></dir><file name="Stats.php" hash="071d7308b21fe3069f262b9105597a89"/></dir><file name="Observer.php" hash="8d69120b641f36e0dea5427de5265ee7"/><file name="Productreviews.php" hash="5e248d64c4048ac029e5e35962d12e5a"/><dir name="Resource"><file name="Review.php" hash="0b5df37c1e4c01c184eae9118829e07f"/></dir><file name="Reviews.php" hash="e4a7a8a9e3d8bb71c679e6daa95edb58"/><file name="Stats.php" hash="ec42f45afdc036c5ef5a9e89c7b4bc84"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="91c88ae96b609900a6b53ecfff8e2828"/><file name="Category.php" hash="2fe30678feee498bd105d259cadae215"/><file name="Cronfrequency.php" hash="f126c7c010109380e6f6ef811e62ee7c"/><file name="Cronfrequencylong.php" hash="98f8af8e23c22f1cc9adc678d1d8097c"/><file name="Orderstatus.php" hash="a5e23aa216840cf22c545ba024da3d7e"/><file name="Position.php" hash="32dba14b3fbba1b4e16836b5c9c25807"/><file name="Reviewlink.php" hash="d5d8ad2ab7e11a13b980288b34c6eba7"/><file name="Reviewrating.php" hash="1f7712ec677f95ada3450bcdc8c5c837"/><file name="Reviewstatus.php" hash="fa704d1e65eb64b01ad54bbc79e8c020"/><file name="Sidebarlink.php" hash="19eeff07235ee02fea3634e0f32e10a7"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="f96738f3b9849e334fed21579d1e09cc"/><file name="FeedbackreviewsController.php" hash="b94730702ac0a3d097b7bcc0bb9f4310"/></dir><file name="IndexController.php" hash="b388778f34531a73e8fc2fc91a6a784c"/></dir><dir name="data"><dir name="feedbackcompany_setup"><file name="data-upgrade-1.4.1-1.4.2.php" hash="66373ddaefafb4ea0fc6b3247e052070"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dacdccdb319e33a400d9872d6ec9ec02"/><file name="config.xml" hash="cbd14ef8c07e7416946aecce1c38a91b"/><file name="system.xml" hash="cd14a037f77b05502f20785730c363e9"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="e5e350306db02211bf1926ccb46d62fb"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="d2823271b6fcdbe69212c58bbe99ab65"/><file name="mysql4-upgrade-1.2.5-1.2.6.php" hash="0b7697b895677239dd9b4378e7578b90"/><file name="mysql4-upgrade-1.3.0-1.3.1.php" hash="32d63d431f7987492f31502ec1939599"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_feedbackcompany.xml" hash="3cca540d05eb59dab5ab24278841833a"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><file name="index.phtml" hash="35e543c38a0ef1732463e6c8019cdd3e"/><dir name="sidebar"><file name="left.phtml" hash="8c235d9ffd16096f50c2e36054bdf8f9"/><file name="right.phtml" hash="383c7db6e01441cddbbe07b2914a84a6"/></dir><dir name="widget"><file name="header.phtml" hash="cd1c71fe6c9a0f0b28ccc5951da027fb"/><file name="medium.phtml" hash="d9e0025c3c189e9ad3b512fbfc7c59dd"/><file name="sidebar.phtml" hash="852632fc6b4f223f42459da0498efd9f"/><file name="small.phtml" hash="b6e07949b3bccbd244651328a329f33e"/></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="f2ead7879b2f8d48f650ab9d133d6c3a"/></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="886af6aabcc892da5074c93ad0263006"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Feedbackcompany.xml" hash="bcf891696a8602a49ef00ec0440b944a"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Magmodules_Feedbackcompany.csv" hash="2d07c75d815c0838db646329853c7ca6"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="2b943dc56839bd8817db3aafcd7f7b7b"/></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="d41d8cd98f00b204e9800998ecf8427e"/><file name="sidebar.css" hash="071c2a1fc88dc50ddf3297bc8a453abe"/><file name="style.css" hash="53c93412d6fb3025bd54c2b4ee13a645"/></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="ea7e85df839bf0eb7bc6882608da80b0"/><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>
|