Version Notes
First stable release
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Magmodules_Feedbackcompany |
| Version | 1.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.0.1
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog.php +9 -8
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog/Grid.php +59 -58
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews.php +9 -8
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Grid.php +85 -85
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Renderer/Experience.php +12 -11
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Process.php +18 -18
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Test.php +16 -16
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Form/Heading.php +12 -13
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Log.php +27 -23
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Seconds.php +9 -9
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Stars.php +11 -11
- app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Info/Info.php +22 -24
- app/code/local/Magmodules/Feedbackcompany/Block/Custom.php +17 -16
- app/code/local/Magmodules/Feedbackcompany/Block/Reviews.php +22 -22
- app/code/local/Magmodules/Feedbackcompany/Block/Sidebar.php +26 -26
- app/code/local/Magmodules/Feedbackcompany/Block/Snippets.php +23 -27
- app/code/local/Magmodules/Feedbackcompany/Helper/Data.php +5 -5
- app/code/local/Magmodules/Feedbackcompany/Model/Api.php +26 -26
- app/code/local/Magmodules/Feedbackcompany/Model/Log.php +28 -28
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Log.php +7 -7
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Log/Collection.php +10 -10
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Reviews.php +9 -9
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Reviews/Collection.php +9 -9
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Stats.php +9 -9
- app/code/local/Magmodules/Feedbackcompany/Model/Mysql4/Stats/Collection.php +9 -9
- app/code/local/Magmodules/Feedbackcompany/Model/Observer.php +50 -50
- app/code/local/Magmodules/Feedbackcompany/Model/Reviews.php +35 -35
- app/code/local/Magmodules/Feedbackcompany/Model/Stats.php +40 -41
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Cronfrequency.php +10 -10
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Orderstatus.php +11 -11
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Position.php +3 -3
- app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Sidebarlink.php +7 -7
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbacklogController.php +32 -31
- app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php +79 -78
- app/code/local/Magmodules/Feedbackcompany/controllers/IndexController.php +13 -12
- app/code/local/Magmodules/Feedbackcompany/etc/adminhtml.xml +6 -6
- app/code/local/Magmodules/Feedbackcompany/etc/config.xml +125 -125
- app/code/local/Magmodules/Feedbackcompany/etc/system.xml +400 -421
- app/code/local/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-install-0.9.0.php +52 -52
- app/design/frontend/base/default/layout/magmodules_feedbackcompany.xml +7 -7
- app/design/frontend/base/default/template/magmodules/feedbackcompany/index.phtml +30 -30
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml +9 -9
- app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml +10 -10
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/custom.phtml +12 -12
- app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/richsnippets.phtml +6 -6
- app/locale/en_US/Magmodules_Feedbackcompany.csv +1 -2
- package.xml +4 -4
- skin/adminhtml/default/default/magmodules/feedbackcompany/grid.css +21 -16
- skin/frontend/base/default/magmodules/feedbackcompany/richsnippets.css +6 -6
- skin/frontend/base/default/magmodules/feedbackcompany/sidebar.css +22 -17
- skin/frontend/base/default/magmodules/feedbackcompany/style.css +20 -15
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,11 +13,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
|
@@ -26,12 +27,12 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog extends Mage_Adminh
|
|
| 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'
|
| 35 |
));
|
| 36 |
|
| 37 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Feedbacklog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
| 27 |
$this->_blockGroup = 'feedbackcompany';
|
| 28 |
$this->_headerText = Mage::helper('feedbackcompany')->__('Feedbackcompany Logs');
|
| 29 |
parent::__construct();
|
| 30 |
+
$this->_removeButton('add');
|
| 31 |
|
| 32 |
$this->_addButton('module_controller', array(
|
| 33 |
'label' => Mage::helper('feedbackcompany')->__('Cleanup Log'),
|
| 34 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/feedbacklog/clean')}')",
|
| 35 |
+
'confirm' => Mage::helper('feedbackcompany')->__('Are you sure you want to cleanup logfiles?'),
|
| 36 |
));
|
| 37 |
|
| 38 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbacklog/Grid.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,11 +13,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
|
@@ -38,72 +39,72 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_A
|
|
| 38 |
protected function _prepareColumns() {
|
| 39 |
|
| 40 |
$this->addColumn('company', array(
|
| 41 |
-
'header'
|
| 42 |
-
'index'
|
| 43 |
-
'width'
|
| 44 |
));
|
| 45 |
|
| 46 |
$this->addColumn('type', array(
|
| 47 |
-
'header'
|
| 48 |
-
'align'
|
| 49 |
-
'index'
|
| 50 |
-
'width'
|
| 51 |
-
'type'
|
| 52 |
-
'options'
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
),
|
| 56 |
));
|
| 57 |
-
|
| 58 |
if(Mage::app()->getRequest()->getParam('showapiurl')) {
|
| 59 |
$this->addColumn('api_url', array(
|
| 60 |
-
'header'
|
| 61 |
-
'align'
|
| 62 |
-
'index'
|
| 63 |
-
'filter'
|
| 64 |
-
'sortable'
|
| 65 |
));
|
| 66 |
}
|
| 67 |
|
| 68 |
$this->addColumn('qty', array(
|
| 69 |
-
'header'
|
| 70 |
-
'align'
|
| 71 |
-
'index'
|
| 72 |
-
'renderer'
|
| 73 |
-
'filter'
|
| 74 |
-
'sortable'
|
| 75 |
));
|
| 76 |
|
| 77 |
$this->addColumn('cron', array(
|
| 78 |
-
'header'
|
| 79 |
-
'align'
|
| 80 |
-
'index'
|
| 81 |
-
'width'
|
| 82 |
-
'type'
|
| 83 |
-
'options'
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
),
|
| 89 |
-
));
|
| 90 |
|
| 91 |
$this->addColumn('time', array(
|
| 92 |
-
'header'
|
| 93 |
-
'align'
|
| 94 |
-
'index'
|
| 95 |
-
'width'
|
| 96 |
-
'renderer'
|
| 97 |
));
|
| 98 |
-
|
| 99 |
$this->addColumn('date', array(
|
| 100 |
-
'header'
|
| 101 |
-
'align'
|
| 102 |
-
'type'
|
| 103 |
-
'index'
|
| 104 |
-
'width'
|
| 105 |
-
));
|
| 106 |
-
|
| 107 |
return parent::_prepareColumns();
|
| 108 |
}
|
| 109 |
|
|
@@ -112,9 +113,9 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbacklog_Grid extends Mage_A
|
|
| 112 |
$this->getMassactionBlock()->setFormFieldName('logids');
|
| 113 |
|
| 114 |
$this->getMassactionBlock()->addItem('hide', array(
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
));
|
| 118 |
return $this;
|
| 119 |
}
|
| 120 |
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Feedbacklog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
| 39 |
protected function _prepareColumns() {
|
| 40 |
|
| 41 |
$this->addColumn('company', array(
|
| 42 |
+
'header' => Mage::helper('feedbackcompany')->__('Shop'),
|
| 43 |
+
'index' => 'company',
|
| 44 |
+
'width' => '120px',
|
| 45 |
));
|
| 46 |
|
| 47 |
$this->addColumn('type', array(
|
| 48 |
+
'header' => Mage::helper('feedbackcompany')->__('Type'),
|
| 49 |
+
'align' => 'left',
|
| 50 |
+
'index' => 'type',
|
| 51 |
+
'width' => '120',
|
| 52 |
+
'type' => 'options',
|
| 53 |
+
'options'=> array(
|
| 54 |
+
'reviews' => Mage::helper('feedbackcompany')->__('Reviews'),
|
| 55 |
+
'invitation' => Mage::helper('feedbackcompany')->__('Invitation Call'),
|
| 56 |
+
),
|
| 57 |
));
|
| 58 |
+
|
| 59 |
if(Mage::app()->getRequest()->getParam('showapiurl')) {
|
| 60 |
$this->addColumn('api_url', array(
|
| 61 |
+
'header' => Mage::helper('feedbackcompany')->__('Api URL'),
|
| 62 |
+
'align' => 'left',
|
| 63 |
+
'index' => 'api_url',
|
| 64 |
+
'filter' => false,
|
| 65 |
+
'sortable' => false,
|
| 66 |
));
|
| 67 |
}
|
| 68 |
|
| 69 |
$this->addColumn('qty', array(
|
| 70 |
+
'header' => Mage::helper('feedbackcompany')->__('Description'),
|
| 71 |
+
'align' => 'left',
|
| 72 |
+
'index' => 'qty',
|
| 73 |
+
'renderer' => 'feedbackcompany/adminhtml_widget_grid_log',
|
| 74 |
+
'filter' => false,
|
| 75 |
+
'sortable' => false,
|
| 76 |
));
|
| 77 |
|
| 78 |
$this->addColumn('cron', array(
|
| 79 |
+
'header' => Mage::helper('feedbackcompany')->__('Cron'),
|
| 80 |
+
'align' => 'left',
|
| 81 |
+
'index' => 'cron',
|
| 82 |
+
'width' => '120',
|
| 83 |
+
'type' => 'options',
|
| 84 |
+
'options' => array(
|
| 85 |
+
'' => Mage::helper('feedbackcompany')->__('Manual'),
|
| 86 |
+
'stats' => Mage::helper('feedbackcompany')->__('Stats Cron'),
|
| 87 |
+
'reviews' => Mage::helper('feedbackcompany')->__('Reviews Cron'),
|
| 88 |
+
'orderupdate' => Mage::helper('feedbackcompany')->__('Invitation'),
|
| 89 |
+
),
|
| 90 |
+
));
|
| 91 |
|
| 92 |
$this->addColumn('time', array(
|
| 93 |
+
'header' => Mage::helper('feedbackcompany')->__('Time'),
|
| 94 |
+
'align' => 'left',
|
| 95 |
+
'index' => 'time',
|
| 96 |
+
'width' => '60',
|
| 97 |
+
'renderer' => 'feedbackcompany/adminhtml_widget_grid_seconds',
|
| 98 |
));
|
| 99 |
+
|
| 100 |
$this->addColumn('date', array(
|
| 101 |
+
'header' => Mage::helper('feedbackcompany')->__('Date'),
|
| 102 |
+
'align' => 'left',
|
| 103 |
+
'type' => 'datetime',
|
| 104 |
+
'index' => 'date',
|
| 105 |
+
'width' => '140',
|
| 106 |
+
));
|
| 107 |
+
|
| 108 |
return parent::_prepareColumns();
|
| 109 |
}
|
| 110 |
|
| 113 |
$this->getMassactionBlock()->setFormFieldName('logids');
|
| 114 |
|
| 115 |
$this->getMassactionBlock()->addItem('hide', array(
|
| 116 |
+
'label' => Mage::helper('feedbackcompany')->__('Delete'),
|
| 117 |
+
'url' => $this->getUrl('*/*/massDelete'),
|
| 118 |
+
));
|
| 119 |
return $this;
|
| 120 |
}
|
| 121 |
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,11 +13,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
|
@@ -26,14 +27,14 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews extends Mage_Ad
|
|
| 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 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Feedbackreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
| 27 |
$this->_blockGroup = 'feedbackcompany';
|
| 28 |
$this->_headerText = Mage::helper('feedbackcompany')->__('Feedbackcompany Reviews');
|
| 29 |
parent::__construct();
|
| 30 |
+
$this->_removeButton('add');
|
| 31 |
|
| 32 |
$this->_addButton('module_controller', array(
|
| 33 |
'label' => Mage::helper('feedbackcompany')->__('Delete all reviews'),
|
| 34 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/feedbackreviews/truncate')}')",
|
| 35 |
'confirm' => Mage::helper('feedbackcompany')->__('Are you sure you want to delete all reviews?'),
|
| 36 |
));
|
| 37 |
+
|
| 38 |
}
|
| 39 |
|
| 40 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Grid.php
CHANGED
|
@@ -12,11 +12,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
|
@@ -38,102 +38,102 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Ma
|
|
| 38 |
protected function _prepareColumns() {
|
| 39 |
|
| 40 |
$this->addColumn('company', array(
|
| 41 |
-
'header'
|
| 42 |
-
'index'
|
| 43 |
-
'width'
|
| 44 |
));
|
| 45 |
-
|
| 46 |
$this->addColumn('customer_name', array(
|
| 47 |
-
'header'
|
| 48 |
-
'align'
|
| 49 |
-
'index'
|
| 50 |
));
|
| 51 |
|
| 52 |
$this->addColumn('purchased_products', array(
|
| 53 |
-
'header'
|
| 54 |
-
'align'
|
| 55 |
-
'index'
|
| 56 |
-
));
|
| 57 |
-
|
| 58 |
$this->addColumn('review_text', array(
|
| 59 |
-
'header'
|
| 60 |
-
'align'
|
| 61 |
-
'index'
|
| 62 |
-
'renderer'
|
| 63 |
));
|
| 64 |
|
| 65 |
$this->addColumn('score', array(
|
| 66 |
-
'header'
|
| 67 |
-
'align'
|
| 68 |
-
'index'
|
| 69 |
-
'renderer'
|
| 70 |
-
'width'
|
| 71 |
-
'filter'
|
| 72 |
-
'sortable'
|
| 73 |
));
|
| 74 |
-
|
| 75 |
$this->addColumn('customer_active', array(
|
| 76 |
-
'header'
|
| 77 |
-
'align'
|
| 78 |
-
'index'
|
| 79 |
-
'type'
|
| 80 |
-
'options'
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
),
|
| 85 |
));
|
| 86 |
|
| 87 |
$this->addColumn('customer_sex', array(
|
| 88 |
-
'header'
|
| 89 |
-
'align'
|
| 90 |
-
'index'
|
| 91 |
-
'type'
|
| 92 |
-
'options'
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
),
|
| 96 |
-
));
|
| 97 |
|
| 98 |
$this->addColumn('customer_age', array(
|
| 99 |
-
'header'
|
| 100 |
-
'align'
|
| 101 |
-
'index'
|
| 102 |
-
'width'
|
| 103 |
-
));
|
| 104 |
-
|
| 105 |
$this->addColumn('date_created', array(
|
| 106 |
-
'header'
|
| 107 |
-
'align'
|
| 108 |
-
'type'
|
| 109 |
-
'index'
|
| 110 |
-
'width'
|
| 111 |
));
|
| 112 |
|
| 113 |
$this->addColumn('sidebar', array(
|
| 114 |
-
'header'
|
| 115 |
-
'align'
|
| 116 |
-
'width'
|
| 117 |
-
'index'
|
| 118 |
-
'type'
|
| 119 |
-
'options'
|
| 120 |
-
|
| 121 |
-
|
| 122 |
),
|
| 123 |
));
|
| 124 |
|
| 125 |
$this->addColumn('status', array(
|
| 126 |
-
'header'
|
| 127 |
-
'align'
|
| 128 |
-
'width'
|
| 129 |
-
'index'
|
| 130 |
-
'type'
|
| 131 |
-
'options'
|
| 132 |
-
|
| 133 |
-
|
| 134 |
),
|
| 135 |
-
));
|
| 136 |
-
|
| 137 |
return parent::_prepareColumns();
|
| 138 |
}
|
| 139 |
|
|
@@ -142,21 +142,21 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Feedbackreviews_Grid extends Ma
|
|
| 142 |
$this->getMassactionBlock()->setFormFieldName('reviewids');
|
| 143 |
|
| 144 |
$this->getMassactionBlock()->addItem('hide', array(
|
| 145 |
-
|
| 146 |
-
|
| 147 |
));
|
| 148 |
$this->getMassactionBlock()->addItem('visible', array(
|
| 149 |
-
|
| 150 |
-
|
| 151 |
));
|
| 152 |
$this->getMassactionBlock()->addItem('addsidebar', array(
|
| 153 |
-
|
| 154 |
-
|
| 155 |
));
|
| 156 |
$this->getMassactionBlock()->addItem('removesidebar', array(
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
));
|
| 160 |
return $this;
|
| 161 |
}
|
| 162 |
|
| 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 {
|
| 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 |
|
| 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 |
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Feedbackreviews/Renderer/Experience.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,25 +13,25 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Feedbackreviews_Renderer_Experience extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
| 24 |
+
|
| 25 |
public function render(Varien_Object $row) {
|
| 26 |
$value = $row->getData($this->getColumn()->getIndex());
|
| 27 |
$char_limit = '100';
|
| 28 |
if(strlen($value) > $char_limit) {
|
| 29 |
+
$content_small = Mage::helper('core/string')->truncate($value, $char_limit, ' ... <a href="#" class="magtooltip" alt="">(meer)', $_remainder, true);
|
| 30 |
$content = $content_small . '<span>' . $value . '</span></a>';
|
| 31 |
return $content;
|
| 32 |
} else {
|
| 33 |
return $value;
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Buttons/Process.php
CHANGED
|
@@ -12,27 +12,27 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Process extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
$url = $this->getUrl('*/feedbackreviews/process');
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
}
|
| 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
CHANGED
|
@@ -12,25 +12,25 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Buttons_Test extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
$url = $this->getUrl('*/feedbackreviews/testapi');
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
}
|
| 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
CHANGED
|
@@ -12,21 +12,20 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
}
|
| 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 |
+
$useContainerId = $element->getData('use_container_id');
|
| 26 |
+
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
| 27 |
+
$element->getHtmlId(), $element->getLabel()
|
| 28 |
+
);
|
| 29 |
+
}
|
| 30 |
+
|
|
|
|
| 31 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Log.php
CHANGED
|
@@ -1,18 +1,22 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu - http://www.magmodules.eu
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
*
|
| 8 |
-
*
|
| 9 |
-
*
|
| 10 |
-
*
|
| 11 |
-
*
|
| 12 |
-
*
|
| 13 |
-
* @
|
| 14 |
-
*
|
| 15 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
*/
|
| 17 |
|
| 18 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
|
@@ -20,35 +24,35 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Log extends Mage_Ad
|
|
| 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 |
-
|
| 47 |
-
|
| 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 |
|
| 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_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
| 24 |
public function render(Varien_Object $row) {
|
| 25 |
$type = $row->getType();
|
| 26 |
$msg = '';
|
| 27 |
+
|
| 28 |
if($type == 'reviews') {
|
| 29 |
$updates = '';
|
| 30 |
+
if($row->getReviewNew() > 0) {
|
| 31 |
$msg .= Mage::helper('feedbackcompany')->__('%s new review(s)', $row->getReviewNew());
|
| 32 |
$updates++;
|
| 33 |
}
|
| 34 |
+
if($row->getReviewUpdate() > 0) {
|
| 35 |
if($updates > 0) {
|
| 36 |
$msg .= ', ';
|
| 37 |
+
}
|
| 38 |
$msg .= Mage::helper('feedbackcompany')->__('%s review(s) updated', $row->getReviewUpdate());
|
| 39 |
$updates++;
|
| 40 |
+
}
|
| 41 |
if($updates > 0) {
|
| 42 |
$msg .= ' & ';
|
| 43 |
}
|
| 44 |
+
$msg .= Mage::helper('feedbackcompany')->__('total score updated');
|
| 45 |
}
|
| 46 |
|
| 47 |
if($type == 'invitation') {
|
| 48 |
if($row->getOrderId()) {
|
| 49 |
$order = Mage::getModel('sales/order')->load($row->getOrderId());
|
| 50 |
+
$increment_id = $order->getIncrementId();
|
| 51 |
+
$order_url = Mage::helper('adminhtml')->getUrl("adminhtml/sales_order/view", array('order_id'=> $row->getOrderId()));
|
| 52 |
+
$msg = Mage::helper('feedbackcompany')->__('%s - Repsonse: %s', '<a href="' . $order_url . '">#' . $increment_id .'</a>', $row->getResponse());
|
| 53 |
}
|
| 54 |
}
|
| 55 |
+
|
| 56 |
return ucfirst($msg);
|
| 57 |
}
|
| 58 |
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Grid/Seconds.php
CHANGED
|
@@ -12,23 +12,23 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Seconds extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
| 23 |
|
| 24 |
-
|
| 25 |
$value = $row->getData($this->getColumn()->getIndex());
|
| 26 |
|
| 27 |
if($value > 0) {
|
| 28 |
$value = number_format($value, 3, '.', '');
|
| 29 |
-
}
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
|
| 34 |
}
|
| 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
CHANGED
|
@@ -12,17 +12,17 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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 =
|
| 26 |
|
| 27 |
if($value == '0') {
|
| 28 |
$output = '';
|
|
@@ -47,10 +47,10 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Stars extends Mage_
|
|
| 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 |
|
|
@@ -60,10 +60,10 @@ class Magmodules_Feedbackcompany_Block_Adminhtml_Widget_Grid_Stars extends Mage_
|
|
| 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 |
|
| 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 = '';
|
| 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 |
|
| 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 |
|
app/code/local/Magmodules/Feedbackcompany/Block/Adminhtml/Widget/Info/Info.php
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
| 4 |
-
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
|
@@ -13,44 +12,43 @@
|
|
| 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
|
| 17 |
-
* @package
|
| 18 |
-
* @author
|
| 19 |
-
* @copyright
|
| 20 |
-
* @license
|
| 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 |
-
|
| 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 |
-
|
| 31 |
-
|
| 32 |
<tr>
|
| 33 |
-
<td width="
|
| 34 |
-
<td width="
|
| 35 |
</tr>
|
| 36 |
<tr>
|
| 37 |
-
<td>
|
| 38 |
-
<td><a href="
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 49 |
-
<td><a href="http://www.magmodules.eu" target="_blank">www.magmodules.eu</a></td>
|
| 50 |
</tr>
|
| 51 |
</table>
|
| 52 |
-
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
return $html;
|
| 55 |
-
}
|
| 56 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
| 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_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
| 23 |
|
| 24 |
+
public function render(Varien_Data_Form_Element_Abstract $element) {
|
| 25 |
+
$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;">
|
|
|
|
| 26 |
<h4>About Magmodules.eu</h4>
|
| 27 |
<p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
|
| 28 |
+
<br />
|
| 29 |
+
<table width="525" border="0">
|
| 30 |
<tr>
|
| 31 |
+
<td width="64%">View more extensions from us:</td>
|
| 32 |
+
<td width="36%"><a href="http://www.magentocommerce.com/magento-connect/developer/Magmodules" target="_blank">Magento Connect</a></td>
|
| 33 |
</tr>
|
| 34 |
<tr>
|
| 35 |
+
<td width="64%">Contact:</td>
|
| 36 |
+
<td width="36%"><a href="mailto:info@magmodules.eu">info@magmodules.eu</a></td>
|
| 37 |
+
</tr>
|
| 38 |
+
<tr>
|
| 39 |
+
<td width="64%">Visit our website:</td>
|
| 40 |
+
<td width="36%"><a href="http://www.magmodules.eu" target="_blank">www.magmodules.eu</a></td>
|
| 41 |
</tr>
|
| 42 |
<tr>
|
| 43 |
<td> </td>
|
| 44 |
<td> </td>
|
|
|
|
|
|
|
|
|
|
| 45 |
</tr>
|
| 46 |
<tr>
|
| 47 |
+
<td colspan="2"><b><a href="http://www.magmodules.eu/help/feedbackcompany/">Click Here To Go The Configuration Manual</a></b></td>
|
|
|
|
| 48 |
</tr>
|
| 49 |
</table>
|
| 50 |
+
</div>';
|
| 51 |
+
return $html;
|
| 52 |
+
}
|
| 53 |
|
|
|
|
|
|
|
| 54 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Custom.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,28 +13,28 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Custom extends Mage_Core_Block_Template {
|
| 23 |
|
| 24 |
-
|
| 25 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 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 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Custom extends Mage_Core_Block_Template {
|
| 24 |
|
| 25 |
+
protected function _construct() {
|
| 26 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
| 27 |
+
$this->setFeedbackcompanyEnabled(1);
|
| 28 |
+
} else {
|
| 29 |
+
$this->setFeedbackcompanyEnabled(0);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
parent::_construct();
|
| 33 |
+
$this->setTemplate('magmodules/feedbackcompany/widget/custom.phtml');
|
| 34 |
+
}
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
public function getFeedbackcompanyData() {
|
| 37 |
return $this->helper('feedbackcompany')->getTotalScore();
|
| 38 |
+
}
|
| 39 |
|
| 40 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Reviews.php
CHANGED
|
@@ -12,47 +12,47 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 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 |
}
|
|
@@ -60,5 +60,5 @@ class Magmodules_Feedbackcompany_Block_Reviews extends Mage_Core_Block_Template
|
|
| 60 |
public function getFormUrl() {
|
| 61 |
return $this->helper('feedbackcompany')->getFormUrl();
|
| 62 |
}
|
| 63 |
-
|
| 64 |
}
|
| 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 |
}
|
| 60 |
public function getFormUrl() {
|
| 61 |
return $this->helper('feedbackcompany')->getFormUrl();
|
| 62 |
}
|
| 63 |
+
|
| 64 |
}
|
app/code/local/Magmodules/Feedbackcompany/Block/Sidebar.php
CHANGED
|
@@ -12,20 +12,20 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
parent::_construct();
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
$enabled = '';
|
| 31 |
$qty = '5';
|
|
@@ -41,22 +41,22 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
| 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 |
-
|
| 60 |
|
| 61 |
$content = $sidebarreview->getReviewText();
|
| 62 |
|
|
@@ -68,11 +68,11 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
| 68 |
endif;
|
| 69 |
|
| 70 |
$content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
|
| 71 |
-
|
| 72 |
|
| 73 |
}
|
| 74 |
|
| 75 |
-
|
| 76 |
|
| 77 |
if($sidebar == 'left'):
|
| 78 |
$link = Mage::getStoreConfig('feedbackcompany/sidebar/left_link');
|
|
@@ -96,7 +96,7 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
| 96 |
|
| 97 |
}
|
| 98 |
|
| 99 |
-
|
| 100 |
|
| 101 |
if($sidebar == 'left'):
|
| 102 |
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/left_snippets');
|
|
@@ -111,11 +111,11 @@ class Magmodules_Feedbackcompany_Block_Sidebar extends Mage_Core_Block_Template
|
|
| 111 |
return true;
|
| 112 |
} else {
|
| 113 |
return false;
|
| 114 |
-
}
|
| 115 |
}
|
| 116 |
|
| 117 |
public function getTotalScore() {
|
| 118 |
return $this->helper('feedbackcompany')->getTotalScore();
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
}
|
| 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';
|
| 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 |
|
| 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');
|
| 96 |
|
| 97 |
}
|
| 98 |
|
| 99 |
+
function getSnippetsEnabled($sidebar = 'left') {
|
| 100 |
|
| 101 |
if($sidebar == 'left'):
|
| 102 |
$enabled = Mage::getStoreConfig('feedbackcompany/sidebar/left_snippets');
|
| 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
CHANGED
|
@@ -12,40 +12,36 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Block_Snippets extends Mage_Core_Block_Template {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
{
|
| 26 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
public function getSnippets()
|
| 37 |
-
{
|
| 38 |
-
return $this->helper('feedbackcompany')->getTotalScore();
|
| 39 |
-
}
|
| 40 |
|
| 41 |
-
public function
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
}
|
| 45 |
|
| 46 |
-
public function
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
}
|
| 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 |
if(Mage::getStoreConfig('feedbackcompany/general/enabled')) {
|
| 26 |
+
$this->setSnippetsEnabled(1);
|
| 27 |
+
} else {
|
| 28 |
+
$this->setSnippetsEnabled(0);
|
| 29 |
+
}
|
| 30 |
|
| 31 |
+
parent::_construct();
|
| 32 |
+
$this->setTemplate('magmodules/feedbackcompany/widget/richsnippets.phtml');
|
| 33 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
public function getSnippets() {
|
| 36 |
+
return $this->helper('feedbackcompany')->getTotalScore();
|
| 37 |
+
}
|
|
|
|
| 38 |
|
| 39 |
+
public function getHtmlStars($rating) {
|
| 40 |
+
return $this->helper('feedbackcompany')->getHtmlStars($rating);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
public function getExternalLink() {
|
| 44 |
+
return $this->helper('feedbackcompany')->getExternalLink();
|
| 45 |
+
}
|
| 46 |
|
| 47 |
}
|
app/code/local/Magmodules/Feedbackcompany/Helper/Data.php
CHANGED
|
@@ -12,11 +12,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Helper_Data extends Mage_Core_Helper_Abstract {
|
| 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 {
|
app/code/local/Magmodules/Feedbackcompany/Model/Api.php
CHANGED
|
@@ -12,28 +12,28 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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
|
| 27 |
-
$results['stats']
|
| 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 |
}
|
|
@@ -50,26 +50,26 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
| 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
|
| 70 |
$check_sum = 0;
|
| 71 |
$products = array();
|
| 72 |
-
|
| 73 |
// Get all product IDs
|
| 74 |
foreach($order->getAllVisibleItems() as $item) {
|
| 75 |
$products[] = urlencode($item->getName());
|
|
@@ -78,10 +78,10 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
| 78 |
|
| 79 |
// Get Checksum
|
| 80 |
for($i = 0; $i < strlen($email); $i++) {
|
| 81 |
-
|
| 82 |
}
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
// Connect to API
|
| 87 |
$feedbackconnect = curl_init($api_url);
|
|
@@ -90,14 +90,14 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
| 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');
|
|
@@ -110,8 +110,8 @@ class Magmodules_Feedbackcompany_Model_Api extends Mage_Core_Model_Abstract {
|
|
| 110 |
if($result['value'] > 0) {
|
| 111 |
$storeids[] = $result['scope_id'];
|
| 112 |
}
|
| 113 |
-
}
|
| 114 |
return $storeids;
|
| 115 |
}
|
| 116 |
-
|
| 117 |
}
|
| 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 |
}
|
| 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());
|
| 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);
|
| 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');
|
| 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
CHANGED
|
@@ -12,19 +12,19 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Log extends Mage_Core_Model_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
public function addToLog($type, $storeid, $review = '', $inivation = '', $time, $crontype = '', $api_url = '', $orderid = '') {
|
| 30 |
|
|
@@ -33,29 +33,29 @@ class Magmodules_Feedbackcompany_Model_Log extends Mage_Core_Model_Abstract {
|
|
| 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
|
| 41 |
}
|
| 42 |
-
|
| 43 |
-
$model = Mage::getModel('feedbackcompany/log');
|
| 44 |
$model->setType($type)
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
}
|
| 57 |
-
|
| 58 |
-
return;
|
| 59 |
}
|
| 60 |
-
|
| 61 |
}
|
| 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 |
|
| 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
CHANGED
|
@@ -12,17 +12,17 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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 |
}
|
| 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
CHANGED
|
@@ -12,18 +12,18 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
}
|
| 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
CHANGED
|
@@ -12,17 +12,17 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
| 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
CHANGED
|
@@ -12,18 +12,18 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
}
|
| 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
CHANGED
|
@@ -12,17 +12,17 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
| 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
CHANGED
|
@@ -12,18 +12,18 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
}
|
| 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
CHANGED
|
@@ -12,109 +12,109 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Observer {
|
| 23 |
-
|
| 24 |
-
|
| 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 |
-
|
| 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 |
-
|
| 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 |
-
|
| 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
|
| 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 |
-
|
| 105 |
-
|
| 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 |
}
|
| 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
CHANGED
|
@@ -12,36 +12,36 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
public function loadbyFeedbackId($feedback_id) {
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
public function processFeed($feed, $storeid = 0, $type) {
|
| 35 |
|
| 36 |
$updates = 0; $new = 0; $history = 0;
|
| 37 |
-
$api_id
|
| 38 |
-
$company
|
| 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;
|
|
@@ -49,7 +49,7 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
| 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;
|
|
@@ -63,10 +63,10 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
| 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)
|
|
@@ -86,16 +86,16 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
| 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)
|
|
@@ -115,19 +115,19 @@ class Magmodules_Feedbackcompany_Model_Reviews extends Mage_Core_Model_Abstract
|
|
| 115 |
->setPurchasedProducts($purchased_products)
|
| 116 |
->setTextPositive($text_positive)
|
| 117 |
->setTextImprovements($text_improvements)
|
| 118 |
-
->setDateCreated($date_created)
|
| 119 |
-
|
| 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 |
}
|
| 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;
|
| 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;
|
| 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)
|
| 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)
|
| 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
CHANGED
|
@@ -12,36 +12,35 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
-
|
| 22 |
class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 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
|
|
@@ -50,38 +49,38 @@ class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
|
| 50 |
} else {
|
| 51 |
$id = '';
|
| 52 |
}
|
| 53 |
-
|
| 54 |
// Save Review Stats
|
| 55 |
-
$model = Mage::getModel('feedbackcompany/stats');
|
| 56 |
$model->setId($id)
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 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';
|
|
@@ -91,20 +90,20 @@ class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
|
| 91 |
} else {
|
| 92 |
$id = '';
|
| 93 |
}
|
| 94 |
-
|
| 95 |
$model = Mage::getModel('feedbackcompany/stats')
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
}
|
| 104 |
|
| 105 |
public function loadbyShopId($shop_id) {
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
|
| 110 |
}
|
| 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 |
class Magmodules_Feedbackcompany_Model_Stats extends Mage_Core_Model_Abstract {
|
| 22 |
|
| 23 |
+
public function _construct() {
|
| 24 |
+
parent::_construct();
|
| 25 |
+
$this->_init('feedbackcompany/stats');
|
| 26 |
+
}
|
| 27 |
|
| 28 |
public function processFeed($feed, $storeid = 0) {
|
| 29 |
+
$shop_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
| 30 |
+
$company = Mage::getStoreConfig('feedbackcompany/general/company', $storeid);
|
| 31 |
|
| 32 |
if($storeid == 0) {
|
| 33 |
$config = new Mage_Core_Model_Config();
|
| 34 |
+
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'default', $storeid);
|
| 35 |
} else {
|
| 36 |
$config = new Mage_Core_Model_Config();
|
| 37 |
+
$config->saveConfig('feedbackcompany/general/url', $feed->detailslink, 'stores', $storeid);
|
| 38 |
}
|
| 39 |
|
| 40 |
+
if($feed->noReviews > 0) {
|
| 41 |
$score = floatval($feed->score);
|
| 42 |
$score = ($score * 10);
|
| 43 |
+
$scoremax = $feed->scoremax;
|
| 44 |
$votes = $feed->noReviews;
|
| 45 |
|
| 46 |
// Check for update or save
|
| 49 |
} else {
|
| 50 |
$id = '';
|
| 51 |
}
|
| 52 |
+
|
| 53 |
// Save Review Stats
|
| 54 |
+
$model = Mage::getModel('feedbackcompany/stats');
|
| 55 |
$model->setId($id)
|
| 56 |
+
->setShopId($shop_id)
|
| 57 |
+
->setCompany($company)
|
| 58 |
+
->setScore($score)
|
| 59 |
+
->setScoremax($scoremax)
|
| 60 |
+
->setVotes($votes)
|
| 61 |
+
->save();
|
| 62 |
return true;
|
| 63 |
} else {
|
| 64 |
return false;
|
| 65 |
+
}
|
| 66 |
}
|
| 67 |
|
| 68 |
public function processOverall() {
|
| 69 |
$stats = Mage::getModel('feedbackcompany/stats')->getCollection();
|
| 70 |
$stats->addFieldToFilter('shop_id', array('neq' => '0'));
|
| 71 |
+
|
| 72 |
$score = '';
|
| 73 |
$scoremax = '';
|
| 74 |
+
$votes= '';
|
| 75 |
$i = 0;
|
| 76 |
+
|
| 77 |
foreach($stats as $stat) {
|
| 78 |
$score = ($score + $stat->getScore());
|
| 79 |
$scoremax = ($scoremax + $stat->getScoremax());
|
| 80 |
+
$votes = ($votes + $stat->getVotes());
|
| 81 |
$i++;
|
| 82 |
}
|
| 83 |
+
|
| 84 |
$score = ($score / $i);
|
| 85 |
$scoremax = ($scoremax / $i);
|
| 86 |
$company = 'Overall';
|
| 90 |
} else {
|
| 91 |
$id = '';
|
| 92 |
}
|
| 93 |
+
|
| 94 |
$model = Mage::getModel('feedbackcompany/stats')
|
| 95 |
+
->setId($id)
|
| 96 |
+
->setShopId(0)
|
| 97 |
+
->setCompany($company)
|
| 98 |
+
->setScore($score)
|
| 99 |
+
->setScoremax($scoremax)
|
| 100 |
+
->setVotes($votes)
|
| 101 |
+
->save();
|
| 102 |
}
|
| 103 |
|
| 104 |
public function loadbyShopId($shop_id) {
|
| 105 |
+
$this->_getResource()->load($this, $shop_id, 'shop_id');
|
| 106 |
+
return $this;
|
| 107 |
+
}
|
| 108 |
|
| 109 |
}
|
app/code/local/Magmodules/Feedbackcompany/Model/System/Config/Source/Cronfrequency.php
CHANGED
|
@@ -21,15 +21,15 @@
|
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Cronfrequency {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
|
| 35 |
}
|
| 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
CHANGED
|
@@ -22,18 +22,18 @@
|
|
| 22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Orderstatus {
|
| 23 |
|
| 24 |
public function toOptionArray() {
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
$this->_options = array(array('value' => 0, 'label' => Mage::helper('feedbackcompany') -> __('-- none')));
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
$this->_options = array_merge($this->_options, $options);
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
}
|
| 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
CHANGED
|
@@ -23,9 +23,9 @@ 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 |
}
|
| 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
CHANGED
|
@@ -21,12 +21,12 @@
|
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_Model_System_Config_Source_Sidebarlink {
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
}
|
| 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
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,56 +13,56 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
$log = Mage::getModel('feedbackcompany/log')->load($id)->delete();
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 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 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Adminhtml_FeedbacklogController extends Mage_Adminhtml_Controller_Action {
|
| 24 |
|
| 25 |
protected function _initAction() {
|
| 26 |
+
$this->loadLayout()->_setActiveMenu('feedbackcompany/feedbackreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
| 27 |
return $this;
|
| 28 |
+
}
|
| 29 |
|
| 30 |
public function indexAction() {
|
| 31 |
$this->_initAction()->renderLayout();
|
| 32 |
}
|
| 33 |
|
| 34 |
+
public function massDeleteAction() {
|
| 35 |
+
$LogIds = $this->getRequest()->getParam('logids');
|
| 36 |
+
if(!is_array($LogIds)) {
|
| 37 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 38 |
+
} else {
|
| 39 |
+
try {
|
| 40 |
+
foreach ($LogIds as $id) {
|
| 41 |
$log = Mage::getModel('feedbackcompany/log')->load($id)->delete();
|
| 42 |
+
}
|
| 43 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d log record(s) deleted.', count($LogIds)));
|
| 44 |
+
} catch (Exception $e) {
|
| 45 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
$this->_redirect('*/*/index');
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
public function cleanAction() {
|
| 52 |
$enabled = Mage::getStoreConfig('feedbackcompany/log/clean');
|
| 53 |
$days = Mage::getStoreConfig('feedbackcompany/log/clean_days');
|
| 54 |
$i = 0;
|
| 55 |
+
if(($enabled) && ($days > 0)) {
|
| 56 |
+
$logmodel = Mage::getModel('feedbackcompany/log');
|
| 57 |
$deldate = date('Y-m-d', strtotime('-' . $days . ' days'));
|
| 58 |
$logs = $logmodel->getCollection()->addFieldToSelect('id')->addFieldToFilter('date', array('lteq' => $deldate));
|
| 59 |
foreach ($logs as $log) {
|
| 60 |
$logmodel->load($log->getId())->delete();
|
| 61 |
$i++;
|
| 62 |
+
}
|
| 63 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %s log record(s) deleted.', $i));
|
| 64 |
+
}
|
| 65 |
$this->_redirect('*/*/index');
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/Adminhtml/FeedbackreviewsController.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,27 +13,27 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 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);
|
|
@@ -47,94 +48,94 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
| 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
|
| 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 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 73 |
$reviews->setStatus(0)->save();
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 91 |
$reviews->setStatus(1)->save();
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 109 |
$reviews->setSidebar(1)->save();
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 127 |
$reviews->setSidebar(0)->save();
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
public function truncateAction() {
|
| 138 |
$i = 0;
|
| 139 |
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
| 140 |
foreach ($collection as $item) {
|
|
@@ -142,7 +143,7 @@ class Magmodules_Feedbackcompany_Adminhtml_FeedbackreviewsController extends Mag
|
|
| 142 |
$i++;
|
| 143 |
}
|
| 144 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Succefully deleted all %s saved review(s).', $i));
|
| 145 |
-
|
| 146 |
}
|
| 147 |
-
|
| 148 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_Adminhtml_FeedbackreviewsController extends Mage_Adminhtml_Controller_Action {
|
| 24 |
|
| 25 |
protected function _initAction() {
|
| 26 |
+
$this->loadLayout()->_setActiveMenu('feedbackcompany/feedbackreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
| 27 |
return $this;
|
| 28 |
+
}
|
| 29 |
|
| 30 |
public function indexAction() {
|
| 31 |
$this->_initAction()->renderLayout();
|
| 32 |
}
|
| 33 |
|
| 34 |
+
public function processAction() {
|
| 35 |
+
$storeids = Mage::getModel('feedbackcompany/api')->getStoreIds();
|
| 36 |
+
$start_time = microtime(true);
|
| 37 |
foreach($storeids as $storeid) {
|
| 38 |
$msg = '';
|
| 39 |
$api_id = Mage::getStoreConfig('feedbackcompany/general/api_id', $storeid);
|
| 48 |
}
|
| 49 |
|
| 50 |
if($msg) {
|
| 51 |
+
Mage::getSingleton('adminhtml/session')->addSuccess($msg);
|
| 52 |
} else {
|
| 53 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Webwinkel ID %s: no updates found, feed is empty or not found!', $api_id));
|
| 54 |
}
|
| 55 |
}
|
| 56 |
+
Mage::getModel('feedbackcompany/stats')->processOverall();
|
| 57 |
$this->_redirect('adminhtml/system_config/edit/section/feedbackcompany');
|
| 58 |
}
|
| 59 |
|
| 60 |
public function testapiAction() {
|
| 61 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('TODO: repsonse code van de API', $xml));
|
| 62 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('TODO: repsonse code van de API', $xml));
|
| 63 |
$this->_redirect('adminhtml/system_config/edit/section/feedbackcompany');
|
| 64 |
+
}
|
| 65 |
|
| 66 |
+
public function massDisableAction() {
|
| 67 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
| 68 |
+
if(!is_array($reviewIds)) {
|
| 69 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 70 |
+
} else {
|
| 71 |
+
try {
|
| 72 |
+
foreach ($reviewIds as $review_id) {
|
| 73 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 74 |
$reviews->setStatus(0)->save();
|
| 75 |
+
}
|
| 76 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were disabled.', count($reviewIds)));
|
| 77 |
+
} catch (Exception $e) {
|
| 78 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
$this->_redirect('*/*/index');
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
public function massEnableAction() {
|
| 85 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
| 86 |
+
if(!is_array($reviewIds)) {
|
| 87 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 88 |
+
} else {
|
| 89 |
+
try {
|
| 90 |
+
foreach ($reviewIds as $review_id) {
|
| 91 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 92 |
$reviews->setStatus(1)->save();
|
| 93 |
+
}
|
| 94 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were enabled.', count($reviewIds)));
|
| 95 |
+
} catch (Exception $e) {
|
| 96 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
$this->_redirect('*/*/index');
|
| 100 |
+
}
|
| 101 |
|
| 102 |
+
public function massEnableSidebarAction() {
|
| 103 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
| 104 |
+
if(!is_array($reviewIds)) {
|
| 105 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 106 |
+
} else {
|
| 107 |
+
try {
|
| 108 |
+
foreach ($reviewIds as $review_id) {
|
| 109 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 110 |
$reviews->setSidebar(1)->save();
|
| 111 |
+
}
|
| 112 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were added to the sidebar.', count($reviewIds)));
|
| 113 |
+
} catch (Exception $e) {
|
| 114 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
$this->_redirect('*/*/index');
|
| 118 |
+
}
|
| 119 |
|
| 120 |
+
public function massDisableSidebarAction() {
|
| 121 |
+
$reviewIds = $this->getRequest()->getParam('reviewids');
|
| 122 |
+
if(!is_array($reviewIds)) {
|
| 123 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('feedbackcompany')->__('Please select item(s)'));
|
| 124 |
+
} else {
|
| 125 |
+
try {
|
| 126 |
+
foreach ($reviewIds as $review_id) {
|
| 127 |
$reviews = Mage::getModel('feedbackcompany/reviews')->load($review_id);
|
| 128 |
$reviews->setSidebar(0)->save();
|
| 129 |
+
}
|
| 130 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Total of %d review(s) were removed from the sidebar.', count($reviewIds)));
|
| 131 |
+
} catch (Exception $e) {
|
| 132 |
+
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
| 133 |
+
}
|
| 134 |
+
}
|
| 135 |
+
$this->_redirect('*/*/index');
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
public function truncateAction() {
|
| 139 |
$i = 0;
|
| 140 |
$collection = Mage::getModel('feedbackcompany/reviews')->getCollection();
|
| 141 |
foreach ($collection as $item) {
|
| 143 |
$i++;
|
| 144 |
}
|
| 145 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('feedbackcompany')->__('Succefully deleted all %s saved review(s).', $i));
|
| 146 |
+
$this->_redirect('*/*/index');
|
| 147 |
}
|
| 148 |
+
|
| 149 |
}
|
app/code/local/Magmodules/Feedbackcompany/controllers/IndexController.php
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
-
* Magmodules.eu
|
|
|
|
| 4 |
*
|
| 5 |
* NOTICE OF LICENSE
|
| 6 |
*
|
|
@@ -12,33 +13,33 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
class Magmodules_Feedbackcompany_IndexController extends Mage_Core_Controller_Front_Action {
|
| 23 |
-
|
| 24 |
-
|
| 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 |
|
|
@@ -46,6 +47,6 @@ class Magmodules_Feedbackcompany_IndexController extends Mage_Core_Controller_Fr
|
|
| 46 |
} else {
|
| 47 |
$this->_redirect('/');
|
| 48 |
}
|
| 49 |
-
|
| 50 |
|
| 51 |
}
|
| 1 |
<?php
|
| 2 |
/**
|
| 3 |
+
* Magmodules.eu
|
| 4 |
+
* http://www.magmodules.eu
|
| 5 |
*
|
| 6 |
* NOTICE OF LICENSE
|
| 7 |
*
|
| 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_IndexController extends Mage_Core_Controller_Front_Action {
|
| 24 |
+
|
| 25 |
+
public function indexAction() {
|
| 26 |
|
| 27 |
$enabled = Mage::getStoreConfig('feedbackcompany/general/enabled');
|
| 28 |
$overview = Mage::getStoreConfig('feedbackcompany/overview/enabled');
|
| 29 |
|
| 30 |
if($enabled && $overview) {
|
| 31 |
$this->loadLayout();
|
| 32 |
+
$head = $this->getLayout()->getBlock('head');
|
| 33 |
|
| 34 |
if($title = Mage::getStoreConfig('feedbackcompany/overview/meta_title')):
|
| 35 |
$head->setTitle($title);
|
| 36 |
endif;
|
| 37 |
|
| 38 |
+
if($description = Mage::getStoreConfig('feedbackcompany/overview/meta_description')):
|
| 39 |
$head->setDescription($description);
|
| 40 |
endif;
|
| 41 |
|
| 42 |
+
if($keywords = Mage::getStoreConfig('feedbackcompany/overview/meta_keywords')):
|
| 43 |
$head->setKeywords($keywords);
|
| 44 |
endif;
|
| 45 |
|
| 47 |
} else {
|
| 48 |
$this->_redirect('/');
|
| 49 |
}
|
| 50 |
+
}
|
| 51 |
|
| 52 |
}
|
app/code/local/Magmodules/Feedbackcompany/etc/adminhtml.xml
CHANGED
|
@@ -14,11 +14,11 @@
|
|
| 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
|
| 18 |
-
* @package
|
| 19 |
-
* @author
|
| 20 |
-
* @copyright
|
| 21 |
-
* @license
|
| 22 |
*/
|
| 23 |
-->
|
| 24 |
<config>
|
|
@@ -82,7 +82,7 @@
|
|
| 82 |
<title>Log</title>
|
| 83 |
<sort_order>110</sort_order>
|
| 84 |
<action>adminhtml/feedbacklog/</action>
|
| 85 |
-
</feedbackcompany_log>
|
| 86 |
</children>
|
| 87 |
</feedbackcompany>
|
| 88 |
</children>
|
| 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>
|
| 82 |
<title>Log</title>
|
| 83 |
<sort_order>110</sort_order>
|
| 84 |
<action>adminhtml/feedbacklog/</action>
|
| 85 |
+
</feedbackcompany_log>
|
| 86 |
</children>
|
| 87 |
</feedbackcompany>
|
| 88 |
</children>
|
app/code/local/Magmodules/Feedbackcompany/etc/config.xml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
| 3 |
-
<?php
|
| 4 |
/**
|
| 5 |
-
* Magmodules.eu
|
|
|
|
| 6 |
*
|
| 7 |
* NOTICE OF LICENSE
|
| 8 |
*
|
|
@@ -14,60 +14,60 @@
|
|
| 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
|
| 18 |
-
* @package
|
| 19 |
-
* @author
|
| 20 |
-
* @copyright
|
| 21 |
-
* @license
|
| 22 |
*/
|
| 23 |
-->
|
| 24 |
<config>
|
| 25 |
<modules>
|
| 26 |
<Magmodules_Feedbackcompany>
|
| 27 |
-
<version>0.
|
| 28 |
</Magmodules_Feedbackcompany>
|
| 29 |
</modules>
|
| 30 |
<global>
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
<resources>
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
<helpers>
|
| 72 |
<feedbackcompany>
|
| 73 |
<class>Magmodules_Feedbackcompany_Helper</class>
|
|
@@ -78,37 +78,37 @@
|
|
| 78 |
<class>Magmodules_Feedbackcompany_Block</class>
|
| 79 |
</feedbackcompany>
|
| 80 |
</blocks>
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
</global>
|
| 102 |
<frontend>
|
| 103 |
<routers>
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
<layout>
|
| 113 |
<updates>
|
| 114 |
<feedbackcompany>
|
|
@@ -116,15 +116,15 @@
|
|
| 116 |
</feedbackcompany>
|
| 117 |
</updates>
|
| 118 |
</layout>
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
</frontend>
|
| 129 |
<adminhtml>
|
| 130 |
<layout>
|
|
@@ -134,47 +134,47 @@
|
|
| 134 |
</magmodules_feedbackcompany>
|
| 135 |
</updates>
|
| 136 |
</layout>
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
<magmodules_feedbackcompany_stats>
|
| 161 |
-
|
| 162 |
-
|
| 163 |
</magmodules_feedbackcompany_stats>
|
| 164 |
<magmodules_feedbackcompany_reviews>
|
| 165 |
-
|
| 166 |
-
|
| 167 |
</magmodules_feedbackcompany_reviews>
|
| 168 |
<magmodules_feedbackcompany_reviewhistory>
|
| 169 |
-
|
| 170 |
-
|
| 171 |
</magmodules_feedbackcompany_reviewhistory>
|
| 172 |
<magmodules_feedbackcompany_cleanlog>
|
| 173 |
-
|
| 174 |
-
|
| 175 |
</magmodules_feedbackcompany_cleanlog>
|
| 176 |
-
|
| 177 |
-
|
| 178 |
<default>
|
| 179 |
<feedbackcompany>
|
| 180 |
<general>
|
|
@@ -184,7 +184,7 @@
|
|
| 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>
|
|
@@ -195,10 +195,10 @@
|
|
| 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>
|
|
@@ -211,10 +211,10 @@
|
|
| 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>
|
|
@@ -225,7 +225,7 @@
|
|
| 225 |
<enabled>1</enabled>
|
| 226 |
<clean>1</clean>
|
| 227 |
<clean_days>14</clean_days>
|
| 228 |
-
</log>
|
| 229 |
</feedbackcompany>
|
| 230 |
</default>
|
| 231 |
</config>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<!--
|
|
|
|
| 3 |
/**
|
| 4 |
+
* Magmodules.eu
|
| 5 |
+
* http://www.magmodules.eu
|
| 6 |
*
|
| 7 |
* NOTICE OF LICENSE
|
| 8 |
*
|
| 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>1.0.1</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>
|
| 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>
|
| 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>
|
| 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>
|
| 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>
|
| 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>
|
| 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>
|
| 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
CHANGED
|
@@ -14,13 +14,13 @@
|
|
| 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
|
| 18 |
-
* @package
|
| 19 |
-
* @author
|
| 20 |
-
* @copyright
|
| 21 |
-
* @license
|
| 22 |
*/
|
| 23 |
-
|
| 24 |
<config>
|
| 25 |
<tabs>
|
| 26 |
<magmodules translate="label" module="feedbackcompany">
|
|
@@ -36,15 +36,15 @@
|
|
| 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 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
<general translate="label" module="feedbackcompany">
|
| 49 |
<label>General configuration</label>
|
| 50 |
<frontend_type>text</frontend_type>
|
|
@@ -52,66 +52,54 @@
|
|
| 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 |
-
|
| 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 |
-
|
| 65 |
-
$('feedbackcompany_general_url').style.backgroundColor='#f0f0f0';
|
| 66 |
-
$('feedbackcompany_general_url').disable();
|
| 67 |
-
}
|
| 68 |
-
});
|
| 69 |
</script>
|
| 70 |
-
]]>
|
| 71 |
</comment>
|
| 72 |
<fields>
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
<company translate="label">
|
| 91 |
<label>Company</label>
|
| 92 |
-
|
| 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 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 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 |
-
</
|
| 114 |
-
</fields>
|
| 115 |
</general>
|
| 116 |
<reviews translate="label" module="feedbackcompany">
|
| 117 |
<label>Feedbackcompany Import Reviews</label>
|
|
@@ -120,65 +108,65 @@
|
|
| 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 |
-
|
| 124 |
<fields>
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
<depends><cron>1</cron></depends>
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
<depends><cron>1</cron></depends>
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
<depends><cron>1</cron></depends>
|
| 163 |
-
|
| 164 |
<lastrun translate="label">
|
| 165 |
<label>Last Update</label>
|
| 166 |
-
|
| 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 |
-
|
| 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>
|
|
@@ -187,124 +175,124 @@
|
|
| 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 |
-
|
| 191 |
-
<fields>
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
<validate>validate-number</validate>
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
<depends><left>1</left></depends>
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
<validate>validate-number</validate>
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
<depends><left>1</left></depends>
|
| 228 |
-
|
| 229 |
<left_snippets translate="label">
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 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 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
<depends><left>1</left></depends>
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
<validate>validate-number</validate>
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
<depends><right>1</right></depends>
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
<validate>validate-number</validate>
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
<depends><right>1</right></depends>
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
<depends><right>1</right></depends>
|
| 296 |
-
|
| 297 |
<right_snippets translate="label">
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 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 |
-
|
| 308 |
</fields>
|
| 309 |
</sidebar>
|
| 310 |
<overview translate="label">
|
|
@@ -314,219 +302,210 @@
|
|
| 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 |
-
|
| 318 |
-
<fields>
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
<depends><enabled>1</enabled></depends>
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 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 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
</
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
<
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
<
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
<
|
| 399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 400 |
</fields>
|
| 401 |
</overview>
|
| 402 |
<invitation translate="label">
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
<sort_order>2</sort_order>
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
<depends><enabled>1</enabled></depends>
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
<sort_order>3</sort_order>
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
<depends><enabled>1</enabled></depends>
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
<depends><enabled>1</enabled></depends>
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
<depends><enabled>1</enabled></depends>
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
<depends><enabled>1</enabled></depends>
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
<depends><enabled>1</enabled></depends>
|
| 486 |
-
|
| 487 |
-
|
| 488 |
</fields>
|
| 489 |
-
</invitation>
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
<depends><enabled>1</enabled></depends>
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
<validate>validate-number</validate>
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
<depends><enabled>1</enabled></depends>
|
| 527 |
-
|
| 528 |
</fields>
|
| 529 |
-
</log>
|
| 530 |
<snippets translate="label">
|
| 531 |
<label>Feedbackcompany Custom Blocks</label>
|
| 532 |
<frontend_type>text</frontend_type>
|
|
@@ -534,7 +513,7 @@
|
|
| 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 |
-
|
| 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>
|
| 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">
|
| 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>
|
| 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 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
</script>
|
| 66 |
+
]]>
|
| 67 |
</comment>
|
| 68 |
<fields>
|
| 69 |
+
<enabled translate="label">
|
| 70 |
+
<label>Enabled</label>
|
| 71 |
+
<frontend_type>select</frontend_type>
|
| 72 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 73 |
+
<sort_order>1</sort_order>
|
| 74 |
+
<show_in_default>1</show_in_default>
|
| 75 |
+
<show_in_website>1</show_in_website>
|
| 76 |
+
<show_in_store>1</show_in_store>
|
| 77 |
+
</enabled>
|
| 78 |
+
<heading_api translate="label">
|
| 79 |
+
<label>API CREDENTIALS</label>
|
| 80 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
| 81 |
+
<sort_order>2</sort_order>
|
| 82 |
+
<show_in_default>1</show_in_default>
|
| 83 |
+
<show_in_website>0</show_in_website>
|
| 84 |
+
<show_in_store>1</show_in_store>
|
| 85 |
+
</heading_api>
|
| 86 |
<company translate="label">
|
| 87 |
<label>Company</label>
|
| 88 |
+
<frontend_type>text</frontend_type>
|
| 89 |
<sort_order>3</sort_order>
|
| 90 |
<show_in_default>1</show_in_default>
|
| 91 |
<show_in_website>0</show_in_website>
|
| 92 |
+
<show_in_store>1</show_in_store>
|
| 93 |
</company>
|
| 94 |
+
<api_id translate="label">
|
| 95 |
+
<label>The Feedback Company ID</label>
|
| 96 |
+
<frontend_type>text</frontend_type>
|
| 97 |
+
<sort_order>4</sort_order>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
<show_in_default>1</show_in_default>
|
| 99 |
<show_in_website>0</show_in_website>
|
| 100 |
+
<show_in_store>1</show_in_store>
|
| 101 |
+
</api_id>
|
| 102 |
+
</fields>
|
| 103 |
</general>
|
| 104 |
<reviews translate="label" module="feedbackcompany">
|
| 105 |
<label>Feedbackcompany Import Reviews</label>
|
| 108 |
<show_in_default>1</show_in_default>
|
| 109 |
<show_in_website>1</show_in_website>
|
| 110 |
<show_in_store>1</show_in_store>
|
| 111 |
+
<expanded>1</expanded>
|
| 112 |
<fields>
|
| 113 |
+
<cron translate="label">
|
| 114 |
+
<label>Use Cronjob</label>
|
| 115 |
+
<frontend_type>select</frontend_type>
|
| 116 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 117 |
+
<sort_order>1</sort_order>
|
| 118 |
+
<show_in_default>1</show_in_default>
|
| 119 |
+
<show_in_website>1</show_in_website>
|
| 120 |
+
<show_in_store>1</show_in_store>
|
| 121 |
+
</cron>
|
| 122 |
+
<cron_stats translate="label">
|
| 123 |
+
<label>Update Summary</label>
|
| 124 |
+
<frontend_type>select</frontend_type>
|
| 125 |
+
<source_model>feedbackcompany/system_config_source_cronfrequency</source_model>
|
| 126 |
+
<sort_order>2</sort_order>
|
| 127 |
+
<show_in_default>1</show_in_default>
|
| 128 |
+
<show_in_website>1</show_in_website>
|
| 129 |
+
<show_in_store>1</show_in_store>
|
| 130 |
+
<depends><cron>1</cron></depends>
|
| 131 |
+
</cron_stats>
|
| 132 |
+
<cron_reviews translate="label">
|
| 133 |
+
<label>Update Reviews</label>
|
| 134 |
+
<frontend_type>select</frontend_type>
|
| 135 |
+
<source_model>feedbackcompany/system_config_source_cronfrequency</source_model>
|
| 136 |
+
<sort_order>3</sort_order>
|
| 137 |
+
<show_in_default>1</show_in_default>
|
| 138 |
+
<show_in_website>1</show_in_website>
|
| 139 |
+
<show_in_store>1</show_in_store>
|
| 140 |
+
<depends><cron>1</cron></depends>
|
| 141 |
+
</cron_reviews>
|
| 142 |
+
<cron_all translate="label">
|
| 143 |
+
<label>Update Review History</label>
|
| 144 |
+
<frontend_type>select</frontend_type>
|
| 145 |
+
<source_model>feedbackcompany/system_config_source_cronfrequency</source_model>
|
| 146 |
+
<sort_order>4</sort_order>
|
| 147 |
+
<show_in_default>1</show_in_default>
|
| 148 |
+
<show_in_website>1</show_in_website>
|
| 149 |
+
<show_in_store>1</show_in_store>
|
| 150 |
+
<depends><cron>1</cron></depends>
|
| 151 |
+
</cron_all>
|
| 152 |
<lastrun translate="label">
|
| 153 |
<label>Last Update</label>
|
| 154 |
+
<frontend_type>text</frontend_type>
|
| 155 |
<sort_order>100</sort_order>
|
| 156 |
<show_in_default>1</show_in_default>
|
| 157 |
<show_in_website>1</show_in_website>
|
| 158 |
+
<show_in_store>1</show_in_store>
|
| 159 |
+
</lastrun>
|
| 160 |
<process translate="label">
|
| 161 |
<label>Process Manually</label>
|
| 162 |
+
<frontend_type>button</frontend_type>
|
| 163 |
<frontend_model>feedbackcompany/adminhtml_widget_buttons_process</frontend_model>
|
| 164 |
<sort_order>101</sort_order>
|
| 165 |
<show_in_default>1</show_in_default>
|
| 166 |
<show_in_website>1</show_in_website>
|
| 167 |
+
<show_in_store>1</show_in_store>
|
| 168 |
+
</process>
|
| 169 |
+
</fields>
|
| 170 |
</reviews>
|
| 171 |
<sidebar translate="label">
|
| 172 |
<label>Feedbackcompany Reviews Sidebar</label>
|
| 175 |
<show_in_default>1</show_in_default>
|
| 176 |
<show_in_website>1</show_in_website>
|
| 177 |
<show_in_store>1</show_in_store>
|
| 178 |
+
<expanded>1</expanded>
|
| 179 |
+
<fields>
|
| 180 |
+
<left_heading translate="label">
|
| 181 |
+
<label>Left Sidebar</label>
|
| 182 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
| 183 |
+
<sort_order>50</sort_order>
|
| 184 |
+
<show_in_default>1</show_in_default>
|
| 185 |
+
<show_in_website>1</show_in_website>
|
| 186 |
+
<show_in_store>1</show_in_store>
|
| 187 |
+
</left_heading>
|
| 188 |
+
<left translate="label">
|
| 189 |
+
<label>Enabled</label>
|
| 190 |
+
<frontend_type>select</frontend_type>
|
| 191 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 192 |
+
<sort_order>51</sort_order>
|
| 193 |
+
<show_in_default>1</show_in_default>
|
| 194 |
+
<show_in_website>1</show_in_website>
|
| 195 |
+
<show_in_store>1</show_in_store>
|
| 196 |
+
</left>
|
| 197 |
+
<left_qty translate="label">
|
| 198 |
+
<label>Number of Reviews</label>
|
| 199 |
<validate>validate-number</validate>
|
| 200 |
+
<frontend_type>text</frontend_type>
|
| 201 |
+
<sort_order>52</sort_order>
|
| 202 |
+
<show_in_default>1</show_in_default>
|
| 203 |
+
<show_in_website>1</show_in_website>
|
| 204 |
+
<show_in_store>1</show_in_store>
|
| 205 |
+
<depends><left>1</left></depends>
|
| 206 |
+
</left_qty>
|
| 207 |
+
<left_lenght translate="label">
|
| 208 |
+
<label>Length of Reviews</label>
|
| 209 |
<validate>validate-number</validate>
|
| 210 |
+
<frontend_type>text</frontend_type>
|
| 211 |
+
<sort_order>53</sort_order>
|
| 212 |
+
<show_in_default>1</show_in_default>
|
| 213 |
+
<show_in_website>1</show_in_website>
|
| 214 |
+
<show_in_store>1</show_in_store>
|
| 215 |
+
<depends><left>1</left></depends>
|
| 216 |
+
</left_lenght>
|
| 217 |
<left_snippets translate="label">
|
| 218 |
+
<label>Add Rich Snippets</label>
|
| 219 |
+
<frontend_type>select</frontend_type>
|
| 220 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 221 |
+
<sort_order>56</sort_order>
|
| 222 |
+
<show_in_default>1</show_in_default>
|
| 223 |
+
<show_in_website>1</show_in_website>
|
| 224 |
+
<show_in_store>1</show_in_store>
|
| 225 |
+
<depends><left>1</left></depends>
|
| 226 |
<comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
|
| 227 |
+
</left_snippets>
|
| 228 |
+
<left_link translate="label">
|
| 229 |
+
<label>Link to</label>
|
| 230 |
+
<frontend_type>select</frontend_type>
|
| 231 |
+
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
| 232 |
+
<sort_order>55</sort_order>
|
| 233 |
+
<show_in_default>1</show_in_default>
|
| 234 |
+
<show_in_website>1</show_in_website>
|
| 235 |
+
<show_in_store>1</show_in_store>
|
| 236 |
+
<depends><left>1</left></depends>
|
| 237 |
+
</left_link>
|
| 238 |
+
<right_heading translate="label">
|
| 239 |
+
<label>Right Sidebar</label>
|
| 240 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
| 241 |
+
<sort_order>60</sort_order>
|
| 242 |
+
<show_in_default>1</show_in_default>
|
| 243 |
+
<show_in_website>1</show_in_website>
|
| 244 |
+
<show_in_store>1</show_in_store>
|
| 245 |
+
</right_heading>
|
| 246 |
+
<right translate="label">
|
| 247 |
+
<label>Enabled</label>
|
| 248 |
+
<frontend_type>select</frontend_type>
|
| 249 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 250 |
+
<sort_order>61</sort_order>
|
| 251 |
+
<show_in_default>1</show_in_default>
|
| 252 |
+
<show_in_website>1</show_in_website>
|
| 253 |
+
<show_in_store>1</show_in_store>
|
| 254 |
+
</right>
|
| 255 |
+
<right_qty translate="label">
|
| 256 |
+
<label>Number of Reviews</label>
|
| 257 |
<validate>validate-number</validate>
|
| 258 |
+
<frontend_type>text</frontend_type>
|
| 259 |
+
<sort_order>62</sort_order>
|
| 260 |
+
<show_in_default>1</show_in_default>
|
| 261 |
+
<show_in_website>1</show_in_website>
|
| 262 |
+
<show_in_store>1</show_in_store>
|
| 263 |
+
<depends><right>1</right></depends>
|
| 264 |
+
</right_qty>
|
| 265 |
+
<right_lenght translate="label">
|
| 266 |
+
<label>Length of Reviews</label>
|
| 267 |
<validate>validate-number</validate>
|
| 268 |
+
<frontend_type>text</frontend_type>
|
| 269 |
+
<sort_order>63</sort_order>
|
| 270 |
+
<show_in_default>1</show_in_default>
|
| 271 |
+
<show_in_website>1</show_in_website>
|
| 272 |
+
<show_in_store>1</show_in_store>
|
| 273 |
+
<depends><right>1</right></depends>
|
| 274 |
+
</right_lenght>
|
| 275 |
+
<right_link>
|
| 276 |
+
<label>Link to</label>
|
| 277 |
+
<frontend_type>select</frontend_type>
|
| 278 |
+
<source_model>feedbackcompany/system_config_source_sidebarlink</source_model>
|
| 279 |
+
<sort_order>65</sort_order>
|
| 280 |
+
<show_in_default>1</show_in_default>
|
| 281 |
+
<show_in_website>1</show_in_website>
|
| 282 |
+
<show_in_store>1</show_in_store>
|
| 283 |
<depends><right>1</right></depends>
|
| 284 |
+
</right_link>
|
| 285 |
<right_snippets translate="label">
|
| 286 |
+
<label>Add to Sidebar Homepage</label>
|
| 287 |
+
<frontend_type>select</frontend_type>
|
| 288 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 289 |
+
<sort_order>66</sort_order>
|
| 290 |
+
<show_in_default>1</show_in_default>
|
| 291 |
+
<show_in_website>1</show_in_website>
|
| 292 |
+
<show_in_store>1</show_in_store>
|
| 293 |
+
<depends><right>1</right></depends>
|
| 294 |
+
<comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
|
| 295 |
+
</right_snippets>
|
| 296 |
</fields>
|
| 297 |
</sidebar>
|
| 298 |
<overview translate="label">
|
| 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 |
+
<expanded>1</expanded>
|
| 306 |
+
<fields>
|
| 307 |
+
<enabled translate="label">
|
| 308 |
+
<label>Enabled</label>
|
| 309 |
+
<frontend_type>select</frontend_type>
|
| 310 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 311 |
+
<sort_order>1</sort_order>
|
| 312 |
+
<show_in_default>1</show_in_default>
|
| 313 |
+
<show_in_website>1</show_in_website>
|
| 314 |
+
<show_in_store>1</show_in_store>
|
| 315 |
+
</enabled>
|
| 316 |
+
<intro translate="lable">
|
| 317 |
+
<label>Intro</label>
|
| 318 |
+
<frontend_type>textarea</frontend_type>
|
| 319 |
+
<sort_order>2</sort_order>
|
| 320 |
+
<show_in_default>1</show_in_default>
|
| 321 |
+
<show_in_website>1</show_in_website>
|
| 322 |
+
<show_in_store>1</show_in_store>
|
| 323 |
+
<depends><enabled>1</enabled></depends>
|
| 324 |
+
</intro>
|
| 325 |
+
<enable_paging>
|
| 326 |
+
<label>Paging</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 327 |
<frontend_type>select</frontend_type>
|
| 328 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 329 |
+
<sort_order>3</sort_order>
|
| 330 |
+
<show_in_default>1</show_in_default>
|
| 331 |
+
<show_in_website>1</show_in_website>
|
| 332 |
+
<show_in_store>1</show_in_store>
|
| 333 |
+
</enable_paging>
|
| 334 |
+
<paging_settings>
|
| 335 |
+
<label>Reviews per page</label>
|
| 336 |
+
<frontend_type>text</frontend_type>
|
| 337 |
+
<sort_order>4</sort_order>
|
| 338 |
+
<show_in_default>1</show_in_default>
|
| 339 |
+
<show_in_website>1</show_in_website>
|
| 340 |
+
<show_in_store>1</show_in_store>
|
| 341 |
+
<tooltip>Comma Separated, as: 10,20,30</tooltip>
|
| 342 |
+
<depends><enable_paging>1</enable_paging></depends>
|
| 343 |
+
</paging_settings>
|
| 344 |
+
<heading_meta translate="label">
|
| 345 |
+
<label>Meta Data</label>
|
| 346 |
+
<frontend_model>feedbackcompany/adminhtml_widget_form_heading</frontend_model>
|
| 347 |
+
<sort_order>10</sort_order>
|
| 348 |
+
<show_in_default>1</show_in_default>
|
| 349 |
+
<show_in_website>1</show_in_website>
|
| 350 |
+
<show_in_store>1</show_in_store>
|
| 351 |
+
</heading_meta>
|
| 352 |
+
<meta_title translate="lable">
|
| 353 |
+
<label>Meta Title</label>
|
| 354 |
+
<frontend_type>text</frontend_type>
|
| 355 |
+
<sort_order>11</sort_order>
|
| 356 |
+
<show_in_default>1</show_in_default>
|
| 357 |
+
<show_in_website>1</show_in_website>
|
| 358 |
+
<show_in_store>1</show_in_store>
|
| 359 |
+
<depends><enabled>1</enabled></depends>
|
| 360 |
+
</meta_title>
|
| 361 |
+
<meta_description translate="lable">
|
| 362 |
+
<label>Meta Description</label>
|
| 363 |
+
<frontend_type>textarea</frontend_type>
|
| 364 |
+
<sort_order>12</sort_order>
|
| 365 |
+
<show_in_default>1</show_in_default>
|
| 366 |
+
<show_in_website>1</show_in_website>
|
| 367 |
+
<show_in_store>1</show_in_store>
|
| 368 |
+
<depends><enabled>1</enabled></depends>
|
| 369 |
+
</meta_description>
|
| 370 |
+
<meta_keywords translate="label">
|
| 371 |
+
<label>Meta Keywords</label>
|
| 372 |
+
<frontend_type>textarea</frontend_type>
|
| 373 |
+
<sort_order>13</sort_order>
|
| 374 |
+
<show_in_default>1</show_in_default>
|
| 375 |
+
<show_in_website>1</show_in_website>
|
| 376 |
+
<show_in_store>1</show_in_store>
|
| 377 |
+
<depends><enabled>1</enabled></depends>
|
| 378 |
+
</meta_keywords>
|
| 379 |
</fields>
|
| 380 |
</overview>
|
| 381 |
<invitation translate="label">
|
| 382 |
+
<label>Invitation to write the customer experience</label>
|
| 383 |
+
<frontend_type>text</frontend_type>
|
| 384 |
+
<sort_order>7</sort_order>
|
| 385 |
+
<show_in_default>1</show_in_default>
|
| 386 |
+
<show_in_website>1</show_in_website>
|
| 387 |
+
<show_in_store>1</show_in_store>
|
| 388 |
+
<expanded>1</expanded>
|
| 389 |
+
<fields>
|
| 390 |
+
<enabled translate="label">
|
| 391 |
+
<label>Activate</label>
|
| 392 |
+
<frontend_type>select</frontend_type>
|
| 393 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 394 |
+
<sort_order>1</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 |
+
<comment>Send invitation?</comment>
|
| 399 |
+
<tooltip>Send customers automatically receive an invitation to share a customer experience.</tooltip>
|
| 400 |
+
</enabled>
|
| 401 |
+
<connector>
|
| 402 |
+
<label>Connector Code</label>
|
| 403 |
+
<frontend_type>text</frontend_type>
|
| 404 |
+
<sort_order>2</sort_order>
|
| 405 |
+
<show_in_default>1</show_in_default>
|
| 406 |
+
<show_in_website>1</show_in_website>
|
| 407 |
+
<show_in_store>1</show_in_store>
|
| 408 |
+
<comment>Can be obtained from the Feedbackcompany Dashboard</comment>
|
| 409 |
+
<depends><enabled>1</enabled></depends>
|
| 410 |
+
</connector>
|
| 411 |
+
<status>
|
| 412 |
+
<label>Order completed with status</label>
|
| 413 |
+
<frontend_type>select</frontend_type>
|
| 414 |
+
<source_model>feedbackcompany/system_config_source_orderstatus</source_model>
|
| 415 |
+
<sort_order>3</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 |
+
<can_be_empty>1</can_be_empty>
|
| 420 |
+
<comment>Invitation e-mail is sent after such status is achieved</comment>
|
| 421 |
+
<tooltip>Specify at which status you want to send the invitation. Default is "Completed"</tooltip>
|
| 422 |
+
<depends><enabled>1</enabled></depends>
|
| 423 |
+
</status>
|
| 424 |
+
<delay translate="label">
|
| 425 |
+
<label>Delay</label>
|
| 426 |
+
<frontend_type>text</frontend_type>
|
| 427 |
+
<sort_order>4</sort_order>
|
| 428 |
+
<show_in_default>1</show_in_default>
|
| 429 |
+
<show_in_website>1</show_in_website>
|
| 430 |
+
<show_in_store>1</show_in_store>
|
| 431 |
+
<comment>Send the invitation x days after the order is completed</comment>
|
| 432 |
+
<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>
|
| 433 |
+
<depends><enabled>1</enabled></depends>
|
| 434 |
+
</delay>
|
| 435 |
+
<remind_delay translate="label">
|
| 436 |
+
<label>Remind Delay</label>
|
| 437 |
+
<frontend_type>text</frontend_type>
|
| 438 |
+
<sort_order>5</sort_order>
|
| 439 |
+
<show_in_default>1</show_in_default>
|
| 440 |
+
<show_in_website>1</show_in_website>
|
| 441 |
+
<show_in_store>1</show_in_store>
|
| 442 |
+
<comment>Send the invitation reminder x days after the previous reminder. 0 = none</comment>
|
| 443 |
+
<depends><enabled>1</enabled></depends>
|
| 444 |
+
</remind_delay>
|
| 445 |
+
<backlog translate="label">
|
| 446 |
+
<label>Maximum Delay</label>
|
| 447 |
+
<frontend_type>text</frontend_type>
|
| 448 |
+
<sort_order>6</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>Change only if necessary</comment>
|
| 453 |
+
<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>
|
| 454 |
+
<depends><enabled>1</enabled></depends>
|
| 455 |
+
</backlog>
|
| 456 |
+
<resend translate="label">
|
| 457 |
+
<label>Resend if Double</label>
|
| 458 |
+
<frontend_type>select</frontend_type>
|
| 459 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 460 |
+
<sort_order>7</sort_order>
|
| 461 |
+
<show_in_default>1</show_in_default>
|
| 462 |
+
<show_in_website>1</show_in_website>
|
| 463 |
+
<show_in_store>1</show_in_store>
|
| 464 |
+
<depends><enabled>1</enabled></depends>
|
| 465 |
+
<comment>If yes, customers will get new review reminders for every new order.</comment>
|
| 466 |
+
</resend>
|
| 467 |
</fields>
|
| 468 |
+
</invitation>
|
| 469 |
+
<log translate="label">
|
| 470 |
+
<label>Feedbackcompany Log Settings</label>
|
| 471 |
+
<frontend_type>text</frontend_type>
|
| 472 |
+
<sort_order>9</sort_order>
|
| 473 |
+
<show_in_default>1</show_in_default>
|
| 474 |
+
<show_in_website>0</show_in_website>
|
| 475 |
+
<show_in_store>0</show_in_store>
|
| 476 |
+
<expanded>1</expanded>
|
| 477 |
+
<fields>
|
| 478 |
+
<enabled translate="label">
|
| 479 |
+
<label>Enable Log Function</label>
|
| 480 |
+
<frontend_type>select</frontend_type>
|
| 481 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 482 |
+
<sort_order>1</sort_order>
|
| 483 |
+
<show_in_default>1</show_in_default>
|
| 484 |
+
<show_in_website>0</show_in_website>
|
| 485 |
+
<show_in_store>0</show_in_store>
|
| 486 |
+
</enabled>
|
| 487 |
+
<clean translate="label">
|
| 488 |
+
<label>Auto Cleaning</label>
|
| 489 |
+
<frontend_type>select</frontend_type>
|
| 490 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 491 |
+
<sort_order>2</sort_order>
|
| 492 |
+
<show_in_default>1</show_in_default>
|
| 493 |
+
<show_in_website>0</show_in_website>
|
| 494 |
+
<show_in_store>0</show_in_store>
|
| 495 |
+
<depends><enabled>1</enabled></depends>
|
| 496 |
+
</clean>
|
| 497 |
+
<clean_days translate="label">
|
| 498 |
+
<label>Clean after Days</label>
|
| 499 |
<validate>validate-number</validate>
|
| 500 |
+
<frontend_type>text</frontend_type>
|
| 501 |
+
<sort_order>3</sort_order>
|
| 502 |
+
<show_in_default>1</show_in_default>
|
| 503 |
+
<show_in_website>0</show_in_website>
|
| 504 |
+
<show_in_store>0</show_in_store>
|
| 505 |
+
<depends><enabled>1</enabled></depends>
|
| 506 |
+
</clean_days>
|
| 507 |
</fields>
|
| 508 |
+
</log>
|
| 509 |
<snippets translate="label">
|
| 510 |
<label>Feedbackcompany Custom Blocks</label>
|
| 511 |
<frontend_type>text</frontend_type>
|
| 513 |
<show_in_default>1</show_in_default>
|
| 514 |
<show_in_website>1</show_in_website>
|
| 515 |
<show_in_store>1</show_in_store>
|
| 516 |
+
<expanded>1</expanded>
|
| 517 |
<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>
|
| 518 |
</snippets>
|
| 519 |
</groups>
|
app/code/local/Magmodules/Feedbackcompany/sql/feedbackcompany_setup/mysql4-install-0.9.0.php
CHANGED
|
@@ -12,11 +12,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
$installer = $this;
|
|
@@ -24,61 +24,61 @@ $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 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 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 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 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 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
| 83 |
");
|
| 84 |
$installer->endSetup();
|
| 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;
|
| 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/frontend/base/default/layout/magmodules_feedbackcompany.xml
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 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>
|
|
@@ -16,21 +16,21 @@
|
|
| 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
|
| 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/
|
| 34 |
</reference>
|
| 35 |
-
</cms_index_index>
|
| 36 |
</layout>
|
| 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>
|
| 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/richsnippets.css</stylesheet></action>
|
| 34 |
</reference>
|
| 35 |
+
</cms_index_index>
|
| 36 |
</layout>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/index.phtml
CHANGED
|
@@ -13,11 +13,11 @@
|
|
| 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
|
| 17 |
-
* @package
|
| 18 |
-
* @author
|
| 19 |
-
* @copyright
|
| 20 |
-
* @license
|
| 21 |
*/
|
| 22 |
?>
|
| 23 |
<?php
|
|
@@ -28,19 +28,19 @@
|
|
| 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')); ?>
|
|
@@ -50,14 +50,14 @@
|
|
| 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>
|
|
@@ -66,7 +66,7 @@
|
|
| 66 |
<?php echo nl2br($review->getReviewText()); ?>
|
| 67 |
<?php else: ?>
|
| 68 |
|
| 69 |
-
<?php endif; ?>
|
| 70 |
</p>
|
| 71 |
</li>
|
| 72 |
</ul>
|
|
@@ -74,44 +74,44 @@
|
|
| 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>
|
| 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
|
| 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')); ?>
|
| 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>
|
| 66 |
<?php echo nl2br($review->getReviewText()); ?>
|
| 67 |
<?php else: ?>
|
| 68 |
|
| 69 |
+
<?php endif; ?>
|
| 70 |
</p>
|
| 71 |
</li>
|
| 72 |
</ul>
|
| 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>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/left.phtml
CHANGED
|
@@ -13,11 +13,11 @@
|
|
| 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
|
| 17 |
-
* @package
|
| 18 |
-
* @author
|
| 19 |
-
* @copyright
|
| 20 |
-
* @license
|
| 21 |
*/
|
| 22 |
$sidebarreviews = $this->getSidebarCollection('left');
|
| 23 |
$total = $this->getTotalScore();
|
|
@@ -33,7 +33,7 @@
|
|
| 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>
|
|
@@ -41,20 +41,20 @@
|
|
| 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>
|
| 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();
|
| 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>
|
| 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>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/sidebar/right.phtml
CHANGED
|
@@ -13,11 +13,11 @@
|
|
| 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
|
| 17 |
-
* @package
|
| 18 |
-
* @author
|
| 19 |
-
* @copyright
|
| 20 |
-
* @license
|
| 21 |
*/
|
| 22 |
$sidebarreviews = $this->getSidebarCollection('right');
|
| 23 |
$total = $this->getTotalScore();
|
|
@@ -33,7 +33,7 @@
|
|
| 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>
|
|
@@ -41,20 +41,20 @@
|
|
| 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>
|
| 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();
|
| 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>
|
| 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>
|
app/design/frontend/base/default/template/magmodules/feedbackcompany/widget/custom.phtml
CHANGED
|
@@ -13,27 +13,27 @@
|
|
| 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
|
| 17 |
-
* @package
|
| 18 |
-
* @author
|
| 19 |
-
* @copyright
|
| 20 |
-
* @license
|
| 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">
|
| 35 |
<div class="rating-box">
|
| 36 |
-
<div class="rating" style="width:<?php echo $percentage; ?>%"> </div>
|
| 37 |
-
</div>
|
| 38 |
-
</div>
|
| 39 |
<?php } ?>
|
| 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">Customers like <?php echo $company; ?>!</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
CHANGED
|
@@ -13,11 +13,11 @@
|
|
| 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
|
| 17 |
-
* @package
|
| 18 |
-
* @author
|
| 19 |
-
* @copyright
|
| 20 |
-
* @license
|
| 21 |
*/
|
| 22 |
?>
|
| 23 |
<?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
|
|
@@ -30,5 +30,5 @@
|
|
| 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 } ?>
|
| 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())) { ?>
|
| 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/locale/en_US/Magmodules_Feedbackcompany.csv
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
"(more)","(more)"
|
| 2 |
-
"%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"
|
| 1 |
"(more)","(more)"
|
| 2 |
+
"%s new review(s)","%s new review(s)"
|
|
|
|
| 3 |
"%s review(s) updated","%s review(s) updated"
|
| 4 |
"Activate,"Activate"
|
| 5 |
"Add Rich Snippets","Add Rich Snippets"
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Magmodules_Feedbackcompany</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license/>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>Connect your Magento shop to The Feedback Company</description>
|
| 11 |
<notes>First stable release</notes>
|
| 12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
| 13 |
-
<date>2014-10-
|
| 14 |
-
<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="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Magmodules_Feedbackcompany</name>
|
| 4 |
+
<version>1.0.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license/>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Connect your Magento shop to The Feedback Company</description>
|
| 11 |
<notes>First stable release</notes>
|
| 12 |
<authors><author><name>Magmodules</name><user>auto-converted</user><email>info@magmodules.nl</email></author></authors>
|
| 13 |
+
<date>2014-10-29</date>
|
| 14 |
+
<time>19:00:23</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="6b8df2977a2f22e46e96c1789a941538"/></dir><dir name="Feedbackreviews"><dir name="Renderer"><file name="Experience.php" hash="c45af4e2a66fb94f9af57bfa8b0205f8"/></dir><file name="Grid.php" hash="46a63c5c01b9a04cd46924d25bca27ca"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="70aa682cb2f6e44bea61418b7ee7ead9"/><file name="Test.php" hash="191243a67bae63c9faa4192042e71e17"/></dir><dir name="Form"><file name="Heading.php" hash="31bfab989f7aa391695ccf1a5f7ae1ec"/></dir><dir name="Grid"><file name="Log.php" hash="c7fd3e64ccb54576f1177766f0a6c845"/><file name="Seconds.php" hash="2f0079769c2ae7711249e502e25d89a2"/><file name="Stars.php" hash="0866b1d3fa7f238f7bd5bde061690ba4"/></dir><dir name="Info"><file name="Info.php" hash="5fc87905aca924e242ee5ea37d365923"/></dir></dir><file name="Feedbacklog.php" hash="32a25e68a37fe301114f185a3ec6efbc"/><file name="Feedbackreviews.php" hash="16614fbc7057c6329904f4c717dd84bc"/></dir><file name="Custom.php" hash="b7bb37733b304ce8da4fedd1f5ea5445"/><file name="Reviews.php" hash="1e4be5c264a3be70fd38e6cd0a138bcd"/><file name="Sidebar.php" hash="a3cb7a2989ccddfed4c7b8a2358e9416"/><file name="Snippets.php" hash="332b3f67d8a2faae58e589a37d8142cf"/></dir><dir name="Helper"><file name="Data.php" hash="a025efba5fee15b6c927c2b1dffc4cbf"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="d336a794dc3e3fbcdfce9e371e4a7d5c"/></dir><dir name="Reviews"><file name="Collection.php" hash="211ccf77ae9b5c4319acedc83666890e"/></dir><dir name="Stats"><file name="Collection.php" hash="ef72f167e60d414c4a902d90da7e50f2"/></dir><file name="Log.php" hash="6e42f605d5e3c95faf08c72c99641de5"/><file name="Reviews.php" hash="9dd9c1f634a835e7d12f87389e172413"/><file name="Stats.php" hash="71a0b73c25bf6ee05fab8d1f05b75ebe"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="35ac5d03ebcd2f1e4b3de2ac5a5d21a9"/><file name="Orderstatus.php" hash="831108c0238b62163da3ddfd6c06bcf0"/><file name="Position.php" hash="8c381860ffae239fbe1c50eeab8b7fa2"/><file name="Sidebarlink.php" hash="951d29505b30adcf66680584a1e7bfe6"/></dir></dir></dir><file name="Api.php" hash="9023933e55ed6dd151fe73ba7c50bd7f"/><file name="Log.php" hash="7d4c86950baad19fc07f75ef6eb5b00d"/><file name="Observer.php" hash="c8143c24510fce94435378b435cb943f"/><file name="Reviews.php" hash="a884af66ff19f541afa42de052c53b74"/><file name="Stats.php" hash="6f632eeef7185c904bfd176168dc81b2"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbacklogController.php" hash="cf879105805d36a62a30bff1623219fb"/><file name="FeedbackreviewsController.php" hash="6e353cef36ce79055154a89e98edf753"/></dir><file name="IndexController.php" hash="ec0db469394e5ef5dc6c8f2166afc5f2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ab8782d5662f342ee5fae7e6357382e0"/><file name="config.xml" hash="7e0053e4374781c302e0051224be3f97"/><file name="system.xml" hash="367fe8da64dc292f57eba299413470c5"/></dir><dir name="sql"><dir name="feedbackcompany_setup"><file name="mysql4-install-0.9.0.php" hash="59de5cb048eea1ab73ad41351038bef3"/></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="5b4a1535dc757f4d0737db7c9b7703ec"/></dir><dir name="template"><dir name="magmodules"><dir name="feedbackcompany"><dir name="sidebar"><file name="left.phtml" hash="347332bcb4c298ce2df4569bd50c30b9"/><file name="right.phtml" hash="ae7548cd16f10d3d37ffde73b2eb510b"/></dir><dir name="widget"><file name="custom.phtml" hash="8b83d53327644272d8f44e443180dd9d"/><file name="richsnippets.phtml" hash="152fd39963fc0cc89843a4cb36f3c248"/></dir><file name="index.phtml" hash="52577d6c0ef56afd40714f38e33d3363"/></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="6f539cb4ecc69af8426c2ebf0f6e7677"/></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="75b478aac646b9e13e18b842effbe80d"/><file name="sidebar.css" hash="fe656003fb05be5ad4480239c130621c"/><file name="style.css" hash="92f18c23ec4ec0a07c33f6067dc76cf9"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="feedbackcompany"><file name="grid.css" hash="ea7e85df839bf0eb7bc6882608da80b0"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
skin/adminhtml/default/default/magmodules/feedbackcompany/grid.css
CHANGED
|
@@ -1,17 +1,22 @@
|
|
| 1 |
/**
|
| 2 |
-
* Magmodules.eu
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
*
|
| 6 |
-
*
|
| 7 |
-
*
|
| 8 |
-
*
|
| 9 |
-
*
|
| 10 |
-
*
|
| 11 |
-
*
|
| 12 |
-
*
|
| 13 |
-
* @
|
| 14 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
*/
|
| 16 |
|
| 17 |
/** RATINGS ORDER GRID **/
|
|
@@ -24,7 +29,7 @@
|
|
| 24 |
}
|
| 25 |
|
| 26 |
.rating-star-1 {
|
| 27 |
-
|
| 28 |
}
|
| 29 |
|
| 30 |
.rating-star-2 {
|
|
@@ -32,7 +37,7 @@
|
|
| 32 |
}
|
| 33 |
|
| 34 |
.rating-star-3 {
|
| 35 |
-
|
| 36 |
}
|
| 37 |
|
| 38 |
.rating-star-4 {
|
|
@@ -46,7 +51,7 @@
|
|
| 46 |
.rating-empty {
|
| 47 |
float: left;
|
| 48 |
width: 80px;
|
| 49 |
-
background: url('star.png') 0 -16px;
|
| 50 |
}
|
| 51 |
|
| 52 |
a.magtooltip span {
|
| 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 |
/** RATINGS ORDER GRID **/
|
| 29 |
}
|
| 30 |
|
| 31 |
.rating-star-1 {
|
| 32 |
+
width: 16px;
|
| 33 |
}
|
| 34 |
|
| 35 |
.rating-star-2 {
|
| 37 |
}
|
| 38 |
|
| 39 |
.rating-star-3 {
|
| 40 |
+
width: 48px;
|
| 41 |
}
|
| 42 |
|
| 43 |
.rating-star-4 {
|
| 51 |
.rating-empty {
|
| 52 |
float: left;
|
| 53 |
width: 80px;
|
| 54 |
+
background: url('star.png') 0 -16px;
|
| 55 |
}
|
| 56 |
|
| 57 |
a.magtooltip span {
|
skin/frontend/base/default/magmodules/feedbackcompany/richsnippets.css
CHANGED
|
@@ -12,11 +12,11 @@
|
|
| 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
|
| 16 |
-
* @package
|
| 17 |
-
* @author
|
| 18 |
-
* @copyright
|
| 19 |
-
* @license
|
| 20 |
*/
|
| 21 |
|
| 22 |
.feedbackcompany-snippets .rating-box {
|
|
@@ -29,7 +29,7 @@
|
|
| 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 {
|
| 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 {
|
| 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 {
|
skin/frontend/base/default/magmodules/feedbackcompany/sidebar.css
CHANGED
|
@@ -1,17 +1,22 @@
|
|
| 1 |
/**
|
| 2 |
-
* Magmodules.eu
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
*
|
| 6 |
-
*
|
| 7 |
-
*
|
| 8 |
-
*
|
| 9 |
-
*
|
| 10 |
-
*
|
| 11 |
-
*
|
| 12 |
-
*
|
| 13 |
-
* @
|
| 14 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
*/
|
| 16 |
|
| 17 |
.feedbackcompany-sidebar-block {
|
|
@@ -36,9 +41,9 @@ img.feedbackcompany-logo {
|
|
| 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; }
|
| 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-sidebar-block {
|
| 41 |
.feedbackcompany-sidebar-block .rating-star-5 { float: left; display: block; width: 80px; height: 16px; background: url('./images/star.png') 0 0; margin-right: 5px; }
|
| 42 |
|
| 43 |
/** big review stars **/
|
| 44 |
+
.block-content p.company-name { text-align: center; margin: 5px auto; font-size: 12px; }
|
| 45 |
.total-block-text { border-bottom: 1px solid #ccc; padding-bottom: 5px; }
|
| 46 |
+
.total-block-text p { text-align: center; padding-top: 5px; margin-bottom: 2px; font-size: 18px; }
|
| 47 |
+
.total-block-text p.based-on { text-align: center; padding-top: 0px; font-size: 11px; font-style: italic; }
|
| 48 |
+
.total-block-stars { height: 35px; width: 188px; background: url('./images/5-stars-empty.png') no-repeat; margin: 5px auto; }
|
| 49 |
.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
CHANGED
|
@@ -1,19 +1,24 @@
|
|
| 1 |
/**
|
| 2 |
-
* Magmodules.eu
|
| 3 |
-
*
|
| 4 |
-
*
|
| 5 |
-
*
|
| 6 |
-
*
|
| 7 |
-
*
|
| 8 |
-
*
|
| 9 |
-
*
|
| 10 |
-
*
|
| 11 |
-
*
|
| 12 |
-
*
|
| 13 |
-
* @
|
| 14 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
*/
|
| 16 |
-
|
| 17 |
.feedbackcompany {
|
| 18 |
}
|
| 19 |
|
|
@@ -88,7 +93,7 @@
|
|
| 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 {
|
| 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 {
|
| 23 |
}
|
| 24 |
|
| 93 |
|
| 94 |
.feedbackcompany ul.summary-index li.head {
|
| 95 |
padding: 10px 5px 5px 5px;
|
| 96 |
+
border-bottom: 1px dotted #e0e0e0;
|
| 97 |
}
|
| 98 |
|
| 99 |
.feedbackcompany ul.experience li {
|
