Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Feedbackcompany |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog.php +39 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog/Grid.php +126 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews.php +39 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Grid.php +167 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Renderer/Experience.php +36 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Process.php +38 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Test.php +36 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Heading.php +32 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Log.php +55 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Seconds.php +34 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Stars.php +70 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Info/Info.php +56 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Custom.php +39 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Reviews.php +64 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Sidebar.php +121 -0
- app/code/local/Magmodules/Feedbackcompany/Block/Snippets.php +51 -0
- app/code/local/Magmodules/Feedbackcompany/Helper/Data.php +54 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Api.php +117 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Log.php +61 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Log.php +28 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Log/Collection.php +29 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Reviews.php +28 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Reviews/Collection.php +29 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Stats.php +28 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Stats/Collection.php +29 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Observer.php +120 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php +133 -0
- app/code/local/Magmodules/Feedbackcompany/Model/Stats.php +110 -0
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Cronfrequency.php +35 -0
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Orderstatus.php +39 -0
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Position.php +31 -0
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Sidebarlink.php +32 -0
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php +67 -0
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php +148 -0
- app/code/local/Magmodules/Feedbackcompany/controllers/IndexController.php +51 -0
- app/code/local/Magmodules/Feedbackcompany/etc/adminhtml.xml +92 -0
- app/code/local/Magmodules/Feedbackcompany/etc/config.xml +231 -0
- app/code/local/Magmodules/Feedbackcompany/etc/system.xml +543 -0
- app/code/local/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-install-0.9.0.php +84 -0
- app/design/adminhtml/default/default/layout/magmodules_feedbackcompany.xml +16 -0
- app/design/frontend/base/default/layout/magmodules_feedbackcompany.xml +36 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/index.phtml +123 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml +71 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml +71 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/custom.phtml +39 -0
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/richsnippets.phtml +34 -0
- app/etc/modules/Magmodules_Feedbackcompany.xml +9 -0
- app/locale/en_US/Magmodules_Feedbackcompany.csv +116 -0
- app/locale/nl_NL/Magmodules_Feedbackcompany.csv +116 -0
- package.xml +18 -0
- skin/adminhtml/default/default/magmodules/feedbackcompany/grid.css +71 -0
- skin/adminhtml/default/default/magmodules/feedbackcompany/star.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/5-stars-empty.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/5-stars-full.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/greystar.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/logo.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/images/star.png +0 -0
- skin/frontend/base/default/magmodules/feedbackcompany/richsnippets.css +41 -0
- skin/frontend/base/default/magmodules/feedbackcompany/sidebar.css +44 -0
- skin/frontend/base/default/magmodules/feedbackcompany/style.css +118 -0
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
+
|
24 |
+
public function __construct() {
|
25 |
+
$this->_controller = 'adminhtml_feedbacklog';
|
26 |
+
$this->_blockGroup = 'feedbackcompany';
|
27 |
+
$this->_headerText = Mage::helper('feedbackcompany')->__('Feedbackcompany Logs');
|
28 |
+
parent::__construct();
|
29 |
+
$this->_removeButton('add');
|
30 |
+
|
31 |
+
$this->_addButton('module_controller', array(
|
32 |
+
'label' => Mage::helper('feedbackcompany')->__('Cleanup Log'),
|
33 |
+
'onclick' => "setLocation('{$this->getUrl('adminhtml/feedbacklog/clean')}')",
|
34 |
+
'confirm' => Mage::helper('feedbackcompany')->__('Are you sure you want to cleanup logfiles?'),
|
35 |
+
));
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog/Grid.php
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
+
|
24 |
+
public function __construct() {
|
25 |
+
parent::__construct();
|
26 |
+
$this->setId('feedbacklogGrid');
|
27 |
+
$this->setDefaultSort('date');
|
28 |
+
$this->setDefaultDir('DESC');
|
29 |
+
$this->setSaveParametersInSession(true);
|
30 |
+
}
|
31 |
+
|
32 |
+
protected function _prepareCollection() {
|
33 |
+
$collection = Mage::getModel('feedbackcompany/log')->getCollection();
|
34 |
+
$this->setCollection($collection);
|
35 |
+
return parent::_prepareCollection();
|
36 |
+
}
|
37 |
+
|
38 |
+
protected function _prepareColumns() {
|
39 |
+
|
40 |
+
$this->addColumn('company', array(
|
41 |
+
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
42 |
+
'index' => 'company',
|
43 |
+
'width' => '120px',
|
44 |
+
));
|
45 |
+
|
46 |
+
$this->addColumn('type', array(
|
47 |
+
'header' => Mage::helper('feedbackcompany')->__('Type'),
|
48 |
+
'align' => 'left',
|
49 |
+
'index' => 'type',
|
50 |
+
'width' => '120',
|
51 |
+
'type' => 'options',
|
52 |
+
'options' => array(
|
53 |
+
'reviews' => Mage::helper('feedbackcompany')->__('Reviews'),
|
54 |
+
'invitation' => Mage::helper('feedbackcompany')->__('Invitation Call'),
|
55 |
+
),
|
56 |
+
));
|
57 |
+
|
58 |
+
if(Mage::app()->getRequest()->getParam('showapiurl')) {
|
59 |
+
$this->addColumn('api_url', array(
|
60 |
+
'header' => Mage::helper('feedbackcompany')->__('Api URL'),
|
61 |
+
'align' => 'left',
|
62 |
+
'index' => 'api_url',
|
63 |
+
'filter' => false,
|
64 |
+
'sortable' => false,
|
65 |
+
));
|
66 |
+
}
|
67 |
+
|
68 |
+
$this->addColumn('qty', array(
|
69 |
+
'header' => Mage::helper('feedbackcompany')->__('Description'),
|
70 |
+
'align' => 'left',
|
71 |
+
'index' => 'qty',
|
72 |
+
'renderer' => 'feedbackcompany/adminhtml_widget_grid_log',
|
73 |
+
'filter' => false,
|
74 |
+
'sortable' => false,
|
75 |
+
));
|
76 |
+
|
77 |
+
$this->addColumn('cron', array(
|
78 |
+
'header' => Mage::helper('feedbackcompany')->__('Cron'),
|
79 |
+
'align' => 'left',
|
80 |
+
'index' => 'cron',
|
81 |
+
'width' => '120',
|
82 |
+
'type' => 'options',
|
83 |
+
'options' => array(
|
84 |
+
'' => Mage::helper('feedbackcompany')->__('Manual'),
|
85 |
+
'stats' => Mage::helper('feedbackcompany')->__('Stats Cron'),
|
86 |
+
'reviews' => Mage::helper('feedbackcompany')->__('Reviews Cron'),
|
87 |
+
'orderupdate' => Mage::helper('feedbackcompany')->__('Invitation'),
|
88 |
+
),
|
89 |
+
));
|
90 |
+
|
91 |
+
$this->addColumn('time', array(
|
92 |
+
'header' => Mage::helper('feedbackcompany')->__('Time'),
|
93 |
+
'align' => 'left',
|
94 |
+
'index' => 'time',
|
95 |
+
'width' => '60',
|
96 |
+
'renderer' => 'feedbackcompany/adminhtml_widget_grid_seconds',
|
97 |
+
));
|
98 |
+
|
99 |
+
$this->addColumn('date', array(
|
100 |
+
'header' => Mage::helper('feedbackcompany')->__('Date'),
|
101 |
+
'align' => 'left',
|
102 |
+
'type' => 'datetime',
|
103 |
+
'index' => 'date',
|
104 |
+
'width' => '140',
|
105 |
+
));
|
106 |
+
|
107 |
+
return parent::_prepareColumns();
|
108 |
+
}
|
109 |
+
|
110 |
+
protected function _prepareMassaction() {
|
111 |
+
$this->setMassactionIdField('id');
|
112 |
+
$this->getMassactionBlock()->setFormFieldName('logids');
|
113 |
+
|
114 |
+
$this->getMassactionBlock()->addItem('hide', array(
|
115 |
+
'label' => Mage::helper('feedbackcompany')->__('Delete'),
|
116 |
+
'url' => $this->getUrl('*/*/massDelete'),
|
117 |
+
));
|
118 |
+
return $this;
|
119 |
+
}
|
120 |
+
|
121 |
+
public function getRowUrl($row)
|
122 |
+
{
|
123 |
+
return;
|
124 |
+
}
|
125 |
+
|
126 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
+
|
24 |
+
public function __construct() {
|
25 |
+
$this->_controller = 'adminhtml_feedbackreviews';
|
26 |
+
$this->_blockGroup = 'feedbackcompany';
|
27 |
+
$this->_headerText = Mage::helper('feedbackcompany')->__('Feedbackcompany Reviews');
|
28 |
+
parent::__construct();
|
29 |
+
$this->_removeButton('add');
|
30 |
+
|
31 |
+
$this->_addButton('module_controller', array(
|
32 |
+
'label' => Mage::helper('feedbackcompany')->__('Delete all reviews'),
|
33 |
+
'onclick' => "setLocation('{$this->getUrl('adminhtml/feedbackreviews/truncate')}')",
|
34 |
+
'confirm' => Mage::helper('feedbackcompany')->__('Are you sure you want to delete all reviews?'),
|
35 |
+
));
|
36 |
+
|
37 |
+
}
|
38 |
+
|
39 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Grid.php
ADDED
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
+
|
24 |
+
public function __construct() {
|
25 |
+
parent::__construct();
|
26 |
+
$this->setId('reviewsGrid');
|
27 |
+
$this->setDefaultSort('date_created');
|
28 |
+
$this->setDefaultDir('DESC');
|
29 |
+
$this->setSaveParametersInSession(true);
|
30 |
+
}
|
31 |
+
|
32 |
+
protected function _prepareCollection() {
|
33 |
+
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
34 |
+
$this->setCollection($collection);
|
35 |
+
return parent::_prepareCollection();
|
36 |
+
}
|
37 |
+
|
38 |
+
protected function _prepareColumns() {
|
39 |
+
|
40 |
+
$this->addColumn('company', array(
|
41 |
+
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
42 |
+
'index' => 'company',
|
43 |
+
'width' => '120px',
|
44 |
+
));
|
45 |
+
|
46 |
+
$this->addColumn('customer_name', array(
|
47 |
+
'header' => Mage::helper('feedbackcompany')->__('User'),
|
48 |
+
'align' => 'left',
|
49 |
+
'index' => 'customer_name',
|
50 |
+
));
|
51 |
+
|
52 |
+
$this->addColumn('purchased_products', array(
|
53 |
+
'header' => Mage::helper('feedbackcompany')->__('Product(s)'),
|
54 |
+
'align' => 'left',
|
55 |
+
'index' => 'purchased_products',
|
56 |
+
));
|
57 |
+
|
58 |
+
$this->addColumn('review_text', array(
|
59 |
+
'header' => Mage::helper('feedbackcompany')->__('Review'),
|
60 |
+
'align' => 'left',
|
61 |
+
'index' => 'review_text',
|
62 |
+
'renderer' => 'feedbackcompany/adminhtml_feedbackreviews_renderer_experience',
|
63 |
+
));
|
64 |
+
|
65 |
+
$this->addColumn('score', array(
|
66 |
+
'header' => Mage::helper('feedbackcompany')->__('Score'),
|
67 |
+
'align' => 'left',
|
68 |
+
'index' => 'score',
|
69 |
+
'renderer' => 'feedbackcompany/adminhtml_widget_grid_stars',
|
70 |
+
'width' => '110',
|
71 |
+
'filter' => false,
|
72 |
+
'sortable' => true,
|
73 |
+
));
|
74 |
+
|
75 |
+
$this->addColumn('customer_active', array(
|
76 |
+
'header' => Mage::helper('feedbackcompany')->__('Purchase'),
|
77 |
+
'align' => 'left',
|
78 |
+
'index' => 'customer_active',
|
79 |
+
'type' => 'options',
|
80 |
+
'options' => array(
|
81 |
+
'sometimes' => Mage::helper('feedbackcompany')->__('Sometimes'),
|
82 |
+
'regularly' => Mage::helper('feedbackcompany')->__('Regularly'),
|
83 |
+
'often' => Mage::helper('feedbackcompany')->__('Often'),
|
84 |
+
),
|
85 |
+
));
|
86 |
+
|
87 |
+
$this->addColumn('customer_sex', array(
|
88 |
+
'header' => Mage::helper('feedbackcompany')->__('Gender'),
|
89 |
+
'align' => 'left',
|
90 |
+
'index' => 'customer_sex',
|
91 |
+
'type' => 'options',
|
92 |
+
'options' => array(
|
93 |
+
'male' => Mage::helper('feedbackcompany')->__('Male'),
|
94 |
+
'female' => Mage::helper('feedbackcompany')->__('Female'),
|
95 |
+
),
|
96 |
+
));
|
97 |
+
|
98 |
+
$this->addColumn('customer_age', array(
|
99 |
+
'header' => Mage::helper('feedbackcompany')->__('Age'),
|
100 |
+
'align' => 'left',
|
101 |
+
'index' => 'customer_age',
|
102 |
+
'width' => '50',
|
103 |
+
));
|
104 |
+
|
105 |
+
$this->addColumn('date_created', array(
|
106 |
+
'header' => Mage::helper('feedbackcompany')->__('Date'),
|
107 |
+
'align' => 'left',
|
108 |
+
'type' => 'date',
|
109 |
+
'index' => 'date_created',
|
110 |
+
'width' => '140',
|
111 |
+
));
|
112 |
+
|
113 |
+
$this->addColumn('sidebar', array(
|
114 |
+
'header' => Mage::helper('feedbackcompany')->__('Sidebar'),
|
115 |
+
'align' => 'left',
|
116 |
+
'width' => '80px',
|
117 |
+
'index' => 'sidebar',
|
118 |
+
'type' => 'options',
|
119 |
+
'options' => array(
|
120 |
+
0 => Mage::helper('feedbackcompany')->__('No'),
|
121 |
+
1 => Mage::helper('feedbackcompany')->__('Yes'),
|
122 |
+
),
|
123 |
+
));
|
124 |
+
|
125 |
+
$this->addColumn('status', array(
|
126 |
+
'header' => Mage::helper('feedbackcompany')->__('Active'),
|
127 |
+
'align' => 'left',
|
128 |
+
'width' => '80px',
|
129 |
+
'index' => 'status',
|
130 |
+
'type' => 'options',
|
131 |
+
'options' => array(
|
132 |
+
0 => Mage::helper('feedbackcompany')->__('No'),
|
133 |
+
1 => Mage::helper('feedbackcompany')->__('Yes'),
|
134 |
+
),
|
135 |
+
));
|
136 |
+
|
137 |
+
return parent::_prepareColumns();
|
138 |
+
}
|
139 |
+
|
140 |
+
protected function _prepareMassaction() {
|
141 |
+
$this->setMassactionIdField('review_id');
|
142 |
+
$this->getMassactionBlock()->setFormFieldName('reviewids');
|
143 |
+
|
144 |
+
$this->getMassactionBlock()->addItem('hide', array(
|
145 |
+
'label' => Mage::helper('feedbackcompany')->__('Set to invisible'),
|
146 |
+
'url' => $this->getUrl('*/*/massDisable'),
|
147 |
+
));
|
148 |
+
$this->getMassactionBlock()->addItem('visible', array(
|
149 |
+
'label' => Mage::helper('feedbackcompany')->__('Set to visible'),
|
150 |
+
'url' => $this->getUrl('*/*/massEnable'),
|
151 |
+
));
|
152 |
+
$this->getMassactionBlock()->addItem('addsidebar', array(
|
153 |
+
'label' => Mage::helper('feedbackcompany')->__('Add to Sidebar'),
|
154 |
+
'url' => $this->getUrl('*/*/massEnableSidebar'),
|
155 |
+
));
|
156 |
+
$this->getMassactionBlock()->addItem('removesidebar', array(
|
157 |
+
'label' => Mage::helper('feedbackcompany')->__('Remove from Sidebar'),
|
158 |
+
'url' => $this->getUrl('*/*/massDisableSidebar'),
|
159 |
+
));
|
160 |
+
return $this;
|
161 |
+
}
|
162 |
+
|
163 |
+
public function getRowUrl($row) {
|
164 |
+
return false;
|
165 |
+
}
|
166 |
+
|
167 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Renderer/Experience.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Renderer_Experience extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
23 |
+
|
24 |
+
public function render(Varien_Object $row) {
|
25 |
+
$value = $row->getData($this->getColumn()->getIndex());
|
26 |
+
$char_limit = '100';
|
27 |
+
if(strlen($value) > $char_limit) {
|
28 |
+
$content_small = Mage::helper('core/string')->truncate($value, $char_limit, ' ... <a href="#" class="magtooltip" alt="">(meer)', $_remainder, true);
|
29 |
+
$content = $content_small . '<span>' . $value . '</span></a>';
|
30 |
+
return $content;
|
31 |
+
} else {
|
32 |
+
return $value;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Process.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Process extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
+
|
24 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
25 |
+
$this->setElement($element);
|
26 |
+
$url = $this->getUrl('*/feedbackreviews/process');
|
27 |
+
|
28 |
+
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
+
->setType('button')
|
30 |
+
->setClass('scalable')
|
31 |
+
->setLabel(Mage::helper('feedbackcompany')->__('Process Manually'))
|
32 |
+
->setOnClick("setLocation('$url')")
|
33 |
+
->toHtml();
|
34 |
+
|
35 |
+
return $html;
|
36 |
+
}
|
37 |
+
|
38 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Test.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Test extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
23 |
+
|
24 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
25 |
+
$this->setElement($element);
|
26 |
+
$url = $this->getUrl('*/feedbackreviews/testapi');
|
27 |
+
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
28 |
+
->setType('button')
|
29 |
+
->setClass('scalable')
|
30 |
+
->setLabel(Mage::helper('feedbackcompany')->__('Test API'))
|
31 |
+
->setOnClick("setLocation('$url')")
|
32 |
+
->toHtml();
|
33 |
+
return $html;
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Heading.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Form_Heading extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
23 |
+
|
24 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
+
$useContainerId = $element->getData('use_container_id');
|
27 |
+
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
28 |
+
$element->getHtmlId(), $element->getLabel()
|
29 |
+
);
|
30 |
+
}
|
31 |
+
|
32 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Log.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
|
4 |
+
* =============================================================
|
5 |
+
* NOTICE OF LICENSE [Single domain license]
|
6 |
+
* This source file is subject to the EULA that is
|
7 |
+
* available through the world-wide-web at:
|
8 |
+
* http://www.magmodules.eu/license-agreement/
|
9 |
+
* =============================================================
|
10 |
+
* @category Magmodules
|
11 |
+
* @package Magmodules_Shopreview
|
12 |
+
* @author Magmodules <info@magmodules.eu>
|
13 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
14 |
+
* @license http://www.magmodules.eu/license-agreement/
|
15 |
+
* =============================================================
|
16 |
+
*/
|
17 |
+
|
18 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
19 |
+
|
20 |
+
public function render(Varien_Object $row) {
|
21 |
+
$type = $row->getType();
|
22 |
+
$msg = '';
|
23 |
+
|
24 |
+
if($type == 'reviews') {
|
25 |
+
$updates = '';
|
26 |
+
if($row->getReviewNew() > 0) {
|
27 |
+
$msg .= Mage::helper('feedbackcompany')->__('%s new review(s)', $row->getReviewNew());
|
28 |
+
$updates++;
|
29 |
+
}
|
30 |
+
if($row->getReviewUpdate() > 0) {
|
31 |
+
if($updates > 0) {
|
32 |
+
$msg .= ', ';
|
33 |
+
}
|
34 |
+
$msg .= Mage::helper('feedbackcompany')->__('%s review(s) updated', $row->getReviewUpdate());
|
35 |
+
$updates++;
|
36 |
+
}
|
37 |
+
if($updates > 0) {
|
38 |
+
$msg .= ' & ';
|
39 |
+
}
|
40 |
+
$msg .= Mage::helper('feedbackcompany')->__('total score updated');
|
41 |
+
}
|
42 |
+
|
43 |
+
if($type == 'invitation') {
|
44 |
+
if($row->getOrderId()) {
|
45 |
+
$order = Mage::getModel('sales/order')->load($row->getOrderId());
|
46 |
+
$increment_id = $order->getIncrementId();
|
47 |
+
$order_url = Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id'=> $row->getOrderId()));
|
48 |
+
$msg = Mage::helper('feedbackcompany')->__('%s - Repsonse: %s', '<a href="' . $order_url . '">#' . $increment_id .'</a>', $row->getResponse());
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
return ucfirst($msg);
|
53 |
+
}
|
54 |
+
|
55 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Seconds.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Seconds extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
+
|
24 |
+
public function render(Varien_Object $row) {
|
25 |
+
$value = $row->getData($this->getColumn()->getIndex());
|
26 |
+
|
27 |
+
if($value > 0) {
|
28 |
+
$value = number_format($value, 3, '.', '');
|
29 |
+
}
|
30 |
+
|
31 |
+
return $value;
|
32 |
+
}
|
33 |
+
|
34 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Stars.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Stars extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
+
|
24 |
+
public function render(Varien_Object $row) {
|
25 |
+
$value = $row->getData($this->getColumn()->getIndex());
|
26 |
+
|
27 |
+
if($value == '0') {
|
28 |
+
$output = '';
|
29 |
+
} else {
|
30 |
+
$output = '<span class="rating-empty"><span class="rating-star-' . $value . '"></span></span>';
|
31 |
+
$output .= '<a href="#" class="magtooltip" alt="">(i)<span>';
|
32 |
+
|
33 |
+
if($row->getData('score_aftersales') > 0) {
|
34 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Aftersales:') . '</strong> ' . $row->getData('score_aftersales') . '/5<br>';
|
35 |
+
}
|
36 |
+
if($row->getData('score_checkout') > 0) {
|
37 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Checkout process:') . '</strong> ' . $row->getData('score_checkout') . '/5<br>';
|
38 |
+
}
|
39 |
+
if($row->getData('score_information' > 0)) {
|
40 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Information:') . '</strong> ' . $row->getData('score_information') . '/5<br>';
|
41 |
+
}
|
42 |
+
if($row->getData('score_friendly') > 0) {
|
43 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Customer Friendlyness:') . '</strong> ' . $row->getData('score_friendly') . '/5<br>';
|
44 |
+
}
|
45 |
+
if($row->getData('score_leadtime') > 0) {
|
46 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Leadtime:') . '</strong> ' . $row->getData('score_leadtime') . '/5<br>';
|
47 |
+
}
|
48 |
+
if($row->getData('score_responsetime') > 0) {
|
49 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Repsonsetime:') . '</strong> ' . $row->getData('score_responsetime') . '/5<br>';
|
50 |
+
}
|
51 |
+
if($row->getData('score_order') > 0) {
|
52 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Order process:') . '</strong> ' . $row->getData('score_order') . '/5<br>';
|
53 |
+
}
|
54 |
+
|
55 |
+
$output .= '<br/>';
|
56 |
+
|
57 |
+
if($row->getData('text_positive')) {
|
58 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Strong:') . '</strong> ' . $row->getData('text_positive') .'<br>';
|
59 |
+
}
|
60 |
+
if($row->getData('text_improvements')) {
|
61 |
+
$output .= '<strong>' . Mage::helper('feedbackcompany')->__('Can do better:') . '</strong> ' . $row->getData('text_improvements') .'<br>';
|
62 |
+
}
|
63 |
+
|
64 |
+
$output .= '</span></a>';
|
65 |
+
}
|
66 |
+
|
67 |
+
return $output;
|
68 |
+
}
|
69 |
+
|
70 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Info/Info.php
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
24 |
+
|
25 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
26 |
+
{
|
27 |
+
$html = '<div style="background:url(\'http://www.magmodules.eu/_logo.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
28 |
+
<h4>About Magmodules.eu</h4>
|
29 |
+
<p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
|
30 |
+
<br />
|
31 |
+
<table width="500px" border="0">
|
32 |
+
<tr>
|
33 |
+
<td width="58%">View more extensions from us:</td>
|
34 |
+
<td width="42%"><a href="http://www.magentocommerce.com/magento-connect/developer/Magmodules" target="_blank">Magento Connect</a></td>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<td>Question about this extension?</td>
|
38 |
+
<td><a href="http://www.magmodules.eu/contactus">Contact us</a></td>
|
39 |
+
</tr>
|
40 |
+
<tr>
|
41 |
+
<td> </td>
|
42 |
+
<td> </td>
|
43 |
+
</tr>
|
44 |
+
<td>Send us an E-mail:
|
45 |
+
<td><a href="mailto:info@magmodules.eu">info@magmodules.eu</a></td>
|
46 |
+
</tr>
|
47 |
+
<tr>
|
48 |
+
<td height="30">Visit our website:</td>
|
49 |
+
<td><a href="http://www.magmodules.eu" target="_blank">www.magmodules.eu</a></td>
|
50 |
+
</tr>
|
51 |
+
</table>
|
52 |
+
</div>';
|
53 |
+
|
54 |
+
return $html;
|
55 |
+
}
|
56 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Custom.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
23 |
+
|
24 |
+
protected function _construct() {
|
25 |
+
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
26 |
+
$this->setFeedbackcompanyEnabled(1);
|
27 |
+
} else {
|
28 |
+
$this->setFeedbackcompanyEnabled(0);
|
29 |
+
}
|
30 |
+
|
31 |
+
parent::_construct();
|
32 |
+
$this->setTemplate('magmodules/feedbackcompany/widget/custom.phtml');
|
33 |
+
}
|
34 |
+
|
35 |
+
public function getFeedbackcompanyData() {
|
36 |
+
return $this->helper('feedbackcompany')->getTotalScore();
|
37 |
+
}
|
38 |
+
|
39 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Reviews.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Reviews extends Mage_Core_Block_Template {
|
23 |
+
|
24 |
+
public function __construct() {
|
25 |
+
parent::__construct();
|
26 |
+
|
27 |
+
// Load Reviews
|
28 |
+
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
29 |
+
$collection->setOrder('date_created', 'DESC');
|
30 |
+
$collection->addFieldToFilter('status',1);
|
31 |
+
$collection->addFieldToFilter('shop_id', Mage::getStoreConfig('feedbackcompany/general/api_id'));
|
32 |
+
$this->setReviews($collection);
|
33 |
+
|
34 |
+
// Load Stats
|
35 |
+
$stats = Mage::getModel('feedbackcompany/stats')->load(Mage::getStoreConfig('feedbackcompany/general/api_id'), 'shop_id');
|
36 |
+
$this->setStats($stats);
|
37 |
+
}
|
38 |
+
|
39 |
+
public function _prepareLayout() {
|
40 |
+
parent::_prepareLayout();
|
41 |
+
$pager = $this->getLayout()->createBlock('page/html_pager', 'feedbackcompany.pager');
|
42 |
+
if(Mage::getStoreConfig('feedbackcompany/overview/enable_paging')) {
|
43 |
+
$fieldPerPage = Mage::getStoreConfig('feedbackcompany/overview/paging_settings');
|
44 |
+
$fieldPerPage = explode(',', $fieldPerPage);
|
45 |
+
$fieldPerPage = array_combine($fieldPerPage, $fieldPerPage);
|
46 |
+
$pager->setAvailableLimit($fieldPerPage);
|
47 |
+
} else {
|
48 |
+
$pager->setAvailableLimit(array('all'=>'all'));
|
49 |
+
}
|
50 |
+
$pager->setCollection($this->getReviews());
|
51 |
+
$this->setChild('pager', $pager);
|
52 |
+
$this->getReviews()->load();
|
53 |
+
return $this;
|
54 |
+
}
|
55 |
+
|
56 |
+
public function getPagerHtml() {
|
57 |
+
return $this->getChildHtml('pager');
|
58 |
+
}
|
59 |
+
|
60 |
+
public function getFormUrl() {
|
61 |
+
return $this->helper('feedbackcompany')->getFormUrl();
|
62 |
+
}
|
63 |
+
|
64 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Sidebar.php
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
+
|
24 |
+
protected function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
}
|
27 |
+
|
28 |
+
function getSidebarCollection($sidebar) {
|
29 |
+
|
30 |
+
$enabled = '';
|
31 |
+
$qty = '5';
|
32 |
+
|
33 |
+
if(Mage::getStoreConfig('feedbackcompany/general/enabled')):
|
34 |
+
if($sidebar == 'left'):
|
35 |
+
$qty = Mage::getStoreConfig('feedbackcompany/sidebar/left_qty');
|
36 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/left');
|
37 |
+
endif;
|
38 |
+
if($sidebar == 'right'):
|
39 |
+
$qty = Mage::getStoreConfig('feedbackcompany/sidebar/right_qty');
|
40 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/right');
|
41 |
+
endif;
|
42 |
+
endif;
|
43 |
+
|
44 |
+
if($enabled):
|
45 |
+
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
46 |
+
$collection = Mage::getModel("feedbackcompany/reviews")->getCollection();
|
47 |
+
$collection->setOrder('date_created', 'DESC');
|
48 |
+
$collection->addFieldToFilter('status',1);
|
49 |
+
$collection->addFieldToFilter('sidebar',1);
|
50 |
+
$collection->addFieldToFilter('shop_id', array('eq'=> array($shop_id)));
|
51 |
+
$collection->setPageSize($qty);
|
52 |
+
$collection->load();
|
53 |
+
return $collection;
|
54 |
+
else:
|
55 |
+
return false;
|
56 |
+
endif;
|
57 |
+
}
|
58 |
+
|
59 |
+
function formatContent($sidebarreview, $sidebar = 'left') {
|
60 |
+
|
61 |
+
$content = $sidebarreview->getReviewText();
|
62 |
+
|
63 |
+
if($sidebar == 'left'):
|
64 |
+
$char_limit = Mage::getStoreConfig('feedbackcompany/sidebar/left_lenght');
|
65 |
+
endif;
|
66 |
+
if($sidebar == 'right'):
|
67 |
+
$char_limit = Mage::getStoreConfig('feedbackcompany/sidebar/right_lenght');
|
68 |
+
endif;
|
69 |
+
|
70 |
+
$content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
|
71 |
+
return $content;
|
72 |
+
|
73 |
+
}
|
74 |
+
|
75 |
+
function getReviewsUrl($sidebar = 'left') {
|
76 |
+
|
77 |
+
if($sidebar == 'left'):
|
78 |
+
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
79 |
+
endif;
|
80 |
+
if($sidebar == 'right'):
|
81 |
+
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_right');
|
82 |
+
endif;
|
83 |
+
|
84 |
+
if($link == 'internal'):
|
85 |
+
$url = $this->getUrl('feedbackcompany');
|
86 |
+
endif;
|
87 |
+
if($link == 'external'):
|
88 |
+
$url = Mage::getStoreConfig('feedbackcompany/general/url');
|
89 |
+
endif;
|
90 |
+
|
91 |
+
if($url) {
|
92 |
+
return '<a href="' . $url . '">' . $this->__('View all reviews') . '</a>';
|
93 |
+
} else {
|
94 |
+
return false;
|
95 |
+
}
|
96 |
+
|
97 |
+
}
|
98 |
+
|
99 |
+
function getSnippetsEnabled($sidebar = 'left') {
|
100 |
+
|
101 |
+
if($sidebar == 'left'):
|
102 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/left_snippets');
|
103 |
+
endif;
|
104 |
+
if($sidebar == 'right'):
|
105 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/right_snippets');
|
106 |
+
endif;
|
107 |
+
|
108 |
+
$homepage = Mage::getBlockSingleton('page/html_header')->getIsHomePage();
|
109 |
+
|
110 |
+
if($enabled && $homepage) {
|
111 |
+
return true;
|
112 |
+
} else {
|
113 |
+
return false;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
public function getTotalScore() {
|
118 |
+
return $this->helper('feedbackcompany')->getTotalScore();
|
119 |
+
}
|
120 |
+
|
121 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Snippets.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Block_Snippets extends Mage_Core_Block_Template {
|
23 |
+
|
24 |
+
protected function _construct()
|
25 |
+
{
|
26 |
+
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
27 |
+
$this->setSnippetsEnabled(1);
|
28 |
+
} else {
|
29 |
+
$this->setSnippetsEnabled(0);
|
30 |
+
}
|
31 |
+
|
32 |
+
parent::_construct();
|
33 |
+
$this->setTemplate('magmodules/feedbackcompany/widget/richsnippets.phtml');
|
34 |
+
}
|
35 |
+
|
36 |
+
public function getSnippets()
|
37 |
+
{
|
38 |
+
return $this->helper('feedbackcompany')->getTotalScore();
|
39 |
+
}
|
40 |
+
|
41 |
+
public function getHtmlStars($rating)
|
42 |
+
{
|
43 |
+
return $this->helper('feedbackcompany')->getHtmlStars($rating);
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getExternalLink()
|
47 |
+
{
|
48 |
+
return $this->helper('feedbackcompany')->getExternalLink();
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Helper/Data.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
23 |
+
|
24 |
+
public function getTotalScore() {
|
25 |
+
$qty = 0; $rating = 0;
|
26 |
+
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id');
|
27 |
+
$review_stats = Mage::getModel('feedbackcompany/stats')->load($shop_id, 'shop_id');
|
28 |
+
if($review_stats->getScore() > 0) {
|
29 |
+
$review_stats->setPercentage($review_stats->getScore() * 2);
|
30 |
+
$review_stats->setStarsQty(number_format(($review_stats->getScore() / 10), 2, '.', ''));
|
31 |
+
return $review_stats;
|
32 |
+
} else {
|
33 |
+
return false;
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
function getExternalLink() {
|
38 |
+
if(Mage::getStoreConfig('feedbackcompany/general/url')) {
|
39 |
+
return Mage::helper('feedbackcompany')->__('on') . ' <a href="' . Mage::getStoreConfig('feedbackcompany/general/url'). '" target="_blank">Feedbackcompany.nl</a>';
|
40 |
+
} else {
|
41 |
+
return false;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
|
45 |
+
function getHtmlStars($rating)
|
46 |
+
{
|
47 |
+
$perc = $rating;
|
48 |
+
$html = '<div class="rating-box">';
|
49 |
+
$html .= ' <div class="rating" style="width:' . $perc . '%"></div>';
|
50 |
+
$html .= '</div>';
|
51 |
+
return $html;
|
52 |
+
}
|
53 |
+
|
54 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Api.php
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
23 |
+
|
24 |
+
public function processFeed($storeid = 0, $type) {
|
25 |
+
if($feed = $this->getFeed($storeid, $type)) {
|
26 |
+
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $type);
|
27 |
+
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
28 |
+
return $results;
|
29 |
+
} else {
|
30 |
+
return false;
|
31 |
+
}
|
32 |
+
}
|
33 |
+
|
34 |
+
public function getFeed($storeid, $type = '') {
|
35 |
+
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
36 |
+
|
37 |
+
if($type == 'stats') {
|
38 |
+
$api_url = 'https://beoordelingen.feedbackcompany.nl/samenvoordeel/scripts/flexreview/getreviewxml.cfm?ws=' . $api_id . '&publishDetails=0&nor=0';
|
39 |
+
}
|
40 |
+
if($type == 'reviews') {
|
41 |
+
$api_url = 'https://beoordelingen.feedbackcompany.nl/samenvoordeel/scripts/flexreview/getreviewxml.cfm?ws=' . $api_id . '&publishIDs=1&nor=50&publishDetails=1&publishOnHold=0&sort=desc&emlpass=test';
|
42 |
+
}
|
43 |
+
if($type == 'history') {
|
44 |
+
$api_url = 'https://beoordelingen.feedbackcompany.nl/samenvoordeel/scripts/flexreview/getreviewxml.cfm?ws=' . $api_id . '&publishIDs=1&nor=5000&publishDetails=1&publishOnHold=0&sort=desc&emlpass=test';
|
45 |
+
}
|
46 |
+
|
47 |
+
if($api_id) {
|
48 |
+
$xml = simplexml_load_file($api_url);
|
49 |
+
if($xml) {
|
50 |
+
return $xml;
|
51 |
+
} else {
|
52 |
+
return false;
|
53 |
+
}
|
54 |
+
} else {
|
55 |
+
return false;
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
public function sendInvitation($order) {
|
60 |
+
$start_time = microtime(true);
|
61 |
+
$crontype = 'orderupdate';
|
62 |
+
$order_id = $order->getIncrementId();
|
63 |
+
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $order->getStoreId());
|
64 |
+
$api_key = Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId());
|
65 |
+
$delay = Mage::getStoreConfig('feedbackcompany/invitation/delay', $order->getStoreId());
|
66 |
+
$remind_delay = Mage::getStoreConfig('feedbackcompany/invitation/remind_delay', $order->getStoreId());
|
67 |
+
$resend = Mage::getStoreConfig('feedbackcompany/invitation/resend', $order->getStoreId());
|
68 |
+
$email = strtolower($order->getCustomerEmail());
|
69 |
+
$order_number = $order->getIncrementID();
|
70 |
+
$check_sum = 0;
|
71 |
+
$products = array();
|
72 |
+
|
73 |
+
// Get all product IDs
|
74 |
+
foreach($order->getAllVisibleItems() as $item) {
|
75 |
+
$products[] = urlencode($item->getName());
|
76 |
+
}
|
77 |
+
$products = implode(',', $products);
|
78 |
+
|
79 |
+
// Get Checksum
|
80 |
+
for($i = 0; $i < strlen($email); $i++) {
|
81 |
+
$check_sum += ord($email[$i]);
|
82 |
+
}
|
83 |
+
|
84 |
+
$api_url = "https://connect.feedbackcompany.nl/feedback/?action=sendInvitation&connector=" . $api_key . "&user=" . $email . "&delay=" . $delay . "&remindDelay=" . $remind_delay . "&resendIfDouble=" . $resend . "&orderNumber=" . $order_number . "&Chksum=" . $check_sum . "&product=" . Mage::helper('core')->escapeHtml($products);
|
85 |
+
|
86 |
+
// Connect to API
|
87 |
+
$feedbackconnect = curl_init($api_url);
|
88 |
+
curl_setopt($feedbackconnect, CURLOPT_VERBOSE, 1);
|
89 |
+
curl_setopt($feedbackconnect, CURLOPT_FAILONERROR, false);
|
90 |
+
curl_setopt($feedbackconnect, CURLOPT_HEADER, 0);
|
91 |
+
curl_setopt($feedbackconnect, CURLOPT_FOLLOWLOCATION, 1);
|
92 |
+
curl_setopt($feedbackconnect, CURLOPT_RETURNTRANSFER, 1);
|
93 |
+
curl_setopt($feedbackconnect, CURLOPT_SSL_VERIFYPEER, false);
|
94 |
+
$response = curl_exec($feedbackconnect);
|
95 |
+
curl_close($feedbackconnect);
|
96 |
+
|
97 |
+
// Write to log
|
98 |
+
$writelog = Mage::getModel('feedbackcompany/log')->addToLog('invitation', $order->getStoreId(), '', $response, (microtime(true) - $start_time), $crontype, $api_url, $order->getId());
|
99 |
+
return true;
|
100 |
+
}
|
101 |
+
|
102 |
+
public function getStoreIds() {
|
103 |
+
$resource = Mage::getSingleton('core/resource');
|
104 |
+
$read = $resource->getConnection('core_read');
|
105 |
+
$query = "SELECT DISTINCT value, scope_id FROM " . $resource->getTableName('core/config_data') . " WHERE path LIKE 'feedbackcompany/general/api_id'";
|
106 |
+
$results = $read->fetchAll($query);
|
107 |
+
$storeids = array();
|
108 |
+
|
109 |
+
foreach($results as $result) {
|
110 |
+
if($result['value'] > 0) {
|
111 |
+
$storeids[] = $result['scope_id'];
|
112 |
+
}
|
113 |
+
}
|
114 |
+
return $storeids;
|
115 |
+
}
|
116 |
+
|
117 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Log.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Log extends Mage_Core_Model_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
$this->_init('feedbackcompany/log');
|
27 |
+
}
|
28 |
+
|
29 |
+
public function addToLog($type, $storeid, $review = '', $inivation = '', $time, $crontype = '', $api_url = '', $orderid = '') {
|
30 |
+
|
31 |
+
if(Mage::getStoreConfig('feedbackcompany/log/enabled')) {
|
32 |
+
|
33 |
+
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
34 |
+
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
35 |
+
$review_updates = '';
|
36 |
+
$review_new = '';
|
37 |
+
|
38 |
+
if($review) {
|
39 |
+
$review_updates = $review['review_updates'];
|
40 |
+
$review_new = $review['review_new'];
|
41 |
+
}
|
42 |
+
|
43 |
+
$model = Mage::getModel('feedbackcompany/log');
|
44 |
+
$model->setType($type)
|
45 |
+
->setShopId($api_id)
|
46 |
+
->setCompany($company)
|
47 |
+
->setReviewUpdate($review_updates)
|
48 |
+
->setReviewNew($review_new)
|
49 |
+
->setResponse($inivation)
|
50 |
+
->setOrderId($orderid)
|
51 |
+
->setCron($crontype)
|
52 |
+
->setDate(now())
|
53 |
+
->setTime($time)
|
54 |
+
->setApiUrl($api_url)
|
55 |
+
->save();
|
56 |
+
}
|
57 |
+
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Log.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
$this->_init('feedbackcompany/log', 'id');
|
26 |
+
}
|
27 |
+
|
28 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Log/Collection.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
$this->_init('feedbackcompany/log');
|
27 |
+
}
|
28 |
+
|
29 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Reviews.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
$this->_init('feedbackcompany/reviews', 'review_id');
|
26 |
+
}
|
27 |
+
|
28 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Reviews/Collection.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
$this->_init('feedbackcompany/reviews');
|
27 |
+
}
|
28 |
+
|
29 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Stats.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
$this->_init('feedbackcompany/stats', 'id');
|
26 |
+
}
|
27 |
+
|
28 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Stats/Collection.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
$this->_init('feedbackcompany/stats');
|
27 |
+
}
|
28 |
+
|
29 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Observer.php
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Observer {
|
23 |
+
|
24 |
+
public function processStats() {
|
25 |
+
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
26 |
+
foreach($storeids as $storeid) {
|
27 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
28 |
+
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
29 |
+
if($enabled && $cron_enabled) {
|
30 |
+
$crontype = 'stats';
|
31 |
+
$start_time = microtime(true);
|
32 |
+
$feed = Mage::getModel('feedbackcompany/api')->getFeed($storeid, $crontype);
|
33 |
+
$resuls = array();
|
34 |
+
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
35 |
+
$results['company'] = $feed->company;
|
36 |
+
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
37 |
+
}
|
38 |
+
}
|
39 |
+
Mage::getModel('feedbackcompany/stats')->processOverall();
|
40 |
+
}
|
41 |
+
|
42 |
+
public function processReviews() {
|
43 |
+
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
44 |
+
foreach($storeids as $storeid) {
|
45 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
46 |
+
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
47 |
+
if($enabled && $cron_enabled) {
|
48 |
+
$crontype = 'reviews';
|
49 |
+
$start_time = microtime(true);
|
50 |
+
$feed = Mage::getModel('feedbackcompany/api')->getFeed($storeid, $crontype);
|
51 |
+
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $crontype);
|
52 |
+
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid, $type);
|
53 |
+
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
public function processHistory() {
|
59 |
+
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
60 |
+
foreach($storeids as $storeid) {
|
61 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled', $storeid);
|
62 |
+
$cron_enabled = Mage::getStoreConfig('feedbackcompany/reviews/cron', $storeid);
|
63 |
+
if($enabled && $cron_enabled) {
|
64 |
+
$crontype = 'history';
|
65 |
+
$start_time = microtime(true); $storeid = 0;
|
66 |
+
$feed = Mage::getModel('feedbackcompany/api')->getFeed($storeid, $crontype);
|
67 |
+
$results = Mage::getModel('feedbackcompany/reviews')->processFeed($feed, $storeid, $crontype);
|
68 |
+
$results['stats'] = Mage::getModel('feedbackcompany/stats')->processFeed($feed, $storeid);
|
69 |
+
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
70 |
+
}
|
71 |
+
}
|
72 |
+
}
|
73 |
+
|
74 |
+
public function cleanLog() {
|
75 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/log/clean', 0);
|
76 |
+
$days = Mage::getStoreConfig('feedbackcompany/log/clean_days', 0);
|
77 |
+
if(($enabled) && ($days > 0)) {
|
78 |
+
$logmodel = Mage::getModel('feedbackcompany/log');
|
79 |
+
$deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
|
80 |
+
$logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
|
81 |
+
foreach ($logs as $log) {
|
82 |
+
$logmodel->load($log->getId())->delete();
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
public function processFeedbackInvitationcallAfterShipment($observer) {
|
88 |
+
$shipment = $observer->getEvent()->getShipment();
|
89 |
+
$order = $shipment->getOrder();
|
90 |
+
if((Mage::getStoreConfig('feedbackcompany/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId()))):
|
91 |
+
if($order->getStatus() == Mage::getStoreConfig('feedbackcompany/invitation/status', $order->getStoreId())):
|
92 |
+
if(Mage::getStoreConfig('feedbackcompany/invitation/backlog', $order->getStoreId()) > 0):
|
93 |
+
$date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
|
94 |
+
if($date_diff < Mage::getStoreConfig('feedbackcompany/invitation/backlog', $order->getStoreId())):
|
95 |
+
Mage::getModel('feedbackcompany/api')->sendInvitation($order);
|
96 |
+
endif;
|
97 |
+
else:
|
98 |
+
Mage::getModel('feedbackcompany/api')->sendInvitation($order);
|
99 |
+
endif;
|
100 |
+
endif;
|
101 |
+
endif;
|
102 |
+
}
|
103 |
+
|
104 |
+
public function processFeedbackInvitationcall($observer) {
|
105 |
+
$order = $observer->getEvent()->getOrder();
|
106 |
+
if((Mage::getStoreConfig('feedbackcompany/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('feedbackcompany/invitation/connector', $order->getStoreId()))):
|
107 |
+
if($order->getStatus() == Mage::getStoreConfig('feedbackcompany/invitation/status', $order->getStoreId())):
|
108 |
+
if(Mage::getStoreConfig('feedbackcompany/invitation/backlog', $order->getStoreId()) > 0):
|
109 |
+
$date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
|
110 |
+
if($date_diff < Mage::getStoreConfig('feedbackcompany/invitation/backlog', $order->getStoreId())):
|
111 |
+
$value = Mage::getModel('feedbackcompany/api')->sendInvitation($order);
|
112 |
+
endif;
|
113 |
+
else:
|
114 |
+
Mage::getModel('feedbackcompany/api')->sendInvitation($order);
|
115 |
+
endif;
|
116 |
+
endif;
|
117 |
+
endif;
|
118 |
+
}
|
119 |
+
|
120 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
$this->_init('feedbackcompany/reviews');
|
27 |
+
}
|
28 |
+
|
29 |
+
public function loadbyFeedbackId($feedback_id) {
|
30 |
+
$this->_getResource()->load($this, $feedback_id, 'feedback_id');
|
31 |
+
return $this;
|
32 |
+
}
|
33 |
+
|
34 |
+
public function processFeed($feed, $storeid = 0, $type) {
|
35 |
+
|
36 |
+
$updates = 0; $new = 0; $history = 0;
|
37 |
+
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
38 |
+
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
39 |
+
|
40 |
+
foreach($feed->reviewDetails->reviewDetail as $review) {
|
41 |
+
$feedback_id = $review->id;
|
42 |
+
$score = $review->score;
|
43 |
+
$score_max = $review->scoremax;
|
44 |
+
$review_text = $review->text;
|
45 |
+
$score_aftersales = $review->score_aftersales;
|
46 |
+
$score_checkout = $review->score_bestelgemak;
|
47 |
+
$score_information = $review->score_informatievoorziening;
|
48 |
+
$score_friendly = $review->score_klantvriendelijk;
|
49 |
+
$score_leadtime = $review->score_levertijd;
|
50 |
+
$score_responsetime = $review->score_reactiesnelheid;
|
51 |
+
$score_order = $review->score_orderverloop;
|
52 |
+
$customer_name = $review->user;
|
53 |
+
$customer_recommend = $review->beveeltAan;
|
54 |
+
$customer_active = $review->kooptvakeronline;
|
55 |
+
$customer_sex = $review->geslacht;
|
56 |
+
$customer_age = $review->leeftijd;
|
57 |
+
$purchased_products = $review->gekochtproduct;
|
58 |
+
$text_positive = $review->sterkepunten;
|
59 |
+
$text_improvements = $review->verbeterpunten;
|
60 |
+
$date_created = $review->createdate;
|
61 |
+
$date_created = substr($date_created, 0, 4) . '/' . substr($date_created, 4, 2) . '/' . substr($date_created, 6, 2);
|
62 |
+
$indatabase = $this->loadbyFeedbackId($feedback_id);
|
63 |
+
|
64 |
+
if($indatabase->getReviewId()) {
|
65 |
+
if($type == 'history') {
|
66 |
+
$reviews = Mage::getModel('feedbackcompany/reviews');
|
67 |
+
$reviews->setReviewId($indatabase->getReviewId())
|
68 |
+
->setShopId($api_id)
|
69 |
+
->setCompany($company)
|
70 |
+
->setFeedbackId($feedback_id)
|
71 |
+
->setReviewText($review_text)
|
72 |
+
->setScore($score)
|
73 |
+
->setScoreMax($score_max)
|
74 |
+
->setScoreAftersales($score_aftersales)
|
75 |
+
->setScoreCheckout($score_checkout)
|
76 |
+
->setScoreInformation($score_information)
|
77 |
+
->setScoreFriendly($score_friendly)
|
78 |
+
->setScoreLeadtime($score_leadtime)
|
79 |
+
->setScoreResponsetime($score_responsetime)
|
80 |
+
->setScoreOrder($score_order)
|
81 |
+
->setCustomerName($customer_name)
|
82 |
+
->setCustomerRecommend($customer_recommend)
|
83 |
+
->setCustomerActive($customer_active)
|
84 |
+
->setCustomerSex($customer_sex)
|
85 |
+
->setCustomerAge($customer_age)
|
86 |
+
->setPurchasedProducts($purchased_products)
|
87 |
+
->setTextPositive($text_positive)
|
88 |
+
->setTextImprovements($text_improvements)
|
89 |
+
->setDateCreated($date_created)
|
90 |
+
->save();
|
91 |
+
$updates++;
|
92 |
+
} else {
|
93 |
+
break;
|
94 |
+
}
|
95 |
+
} else {
|
96 |
+
$reviews = Mage::getModel('feedbackcompany/reviews');
|
97 |
+
$reviews->setShopId($api_id)
|
98 |
+
->setCompany($company)
|
99 |
+
->setFeedbackId($feedback_id)
|
100 |
+
->setReviewText($review_text)
|
101 |
+
->setScore($score)
|
102 |
+
->setScoreMax($score_max)
|
103 |
+
->setScoreAftersales($score_aftersales)
|
104 |
+
->setScoreCheckout($score_checkout)
|
105 |
+
->setScoreInformation($score_information)
|
106 |
+
->setScoreFriendly($score_friendly)
|
107 |
+
->setScoreLeadtime($score_leadtime)
|
108 |
+
->setScoreResponsetime($score_responsetime)
|
109 |
+
->setScoreOrder($score_order)
|
110 |
+
->setCustomerName($customer_name)
|
111 |
+
->setCustomerRecommend($customer_recommend)
|
112 |
+
->setCustomerActive($customer_active)
|
113 |
+
->setCustomerSex($customer_sex)
|
114 |
+
->setCustomerAge($customer_age)
|
115 |
+
->setPurchasedProducts($purchased_products)
|
116 |
+
->setTextPositive($text_positive)
|
117 |
+
->setTextImprovements($text_improvements)
|
118 |
+
->setDateCreated($date_created)
|
119 |
+
->save();
|
120 |
+
$new++;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
|
124 |
+
$config = new Mage_Core_Model_Config();
|
125 |
+
$config->saveConfig('feedbackcompany/reviews/lastrun', now(), 'default', $storeid);
|
126 |
+
$result = array();
|
127 |
+
$result['review_updates'] = $updates;
|
128 |
+
$result['review_new'] = $new;
|
129 |
+
$result['company'] = $company;
|
130 |
+
return $result;
|
131 |
+
}
|
132 |
+
|
133 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/Stats.php
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
23 |
+
|
24 |
+
public function _construct() {
|
25 |
+
parent::_construct();
|
26 |
+
$this->_init('feedbackcompany/stats');
|
27 |
+
}
|
28 |
+
|
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);
|
44 |
+
$scoremax = $feed->scoremax;
|
45 |
+
$votes = $feed->noReviews;
|
46 |
+
|
47 |
+
// Check for update or save
|
48 |
+
if($indatabase = $this->loadbyShopId($shop_id)) {
|
49 |
+
$id = $indatabase->getId();
|
50 |
+
} else {
|
51 |
+
$id = '';
|
52 |
+
}
|
53 |
+
|
54 |
+
// Save Review Stats
|
55 |
+
$model = Mage::getModel('feedbackcompany/stats');
|
56 |
+
$model->setId($id)
|
57 |
+
->setShopId($shop_id)
|
58 |
+
->setCompany($company)
|
59 |
+
->setScore($score)
|
60 |
+
->setScoremax($scoremax)
|
61 |
+
->setVotes($votes)
|
62 |
+
->save();
|
63 |
+
return true;
|
64 |
+
} else {
|
65 |
+
return false;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
public function processOverall() {
|
70 |
+
$stats = Mage::getModel('feedbackcompany/stats')->getCollection();
|
71 |
+
$stats->addFieldToFilter('shop_id', array('neq' => '0'));
|
72 |
+
|
73 |
+
$score = '';
|
74 |
+
$scoremax = '';
|
75 |
+
$votes= '';
|
76 |
+
$i = 0;
|
77 |
+
|
78 |
+
foreach($stats as $stat) {
|
79 |
+
$score = ($score + $stat->getScore());
|
80 |
+
$scoremax = ($scoremax + $stat->getScoremax());
|
81 |
+
$votes = ($votes + $stat->getVotes());
|
82 |
+
$i++;
|
83 |
+
}
|
84 |
+
|
85 |
+
$score = ($score / $i);
|
86 |
+
$scoremax = ($scoremax / $i);
|
87 |
+
$company = 'Overall';
|
88 |
+
|
89 |
+
if($indatabase = $this->loadbyShopId(0)) {
|
90 |
+
$id = $indatabase->getId();
|
91 |
+
} else {
|
92 |
+
$id = '';
|
93 |
+
}
|
94 |
+
|
95 |
+
$model = Mage::getModel('feedbackcompany/stats')
|
96 |
+
->setId($id)
|
97 |
+
->setShopId(0)
|
98 |
+
->setCompany($company)
|
99 |
+
->setScore($score)
|
100 |
+
->setScoremax($scoremax)
|
101 |
+
->setVotes($votes)
|
102 |
+
->save();
|
103 |
+
}
|
104 |
+
|
105 |
+
public function loadbyShopId($shop_id) {
|
106 |
+
$this->_getResource()->load($this, $shop_id, 'shop_id');
|
107 |
+
return $this;
|
108 |
+
}
|
109 |
+
|
110 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Cronfrequency.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_System_Config_Source_Cronfrequency {
|
23 |
+
|
24 |
+
public function toOptionArray() {
|
25 |
+
return array(
|
26 |
+
'*/15 * * * *' => Mage::helper('feedbackcompany')->__('Every 15 minutes'),
|
27 |
+
'0 * * * *' => Mage::helper('feedbackcompany')->__('Every Hour'),
|
28 |
+
'0 */2 * * *' => Mage::helper('feedbackcompany')->__('Every other Hour'),
|
29 |
+
'0 8,20 * * *' => Mage::helper('feedbackcompany')->__('Twice a Day'),
|
30 |
+
'0 02 * * *' => Mage::helper('feedbackcompany')->__('Once a Day'),
|
31 |
+
'0 02 0 * *' => Mage::helper('feedbackcompany')->__('Once a Week'),
|
32 |
+
);
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Orderstatus.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_System_Config_Source_Orderstatus {
|
23 |
+
|
24 |
+
public function toOptionArray() {
|
25 |
+
$storeModel = Mage::getSingleton('adminhtml/system_store');
|
26 |
+
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
27 |
+
$options = array();
|
28 |
+
|
29 |
+
$this->_options = array(array('value' => 0, 'label' => Mage::helper('feedbackcompany') -> __('-- none')));
|
30 |
+
|
31 |
+
foreach($statuses as $k=>$v) {
|
32 |
+
$options[] = array('label' => $v, 'value' => $k);
|
33 |
+
}
|
34 |
+
|
35 |
+
$this->_options = array_merge($this->_options, $options);
|
36 |
+
return $this->_options;
|
37 |
+
}
|
38 |
+
|
39 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Position.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_System_Config_Source_Position {
|
23 |
+
|
24 |
+
public function toOptionArray() {
|
25 |
+
$position = array();
|
26 |
+
$position[] = array('value'=>'left', 'label'=> Mage::helper('feedbackcompany')->__('Left'));
|
27 |
+
$position[] = array('value'=>'right', 'label'=> Mage::helper('feedbackcompany')->__('Right'));
|
28 |
+
return $position;
|
29 |
+
}
|
30 |
+
|
31 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Sidebarlink.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Model_System_Config_Source_Sidebarlink {
|
23 |
+
|
24 |
+
public function toOptionArray() {
|
25 |
+
return array(
|
26 |
+
'' => Mage::helper('feedbackcompany')->__('None'),
|
27 |
+
'external' => Mage::helper('feedbackcompany')->__('External (Feedbackcompany.nl)'),
|
28 |
+
'internal' => Mage::helper('feedbackcompany')->__('Internal (/feedbackcompany)'),
|
29 |
+
);
|
30 |
+
}
|
31 |
+
|
32 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Adminhtml_FeedbacklogController extends Mage_Adminhtml_Controller_Action {
|
23 |
+
|
24 |
+
protected function _initAction() {
|
25 |
+
$this->loadLayout()->_setActiveMenu('feedbackcompany/feedbackreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
26 |
+
return $this;
|
27 |
+
}
|
28 |
+
|
29 |
+
public function indexAction() {
|
30 |
+
$this->_initAction()->renderLayout();
|
31 |
+
}
|
32 |
+
|
33 |
+
public function massDeleteAction() {
|
34 |
+
$LogIds = $this->getRequest()->getParam('logids');
|
35 |
+
if(!is_array($LogIds)) {
|
36 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
37 |
+
} else {
|
38 |
+
try {
|
39 |
+
foreach ($LogIds as $id) {
|
40 |
+
$log = Mage::getModel('feedbackcompany/log')->load($id)->delete();
|
41 |
+
}
|
42 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d log record(s) deleted.', count($LogIds)));
|
43 |
+
} catch (Exception $e) {
|
44 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
45 |
+
}
|
46 |
+
}
|
47 |
+
$this->_redirect('*/*/index');
|
48 |
+
}
|
49 |
+
|
50 |
+
public function cleanAction() {
|
51 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/log/clean');
|
52 |
+
$days = Mage::getStoreConfig('feedbackcompany/log/clean_days');
|
53 |
+
$i = 0;
|
54 |
+
if(($enabled) && ($days > 0)) {
|
55 |
+
$logmodel = Mage::getModel('feedbackcompany/log');
|
56 |
+
$deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
|
57 |
+
$logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
|
58 |
+
foreach ($logs as $log) {
|
59 |
+
$logmodel->load($log->getId())->delete();
|
60 |
+
$i++;
|
61 |
+
}
|
62 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %s log record(s) deleted.', $i));
|
63 |
+
}
|
64 |
+
$this->_redirect('*/*/index');
|
65 |
+
}
|
66 |
+
|
67 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mage_Adminhtml_Controller_Action {
|
23 |
+
|
24 |
+
protected function _initAction() {
|
25 |
+
$this->loadLayout()->_setActiveMenu('feedbackcompany/feedbackreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
26 |
+
return $this;
|
27 |
+
}
|
28 |
+
|
29 |
+
public function indexAction() {
|
30 |
+
$this->_initAction()->renderLayout();
|
31 |
+
}
|
32 |
+
|
33 |
+
public function processAction() {
|
34 |
+
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
35 |
+
$start_time = microtime(true);
|
36 |
+
foreach($storeids as $storeid) {
|
37 |
+
$msg = '';
|
38 |
+
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
39 |
+
$result = Mage::getModel('feedbackcompany/api')->processFeed($storeid, 'history');
|
40 |
+
$log = Mage::getModel('feedbackcompany/log')->addToLog('reviews', $storeid, $result, '', (microtime(true) - $start_time), '', '');
|
41 |
+
|
42 |
+
if(($result['review_new'] > 0) || ($result['review_updates'] > 0) || ($result['stats'] == true)) {
|
43 |
+
$msg = Mage::helper('feedbackcompany')->__('Webwinkel ID %s:', $api_id) . ' ';
|
44 |
+
$msg .= Mage::helper('feedbackcompany')->__('%s new review(s)', $result['review_new']) . ', ';
|
45 |
+
$msg .= Mage::helper('feedbackcompany')->__('%s review(s) updated', $result['review_updates']) . ' & ';
|
46 |
+
$msg .= Mage::helper('feedbackcompany')->__('and total score updated.');
|
47 |
+
}
|
48 |
+
|
49 |
+
if($msg) {
|
50 |
+
Mage::getSingleton('adminhtml/session')->addSuccess($msg);
|
51 |
+
} else {
|
52 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Webwinkel ID %s: no updates found, feed is empty or not foud!', $api_id));
|
53 |
+
}
|
54 |
+
}
|
55 |
+
Mage::getModel('feedbackcompany/stats')->processOverall();
|
56 |
+
$this->_redirect('adminhtml/system_config/edit/section/feedbackcompany');
|
57 |
+
}
|
58 |
+
|
59 |
+
public function testapiAction() {
|
60 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('TODO: repsonse code van de API', $xml));
|
61 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('TODO: repsonse code van de API', $xml));
|
62 |
+
$this->_redirect('adminhtml/system_config/edit/section/feedbackcompany');
|
63 |
+
}
|
64 |
+
|
65 |
+
public function massDisableAction() {
|
66 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
67 |
+
if(!is_array($reviewIds)) {
|
68 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
69 |
+
} else {
|
70 |
+
try {
|
71 |
+
foreach ($reviewIds as $review_id) {
|
72 |
+
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
73 |
+
$reviews->setStatus(0)->save();
|
74 |
+
}
|
75 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were disabled.', count($reviewIds)));
|
76 |
+
} catch (Exception $e) {
|
77 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
78 |
+
}
|
79 |
+
}
|
80 |
+
$this->_redirect('*/*/index');
|
81 |
+
}
|
82 |
+
|
83 |
+
public function massEnableAction() {
|
84 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
85 |
+
if(!is_array($reviewIds)) {
|
86 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
87 |
+
} else {
|
88 |
+
try {
|
89 |
+
foreach ($reviewIds as $review_id) {
|
90 |
+
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
91 |
+
$reviews->setStatus(1)->save();
|
92 |
+
}
|
93 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were enabled.', count($reviewIds)));
|
94 |
+
} catch (Exception $e) {
|
95 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
96 |
+
}
|
97 |
+
}
|
98 |
+
$this->_redirect('*/*/index');
|
99 |
+
}
|
100 |
+
|
101 |
+
public function massEnableSidebarAction() {
|
102 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
103 |
+
if(!is_array($reviewIds)) {
|
104 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
105 |
+
} else {
|
106 |
+
try {
|
107 |
+
foreach ($reviewIds as $review_id) {
|
108 |
+
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
109 |
+
$reviews->setSidebar(1)->save();
|
110 |
+
}
|
111 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were added to the sidebar.', count($reviewIds)));
|
112 |
+
} catch (Exception $e) {
|
113 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
114 |
+
}
|
115 |
+
}
|
116 |
+
$this->_redirect('*/*/index');
|
117 |
+
}
|
118 |
+
|
119 |
+
public function massDisableSidebarAction() {
|
120 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
121 |
+
if(!is_array($reviewIds)) {
|
122 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
123 |
+
} else {
|
124 |
+
try {
|
125 |
+
foreach ($reviewIds as $review_id) {
|
126 |
+
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
127 |
+
$reviews->setSidebar(0)->save();
|
128 |
+
}
|
129 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were removed from the sidebar.', count($reviewIds)));
|
130 |
+
} catch (Exception $e) {
|
131 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
132 |
+
}
|
133 |
+
}
|
134 |
+
$this->_redirect('*/*/index');
|
135 |
+
}
|
136 |
+
|
137 |
+
public function truncateAction() {
|
138 |
+
$i = 0;
|
139 |
+
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
140 |
+
foreach ($collection as $item) {
|
141 |
+
$item->delete();
|
142 |
+
$i++;
|
143 |
+
}
|
144 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Succefully deleted all %s saved review(s).', $i));
|
145 |
+
$this->_redirect('*/*/index');
|
146 |
+
}
|
147 |
+
|
148 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/IndexController.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
class Magmodules_Feedbackcompany_IndexController extends Mage_Core_Controller_Front_Action {
|
23 |
+
|
24 |
+
public function indexAction() {
|
25 |
+
|
26 |
+
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled');
|
27 |
+
$overview = Mage::getStoreConfig('feedbackcompany/overview/enabled');
|
28 |
+
|
29 |
+
if($enabled && $overview) {
|
30 |
+
$this->loadLayout();
|
31 |
+
$head = $this->getLayout()->getBlock('head');
|
32 |
+
|
33 |
+
if($title = Mage::getStoreConfig('feedbackcompany/overview/meta_title')):
|
34 |
+
$head->setTitle($title);
|
35 |
+
endif;
|
36 |
+
|
37 |
+
if($description = Mage::getStoreConfig('feedbackcompany/overview/meta_description')):
|
38 |
+
$head->setDescription($description);
|
39 |
+
endif;
|
40 |
+
|
41 |
+
if($keywords = Mage::getStoreConfig('feedbackcompany/overview/meta_keywords')):
|
42 |
+
$head->setKeywords($keywords);
|
43 |
+
endif;
|
44 |
+
|
45 |
+
$this->renderLayout();
|
46 |
+
} else {
|
47 |
+
$this->_redirect('/');
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
app/code/local/Magmodules/Feedbackcompany/etc/adminhtml.xml
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magmodules.eu
|
5 |
+
* http://www.magmodules.eu
|
6 |
+
*
|
7 |
+
* NOTICE OF LICENSE
|
8 |
+
*
|
9 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
10 |
+
* that is bundled with this package in the file LICENSE.txt.
|
11 |
+
* It is also available through the world-wide-web at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
* If you did not receive a copy of the license and are unable to
|
14 |
+
* obtain it through the world-wide-web, please send an email
|
15 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
16 |
+
*
|
17 |
+
* @category Magmodules
|
18 |
+
* @package Magmodules_Feedbackcompany
|
19 |
+
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
+
<config>
|
25 |
+
<menu>
|
26 |
+
<shopreview module="feedbackcompany">
|
27 |
+
<title>Reviews</title>
|
28 |
+
<sort_order>71</sort_order>
|
29 |
+
<children>
|
30 |
+
<feedbackcompany module="feedbackcompany">
|
31 |
+
<title>The Feedback Company</title>
|
32 |
+
<sort_order>11</sort_order>
|
33 |
+
<children>
|
34 |
+
<feedbackcompany_reviews module="feedbackcompany">
|
35 |
+
<title>Manage Reviews</title>
|
36 |
+
<sort_order>100</sort_order>
|
37 |
+
<action>adminhtml/feedbackreviews/</action>
|
38 |
+
</feedbackcompany_reviews>
|
39 |
+
<feedbackcompany_log module="feedbackcompany">
|
40 |
+
<title>Manage Log</title>
|
41 |
+
<sort_order>110</sort_order>
|
42 |
+
<action>adminhtml/feedbacklog/</action>
|
43 |
+
</feedbackcompany_log>
|
44 |
+
<feedbackcompany_config module="feedbackcompany">
|
45 |
+
<title>Feedbackcompany Config</title>
|
46 |
+
<sort_order>120</sort_order>
|
47 |
+
<action>adminhtml/system_config/edit/section/feedbackcompany</action>
|
48 |
+
</feedbackcompany_config>
|
49 |
+
</children>
|
50 |
+
</feedbackcompany>
|
51 |
+
</children>
|
52 |
+
</shopreview>
|
53 |
+
</menu>
|
54 |
+
<acl>
|
55 |
+
<resources>
|
56 |
+
<all>
|
57 |
+
<title>Allow Everything</title>
|
58 |
+
</all>
|
59 |
+
<admin>
|
60 |
+
<children>
|
61 |
+
<system>
|
62 |
+
<children>
|
63 |
+
<config>
|
64 |
+
<children>
|
65 |
+
<feedbackcompany translate="title" module="feedbackcompany">
|
66 |
+
<title>The Feedback Company Permission Setting</title>
|
67 |
+
</feedbackcompany>
|
68 |
+
</children>
|
69 |
+
</config>
|
70 |
+
</children>
|
71 |
+
</system>
|
72 |
+
<feedbackcompany module="feedbackcompany">
|
73 |
+
<title>The Feedback Company</title>
|
74 |
+
<sort_order>60</sort_order>
|
75 |
+
<children>
|
76 |
+
<feedbackcompany_reviews module="feedbackcompany">
|
77 |
+
<title>Reviews</title>
|
78 |
+
<sort_order>100</sort_order>
|
79 |
+
<action>adminhtml/feedbackreviews/</action>
|
80 |
+
</feedbackcompany_reviews>
|
81 |
+
<feedbackcompany_log module="feedbackcompany">
|
82 |
+
<title>Log</title>
|
83 |
+
<sort_order>110</sort_order>
|
84 |
+
<action>adminhtml/feedbacklog/</action>
|
85 |
+
</feedbackcompany_log>
|
86 |
+
</children>
|
87 |
+
</feedbackcompany>
|
88 |
+
</children>
|
89 |
+
</admin>
|
90 |
+
</resources>
|
91 |
+
</acl>
|
92 |
+
</config>
|
app/code/local/Magmodules/Feedbackcompany/etc/config.xml
ADDED
@@ -0,0 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
<?php
|
4 |
+
/**
|
5 |
+
* Magmodules.eu - http://www.magmodules.eu
|
6 |
+
*
|
7 |
+
* NOTICE OF LICENSE
|
8 |
+
*
|
9 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
10 |
+
* that is bundled with this package in the file LICENSE.txt.
|
11 |
+
* It is also available through the world-wide-web at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
* If you did not receive a copy of the license and are unable to
|
14 |
+
* obtain it through the world-wide-web, please send an email
|
15 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
16 |
+
*
|
17 |
+
* @category Magmodules
|
18 |
+
* @package Magmodules_Feedbackcompany
|
19 |
+
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
+
<config>
|
25 |
+
<modules>
|
26 |
+
<Magmodules_Feedbackcompany>
|
27 |
+
<version>0.9.0</version>
|
28 |
+
</Magmodules_Feedbackcompany>
|
29 |
+
</modules>
|
30 |
+
<global>
|
31 |
+
<models>
|
32 |
+
<feedbackcompany>
|
33 |
+
<class>Magmodules_Feedbackcompany_Model</class>
|
34 |
+
<resourceModel>feedbackcompany_mysql4</resourceModel>
|
35 |
+
</feedbackcompany>
|
36 |
+
<feedbackcompany_mysql4>
|
37 |
+
<class>Magmodules_Feedbackcompany_Model_Mysql4</class>
|
38 |
+
<entities>
|
39 |
+
<reviews>
|
40 |
+
<table>feedbackcompany_reviews</table>
|
41 |
+
</reviews>
|
42 |
+
<stats>
|
43 |
+
<table>feedbackcompany_stats</table>
|
44 |
+
</stats>
|
45 |
+
<log>
|
46 |
+
<table>feedbackcompany_log</table>
|
47 |
+
</log>
|
48 |
+
</entities>
|
49 |
+
</feedbackcompany_mysql4>
|
50 |
+
</models>
|
51 |
+
<resources>
|
52 |
+
<feedbackcompany_setup>
|
53 |
+
<setup>
|
54 |
+
<module>Magmodules_Feedbackcompany</module>
|
55 |
+
</setup>
|
56 |
+
<connection>
|
57 |
+
<use>core_setup</use>
|
58 |
+
</connection>
|
59 |
+
</feedbackcompany_setup>
|
60 |
+
<feedbackcompany_write>
|
61 |
+
<connection>
|
62 |
+
<use>core_write</use>
|
63 |
+
</connection>
|
64 |
+
</feedbackcompany_write>
|
65 |
+
<feedbackcompany_read>
|
66 |
+
<connection>
|
67 |
+
<use>core_read</use>
|
68 |
+
</connection>
|
69 |
+
</feedbackcompany_read>
|
70 |
+
</resources>
|
71 |
+
<helpers>
|
72 |
+
<feedbackcompany>
|
73 |
+
<class>Magmodules_Feedbackcompany_Helper</class>
|
74 |
+
</feedbackcompany>
|
75 |
+
</helpers>
|
76 |
+
<blocks>
|
77 |
+
<feedbackcompany>
|
78 |
+
<class>Magmodules_Feedbackcompany_Block</class>
|
79 |
+
</feedbackcompany>
|
80 |
+
</blocks>
|
81 |
+
<events>
|
82 |
+
<sales_order_shipment_save_after>
|
83 |
+
<observers>
|
84 |
+
<feedbackcompany>
|
85 |
+
<type>singleton</type>
|
86 |
+
<class>feedbackcompany/observer</class>
|
87 |
+
<method>processFeedbackInvitationcallAfterShipment</method>
|
88 |
+
</feedbackcompany>
|
89 |
+
</observers>
|
90 |
+
</sales_order_shipment_save_after>
|
91 |
+
<sales_order_save_commit_after>
|
92 |
+
<observers>
|
93 |
+
<feedbackcompany>
|
94 |
+
<type>singleton</type>
|
95 |
+
<class>feedbackcompany/observer</class>
|
96 |
+
<method>processFeedbackInvitationcall</method>
|
97 |
+
</feedbackcompany>
|
98 |
+
</observers>
|
99 |
+
</sales_order_save_commit_after>
|
100 |
+
</events>
|
101 |
+
</global>
|
102 |
+
<frontend>
|
103 |
+
<routers>
|
104 |
+
<feedbackcompany>
|
105 |
+
<use>standard</use>
|
106 |
+
<args>
|
107 |
+
<module>Magmodules_Feedbackcompany</module>
|
108 |
+
<frontName>feedbackcompany</frontName>
|
109 |
+
</args>
|
110 |
+
</feedbackcompany>
|
111 |
+
</routers>
|
112 |
+
<layout>
|
113 |
+
<updates>
|
114 |
+
<feedbackcompany>
|
115 |
+
<file>magmodules_feedbackcompany.xml</file>
|
116 |
+
</feedbackcompany>
|
117 |
+
</updates>
|
118 |
+
</layout>
|
119 |
+
<translate>
|
120 |
+
<modules>
|
121 |
+
<magmodules_feedbackcompany>
|
122 |
+
<files>
|
123 |
+
<default>Magmodules_Feedbackcompany.csv</default>
|
124 |
+
</files>
|
125 |
+
</magmodules_feedbackcompany>
|
126 |
+
</modules>
|
127 |
+
</translate>
|
128 |
+
</frontend>
|
129 |
+
<adminhtml>
|
130 |
+
<layout>
|
131 |
+
<updates>
|
132 |
+
<magmodules_feedbackcompany>
|
133 |
+
<file>magmodules_feedbackcompany.xml</file>
|
134 |
+
</magmodules_feedbackcompany>
|
135 |
+
</updates>
|
136 |
+
</layout>
|
137 |
+
<translate>
|
138 |
+
<modules>
|
139 |
+
<magmodules_feedbackcompany>
|
140 |
+
<files>
|
141 |
+
<default>Magmodules_Feedbackcompany.csv</default>
|
142 |
+
</files>
|
143 |
+
</magmodules_feedbackcompany>
|
144 |
+
</modules>
|
145 |
+
</translate>
|
146 |
+
</adminhtml>
|
147 |
+
<admin>
|
148 |
+
<routers>
|
149 |
+
<adminhtml>
|
150 |
+
<args>
|
151 |
+
<modules>
|
152 |
+
<magmodules_feedbackcompany after="Mage_Adminhtml">Magmodules_Feedbackcompany_Adminhtml</magmodules_feedbackcompany>
|
153 |
+
</modules>
|
154 |
+
</args>
|
155 |
+
</adminhtml>
|
156 |
+
</routers>
|
157 |
+
</admin>
|
158 |
+
<crontab>
|
159 |
+
<jobs>
|
160 |
+
<magmodules_feedbackcompany_stats>
|
161 |
+
<schedule><config_path>feedbackcompany/reviews/cron_stats</config_path></schedule>
|
162 |
+
<run><model>feedbackcompany/observer::processStats</model></run>
|
163 |
+
</magmodules_feedbackcompany_stats>
|
164 |
+
<magmodules_feedbackcompany_reviews>
|
165 |
+
<schedule><config_path>feedbackcompany/reviews/cron_reviews</config_path></schedule>
|
166 |
+
<run><model>feedbackcompany/observer::processReviews</model></run>
|
167 |
+
</magmodules_feedbackcompany_reviews>
|
168 |
+
<magmodules_feedbackcompany_reviewhistory>
|
169 |
+
<schedule><config_path>feedbackcompany/reviews/cron_all</config_path></schedule>
|
170 |
+
<run><model>feedbackcompany/observer::processHistory</model></run>
|
171 |
+
</magmodules_feedbackcompany_reviewhistory>
|
172 |
+
<magmodules_feedbackcompany_cleanlog>
|
173 |
+
<schedule><cron_expr>0 02 * * *</cron_expr></schedule>
|
174 |
+
<run><model>feedbackcompany/observer::cleanLog</model></run>
|
175 |
+
</magmodules_feedbackcompany_cleanlog>
|
176 |
+
</jobs>
|
177 |
+
</crontab>
|
178 |
+
<default>
|
179 |
+
<feedbackcompany>
|
180 |
+
<general>
|
181 |
+
<enabled>0</enabled>
|
182 |
+
</general>
|
183 |
+
<reviews>
|
184 |
+
<cron>0</cron>
|
185 |
+
<cron_stats>*/15 * * * *</cron_stats>
|
186 |
+
<cron_reviews>0 */2 * * *</cron_reviews>
|
187 |
+
<cron_all>0 02 0 * *</cron_all>
|
188 |
+
</reviews>
|
189 |
+
<sidebar>
|
190 |
+
<left>0</left>
|
191 |
+
<left_qty>3</left_qty>
|
192 |
+
<left_lenght>150</left_lenght>
|
193 |
+
<left_link>external</left_link>
|
194 |
+
<right>0</right>
|
195 |
+
<right_qty>3</right_qty>
|
196 |
+
<right_lenght>150</right_lenght>
|
197 |
+
<right_link>external</right_link>
|
198 |
+
</sidebar>
|
199 |
+
<snippets>
|
200 |
+
<sidebar>1</sidebar>
|
201 |
+
</snippets>
|
202 |
+
<overview>
|
203 |
+
<enabled>1</enabled>
|
204 |
+
<enable_paging>1</enable_paging>
|
205 |
+
<paging_settings>10,20,30</paging_settings>
|
206 |
+
<meta_title>Feedbackcompany Reviews</meta_title>
|
207 |
+
<meta_description>Feedbackcompany Reviews overview page</meta_description>
|
208 |
+
<meta_keywords>reviews, feedbackcompany</meta_keywords>
|
209 |
+
</overview>
|
210 |
+
<invitation>
|
211 |
+
<enabled>0</enabled>
|
212 |
+
<status>complete</status>
|
213 |
+
<delay>5</delay>
|
214 |
+
<backlog>20</backlog>
|
215 |
+
<remind_delay>0</remind_delay>
|
216 |
+
<resend>1</resend>
|
217 |
+
</invitation>
|
218 |
+
<frontend>
|
219 |
+
<enabled>0</enabled>
|
220 |
+
<tooltip>0</tooltip>
|
221 |
+
<sidebar_position>left</sidebar_position>
|
222 |
+
<sidebar_height>120</sidebar_height>
|
223 |
+
</frontend>
|
224 |
+
<log>
|
225 |
+
<enabled>1</enabled>
|
226 |
+
<clean>1</clean>
|
227 |
+
<clean_days>14</clean_days>
|
228 |
+
</log>
|
229 |
+
</feedbackcompany>
|
230 |
+
</default>
|
231 |
+
</config>
|
app/code/local/Magmodules/Feedbackcompany/etc/system.xml
ADDED
@@ -0,0 +1,543 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Magmodules.eu
|
5 |
+
* http://www.magmodules.eu
|
6 |
+
*
|
7 |
+
* NOTICE OF LICENSE
|
8 |
+
*
|
9 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
10 |
+
* that is bundled with this package in the file LICENSE.txt.
|
11 |
+
* It is also available through the world-wide-web at this URL:
|
12 |
+
* http://opensource.org/licenses/osl-3.0.php
|
13 |
+
* If you did not receive a copy of the license and are unable to
|
14 |
+
* obtain it through the world-wide-web, please send an email
|
15 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
16 |
+
*
|
17 |
+
* @category Magmodules
|
18 |
+
* @package Magmodules_Feedbackcompany
|
19 |
+
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
21 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
+
*/
|
23 |
+
-->
|
24 |
+
<config>
|
25 |
+
<tabs>
|
26 |
+
<magmodules translate="label" module="feedbackcompany">
|
27 |
+
<label>Magmodules</label>
|
28 |
+
<sort_order>200</sort_order>
|
29 |
+
</magmodules>
|
30 |
+
</tabs>
|
31 |
+
<sections>
|
32 |
+
<feedbackcompany translate="label" module="feedbackcompany">
|
33 |
+
<label>Feedbackcompany</label>
|
34 |
+
<tab>magmodules</tab>
|
35 |
+
<frontend_type>text</frontend_type>
|
36 |
+
<sort_order>40</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>1</show_in_store>
|
40 |
+
<groups>
|
41 |
+
<info>
|
42 |
+
<frontend_model>feedbackcompany/adminhtml_widget_info_info</frontend_model>
|
43 |
+
<sort_order>1</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 |
+
</info>
|
48 |
+
<general translate="label" module="feedbackcompany">
|
49 |
+
<label>General configuration</label>
|
50 |
+
<frontend_type>text</frontend_type>
|
51 |
+
<sort_order>2</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 |
+
<expanded>1</expanded>
|
56 |
+
<comment>
|
57 |
+
<![CDATA[
|
58 |
+
<script>
|
59 |
+
Event.observe(window, 'load', function() {
|
60 |
+
if ($('feedbackcompany_reviews_lastrun')) {
|
61 |
+
$('feedbackcompany_reviews_lastrun').style.backgroundColor='#f0f0f0';
|
62 |
+
$('feedbackcompany_reviews_lastrun').disable();
|
63 |
+
}
|
64 |
+
if ($('feedbackcompany_general_url')) {
|
65 |
+
$('feedbackcompany_general_url').style.backgroundColor='#f0f0f0';
|
66 |
+
$('feedbackcompany_general_url').disable();
|
67 |
+
}
|
68 |
+
});
|
69 |
+
</script>
|
70 |
+
]]>
|
71 |
+
</comment>
|
72 |
+
<fields>
|
73 |
+
<enabled translate="label">
|
74 |
+
<label>Enabled</label>
|
75 |
+
<frontend_type>select</frontend_type>
|
76 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
77 |
+
<sort_order>1</sort_order>
|
78 |
+
<show_in_default>1</show_in_default>
|
79 |
+
<show_in_website>1</show_in_website>
|
80 |
+
<show_in_store>1</show_in_store>
|
81 |
+
</enabled>
|
82 |
+
<heading_api translate="label">
|
83 |
+
<label>API CREDENTIALS</label>
|
84 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
85 |
+
<sort_order>2</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>0</show_in_website>
|
88 |
+
<show_in_store>1</show_in_store>
|
89 |
+
</heading_api>
|
90 |
+
<company translate="label">
|
91 |
+
<label>Company</label>
|
92 |
+
<frontend_type>text</frontend_type>
|
93 |
+
<sort_order>3</sort_order>
|
94 |
+
<show_in_default>1</show_in_default>
|
95 |
+
<show_in_website>0</show_in_website>
|
96 |
+
<show_in_store>1</show_in_store>
|
97 |
+
</company>
|
98 |
+
<api_id translate="label">
|
99 |
+
<label>The Feedback Company ID</label>
|
100 |
+
<frontend_type>text</frontend_type>
|
101 |
+
<sort_order>4</sort_order>
|
102 |
+
<show_in_default>1</show_in_default>
|
103 |
+
<show_in_website>0</show_in_website>
|
104 |
+
<show_in_store>1</show_in_store>
|
105 |
+
</api_id>
|
106 |
+
<url translate="label">
|
107 |
+
<label>Url</label>
|
108 |
+
<frontend_type>text</frontend_type>
|
109 |
+
<sort_order>5</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>0</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
</url>
|
114 |
+
</fields>
|
115 |
+
</general>
|
116 |
+
<reviews translate="label" module="feedbackcompany">
|
117 |
+
<label>Feedbackcompany Import Reviews</label>
|
118 |
+
<frontend_type>text</frontend_type>
|
119 |
+
<sort_order>3</sort_order>
|
120 |
+
<show_in_default>1</show_in_default>
|
121 |
+
<show_in_website>1</show_in_website>
|
122 |
+
<show_in_store>1</show_in_store>
|
123 |
+
<expanded>1</expanded>
|
124 |
+
<fields>
|
125 |
+
<cron translate="label">
|
126 |
+
<label>Use Cronjob</label>
|
127 |
+
<frontend_type>select</frontend_type>
|
128 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
129 |
+
<sort_order>1</sort_order>
|
130 |
+
<show_in_default>1</show_in_default>
|
131 |
+
<show_in_website>1</show_in_website>
|
132 |
+
<show_in_store>1</show_in_store>
|
133 |
+
</cron>
|
134 |
+
<cron_stats translate="label">
|
135 |
+
<label>Update Summary</label>
|
136 |
+
<frontend_type>select</frontend_type>
|
137 |
+
<source_model>feedbackcompany/system_config_source_cronfrequency</source_model>
|
138 |
+
<sort_order>2</sort_order>
|
139 |
+
<show_in_default>1</show_in_default>
|
140 |
+
<show_in_website>1</show_in_website>
|
141 |
+
<show_in_store>1</show_in_store>
|
142 |
+
<depends><cron>1</cron></depends>
|
143 |
+
</cron_stats>
|
144 |
+
<cron_reviews translate="label">
|
145 |
+
<label>Update Reviews</label>
|
146 |
+
<frontend_type>select</frontend_type>
|
147 |
+
<source_model>feedbackcompany/system_config_source_cronfrequency</source_model>
|
148 |
+
<sort_order>3</sort_order>
|
149 |
+
<show_in_default>1</show_in_default>
|
150 |
+
<show_in_website>1</show_in_website>
|
151 |
+
<show_in_store>1</show_in_store>
|
152 |
+
<depends><cron>1</cron></depends>
|
153 |
+
</cron_reviews>
|
154 |
+
<cron_all translate="label">
|
155 |
+
<label>Update Review History</label>
|
156 |
+
<frontend_type>select</frontend_type>
|
157 |
+
<source_model>feedbackcompany/system_config_source_cronfrequency</source_model>
|
158 |
+
<sort_order>4</sort_order>
|
159 |
+
<show_in_default>1</show_in_default>
|
160 |
+
<show_in_website>1</show_in_website>
|
161 |
+
<show_in_store>1</show_in_store>
|
162 |
+
<depends><cron>1</cron></depends>
|
163 |
+
</cron_all>
|
164 |
+
<lastrun translate="label">
|
165 |
+
<label>Last Update</label>
|
166 |
+
<frontend_type>text</frontend_type>
|
167 |
+
<sort_order>100</sort_order>
|
168 |
+
<show_in_default>1</show_in_default>
|
169 |
+
<show_in_website>1</show_in_website>
|
170 |
+
<show_in_store>1</show_in_store>
|
171 |
+
</lastrun>
|
172 |
+
<process translate="label">
|
173 |
+
<label>Process Manually</label>
|
174 |
+
<frontend_type>button</frontend_type>
|
175 |
+
<frontend_model>feedbackcompany/adminhtml_widget_buttons_process</frontend_model>
|
176 |
+
<sort_order>101</sort_order>
|
177 |
+
<show_in_default>1</show_in_default>
|
178 |
+
<show_in_website>1</show_in_website>
|
179 |
+
<show_in_store>1</show_in_store>
|
180 |
+
</process>
|
181 |
+
</fields>
|
182 |
+
</reviews>
|
183 |
+
<sidebar translate="label">
|
184 |
+
<label>Feedbackcompany Reviews Sidebar</label>
|
185 |
+
<frontend_type>text</frontend_type>
|
186 |
+
<sort_order>4</sort_order>
|
187 |
+
<show_in_default>1</show_in_default>
|
188 |
+
<show_in_website>1</show_in_website>
|
189 |
+
<show_in_store>1</show_in_store>
|
190 |
+
<expanded>1</expanded>
|
191 |
+
<fields>
|
192 |
+
<left_heading translate="label">
|
193 |
+
<label>Left Sidebar</label>
|
194 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
195 |
+
<sort_order>50</sort_order>
|
196 |
+
<show_in_default>1</show_in_default>
|
197 |
+
<show_in_website>1</show_in_website>
|
198 |
+
<show_in_store>1</show_in_store>
|
199 |
+
</left_heading>
|
200 |
+
<left translate="label">
|
201 |
+
<label>Enabled</label>
|
202 |
+
<frontend_type>select</frontend_type>
|
203 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
204 |
+
<sort_order>51</sort_order>
|
205 |
+
<show_in_default>1</show_in_default>
|
206 |
+
<show_in_website>1</show_in_website>
|
207 |
+
<show_in_store>1</show_in_store>
|
208 |
+
</left>
|
209 |
+
<left_qty translate="label">
|
210 |
+
<label>Number of Reviews</label>
|
211 |
+
<validate>validate-number</validate>
|
212 |
+
<frontend_type>text</frontend_type>
|
213 |
+
<sort_order>52</sort_order>
|
214 |
+
<show_in_default>1</show_in_default>
|
215 |
+
<show_in_website>1</show_in_website>
|
216 |
+
<show_in_store>1</show_in_store>
|
217 |
+
<depends><left>1</left></depends>
|
218 |
+
</left_qty>
|
219 |
+
<left_lenght translate="label">
|
220 |
+
<label>Length of Reviews</label>
|
221 |
+
<validate>validate-number</validate>
|
222 |
+
<frontend_type>text</frontend_type>
|
223 |
+
<sort_order>53</sort_order>
|
224 |
+
<show_in_default>1</show_in_default>
|
225 |
+
<show_in_website>1</show_in_website>
|
226 |
+
<show_in_store>1</show_in_store>
|
227 |
+
<depends><left>1</left></depends>
|
228 |
+
</left_lenght>
|
229 |
+
<left_snippets translate="label">
|
230 |
+
<label>Add Rich Snippets</label>
|
231 |
+
<frontend_type>select</frontend_type>
|
232 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
233 |
+
<sort_order>56</sort_order>
|
234 |
+
<show_in_default>1</show_in_default>
|
235 |
+
<show_in_website>1</show_in_website>
|
236 |
+
<show_in_store>1</show_in_store>
|
237 |
+
<depends><left>1</left></depends>
|
238 |
+
<comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
|
239 |
+
</left_snippets>
|
240 |
+
<left_link translate="label">
|
241 |
+
<label>Link to</label>
|
242 |
+
<frontend_type>select</frontend_type>
|
243 |
+
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
244 |
+
<sort_order>55</sort_order>
|
245 |
+
<show_in_default>1</show_in_default>
|
246 |
+
<show_in_website>1</show_in_website>
|
247 |
+
<show_in_store>1</show_in_store>
|
248 |
+
<depends><left>1</left></depends>
|
249 |
+
</left_link>
|
250 |
+
<right_heading translate="label">
|
251 |
+
<label>Right Sidebar</label>
|
252 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
253 |
+
<sort_order>60</sort_order>
|
254 |
+
<show_in_default>1</show_in_default>
|
255 |
+
<show_in_website>1</show_in_website>
|
256 |
+
<show_in_store>1</show_in_store>
|
257 |
+
</right_heading>
|
258 |
+
<right translate="label">
|
259 |
+
<label>Enabled</label>
|
260 |
+
<frontend_type>select</frontend_type>
|
261 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
262 |
+
<sort_order>61</sort_order>
|
263 |
+
<show_in_default>1</show_in_default>
|
264 |
+
<show_in_website>1</show_in_website>
|
265 |
+
<show_in_store>1</show_in_store>
|
266 |
+
</right>
|
267 |
+
<right_qty translate="label">
|
268 |
+
<label>Number of Reviews</label>
|
269 |
+
<validate>validate-number</validate>
|
270 |
+
<frontend_type>text</frontend_type>
|
271 |
+
<sort_order>62</sort_order>
|
272 |
+
<show_in_default>1</show_in_default>
|
273 |
+
<show_in_website>1</show_in_website>
|
274 |
+
<show_in_store>1</show_in_store>
|
275 |
+
<depends><right>1</right></depends>
|
276 |
+
</right_qty>
|
277 |
+
<right_lenght translate="label">
|
278 |
+
<label>Length of Reviews</label>
|
279 |
+
<validate>validate-number</validate>
|
280 |
+
<frontend_type>text</frontend_type>
|
281 |
+
<sort_order>63</sort_order>
|
282 |
+
<show_in_default>1</show_in_default>
|
283 |
+
<show_in_website>1</show_in_website>
|
284 |
+
<show_in_store>1</show_in_store>
|
285 |
+
<depends><right>1</right></depends>
|
286 |
+
</right_lenght>
|
287 |
+
<right_link>
|
288 |
+
<label>Link to</label>
|
289 |
+
<frontend_type>select</frontend_type>
|
290 |
+
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
291 |
+
<sort_order>65</sort_order>
|
292 |
+
<show_in_default>1</show_in_default>
|
293 |
+
<show_in_website>1</show_in_website>
|
294 |
+
<show_in_store>1</show_in_store>
|
295 |
+
<depends><right>1</right></depends>
|
296 |
+
</right_link>
|
297 |
+
<right_snippets translate="label">
|
298 |
+
<label>Add to Sidebar Homepage</label>
|
299 |
+
<frontend_type>select</frontend_type>
|
300 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
301 |
+
<sort_order>66</sort_order>
|
302 |
+
<show_in_default>1</show_in_default>
|
303 |
+
<show_in_website>1</show_in_website>
|
304 |
+
<show_in_store>1</show_in_store>
|
305 |
+
<depends><right>1</right></depends>
|
306 |
+
<comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
|
307 |
+
</right_snippets>
|
308 |
+
</fields>
|
309 |
+
</sidebar>
|
310 |
+
<overview translate="label">
|
311 |
+
<label>Feedbackcompany Overview Page</label>
|
312 |
+
<frontend_type>text</frontend_type>
|
313 |
+
<sort_order>6</sort_order>
|
314 |
+
<show_in_default>1</show_in_default>
|
315 |
+
<show_in_website>1</show_in_website>
|
316 |
+
<show_in_store>1</show_in_store>
|
317 |
+
<expanded>1</expanded>
|
318 |
+
<fields>
|
319 |
+
<enabled translate="label">
|
320 |
+
<label>Enabled</label>
|
321 |
+
<frontend_type>select</frontend_type>
|
322 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
323 |
+
<sort_order>1</sort_order>
|
324 |
+
<show_in_default>1</show_in_default>
|
325 |
+
<show_in_website>1</show_in_website>
|
326 |
+
<show_in_store>1</show_in_store>
|
327 |
+
</enabled>
|
328 |
+
<intro translate="lable">
|
329 |
+
<label>Intro</label>
|
330 |
+
<frontend_type>textarea</frontend_type>
|
331 |
+
<sort_order>2</sort_order>
|
332 |
+
<show_in_default>1</show_in_default>
|
333 |
+
<show_in_website>1</show_in_website>
|
334 |
+
<show_in_store>1</show_in_store>
|
335 |
+
<depends><enabled>1</enabled></depends>
|
336 |
+
</intro>
|
337 |
+
<enable_paging>
|
338 |
+
<label>Paging</label>
|
339 |
+
<frontend_type>select</frontend_type>
|
340 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
341 |
+
<sort_order>3</sort_order>
|
342 |
+
<show_in_default>1</show_in_default>
|
343 |
+
<show_in_website>1</show_in_website>
|
344 |
+
<show_in_store>1</show_in_store>
|
345 |
+
</enable_paging>
|
346 |
+
<paging_settings>
|
347 |
+
<label>Reviews per page</label>
|
348 |
+
<frontend_type>text</frontend_type>
|
349 |
+
<sort_order>4</sort_order>
|
350 |
+
<show_in_default>1</show_in_default>
|
351 |
+
<show_in_website>1</show_in_website>
|
352 |
+
<show_in_store>1</show_in_store>
|
353 |
+
<tooltip>Comma Separated, as: 10,20,30</tooltip>
|
354 |
+
<depends><enable_paging>1</enable_paging></depends>
|
355 |
+
</paging_settings>
|
356 |
+
<!--<add_toplink translate="label">
|
357 |
+
<label>Add a link to toplink</label>
|
358 |
+
<frontend_type>select</frontend_type>
|
359 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
360 |
+
<sort_order>4</sort_order>
|
361 |
+
<show_in_default>1</show_in_default>
|
362 |
+
<show_in_website>1</show_in_website>
|
363 |
+
<show_in_store>1</show_in_store>
|
364 |
+
</add_toplink>-->
|
365 |
+
<heading_meta translate="label">
|
366 |
+
<label>Meta Data</label>
|
367 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
368 |
+
<sort_order>10</sort_order>
|
369 |
+
<show_in_default>1</show_in_default>
|
370 |
+
<show_in_website>1</show_in_website>
|
371 |
+
<show_in_store>1</show_in_store>
|
372 |
+
</heading_meta>
|
373 |
+
<meta_title translate="lable">
|
374 |
+
<label>Meta Title</label>
|
375 |
+
<frontend_type>text</frontend_type>
|
376 |
+
<sort_order>11</sort_order>
|
377 |
+
<show_in_default>1</show_in_default>
|
378 |
+
<show_in_website>1</show_in_website>
|
379 |
+
<show_in_store>1</show_in_store>
|
380 |
+
<depends><enabled>1</enabled></depends>
|
381 |
+
</meta_title>
|
382 |
+
<meta_description translate="lable">
|
383 |
+
<label>Meta Description</label>
|
384 |
+
<frontend_type>textarea</frontend_type>
|
385 |
+
<sort_order>12</sort_order>
|
386 |
+
<show_in_default>1</show_in_default>
|
387 |
+
<show_in_website>1</show_in_website>
|
388 |
+
<show_in_store>1</show_in_store>
|
389 |
+
<depends><enabled>1</enabled></depends>
|
390 |
+
</meta_description>
|
391 |
+
<meta_keywords translate="label">
|
392 |
+
<label>Meta Keywords</label>
|
393 |
+
<frontend_type>textarea</frontend_type>
|
394 |
+
<sort_order>13</sort_order>
|
395 |
+
<show_in_default>1</show_in_default>
|
396 |
+
<show_in_website>1</show_in_website>
|
397 |
+
<show_in_store>1</show_in_store>
|
398 |
+
<depends><enabled>1</enabled></depends>
|
399 |
+
</meta_keywords>
|
400 |
+
</fields>
|
401 |
+
</overview>
|
402 |
+
<invitation translate="label">
|
403 |
+
<label>Invitation to write the customer experience</label>
|
404 |
+
<frontend_type>text</frontend_type>
|
405 |
+
<sort_order>7</sort_order>
|
406 |
+
<show_in_default>1</show_in_default>
|
407 |
+
<show_in_website>1</show_in_website>
|
408 |
+
<show_in_store>1</show_in_store>
|
409 |
+
<expanded>1</expanded>
|
410 |
+
<fields>
|
411 |
+
<enabled translate="label">
|
412 |
+
<label>Activate</label>
|
413 |
+
<frontend_type>select</frontend_type>
|
414 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
415 |
+
<sort_order>1</sort_order>
|
416 |
+
<show_in_default>1</show_in_default>
|
417 |
+
<show_in_website>1</show_in_website>
|
418 |
+
<show_in_store>1</show_in_store>
|
419 |
+
<comment>Send invitation?</comment>
|
420 |
+
<tooltip>Send customers automatically receive an invitation to share a customer experience.</tooltip>
|
421 |
+
</enabled>
|
422 |
+
<connector>
|
423 |
+
<label>Connector Code</label>
|
424 |
+
<frontend_type>text</frontend_type>
|
425 |
+
<sort_order>2</sort_order>
|
426 |
+
<show_in_default>1</show_in_default>
|
427 |
+
<show_in_website>1</show_in_website>
|
428 |
+
<show_in_store>1</show_in_store>
|
429 |
+
<comment>Can be obtained from the Feedbackcompany Dashboard</comment>
|
430 |
+
<depends><enabled>1</enabled></depends>
|
431 |
+
</connector>
|
432 |
+
<status>
|
433 |
+
<label>Order completed with status</label>
|
434 |
+
<frontend_type>select</frontend_type>
|
435 |
+
<source_model>feedbackcompany/system_config_source_orderstatus</source_model>
|
436 |
+
<sort_order>3</sort_order>
|
437 |
+
<show_in_default>1</show_in_default>
|
438 |
+
<show_in_website>1</show_in_website>
|
439 |
+
<show_in_store>1</show_in_store>
|
440 |
+
<can_be_empty>1</can_be_empty>
|
441 |
+
<comment>Invitation e-mail is sent after such status is achieved</comment>
|
442 |
+
<tooltip>Specify at which status you want to send the invitation. Default is "Completed"</tooltip>
|
443 |
+
<depends><enabled>1</enabled></depends>
|
444 |
+
</status>
|
445 |
+
<delay translate="label">
|
446 |
+
<label>Delay</label>
|
447 |
+
<frontend_type>text</frontend_type>
|
448 |
+
<sort_order>4</sort_order>
|
449 |
+
<show_in_default>1</show_in_default>
|
450 |
+
<show_in_website>1</show_in_website>
|
451 |
+
<show_in_store>1</show_in_store>
|
452 |
+
<comment>Send the invitation x days after the order is completed</comment>
|
453 |
+
<tooltip>This will ensure that the customer receives the invitation shortly after receiving the product and not before. This increases the opportunity that the client will share his experience.</tooltip>
|
454 |
+
<depends><enabled>1</enabled></depends>
|
455 |
+
</delay>
|
456 |
+
<remind_delay translate="label">
|
457 |
+
<label>Remind Delay</label>
|
458 |
+
<frontend_type>text</frontend_type>
|
459 |
+
<sort_order>5</sort_order>
|
460 |
+
<show_in_default>1</show_in_default>
|
461 |
+
<show_in_website>1</show_in_website>
|
462 |
+
<show_in_store>1</show_in_store>
|
463 |
+
<comment>Send the invitation reminder x days after the previous reminder. 0 = none</comment>
|
464 |
+
<depends><enabled>1</enabled></depends>
|
465 |
+
</remind_delay>
|
466 |
+
<backlog translate="label">
|
467 |
+
<label>Maximum Delay</label>
|
468 |
+
<frontend_type>text</frontend_type>
|
469 |
+
<sort_order>6</sort_order>
|
470 |
+
<show_in_default>1</show_in_default>
|
471 |
+
<show_in_website>1</show_in_website>
|
472 |
+
<show_in_store>1</show_in_store>
|
473 |
+
<comment>Change only if necessary</comment>
|
474 |
+
<tooltip>Number of days to complete order may last, if it takes longer then no invitation will be sent. Read more about this feature on Feedbackcompany.nl.</tooltip>
|
475 |
+
<depends><enabled>1</enabled></depends>
|
476 |
+
</backlog>
|
477 |
+
<resend translate="label">
|
478 |
+
<label>Resend if Double</label>
|
479 |
+
<frontend_type>select</frontend_type>
|
480 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
481 |
+
<sort_order>7</sort_order>
|
482 |
+
<show_in_default>1</show_in_default>
|
483 |
+
<show_in_website>1</show_in_website>
|
484 |
+
<show_in_store>1</show_in_store>
|
485 |
+
<depends><enabled>1</enabled></depends>
|
486 |
+
<comment>If yes, customers will get new review reminders for every new order.</comment>
|
487 |
+
</resend>
|
488 |
+
</fields>
|
489 |
+
</invitation>
|
490 |
+
<log translate="label">
|
491 |
+
<label>Feedbackcompany Log Settings</label>
|
492 |
+
<frontend_type>text</frontend_type>
|
493 |
+
<sort_order>9</sort_order>
|
494 |
+
<show_in_default>1</show_in_default>
|
495 |
+
<show_in_website>0</show_in_website>
|
496 |
+
<show_in_store>0</show_in_store>
|
497 |
+
<expanded>1</expanded>
|
498 |
+
<fields>
|
499 |
+
<enabled translate="label">
|
500 |
+
<label>Enable Log Function</label>
|
501 |
+
<frontend_type>select</frontend_type>
|
502 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
503 |
+
<sort_order>1</sort_order>
|
504 |
+
<show_in_default>1</show_in_default>
|
505 |
+
<show_in_website>0</show_in_website>
|
506 |
+
<show_in_store>0</show_in_store>
|
507 |
+
</enabled>
|
508 |
+
<clean translate="label">
|
509 |
+
<label>Auto Cleaning</label>
|
510 |
+
<frontend_type>select</frontend_type>
|
511 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
512 |
+
<sort_order>2</sort_order>
|
513 |
+
<show_in_default>1</show_in_default>
|
514 |
+
<show_in_website>0</show_in_website>
|
515 |
+
<show_in_store>0</show_in_store>
|
516 |
+
<depends><enabled>1</enabled></depends>
|
517 |
+
</clean>
|
518 |
+
<clean_days translate="label">
|
519 |
+
<label>Clean after Days</label>
|
520 |
+
<validate>validate-number</validate>
|
521 |
+
<frontend_type>text</frontend_type>
|
522 |
+
<sort_order>3</sort_order>
|
523 |
+
<show_in_default>1</show_in_default>
|
524 |
+
<show_in_website>0</show_in_website>
|
525 |
+
<show_in_store>0</show_in_store>
|
526 |
+
<depends><enabled>1</enabled></depends>
|
527 |
+
</clean_days>
|
528 |
+
</fields>
|
529 |
+
</log>
|
530 |
+
<snippets translate="label">
|
531 |
+
<label>Feedbackcompany Custom Blocks</label>
|
532 |
+
<frontend_type>text</frontend_type>
|
533 |
+
<sort_order>10</sort_order>
|
534 |
+
<show_in_default>1</show_in_default>
|
535 |
+
<show_in_website>1</show_in_website>
|
536 |
+
<show_in_store>1</show_in_store>
|
537 |
+
<expanded>1</expanded>
|
538 |
+
<comment><![CDATA[<p>The extension comes with two coded blocks.<br>With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>The Rich Snippets Block.<br></strong>Show your Store-rating with this block and generate results in the Google Search Engine Results better known as Rich Snippets.<br>Paste the code below at the desired location using a Static Block or a CMS page.</p><p>Code: {{block type="feedbackcompany/snippets" name="feedbackcompanysnippets"}}</p><p><br><strong>Custom Block.</strong><br>With this block you can create custom block for footer of header, you can paste the code below at the desired location using a Static Block or a CMS page.<br>To edit this block you need to edit the .phtml file located in the following path: app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/custom.phtml</p><p>Code: {{block type="feedbackcompany/custom" name="feedbackcompany"}}</p>]]></comment>
|
539 |
+
</snippets>
|
540 |
+
</groups>
|
541 |
+
</feedbackcompany>
|
542 |
+
</sections>
|
543 |
+
</config>
|
app/code/local/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-install-0.9.0.php
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
$installer = $this;
|
23 |
+
$installer->startSetup();
|
24 |
+
$installer->run("
|
25 |
+
DROP TABLE IF EXISTS {$this->getTable('feedbackcompany_reviews')};
|
26 |
+
CREATE TABLE IF NOT EXISTS {$this->getTable('feedbackcompany_reviews')} (
|
27 |
+
`review_id` int(10) NOT NULL AUTO_INCREMENT,
|
28 |
+
`shop_id` int(5) NOT NULL,
|
29 |
+
`company` varchar(255) DEFAULT NULL,
|
30 |
+
`feedback_id` int(5) NOT NULL,
|
31 |
+
`review_text` text NOT NULL,
|
32 |
+
`score` smallint(6) DEFAULT '0',
|
33 |
+
`score_max` smallint(6) DEFAULT '0',
|
34 |
+
`score_aftersales` smallint(6) DEFAULT '0',
|
35 |
+
`score_checkout` smallint(6) DEFAULT '0',
|
36 |
+
`score_information` smallint(6) DEFAULT '0',
|
37 |
+
`score_friendly` smallint(6) DEFAULT '0',
|
38 |
+
`score_leadtime` smallint(6) DEFAULT '0',
|
39 |
+
`score_responsetime` smallint(6) DEFAULT '0',
|
40 |
+
`score_order` smallint(6) DEFAULT '0',
|
41 |
+
`customer_name` varchar(255) DEFAULT NULL,
|
42 |
+
`customer_recommend` varchar(255) DEFAULT NULL,
|
43 |
+
`customer_active` varchar(255) DEFAULT NULL,
|
44 |
+
`customer_sex` varchar(255) DEFAULT NULL,
|
45 |
+
`customer_age` smallint(6) DEFAULT '0',
|
46 |
+
`purchased_products` varchar(255) DEFAULT NULL,
|
47 |
+
`text_positive` varchar(255) DEFAULT NULL,
|
48 |
+
`text_improvements` varchar(255) DEFAULT NULL,
|
49 |
+
`date_created` date NOT NULL,
|
50 |
+
`date_updated` date NOT NULL,
|
51 |
+
`sidebar` tinyint(1) NOT NULL DEFAULT '1',
|
52 |
+
`status` tinyint(5) NOT NULL DEFAULT '1',
|
53 |
+
PRIMARY KEY (`review_id`)
|
54 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
55 |
+
|
56 |
+
DROP TABLE IF EXISTS {$this->getTable('feedbackcompany_log')};
|
57 |
+
CREATE TABLE IF NOT EXISTS {$this->getTable('feedbackcompany_log')} (
|
58 |
+
`id` int(10) NOT NULL AUTO_INCREMENT,
|
59 |
+
`type` varchar(255) NOT NULL,
|
60 |
+
`shop_id` varchar(255) NOT NULL,
|
61 |
+
`company` varchar(255) DEFAULT NULL,
|
62 |
+
`review_update` int(5) DEFAULT '0',
|
63 |
+
`review_new` int(5) DEFAULT '0',
|
64 |
+
`response` text,
|
65 |
+
`order_id` int(10) DEFAULT NULL,
|
66 |
+
`cron` varchar(255) DEFAULT NULL,
|
67 |
+
`date` datetime NOT NULL,
|
68 |
+
`time` varchar(255) NOT NULL,
|
69 |
+
`api_url` text,
|
70 |
+
PRIMARY KEY (`id`)
|
71 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
72 |
+
|
73 |
+
DROP TABLE IF EXISTS {$this->getTable('feedbackcompany_stats')};
|
74 |
+
CREATE TABLE IF NOT EXISTS {$this->getTable('feedbackcompany_stats')} (
|
75 |
+
`id` int(5) NOT NULL AUTO_INCREMENT,
|
76 |
+
`company` varchar(255) DEFAULT NULL,
|
77 |
+
`shop_id` int(5) NOT NULL,
|
78 |
+
`score` smallint(6) DEFAULT '0',
|
79 |
+
`scoremax` smallint(6) DEFAULT '0',
|
80 |
+
`votes` int(5) DEFAULT '0',
|
81 |
+
PRIMARY KEY (`id`)
|
82 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
83 |
+
");
|
84 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/magmodules_feedbackcompany.xml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<adminhtml_feedbackreviews_index>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss"><name>magmodules/feedbackcompany/grid.css</name></action>
|
6 |
+
</reference>
|
7 |
+
<reference name="content">
|
8 |
+
<block type="feedbackcompany/adminhtml_feedbackreviews" name="feedbackcompany" />
|
9 |
+
</reference>
|
10 |
+
</adminhtml_feedbackreviews_index>
|
11 |
+
<adminhtml_feedbacklog_index>
|
12 |
+
<reference name="content">
|
13 |
+
<block type="feedbackcompany/adminhtml_feedbacklog" name="feedbacklog" />
|
14 |
+
</reference>
|
15 |
+
</adminhtml_feedbacklog_index>
|
16 |
+
</layout>
|
app/design/frontend/base/default/layout/magmodules_feedbackcompany.xml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss"><stylesheet>magmodules/feedbackcompany/sidebar.css</stylesheet></action>
|
6 |
+
</reference>
|
7 |
+
<reference name="left">
|
8 |
+
<block type="feedbackcompany/sidebar" name="left.feedbackcompany" template="magmodules/feedbackcompany/sidebar/left.phtml" />
|
9 |
+
</reference>
|
10 |
+
<reference name="right">
|
11 |
+
<block type="feedbackcompany/sidebar" name="right.feedbackcompany" template="magmodules/feedbackcompany/sidebar/right.phtml" />
|
12 |
+
</reference>
|
13 |
+
</default>
|
14 |
+
<feedbackcompany_index_index>
|
15 |
+
<reference name="root">
|
16 |
+
<action method="setTemplate"><template>page/2columns-left.phtml</template></action>
|
17 |
+
</reference>
|
18 |
+
<reference name="head">
|
19 |
+
<action method="addCss"><stylesheet>magmodules/feedbackcompany/style.css</stylesheet> </action>
|
20 |
+
</reference>
|
21 |
+
<reference name="content">
|
22 |
+
<block type="feedbackcompany/reviews" name="feedbackcompany.index" template="magmodules/feedbackcompany/index.phtml" />
|
23 |
+
</reference>
|
24 |
+
<reference name="left">
|
25 |
+
<remove name="left.feedbackcompany" />
|
26 |
+
</reference>
|
27 |
+
<reference name="right">
|
28 |
+
<remove name="right.feedbackcompany" />
|
29 |
+
</reference>
|
30 |
+
</feedbackcompany_index_index>
|
31 |
+
<cms_index_index>
|
32 |
+
<reference name="head">
|
33 |
+
<action method="addCss"><stylesheet>magmodules/feedbackcompany/richsnippters.css</stylesheet></action>
|
34 |
+
</reference>
|
35 |
+
</cms_index_index>
|
36 |
+
</layout>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/index.phtml
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
?>
|
23 |
+
<?php
|
24 |
+
// Load Reviews & Stats
|
25 |
+
$reviews = $this->getReviews();
|
26 |
+
$stats = $this->getStats();
|
27 |
+
?>
|
28 |
+
<div class="feedbackcompany">
|
29 |
+
|
30 |
+
<div class="page-title">
|
31 |
+
<h1><?php echo $this->__('Feedbackcompany'); ?></h1>
|
32 |
+
<?php if(Mage::getStoreConfig('feedbackcompany/general/url')): ?>
|
33 |
+
<button class="button" onclick="setLocation('<?php echo Mage::getStoreConfig('feedbackcompany/general/url'); ?>')">
|
34 |
+
<span>
|
35 |
+
<span>
|
36 |
+
<?php echo $this->__('Write review');?>
|
37 |
+
</span>
|
38 |
+
</span>
|
39 |
+
</button>
|
40 |
+
<?php endif; ?>
|
41 |
+
</div>
|
42 |
+
|
43 |
+
<?php if($reviews->getSize()): ?>
|
44 |
+
<div class="content-feedbackcompany">
|
45 |
+
<div class="about-feedbackcompany">
|
46 |
+
<?php echo nl2br(Mage::getStoreConfig('feedbackcompany/overview/intro')); ?>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<?php $i=0; foreach($reviews as $review): ?>
|
51 |
+
<div class="review-list">
|
52 |
+
<div class="review-header">
|
53 |
+
<h3><?php echo $review->getCustomerName(); ?> - <?php echo Mage::helper('core')->formatDate($review->getDateCreated(), 'long', false); ?></h3>
|
54 |
+
<?php if($review->getScore()): ?>
|
55 |
+
<ul class="overall">
|
56 |
+
<li>
|
57 |
+
<span class="rating-empty"><span class="rating-star-<?php echo $review->getScore();?>"></span></span>
|
58 |
+
</li>
|
59 |
+
</ul>
|
60 |
+
<?php endif; ?>
|
61 |
+
</div>
|
62 |
+
<ul class="experience">
|
63 |
+
<li>
|
64 |
+
<p>
|
65 |
+
<?php if($review->getReviewText()): ?>
|
66 |
+
<?php echo nl2br($review->getReviewText()); ?>
|
67 |
+
<?php else: ?>
|
68 |
+
|
69 |
+
<?php endif; ?>
|
70 |
+
</p>
|
71 |
+
</li>
|
72 |
+
</ul>
|
73 |
+
<ul class="summary-index">
|
74 |
+
<?php if($review->getScoreAftersales() > 0): ?>
|
75 |
+
<li>
|
76 |
+
<span class="rating-name"><?php echo $this->__('Aftersales');?></span>
|
77 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreAftersales();?>"></span></span>
|
78 |
+
</li>
|
79 |
+
<?php endif; ?>
|
80 |
+
<?php if($review->getScoreCheckout() > 0): ?>
|
81 |
+
<li>
|
82 |
+
<span class="rating-name"><?php echo $this->__('Checkout');?></span>
|
83 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreCheckout();?>"></span></span>
|
84 |
+
</li>
|
85 |
+
<?php endif; ?>
|
86 |
+
<?php if($review->getScoreInformation() > 0): ?>
|
87 |
+
<li>
|
88 |
+
<span class="rating-name"><?php echo $this->__('Information');?></span>
|
89 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreInformation();?>"></span></span>
|
90 |
+
</li>
|
91 |
+
<?php endif; ?>
|
92 |
+
<?php if($review->getScoreFriendly() > 0): ?>
|
93 |
+
<li>
|
94 |
+
<span class="rating-name"><?php echo $this->__('Friendlyness');?></span>
|
95 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreFriendly();?>"></span></span>
|
96 |
+
</li>
|
97 |
+
<?php endif; ?>
|
98 |
+
<?php if($review->getScoreLeadtime() > 0): ?>
|
99 |
+
<li>
|
100 |
+
<span class="rating-name"><?php echo $this->__('Leadtime');?></span>
|
101 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreLeadtime();?>"></span></span>
|
102 |
+
</li>
|
103 |
+
<?php endif; ?>
|
104 |
+
<?php if($review->getScoreResponsetime() > 0): ?>
|
105 |
+
<li>
|
106 |
+
<span class="rating-name"><?php echo $this->__('Responsetime');?></span>
|
107 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreResponsetime();?>"></span></span>
|
108 |
+
</li>
|
109 |
+
<?php endif; ?>
|
110 |
+
<?php if($review->getScoreOrder() > 0): ?>
|
111 |
+
<li>
|
112 |
+
<span class="rating-name"><?php echo $this->__('Orderprocess');?></span>
|
113 |
+
<span class="rating-empty"><span class="rating-greystar-<?php echo $review->getScoreOrder();?>"></span></span>
|
114 |
+
</li>
|
115 |
+
<?php endif; ?>
|
116 |
+
</ul>
|
117 |
+
</div>
|
118 |
+
<?php $i++; endforeach;?>
|
119 |
+
<?php echo $this->getPagerHtml(); ?>
|
120 |
+
<?php else: ?>
|
121 |
+
<p class="note-msg"><?php echo $this->__('No reviews found...'); ?></p>
|
122 |
+
<?php endif ?>
|
123 |
+
</div>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
$sidebarreviews = $this->getSidebarCollection('left');
|
23 |
+
$total = $this->getTotalScore();
|
24 |
+
?>
|
25 |
+
<?php if($sidebarreviews && $total): ?>
|
26 |
+
<div class="block feedbackcompany-sidebar">
|
27 |
+
<div class="block-title">
|
28 |
+
<strong><span><?php echo $this->__('Feedbackcompany') ?></span></strong>
|
29 |
+
</div>
|
30 |
+
<?php if($total->getPercentage() > 0): ?>
|
31 |
+
<?php if($this->getSnippetsEnabled('left')): ?>
|
32 |
+
<div class="block-content" itemscope itemtype="http://schema.org/LocalBusiness">
|
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>
|
37 |
+
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
<?php else: ?>
|
41 |
+
<div class="block-content">
|
42 |
+
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
43 |
+
<div class="total-block-text">
|
44 |
+
<p><strong><?php echo $total->getStarsQty(); ?> / 5.00</strong></p>
|
45 |
+
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
<?php endif; ?>
|
49 |
+
<?php endif; ?>
|
50 |
+
<?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
|
51 |
+
<?php $content = $this->formatContent($sidebarreview, 'left'); ?>
|
52 |
+
<div class="block-content">
|
53 |
+
<div class="feedbackcompany-sidebar-block">
|
54 |
+
<p><u><?php echo $sidebarreview->getCustomerName(); ?></u>: "<?php echo $content; ?>"</p>
|
55 |
+
<span class="rating-name"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></span>
|
56 |
+
<?php if($sidebarreview->getScore()): ?>
|
57 |
+
<span class="rating-empty"><span class="rating-star-<?php echo $sidebarreview->getScore();?>"></span></span>
|
58 |
+
<?php endif; ?>
|
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">
|
66 |
+
<?php echo $reviewurl; ?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<?php endif; ?>
|
70 |
+
</div>
|
71 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
$sidebarreviews = $this->getSidebarCollection('right');
|
23 |
+
$total = $this->getTotalScore();
|
24 |
+
?>
|
25 |
+
<?php if($sidebarreviews && $total): ?>
|
26 |
+
<div class="block feedbackcompany-sidebar">
|
27 |
+
<div class="block-title">
|
28 |
+
<strong><span><?php echo $this->__('Feedbackcompany') ?></span></strong>
|
29 |
+
</div>
|
30 |
+
<?php if($total->getPercentage() > 0): ?>
|
31 |
+
<?php if($this->getSnippetsEnabled('right')): ?>
|
32 |
+
<div class="block-content" itemscope itemtype="http://schema.org/LocalBusiness">
|
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>
|
37 |
+
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
38 |
+
</div>
|
39 |
+
</div>
|
40 |
+
<?php else: ?>
|
41 |
+
<div class="block-content">
|
42 |
+
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
43 |
+
<div class="total-block-text">
|
44 |
+
<p><strong><?php echo $total->getStarsQty(); ?> / 5.00</strong></p>
|
45 |
+
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
46 |
+
</div>
|
47 |
+
</div>
|
48 |
+
<?php endif; ?>
|
49 |
+
<?php endif; ?>
|
50 |
+
<?php $i=0; foreach($sidebarreviews as $sidebarreview): ?>
|
51 |
+
<?php $content = $this->formatContent($sidebarreview, 'right'); ?>
|
52 |
+
<div class="block-content">
|
53 |
+
<div class="feedbackcompany-sidebar-block">
|
54 |
+
<p><u><?php echo $sidebarreview->getCustomerName(); ?></u>: "<?php echo $content; ?>"</p>
|
55 |
+
<span class="rating-name"><?php echo Mage::helper('core')->formatDate($sidebarreview->getDateCreated(), 'medium', false) ; ?></span>
|
56 |
+
<?php if($sidebarreview->getScore()): ?>
|
57 |
+
<span class="rating-empty"><span class="rating-star-<?php echo $sidebarreview->getScore();?>"></span></span>
|
58 |
+
<?php endif; ?>
|
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">
|
66 |
+
<?php echo $reviewurl; ?>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
<?php endif; ?>
|
70 |
+
</div>
|
71 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/custom.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
|
23 |
+
// Load data
|
24 |
+
$enabled = $this->getFeedbackcompanyEnabled();
|
25 |
+
$data = $this->getFeedbackcompanyData();
|
26 |
+
|
27 |
+
// All available data
|
28 |
+
$company = $data->getCompany();
|
29 |
+
$percentage = $data->getPercentage();
|
30 |
+
|
31 |
+
?>
|
32 |
+
<?php if($enabled) { ?>
|
33 |
+
<div class="feedbackcompany-custom">
|
34 |
+
<div class="client">Klanten vinden <?php echo $company; ?> goed!</div>
|
35 |
+
<div class="rating-box">
|
36 |
+
<div class="rating" style="width:<?php echo $percentage; ?>%"> </div>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
<?php } ?>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/richsnippets.phtml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Feedbackcompany
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
20 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
+
*/
|
22 |
+
?>
|
23 |
+
<?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
|
24 |
+
<div class="feedbackcompany-snippets">
|
25 |
+
<?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
|
26 |
+
<div itemscope="itemscope" itemtype="http://schema.org/Product">
|
27 |
+
<meta itemprop="name" content="<?php echo $snippets->getCompany(); ?>">
|
28 |
+
<div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating">
|
29 |
+
<meta itemprop="bestRating" content="100">
|
30 |
+
<p><?php echo Mage::helper('feedbackcompany')->__('Rating %s based on %s customer reviews', '<span itemprop="ratingValue">' . $snippets->getPercentage() . '</span>%', '<span itemprop="reviewCount">' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
<?php } ?>
|
app/etc/modules/Magmodules_Feedbackcompany.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Magmodules_Feedbackcompany>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Magmodules_Feedbackcompany>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/Magmodules_Feedbackcompany.csv
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"(more)","(more)"
|
2 |
+
"%s - Repsonse: %s","%s - Repsonse: %s"
|
3 |
+
"%s new review(s)","%s - Repsonse: %s"
|
4 |
+
"%s review(s) updated","%s review(s) updated"
|
5 |
+
"Activate,"Activate"
|
6 |
+
"Add Rich Snippets","Add Rich Snippets"
|
7 |
+
"Add to Sidebar","Add to Sidebar"
|
8 |
+
"Add to Sidebar Homepage","Add to Sidebar Homepage"
|
9 |
+
"Aftersales","Aftersales"
|
10 |
+
"API CREDENTIALS","API CREDENTIALS"
|
11 |
+
"Are you sure you want to cleanup logfiles?","Are you sure you want to cleanup logfiles?"
|
12 |
+
"Are you sure you want to delete all reviews?","Are you sure you want to delete all reviews?"
|
13 |
+
"Auto Cleaning","Auto Cleaning"
|
14 |
+
"Based on %s reviews","Based on %s reviews"
|
15 |
+
"Can be obtained from the Feedbackcompany Dashboard","Can be obtained from the Feedbackcompany Dashboard"
|
16 |
+
"Change only if necessary","Change only if necessary"
|
17 |
+
"Character length of Reviews","Character length of Reviews"
|
18 |
+
"Connector Code","Connector Code"
|
19 |
+
"Company","Company"
|
20 |
+
"Clean after Days","Clean After Days"
|
21 |
+
"Cleanup Log","Cleanup Log"
|
22 |
+
"Delay","Delay"
|
23 |
+
"Delete all reviews","Delete all reviews"
|
24 |
+
"Delivery","Delivery"
|
25 |
+
"Delivery Time","Delivery Time"
|
26 |
+
"Enable Log Function","Enable Log Function"
|
27 |
+
"Enabled","Enabled"
|
28 |
+
"Experience","Experience"
|
29 |
+
"Every 15 minutes","Every 15 minutes"
|
30 |
+
"Every Hour","Every Hour"
|
31 |
+
"Every other Hour","Every other Hour"
|
32 |
+
"Twice a Day","Twice a Day"
|
33 |
+
"Once a Day","Once a Day"
|
34 |
+
"Once a Week","Once a Week"
|
35 |
+
"Feedbackcompany Config","Feedbackcompany Config"
|
36 |
+
"Feedbackcompany Custom Blocks","Feedbackcompany Custom Blocks"
|
37 |
+
"Feedbackcompany Import Reviews","Feedbackcompany Import Reviews"
|
38 |
+
"Feedbackcompany Log","Feedbackcompany Log"
|
39 |
+
"Feedbackcompany Log Settings","Feedbackcompany Log Settings"
|
40 |
+
"Feedbackcompany Overview Page","Feedbackcompany Overview Page"
|
41 |
+
"Feedbackcompany Reviews","Feedbackcompany Reviews"
|
42 |
+
"Feedbackcompany Reviews Sidebar","Feedbackcompany Reviews Sidebar"
|
43 |
+
"Feedbackcompany Rich Snippets","Feedbackcompany Rich Snippets"
|
44 |
+
"Friendlyness","Friendlyness"
|
45 |
+
"General Configuration","General Configuration"
|
46 |
+
"Import Automatically","Import Automatically"
|
47 |
+
"Invitation Call","Invitation Call"
|
48 |
+
"Intro","Intro"
|
49 |
+
"Invitation e-mail is sent after such status is achieved","Invitation e-mail is sent after such status is achieved"
|
50 |
+
"Invitation to write the customer experience","Invitation to write the customer experience"
|
51 |
+
"If yes, customers will get new review reminders for every new order.","If yes, customers will get new review reminders for every new order."
|
52 |
+
"Last Update","Last Update"
|
53 |
+
"Latest Reviews Visibility","Latest Reviews Visibility"
|
54 |
+
"Left Sidebar","Left Sidebar"
|
55 |
+
"Link","Link"
|
56 |
+
"Link to","Link to"
|
57 |
+
"Logs can be activated in order to detect errors.<br/> This feature is particularly for developers.<br/><br/>","Logs can be activated in order to detect errors.<br/> This feature is particularly for developers.<br/><br/>"
|
58 |
+
"Manage Reviews","Manage Reviews"
|
59 |
+
"Manage Log","Manage Logs"
|
60 |
+
"Maximum Delay","Maximum Delay"
|
61 |
+
"Meta Data","Meta Data"
|
62 |
+
"Meta Description","Meta Description"
|
63 |
+
"Meta Keywords","Meta Keywords"
|
64 |
+
"Meta Title","Meta Title"
|
65 |
+
"Number of days to complete order may last, if it takes longer then no invitation will be sent. Read more about this feature on Feedbackcompany.nl.","Number of days to complete order may last, if it takes longer then no invitation will be sent. Read more about this feature on Feedbackcompany.nl."
|
66 |
+
"Number of Reviews","Number of Reviews"
|
67 |
+
"Order completed with status","Order is Completed with status"
|
68 |
+
"Pagination","Pagination"
|
69 |
+
"Pagination is the process of dividing (content) into discrete pages","Pagination is the process of dividing (content) into discrete pages"
|
70 |
+
"Place of the sidebar","Place of the sidebar"
|
71 |
+
"Placement from top screen","Placement from top screen"
|
72 |
+
"Please select item(s)","Please select item(s)"
|
73 |
+
"Price / Quality","Price / Quality"
|
74 |
+
"Price Quality","Price Quality"
|
75 |
+
"Process Manually","Process Manually"
|
76 |
+
"Rating %s based on %s customer reviews","Rating %s based on %s customer reviews"
|
77 |
+
"Remove from Sidebar","Remove from Sidebar"
|
78 |
+
"Remind Delay,"Remind Delay"
|
79 |
+
"Resend if Double","Resend if Double"
|
80 |
+
"Reviews per page","Reviews per page"
|
81 |
+
"Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""feedbackcompany/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>","Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""feedbackcompany/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>"
|
82 |
+
"Right Sidebar","Right Sidebar"
|
83 |
+
"Select the schedule for automatic updating","Select the schedule for automatic updating"
|
84 |
+
"Send invitation?","Send invitation?"
|
85 |
+
"Send customers automatically receive an invitation to share a customer experience.","Send customers automatically receive an invitation to share a customer experience."
|
86 |
+
"Send the invitation reminder x days after the previous reminder. 0 = none","Send the invitation reminder x days after the previous reminder. 0 = none"
|
87 |
+
"Send the invitation x days after the order is completed","Send the invitation x days after the order is completed"
|
88 |
+
"Set to invisible","Set to invisible"
|
89 |
+
"Set to visible","Set to visible"
|
90 |
+
"Shop","Shop",
|
91 |
+
"Show Sidebar","Show Sidebar"
|
92 |
+
"Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>","Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>"
|
93 |
+
"Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.","Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion."
|
94 |
+
"Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.","Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store."
|
95 |
+
"Sidebar","Sidebar"
|
96 |
+
"Sidebar Position","Sidebar Position"
|
97 |
+
"Specify at which status you want to send the invitation. Default is ""Completed""","Specify at which status you want to send the invitation. Default is ""Completed""."
|
98 |
+
"Succefully deleted all %s saved review(s).","Succefully deleted all %s saved review(s)."
|
99 |
+
"The Feedback Company","The Feedback Company"
|
100 |
+
"The Feedback Company ID","The Feedback Company ID"
|
101 |
+
"The position of the sidebar","The position of the sidebar"
|
102 |
+
"This will ensure that the customer receives the invitation shortly after receiving the product and not before. This increases the opportunity that the client will share his experience.","This will ensure that the customer receives the invitation shortly after receiving the product and not before. This increases the opportunity that the client will share his experience."
|
103 |
+
"To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually.","To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually."
|
104 |
+
"Tooltip","Tooltip"
|
105 |
+
"Total of %d review(s) were added to the sidebar.","Total of %d review(s) were added to the sidebar."
|
106 |
+
"Total of %d review(s) were disabled.","Total of %d review(s) were disabled."
|
107 |
+
"Total of %d review(s) were enabled.","Total of %d review(s) were enabled."
|
108 |
+
"Total of %d review(s) were removed from the sidebar.","Total of %d review(s) were removed from the sidebar."
|
109 |
+
"total score updated.","total score updated."
|
110 |
+
"Update Review History","Update Review History"
|
111 |
+
"Update Reviews","Update Reviews"
|
112 |
+
"Update Summary","Update Summary"
|
113 |
+
"URL","URL"
|
114 |
+
"Use Cronjob","Use Cronjob"
|
115 |
+
"View all reviews","View all reviews"
|
116 |
+
"You can only activate the Rich Snippets when this block is shown on your Homepage only","You can only activate the Rich Snippets when this block is shown on your Homepage only"
|
app/locale/nl_NL/Magmodules_Feedbackcompany.csv
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"(more)","(more)"
|
2 |
+
"%s - Response: %s","%s - Response: %s"
|
3 |
+
"%s review(s) updated","%s review(s) updated"
|
4 |
+
"Activate,"Activeer"
|
5 |
+
"Add Rich Snippets","Voeg Rich Snippets toe"
|
6 |
+
"Add to Sidebar","Voeg toe aan sidebar"
|
7 |
+
"Add to Sidebar Homepage","Voeg toe aan homepage sidebar"
|
8 |
+
"Aftersales","Aftersales"
|
9 |
+
"API CREDENTIALS","API Gegevens"
|
10 |
+
"Are you sure you want to cleanup logfiles?","Alle logfiles opschonen?"
|
11 |
+
"Are you sure you want to delete all reviews?","Alle beoordelingen verwijderen?"
|
12 |
+
"Auto Cleaning","Automatisch opschonen"
|
13 |
+
"Based on %s reviews","Gebaseerd op %s beoordelingen"
|
14 |
+
"Can be obtained from the Feedbackcompany Dashboard","Deze wordt weergegeven in uw dashboard in uw Feedbackcompany account"
|
15 |
+
"Change only if necessary","Verander alleen indien noodzakelijk"
|
16 |
+
"Character length of Reviews","Character length of Reviews"
|
17 |
+
"Connector Code","Connector code"
|
18 |
+
"Company","Bedrijf"
|
19 |
+
"Clean after Days","Schoon op na aantal dagen"
|
20 |
+
"Cleanup Log","Log opschonen"
|
21 |
+
"Delay","Vertraging"
|
22 |
+
"Delete all reviews","Verwijder alle beoordelingen"
|
23 |
+
"Delivery","Aankomst"
|
24 |
+
"Delivery Time","Aankomst tijd"
|
25 |
+
"Enable Log Function","Activeer log functie"
|
26 |
+
"Enabled","Inschakelen"
|
27 |
+
"Experience","Ervaring"
|
28 |
+
"Every 15 minutes","Elke 15 minuten"
|
29 |
+
"Every Hour","Elk uur"
|
30 |
+
"Every other Hour","Om het uur"
|
31 |
+
"Twice a Day","2 keer per dag"
|
32 |
+
"Once a Day","1 keer per dag"
|
33 |
+
"Once a Week","1 keer per week"
|
34 |
+
"Feedbackcompany Config","Feedbackcompany Instellingen"
|
35 |
+
"Feedbackcompany Custom Blocks","Feedbackcompany Blokken"
|
36 |
+
"Feedbackcompany Import Reviews","Feedbackcompany Beoordelingen Importeren"
|
37 |
+
"Feedbackcompany Log","Feedbackcompany Log"
|
38 |
+
"Feedbackcompany Log Settings","Feedbackcompany Log Instellingen"
|
39 |
+
"Feedbackcompany Overview Page","Feedbackcompany Overzicht Page"
|
40 |
+
"Feedbackcompany Reviews","Feedbackcompany Reviews"
|
41 |
+
"Feedbackcompany Reviews Sidebar","Feedbackcompany Beoordelingen Sidebar"
|
42 |
+
"Feedbackcompany Rich Snippets","Feedbackcompany Rich Snippets"
|
43 |
+
"Friendlyness","Gebruiksvriendelijkheid"
|
44 |
+
"General Configuration","Algemene instellingen"
|
45 |
+
"Import Automatically","Automatisch importeren"
|
46 |
+
"Invitation Call","Uitnodiging sturen"
|
47 |
+
"Intro","Intro"
|
48 |
+
"Invitation e-mail is sent after such status is achieved","De uitnodiging wordt verstuurd als deze status is bereikt"
|
49 |
+
"Invitation to write the customer experience","Uitnodiging om een beoordeling te schrijven"
|
50 |
+
"If yes, customers will get new review reminders for every new order.","Indien ja ontvangen klanten bij elke order een herinnering voor het schrijven van een beoordeling."
|
51 |
+
"Last Update","Laatste update"
|
52 |
+
"Latest Reviews Visibility","Laatste beoordelingen zichtbaarheid"
|
53 |
+
"Left Sidebar","Linker Sidebar"
|
54 |
+
"Link","Link"
|
55 |
+
"Link to","Link naar"
|
56 |
+
"Logs can be activated in order to detect errors.<br/> This feature is particularly for developers.<br/><br/>","De logfile kan worden ingeschakeld om foutmeldingen op te slaan.<br/>Deze functie is gemaakt voor ontwikkelaars.<br/><br/>"
|
57 |
+
"Manage Reviews","Beheer Beoordelingen "
|
58 |
+
"Manage Log","Beheer Logfiles"
|
59 |
+
"Maximum Delay","Maximum vertraging"
|
60 |
+
"Meta Data","Meta data"
|
61 |
+
"Meta Description","Meta omschrijving"
|
62 |
+
"Meta Keywords","Meta zoekwoorden"
|
63 |
+
"Meta Title","Meta titel"
|
64 |
+
"Number of days to complete order may last, if it takes longer then no invitation will be sent. Read more about this feature on Feedbackcompany.nl.","Het maximaal aantal dagen tot een order compleet is, als het langer duurt zal er dus geen uitnodiging worden verstuurd. Lees meer hiervoer op Feedbackcompany.nl."
|
65 |
+
"Number of Reviews","Aantal beoordelingen"
|
66 |
+
"Order completed with status","Order is compleet met status"
|
67 |
+
"Pagination","Pagina's scheiden"
|
68 |
+
"Pagination is the process of dividing (content) into discrete pages","Dit verdeelt een lange pagina in meerder pagina's "
|
69 |
+
"Place of the sidebar","Plaats van de sidebar"
|
70 |
+
"Placement from top screen","Positie in topscherm"
|
71 |
+
"Please select item(s)","Selecteer item(s)"
|
72 |
+
"Price / Quality","Prijs / Kwaliteit"
|
73 |
+
"Price Quality","Prijs Kwaliteit"
|
74 |
+
"Process Manually","Voer handmatig uit"
|
75 |
+
"Rating %s based on %s customer reviews","Score %s gebaseerd op %s klantenbeoordelingen"
|
76 |
+
"Remove from Sidebar","Verwijder uit sidebar"
|
77 |
+
"Remind Delay","Herinnering vertraging"
|
78 |
+
"Resend if Double","Opnieuw sturen bij elke order"
|
79 |
+
"Reviews per page","Beoordelingen per pagina"
|
80 |
+
"Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""feedbackcompany/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>","Rich Snippets is a schema.org markup that makes it possible to give richer and more specific information. <br/> The Rich Snippets will show your store rating in the google search engine results. <br/><br/>Use: {{block type=""feedbackcompany/snippets"" name=""webwinkelsnippets""}} to call the block on the homepage.<br/><br/>"
|
81 |
+
"Right Sidebar","Rechter sidebar"
|
82 |
+
"Select the schedule for automatic updating","Selecteer de tijd voor het automatisch bijwerken"
|
83 |
+
"Send invitation?","Stuur uitnodiging voor het schrijven van een beoordelingen?"
|
84 |
+
"Send customers automatically receive an invitation to share a customer experience.","Stuur klanten automatisch een e-mail herinnering om een beoordeling te schrijven."
|
85 |
+
"Send the invitation reminder x days after the previous reminder. 0 = none","Stuur de beoordeling herinnering een x aantal dagen na de eerste herinnering. 0 = geen"
|
86 |
+
"Send the invitation x days after the order is completed","Stuur de uitnodiging een x aantal dagen nadat de order afgerond is"
|
87 |
+
"Set to invisible","Maak ontzichtbaar"
|
88 |
+
"Set to visible","Maak zichtbaar"
|
89 |
+
"Shop","Winkel",
|
90 |
+
"Show Sidebar","Toon Sidebar"
|
91 |
+
"Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>","Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>"
|
92 |
+
"Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.","Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion."
|
93 |
+
"Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.","Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store."
|
94 |
+
"Sidebar","Sidebar"
|
95 |
+
"Sidebar Position","Sidebar Positie"
|
96 |
+
"Specify at which status you want to send the invitation. Default is ""Completed""","Specificeer de status waarnaar de uitnodiging verstuurd kan worden, standaard is dit ""Completed""."
|
97 |
+
"Succefully deleted all %s saved review(s).","Alle %s opgeslagen beoordelingen zijn verwijdert."
|
98 |
+
"The Feedback Company","De Feedback Company"
|
99 |
+
"<p>The extension comes with two coded blocks.<br>With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>The Rich Snippets Block.<br></strong>Show your Store-rating with this block and generate results in the Google Search Engine Results better known as Rich Snippets.<br>Paste the code below at the desired location using a Static Block or a CMS page.</p><p>Code: {{block type=""feedbackcompany/snippets"" name=""feedbackcompanysnippets""}}</p><p><br><strong>Custom Block.</strong><br>With this block you can create custom block for footer of header, you can paste the code below at the desired location using a Static Block or a CMS page.<br>To edit this block you need to edit the .phtml file located in the following path: app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/custom.phtml</p><p>Code: {{block type=""feedbackcompany/custom"" name=""feedbackcompany""}}</p>","<p>Deze extensie komt met 2 verschillende blokken<br>With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>Het Rich Snippets blok.</strong><br></strong>Toon de webwinkel-waardering met in blok en genereer hiermee de zogenaamde Rich Snippets waarbij de winkelbeoordelingen worden getoond in de Zoekmachine resultaten van bijvoorbeeld Google. Plaat de onderstaande code op de gewenste plaats in een statische blok of een CMS-pagina.</p> <p><strong>De code: </strong>{{block type=""feedbackcompany/snippets"" name=""feedbackcompanysnippets""}}</p><p><br><strong>Custom blok.</strong><br>Met dit custom blok is het mogelijk om eenvoudig een eigen blok creëren met daarin verschillende waardes als het aantal klanbeoordelingen, bedrijfsnaam en gemiddelde rating. Plaats de onderstaande code op de gewenste plek in een statisch blok of een CMS-pagina. Om dit blok naar wens te bewerken en eventueel aan te vullen met de geweneste informatie is het mogelijk om het .phtml bestand aan te passen. Deze is te vinden via de volgende path: app/design/frontend/base/default/template/magmodules/webwinkelconnect/widget/custom.phtml </p><p><strong>De code:</strong> {{block type=""feedbackcompany/custom"" name=""feedbackcompany""}}</p>"
|
100 |
+
"The Feedback Company ID","De Feedback winkel ID"
|
101 |
+
"The position of the sidebar","De positie van de sidebar"
|
102 |
+
"This will ensure that the customer receives the invitation shortly after receiving the product and not before. This increases the opportunity that the client will share his experience.","Creëer een vertraging om er zeker van te zijn dat de klant het product heeft ontvangen en/of heeft gebruikt, op deze manier is de kans groter dat de klant daadwerkelijk de bevindingen gaat delen."
|
103 |
+
"To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually.","Om de beoordelingen te tonen dien je deze eerst te importeren, dit kan handmatig en automatisch."
|
104 |
+
"Tooltip","Tooltip"
|
105 |
+
"Total of %d review(s) were added to the sidebar.","Een totaal van %d beoordeling(en) zijn toegevoegd aan de sidebar."
|
106 |
+
"Total of %d review(s) were disabled.","Een totaal van %d beoordeling(en) zijn uitgeschakeld."
|
107 |
+
"Total of %d review(s) were enabled.","Een totaal van %d beoordeling(en)zijn uitgeschakeld."
|
108 |
+
"Total of %d review(s) were removed from the sidebar.","Een totaal van %d beoordeling(en) zijn verwijdert uit de sidebar."
|
109 |
+
"total score updated.","Totaalscore bijgewerkt."
|
110 |
+
"Update Review History","Update beoordeling historie"
|
111 |
+
"Update Reviews","Update beoordelingen"
|
112 |
+
"Update Summary","Update samenvatting"
|
113 |
+
"URL","URL"
|
114 |
+
"Use Cronjob","Gebruik cronjob"
|
115 |
+
"View all reviews","Bekijk alle beoordelingen"
|
116 |
+
"You can only activate the Rich Snippets when this block is shown on your Homepage only","De Rich Snippets kunnen alleen geactiveerd worden wanneer het homepage blok is toegevoegd, de code staat onderaan deze pagina."
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Magmodules_Feedbackcompany</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license/>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Connect your Magento shop to The Feedback Company</summary>
|
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>2014-10-24</date>
|
14 |
+
<time>11:26:54</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="566dacf87508cc790366e6b889148a77"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="8c3558dc6865dd70d6fad0980501c5c6"/></dir><file name="Grid.php" hash="2340bfe115f0eef23959f0275e767c43"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="b0387cab8427665f72f3398fa170dd2f"/><file name="Test.php" hash="508237f0acf76c41fcde454589cf8c9b"/></dir><dir name="Form"><file name="Heading.php" hash="76fd2ef92eace0f6a8e4b0fdbee80ffa"/></dir><dir name="Grid"><file name="Log.php" hash="bae8971ab9161dc533e608c4d5f0f7c4"/><file name="Seconds.php" hash="3211ce74e4733d644f96b12ef97b25c1"/><file name="Stars.php" hash="917c403290fd6b714933af628d15614d"/></dir><dir name="Info"><file name="Info.php" hash="5383a37119c1f401cf32c68050d9691c"/></dir></dir><file name="Feedbacklog.php" hash="144d3d7c6fc12afcd6ed45c91a15dcee"/><file name="Feedbackreviews.php" hash="9847b71037524dabf6948ee8ed284bb3"/></dir><file name="Custom.php" hash="939a7fee39f9d5239020c68a59e4a405"/><file name="Reviews.php" hash="e10508622d650abf6eb6e76e034909e1"/><file name="Sidebar.php" hash="b6f65e918a2f3b31256e0eb719507a1e"/><file name="Snippets.php" hash="1852555d1253f9bbe601d25bba977fa1"/></dir><dir name="Helper"><file name="Data.php" hash="decd771bc9c0008c42f3f62523569f08"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="f4570b618189fddd428337532772c2eb"/></dir><dir name="Reviews"><file name="Collection.php" hash="5755b68b1cf403f1b6f9d863775e6fff"/></dir><dir name="Stats"><file name="Collection.php" hash="d144926136a5054f82a80952cb81285b"/></dir><file name="Log.php" hash="6bb8b867c6580e9979e4b891e4f20cc6"/><file name="Reviews.php" hash="b4ae325921e16683041126ac79a91b62"/><file name="Stats.php" hash="0549cb99d917c3877197195f275a32c5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="8097eafbfc50e4c4590ef7540242e1d2"/><file name="Orderstatus.php" hash="ec4e6222bca0db2eb404de48d638e4e5"/><file name="Position.php" hash="10b684f6a11f7efbafe686a90de4feb5"/><file name="Sidebarlink.php" hash="47e7bff91b5b566eb0328e92661e1a48"/></dir></dir></dir><file name="Api.php" hash="ff8294741d9035885366e448b68f0db7"/><file name="Log.php" hash="c94230a0bcc551c63b8c90156cc48aaf"/><file name="Observer.php" hash="d3caf5f44fe90d3e9425747f13d887c7"/><file name="Reviews.php" hash="43dee05035bcdc07a69a5165485e9486"/><file name="Stats.php" hash="f313c4043a2aa37a1ebd82567438a32e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="ef854c132d8d256dca8f46b8dd398037"/><file name="FeedbackreviewsController.php" hash="3a22d787ae54ce9e272b2aea6a750048"/></dir><file name="IndexController.php" hash="4d715477cba457935560a051c6583d19"/></dir><dir name="etc"><file name="adminhtml.xml" hash="66a2368273f9c4c49c1ff542f261e83f"/><file name="config.xml" hash="bc8cafd35fa34a03a36f7063a50ff009"/><file name="system.xml" hash="67db43920530bdfecdbc4e7d45c4d3bf"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="f3789a6549aa3e97d8ce7407035658af"/></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="4b0dd25e971ef0df548e6cd5615d279c"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="sidebar"><file name="left.phtml" hash="9a93f22ad8255aaf38d198b3fdfc4d98"/><file name="right.phtml" hash="67206bfb865e061d8e76ae3b59c95e87"/></dir><dir name="widget"><file name="custom.phtml" hash="e53c2c59de089dc42789fd19e97c7d9c"/><file name="richsnippets.phtml" hash="9faaa55663e70f5adc6527b4b1e0141b"/></dir><file name="index.phtml" hash="1d33236d46a4ccf0a37798073112efdf"/></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="f38e796ed9ffb6810cdc29a5eaec1b74"/></dir><dir name="nl_NL"><file name="Magmodules_Feedbackcompany.csv" hash="ced97e26c33e106813a2d2edb04ee0d3"/></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="c07daf361126485bec967bf6014871fd"/><file name="sidebar.css" hash="ef3ea4a3160535b1373c58654b98c509"/><file name="style.css" hash="4060305cce4582001f486396d3f0b39c"/></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="90a8ac7d668d2ea9a7dc84632e639847"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|
skin/adminhtml/default/default/magmodules/feedbackcompany/grid.css
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
|
3 |
+
* =============================================================
|
4 |
+
* NOTICE OF LICENSE [Single domain license]
|
5 |
+
* This source file is subject to the EULA that is
|
6 |
+
* available through the world-wide-web at:
|
7 |
+
* http://www.magmodules.eu/license-agreement/
|
8 |
+
* =============================================================
|
9 |
+
* @category Magmodules
|
10 |
+
* @package Magmodules_Shopreview
|
11 |
+
* @author Magmodules <info@magmodules.eu>
|
12 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
13 |
+
* @license http://www.magmodules.eu/license-agreement/
|
14 |
+
* =============================================================
|
15 |
+
*/
|
16 |
+
|
17 |
+
/** RATINGS ORDER GRID **/
|
18 |
+
.rating-empty, .rating-star-1, .rating-star-2, .rating-star-3, .rating-star-4, .rating-star-5 {
|
19 |
+
background: url('star.png') 0 0;
|
20 |
+
margin-right: 5px;
|
21 |
+
height: 16px;
|
22 |
+
float: left;
|
23 |
+
width: 80px;
|
24 |
+
}
|
25 |
+
|
26 |
+
.rating-star-1 {
|
27 |
+
width: 16px;
|
28 |
+
}
|
29 |
+
|
30 |
+
.rating-star-2 {
|
31 |
+
width: 32px;
|
32 |
+
}
|
33 |
+
|
34 |
+
.rating-star-3 {
|
35 |
+
width: 48px;
|
36 |
+
}
|
37 |
+
|
38 |
+
.rating-star-4 {
|
39 |
+
width: 64px;
|
40 |
+
}
|
41 |
+
|
42 |
+
.rating-star-5 {
|
43 |
+
width: 80px;
|
44 |
+
}
|
45 |
+
|
46 |
+
.rating-empty {
|
47 |
+
float: left;
|
48 |
+
width: 80px;
|
49 |
+
background: url('star.png') 0 -16px;
|
50 |
+
}
|
51 |
+
|
52 |
+
a.magtooltip span {
|
53 |
+
display:none;
|
54 |
+
padding:2px 3px;
|
55 |
+
margin-left:8px;
|
56 |
+
width:550px;
|
57 |
+
}
|
58 |
+
|
59 |
+
a.magtooltip:hover span {
|
60 |
+
display:inline;
|
61 |
+
position:absolute;
|
62 |
+
background:#ffffff;
|
63 |
+
border:1px solid #cccccc;
|
64 |
+
color:#000;
|
65 |
+
padding: 10px;
|
66 |
+
}
|
67 |
+
|
68 |
+
.magtooltip hr {
|
69 |
+
height:1px;
|
70 |
+
border: 1px dotted #606;
|
71 |
+
}
|
skin/adminhtml/default/default/magmodules/feedbackcompany/star.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/5-stars-empty.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/5-stars-full.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/greystar.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/logo.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/images/star.png
ADDED
Binary file
|
skin/frontend/base/default/magmodules/feedbackcompany/richsnippets.css
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magmodules.eu
|
3 |
+
* http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Feedbackcompany
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2014 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
.feedbackcompany-snippets .rating-box {
|
23 |
+
float: left;
|
24 |
+
margin-right: 4px;
|
25 |
+
margin-top: 0px;
|
26 |
+
width:69px;
|
27 |
+
height:13px;
|
28 |
+
font-size:0;
|
29 |
+
line-height:0;
|
30 |
+
background:url('images/bkg_rating.gif') 0 0 repeat-x;
|
31 |
+
text-indent:-999em;
|
32 |
+
overflow:hidden;
|
33 |
+
}
|
34 |
+
|
35 |
+
.feedbackcompany-snippets-snippets .rating {
|
36 |
+
float:left;
|
37 |
+
height:13px;
|
38 |
+
background:url('images/bkg_rating.gif') 0 100% repeat-x;
|
39 |
+
}
|
40 |
+
|
41 |
+
/** FOR DEFAULT USE OF RATING STARTS, REMOVE BOTH CLASSES FROM CSS **/
|
skin/frontend/base/default/magmodules/feedbackcompany/sidebar.css
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
|
3 |
+
* =============================================================
|
4 |
+
* NOTICE OF LICENSE [Single domain license]
|
5 |
+
* This source file is subject to the EULA that is
|
6 |
+
* available through the world-wide-web at:
|
7 |
+
* http://www.magmodules.eu/license-agreement/
|
8 |
+
* =============================================================
|
9 |
+
* @category Magmodules
|
10 |
+
* @package Magmodules_Feedbackcompany
|
11 |
+
* @author Magmodules <info@magmodules.eu>
|
12 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
13 |
+
* @license http://www.magmodules.eu/license-agreement/
|
14 |
+
* =============================================================
|
15 |
+
*/
|
16 |
+
|
17 |
+
.feedbackcompany-sidebar-block {
|
18 |
+
padding: 10px;
|
19 |
+
}
|
20 |
+
|
21 |
+
.feedbackcompany-sidebar-block .rating-name {
|
22 |
+
font-style: italic;
|
23 |
+
vertical-align: middle;
|
24 |
+
}
|
25 |
+
|
26 |
+
img.feedbackcompany-logo {
|
27 |
+
display: block;
|
28 |
+
margin: 0 auto;
|
29 |
+
}
|
30 |
+
|
31 |
+
.feedbackcompany-sidebar-block .rating-empty { float: right; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
|
32 |
+
.feedbackcompany-sidebar-block .rating-star-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
33 |
+
.feedbackcompany-sidebar-block .rating-star-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
34 |
+
.feedbackcompany-sidebar-block .rating-star-3 { float: left; display: block; width: 48px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
35 |
+
.feedbackcompany-sidebar-block .rating-star-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
36 |
+
.feedbackcompany-sidebar-block .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
37 |
+
|
38 |
+
/** big review stars **/
|
39 |
+
.block-content p.company-name { text-align: center; margin: 5px auto; font-size: 12px; }
|
40 |
+
.total-block-text { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
|
41 |
+
.total-block-text p { text-align: center; padding-top: 5px; margin-bottom: 2px; font-size: 18px; }
|
42 |
+
.total-block-text p.based-on { text-align: center; padding-top: 0px; font-size: 11px; font-style: italic; }
|
43 |
+
.total-block-stars { height: 35px; width: 188px; background: url('./images/5-stars-empty.png') no-repeat; margin: 5px auto; }
|
44 |
+
.total-block-stars span{ display: block; height: 50px; background: url('./images/5-stars-full.png') no-repeat; }
|
skin/frontend/base/default/magmodules/feedbackcompany/style.css
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Magmodules.eu - http://www.magmodules.eu - info@magmodules.eu
|
3 |
+
* =============================================================
|
4 |
+
* NOTICE OF LICENSE [Single domain license]
|
5 |
+
* This source file is subject to the EULA that is
|
6 |
+
* available through the world-wide-web at:
|
7 |
+
* http://www.magmodules.eu/license-agreement/
|
8 |
+
* =============================================================
|
9 |
+
* @category Magmodules
|
10 |
+
* @package Magmodules_Shopreview
|
11 |
+
* @author Magmodules <info@magmodules.eu>
|
12 |
+
* @copyright Copyright (c) 2013 (http://www.magmodules.eu)
|
13 |
+
* @license http://www.magmodules.eu/license-agreement/
|
14 |
+
* =============================================================
|
15 |
+
*/
|
16 |
+
|
17 |
+
.feedbackcompany {
|
18 |
+
}
|
19 |
+
|
20 |
+
.feedbackcompany h1 {
|
21 |
+
float: left;
|
22 |
+
width: 50%;
|
23 |
+
}
|
24 |
+
|
25 |
+
.feedbackcompany .button {
|
26 |
+
float: right;
|
27 |
+
}
|
28 |
+
|
29 |
+
.feedbackcompany .about-feedbackcompany {
|
30 |
+
float: left;
|
31 |
+
width: 70%;
|
32 |
+
}
|
33 |
+
|
34 |
+
.feedbackcompany .stats-feedbackcompany {
|
35 |
+
float: right;
|
36 |
+
width: 30%;
|
37 |
+
text-align: center;
|
38 |
+
}
|
39 |
+
|
40 |
+
.feedbackcompany .ratingblock-feedbackcompany {
|
41 |
+
width: 60px;
|
42 |
+
height: 60px;
|
43 |
+
padding: 4px 0px 0px 3px;
|
44 |
+
font-weight: bold;
|
45 |
+
font-size: 13px;
|
46 |
+
margin: 6px auto;
|
47 |
+
border-radius: 70px;
|
48 |
+
border: 4px solid white;
|
49 |
+
box-shadow: 1px 1px 3px #CCCCCC;
|
50 |
+
}
|
51 |
+
|
52 |
+
.feedbackcompany .content-feedbackcompany {
|
53 |
+
overflow: auto;
|
54 |
+
width: 100%;
|
55 |
+
margin-bottom: 5px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.feedbackcompany .review-list {
|
59 |
+
margin-bottom: 25px;
|
60 |
+
margin-top: 10px;
|
61 |
+
}
|
62 |
+
|
63 |
+
.feedbackcompany .review-list h3 {
|
64 |
+
width: 80%;
|
65 |
+
float: left;
|
66 |
+
}
|
67 |
+
|
68 |
+
.feedbackcompany .review-header {
|
69 |
+
clear: both;
|
70 |
+
border-bottom: 1px solid #e0e0e0;
|
71 |
+
width: 100%;
|
72 |
+
height: 25px;
|
73 |
+
}
|
74 |
+
|
75 |
+
.feedbackcompany ul.overall li {
|
76 |
+
float: right;
|
77 |
+
}
|
78 |
+
|
79 |
+
.feedbackcompany ul.summary-index {
|
80 |
+
display: table;
|
81 |
+
list-style-type: none;
|
82 |
+
}
|
83 |
+
|
84 |
+
.feedbackcompany ul.summary-index li {
|
85 |
+
display: table-cell;
|
86 |
+
padding: 5px 5px 5px 10px;
|
87 |
+
}
|
88 |
+
|
89 |
+
.feedbackcompany ul.summary-index li.head {
|
90 |
+
padding: 10px 5px 5px 5px;
|
91 |
+
border-bottom:1px dotted #e0e0e0;
|
92 |
+
}
|
93 |
+
|
94 |
+
.feedbackcompany ul.experience li {
|
95 |
+
width: 100%;
|
96 |
+
padding: 10px;
|
97 |
+
}
|
98 |
+
|
99 |
+
.feedbackcompany .rating-name {
|
100 |
+
font-weight: bold;
|
101 |
+
display: block;
|
102 |
+
margin-bottom: 2px;
|
103 |
+
}
|
104 |
+
|
105 |
+
/* INDEX REVIEW LIST */
|
106 |
+
.review-list .rating-empty { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 -16px; margin-right: 5px; }
|
107 |
+
|
108 |
+
.review-list .rating-star-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
109 |
+
.review-list .rating-star-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
110 |
+
.review-list .rating-star-3 { float: left; display: block; width: 48px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
111 |
+
.review-list .rating-star-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
112 |
+
.review-list .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
113 |
+
|
114 |
+
.review-list .rating-greystar-1 { float: left; display: block; width: 16px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
115 |
+
.review-list .rating-greystar-2 { float: left; display: block; width: 32px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
116 |
+
.review-list .rating-greystar-3 { float: left; display: block; width: 48px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
117 |
+
.review-list .rating-greystar-4 { float: left; display: block; width: 64px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|
118 |
+
.review-list .rating-greystar-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/greystar.png') 0 0; margin-right: 5px; }
|