Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Feedbackcompany |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- app/code/local/Magmodules/Feedbackcompany/Block/Sidebar.php +1 -1
- app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php +1 -1
- app/code/local/Magmodules/Feedbackcompany/Model/Stats.php +5 -2
- app/code/local/Magmodules/Feedbackcompany/etc/config.xml +1 -1
- app/code/local/Magmodules/Feedbackcompany/etc/system.xml +13 -14
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml +1 -2
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml +1 -2
- package.xml +4 -4
app/code/local/Magmodules/Feedbackcompany/Block/Sidebar.php
CHANGED
@@ -74,7 +74,7 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
74 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
75 |
endif;
|
76 |
if($sidebar == 'right'):
|
77 |
-
$link = Mage::getStoreConfig('feedbackcompany/sidebar/
|
78 |
endif;
|
79 |
|
80 |
if($link == 'internal'):
|
74 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
75 |
endif;
|
76 |
if($sidebar == 'right'):
|
77 |
+
$link = Mage::getStoreConfig('feedbackcompany/sidebar/right_link');
|
78 |
endif;
|
79 |
|
80 |
if($link == 'internal'):
|
app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php
CHANGED
@@ -122,7 +122,7 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
122 |
}
|
123 |
|
124 |
$config = new Mage_Core_Model_Config();
|
125 |
-
$config->saveConfig('feedbackcompany/reviews/lastrun', now(), 'default',
|
126 |
$result = array();
|
127 |
$result['review_updates'] = $updates;
|
128 |
$result['review_new'] = $new;
|
122 |
}
|
123 |
|
124 |
$config = new Mage_Core_Model_Config();
|
125 |
+
$config->saveConfig('feedbackcompany/reviews/lastrun', now(), 'default', 0);
|
126 |
$result = array();
|
127 |
$result['review_updates'] = $updates;
|
128 |
$result['review_new'] = $new;
|
app/code/local/Magmodules/Feedbackcompany/Model/Stats.php
CHANGED
@@ -29,15 +29,18 @@ class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
|
29 |
public function processFeed($feed, $storeid = 0) {
|
30 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
31 |
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
32 |
-
|
33 |
if($storeid == 0) {
|
34 |
$config = new Mage_Core_Model_Config();
|
35 |
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'default', $storeid);
|
36 |
} else {
|
37 |
$config = new Mage_Core_Model_Config();
|
38 |
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'stores', $storeid);
|
|
|
|
|
|
|
39 |
}
|
40 |
-
|
41 |
if($feed->noReviews > 0) {
|
42 |
$score = floatval($feed->score);
|
43 |
$score = ($score * 10);
|
29 |
public function processFeed($feed, $storeid = 0) {
|
30 |
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
31 |
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
32 |
+
|
33 |
if($storeid == 0) {
|
34 |
$config = new Mage_Core_Model_Config();
|
35 |
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'default', $storeid);
|
36 |
} else {
|
37 |
$config = new Mage_Core_Model_Config();
|
38 |
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'stores', $storeid);
|
39 |
+
if(!Mage::getStoreConfig('feedbackcompany/general/url', 0)) {
|
40 |
+
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'default', 0);
|
41 |
+
}
|
42 |
}
|
43 |
+
|
44 |
if($feed->noReviews > 0) {
|
45 |
$score = floatval($feed->score);
|
46 |
$score = ($score * 10);
|
app/code/local/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
-
<version>1.1.
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magmodules_Feedbackcompany>
|
26 |
+
<version>1.1.1</version>
|
27 |
</Magmodules_Feedbackcompany>
|
28 |
</modules>
|
29 |
<global>
|
app/code/local/Magmodules/Feedbackcompany/etc/system.xml
CHANGED
@@ -42,7 +42,7 @@
|
|
42 |
<sort_order>1</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
44 |
<show_in_website>1</show_in_website>
|
45 |
-
<show_in_store>1</show_in_store>
|
46 |
</info>
|
47 |
<general translate="label" module="feedbackcompany">
|
48 |
<label>General configuration</label>
|
@@ -52,18 +52,6 @@
|
|
52 |
<show_in_website>1</show_in_website>
|
53 |
<show_in_store>1</show_in_store>
|
54 |
<expanded>1</expanded>
|
55 |
-
<comment>
|
56 |
-
<![CDATA[
|
57 |
-
<script>
|
58 |
-
Event.observe(window, 'load', function() {
|
59 |
-
if ($('feedbackcompany_reviews_lastrun')) {
|
60 |
-
$('feedbackcompany_reviews_lastrun').style.backgroundColor='#f0f0f0';
|
61 |
-
$('feedbackcompany_reviews_lastrun').disable();
|
62 |
-
}
|
63 |
-
});
|
64 |
-
</script>
|
65 |
-
]]>
|
66 |
-
</comment>
|
67 |
<comment><![CDATA[You can find the necessary information in your The Feedback Company dashboard.<br/> As addition next to the activation of this extension we also recommend you to place the appropriate The Feedback Company logo.<br/><br/>]]></comment>
|
68 |
<fields>
|
69 |
<enabled translate="label">
|
@@ -110,7 +98,18 @@
|
|
110 |
<show_in_website>1</show_in_website>
|
111 |
<show_in_store>1</show_in_store>
|
112 |
<expanded>1</expanded>
|
113 |
-
<comment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
<fields>
|
115 |
<cron translate="label">
|
116 |
<label>Use Cronjob</label>
|
42 |
<sort_order>1</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
44 |
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
</info>
|
47 |
<general translate="label" module="feedbackcompany">
|
48 |
<label>General configuration</label>
|
52 |
<show_in_website>1</show_in_website>
|
53 |
<show_in_store>1</show_in_store>
|
54 |
<expanded>1</expanded>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
<comment><![CDATA[You can find the necessary information in your The Feedback Company dashboard.<br/> As addition next to the activation of this extension we also recommend you to place the appropriate The Feedback Company logo.<br/><br/>]]></comment>
|
56 |
<fields>
|
57 |
<enabled translate="label">
|
98 |
<show_in_website>1</show_in_website>
|
99 |
<show_in_store>1</show_in_store>
|
100 |
<expanded>1</expanded>
|
101 |
+
<comment>
|
102 |
+
<![CDATA[
|
103 |
+
<script>
|
104 |
+
Event.observe(window, 'load', function() {
|
105 |
+
if ($('feedbackcompany_reviews_lastrun')) {
|
106 |
+
$('feedbackcompany_reviews_lastrun').style.backgroundColor='#f0f0f0';
|
107 |
+
$('feedbackcompany_reviews_lastrun').disable();
|
108 |
+
}
|
109 |
+
});
|
110 |
+
</script>
|
111 |
+
]]>
|
112 |
+
</comment>
|
113 |
<fields>
|
114 |
<cron translate="label">
|
115 |
<label>Use Cronjob</label>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml
CHANGED
@@ -30,7 +30,6 @@
|
|
30 |
<?php if($total->getPercentage() > 0): ?>
|
31 |
<?php if($this->getSnippetsEnabled('left')): ?>
|
32 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
33 |
-
<p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
|
34 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
35 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
36 |
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">5.00</span></strong></p>
|
@@ -59,7 +58,7 @@
|
|
59 |
</div>
|
60 |
</div>
|
61 |
<?php endforeach; ?>
|
62 |
-
<?php if($reviewurl = $this->getReviewsUrl()): ?>
|
63 |
<div class="block-content">
|
64 |
<img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png'); ?>" class="feedbackcompany-logo">
|
65 |
<div class="actions">
|
30 |
<?php if($total->getPercentage() > 0): ?>
|
31 |
<?php if($this->getSnippetsEnabled('left')): ?>
|
32 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
|
|
33 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
34 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
35 |
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">5.00</span></strong></p>
|
58 |
</div>
|
59 |
</div>
|
60 |
<?php endforeach; ?>
|
61 |
+
<?php if($reviewurl = $this->getReviewsUrl('left')): ?>
|
62 |
<div class="block-content">
|
63 |
<img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png'); ?>" class="feedbackcompany-logo">
|
64 |
<div class="actions">
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml
CHANGED
@@ -30,7 +30,6 @@
|
|
30 |
<?php if($total->getPercentage() > 0): ?>
|
31 |
<?php if($this->getSnippetsEnabled('right')): ?>
|
32 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
33 |
-
<p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
|
34 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
35 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
36 |
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">5.00</span></strong></p>
|
@@ -59,7 +58,7 @@
|
|
59 |
</div>
|
60 |
</div>
|
61 |
<?php endforeach; ?>
|
62 |
-
<?php if($reviewurl = $this->getReviewsUrl()): ?>
|
63 |
<div class="block-content">
|
64 |
<img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png'); ?>" class="feedbackcompany-logo">
|
65 |
<div class="actions">
|
30 |
<?php if($total->getPercentage() > 0): ?>
|
31 |
<?php if($this->getSnippetsEnabled('right')): ?>
|
32 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
|
|
33 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
34 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
35 |
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">5.00</span></strong></p>
|
58 |
</div>
|
59 |
</div>
|
60 |
<?php endforeach; ?>
|
61 |
+
<?php if($reviewurl = $this->getReviewsUrl('right')): ?>
|
62 |
<div class="block-content">
|
63 |
<img src="<?php echo $this->getSkinUrl('magmodules/feedbackcompany/images/logo.png'); ?>" class="feedbackcompany-logo">
|
64 |
<div class="actions">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<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>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
-
<date>2015-02-
|
14 |
-
<time>14:
|
15 |
-
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="1898d4df8746111e1a5404869226b26a"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="b5fd639eea45b31779747da049b66a80"/></dir><file name="Grid.php" hash="e56fee3f655371a066e9f56ce5ae914d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4d2bce798a5b9c2b5d62bfe35c27d720"/><file name="Test.php" hash="040ecb43856a68dca4699a63c1e9c9f8"/></dir><dir name="Form"><file name="Heading.php" hash="8f820fe2ad56e3c4be54f7f84bc47eca"/></dir><dir name="Grid"><file name="Log.php" hash="ceff6fe31ea786257d1fd1c5c7a4ef82"/><file name="Seconds.php" hash="a7e6db7624fee7717cba3048f3f5638b"/><file name="Stars.php" hash="8041613a13a202b0df1d376dc38c5e76"/></dir><dir name="Info"><file name="Info.php" hash="fe80bd3c99f8cd6c814ab2ae8ad4cffe"/></dir></dir><file name="Feedbacklog.php" hash="eb36920b105077ca572137ccb4a9345c"/><file name="Feedbackreviews.php" hash="d1cf617989422aa0533d354dfde0fdf1"/></dir><file name="Custom.php" hash="e0481aa90a30a4ae575601709e0905da"/><file name="Reviews.php" hash="9393b1ffb4f9514cad46a51db24e6ab4"/><file name="Sidebar.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<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>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
13 |
+
<date>2015-02-13</date>
|
14 |
+
<time>14:43:40</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Feedbackcompany"><dir name="Block"><dir name="Adminhtml"><dir name="Feedbacklog"><file name="Grid.php" hash="1898d4df8746111e1a5404869226b26a"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="b5fd639eea45b31779747da049b66a80"/></dir><file name="Grid.php" hash="e56fee3f655371a066e9f56ce5ae914d"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="4d2bce798a5b9c2b5d62bfe35c27d720"/><file name="Test.php" hash="040ecb43856a68dca4699a63c1e9c9f8"/></dir><dir name="Form"><file name="Heading.php" hash="8f820fe2ad56e3c4be54f7f84bc47eca"/></dir><dir name="Grid"><file name="Log.php" hash="ceff6fe31ea786257d1fd1c5c7a4ef82"/><file name="Seconds.php" hash="a7e6db7624fee7717cba3048f3f5638b"/><file name="Stars.php" hash="8041613a13a202b0df1d376dc38c5e76"/></dir><dir name="Info"><file name="Info.php" hash="fe80bd3c99f8cd6c814ab2ae8ad4cffe"/></dir></dir><file name="Feedbacklog.php" hash="eb36920b105077ca572137ccb4a9345c"/><file name="Feedbackreviews.php" hash="d1cf617989422aa0533d354dfde0fdf1"/></dir><file name="Custom.php" hash="e0481aa90a30a4ae575601709e0905da"/><file name="Reviews.php" hash="9393b1ffb4f9514cad46a51db24e6ab4"/><file name="Sidebar.php" hash="bddc59a3ee516a8b529b5053aff57c16"/><file name="Snippets.php" hash="bbd5b8aa6d21959b4a92ede1f8386481"/></dir><dir name="Helper"><file name="Data.php" hash="aeb14a4465179366280b057cb20531f4"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="1c6f30ede26cadb9fd4c51f916cbfeb2"/></dir><dir name="Reviews"><file name="Collection.php" hash="17f3acddd0e184f923d137433aaa40ee"/></dir><dir name="Stats"><file name="Collection.php" hash="184fe402b66949e0d4fdb95fc6b4189d"/></dir><file name="Log.php" hash="542d942a56d159d5c1af65ed5c6de857"/><file name="Reviews.php" hash="5518780ad915f644ed9cc319def2da8c"/><file name="Stats.php" hash="268aed9ed09e83611b12c7bbbfca5076"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attribute.php" hash="de511d86d47ae252e3097c335302c294"/><file name="Category.php" hash="43e5e5d69b764e9c93f9089e0ec64d26"/><file name="Cronfrequency.php" hash="0f0170d96c8807a440ab41fa6ccc1e13"/><file name="Orderstatus.php" hash="64429a1804e1bc5ec2f0ea89e7627fc8"/><file name="Position.php" hash="3c11a9fba6006528bb904036ca87f619"/><file name="Reviewlink.php" hash="87122c1414c49a24222288fe3e96216c"/><file name="Sidebarlink.php" hash="9e1a817b4253645b5632306ffd89dd03"/></dir></dir></dir><file name="Api.php" hash="4f22b8b40b9a1c0806f0699124a86d82"/><file name="Log.php" hash="e64de82f87f3830914240e24ccbfb402"/><file name="Observer.php" hash="19872684b325c4106a2da876e3a975e5"/><file name="Reviews.php" hash="d144787d65c37508296f731107841c84"/><file name="Stats.php" hash="48c0743e991800c4d8e04d417cc3a157"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="c1ac62ed05266768095a8c8603822c5f"/><file name="FeedbackreviewsController.php" hash="d557715248b5d3947b3ff1e01aff43bf"/></dir><file name="IndexController.php" hash="da1707d69452f5430305c20c083cba78"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8d51e2aa74e51f8de79650776cff510e"/><file name="config.xml" hash="f662581218e964a7c0fc54a87c740847"/><file name="system.xml" hash="854204261c684abe8dcce1e7ef9f77bb"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="c86ec8f3c3a12cda7dd750cbd21dfca7"/></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="252a56f88367e456af4929cdccad70bd"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="sidebar"><file name="left.phtml" hash="866fa167fc717d981dd9d2de118bd71b"/><file name="right.phtml" hash="4babba57d66920242762390c47c34a14"/></dir><dir name="widget"><file name="custom.phtml" hash="dee6009ae06269c54fc7fdf6605eb8e4"/><file name="richsnippets.phtml" hash="a33f6f6f711c31eb9a141a526ee87457"/></dir><file name="index.phtml" hash="3e6f39efe8f18cdb1ef04d1df6bca55a"/></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="89e30c33efd62d035f0d231968b471a5"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Feedbackcompany.csv" hash="5d35cb8ce29330257a28de00b45db6a8"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="4fa0e5fe513da0ec0fd77508894c1f75"/></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="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="logo.png" hash="6c8d46ba30a7ae87dcb75db12830b33f"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="75b478aac646b9e13e18b842effbe80d"/><file name="sidebar.css" hash="fe656003fb05be5ad4480239c130621c"/><file name="style.css" hash="5a5a2b9550687644af427199c87c5fb6"/></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/>
|
18 |
</package>
|