Version Notes
First stable release
Download this release
Release Info
Developer | Magento Core Team |
Extension | Magmodules_Webwinkelconnect |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/System/Version.php +32 -0
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkellog.php +3 -4
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkellog/Grid.php +10 -7
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkelreviews.php +3 -3
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkelreviews/Grid.php +10 -5
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkelreviews/Renderer/Experience.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Buttons/Process.php +3 -3
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Buttons/Test.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Form/Heading.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Log.php +2 -3
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Seconds.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Stars.php +3 -4
- app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Info/Info.php +2 -1
- app/code/local/Magmodules/Webwinkelconnect/Block/Custom.php +5 -4
- app/code/local/Magmodules/Webwinkelconnect/Block/Reviews.php +9 -11
- app/code/local/Magmodules/Webwinkelconnect/Block/Sidebar.php +43 -48
- app/code/local/Magmodules/Webwinkelconnect/Helper/Data.php +14 -13
- app/code/local/Magmodules/Webwinkelconnect/Model/Api.php +57 -39
- app/code/local/Magmodules/Webwinkelconnect/Model/Log.php +19 -13
- app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Log.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Log/Collection.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Reviews.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Reviews/Collection.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Stats.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Stats/Collection.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/Observer.php +16 -10
- app/code/local/Magmodules/Webwinkelconnect/Model/Reviews.php +6 -6
- app/code/local/Magmodules/Webwinkelconnect/Model/Stats.php +7 -4
- app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Cronfrequency.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Cronfrequencylong.php +34 -0
- app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Language.php +37 -0
- app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Orderstatus.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Position.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Sidebarlink.php +3 -2
- app/code/local/Magmodules/Webwinkelconnect/controllers/Adminhtml/WebwinkellogController.php +10 -5
- app/code/local/Magmodules/Webwinkelconnect/controllers/Adminhtml/WebwinkelreviewsController.php +23 -12
- app/code/local/Magmodules/Webwinkelconnect/controllers/IndexController.php +9 -14
- app/code/local/Magmodules/Webwinkelconnect/data/webwinkelconnect_setup/data-upgrade-1.0.8-1.0.9.php +36 -0
- app/code/local/Magmodules/Webwinkelconnect/etc/adminhtml.xml +22 -16
- app/code/local/Magmodules/Webwinkelconnect/etc/config.xml +3 -3
- app/code/local/Magmodules/Webwinkelconnect/etc/system.xml +163 -151
- app/code/local/Magmodules/Webwinkelconnect/sql/webwinkelconnect_setup/mysql4-install-1.0.1.php +1 -1
- app/design/frontend/base/default/template/magmodules/webwinkelconnect/sidebar/left.phtml +3 -4
- app/design/frontend/base/default/template/magmodules/webwinkelconnect/sidebar/right.phtml +3 -4
- app/design/frontend/base/default/template/magmodules/webwinkelconnect/widget/custom.phtml +1 -1
- app/design/frontend/base/default/template/magmodules/webwinkelconnect/widget/richsnippets.phtml +9 -16
- app/locale/nl_NL/Magmodules_Webwinkelconnect.csv +15 -5
- package.xml +4 -4
- skin/frontend/base/default/magmodules/webwinkelconnect/richsnippets.css +7 -6
- skin/frontend/base/default/magmodules/webwinkelconnect/style.css +10 -11
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/System/Version.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu
|
4 |
+
* http://www.magmodules.eu
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* @category Magmodules
|
17 |
+
* @package Magmodules_Webwinkelconnect
|
18 |
+
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_System_Version extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
24 |
+
|
25 |
+
public function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
26 |
+
{
|
27 |
+
$modules = Mage::getConfig()->getNode('modules')->children();
|
28 |
+
$modulesArray = (array)$modules;
|
29 |
+
return $modulesArray['Magmodules_Webwinkelconnect']->version;
|
30 |
+
}
|
31 |
+
|
32 |
+
}
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkellog.php
CHANGED
@@ -15,25 +15,24 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkellog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
$this->_controller = 'adminhtml_webwinkellog';
|
26 |
$this->_blockGroup = 'webwinkelconnect';
|
27 |
$this->_headerText = Mage::helper('webwinkelconnect')->__('Webwinkelkeur Logs');
|
28 |
parent::__construct();
|
29 |
$this->_removeButton('add');
|
30 |
-
|
31 |
$this->_addButton('module_controller', array(
|
32 |
'label' => Mage::helper('webwinkelconnect')->__('Cleanup Log'),
|
33 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkellog/clean')}')",
|
34 |
'confirm' => Mage::helper('webwinkelconnect')->__('Are you sure you want to cleanup logfiles?'),
|
35 |
));
|
36 |
-
|
37 |
}
|
38 |
|
39 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Webwinkellog extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
$this->_controller = 'adminhtml_webwinkellog';
|
27 |
$this->_blockGroup = 'webwinkelconnect';
|
28 |
$this->_headerText = Mage::helper('webwinkelconnect')->__('Webwinkelkeur Logs');
|
29 |
parent::__construct();
|
30 |
$this->_removeButton('add');
|
|
|
31 |
$this->_addButton('module_controller', array(
|
32 |
'label' => Mage::helper('webwinkelconnect')->__('Cleanup Log'),
|
33 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkellog/clean')}')",
|
34 |
'confirm' => Mage::helper('webwinkelconnect')->__('Are you sure you want to cleanup logfiles?'),
|
35 |
));
|
|
|
36 |
}
|
37 |
|
38 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkellog/Grid.php
CHANGED
@@ -15,28 +15,30 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkellog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
parent::__construct();
|
26 |
$this->setId('webwinkellogGrid');
|
27 |
$this->setDefaultSort('date');
|
28 |
-
$this->setDefaultDir('
|
29 |
$this->setSaveParametersInSession(true);
|
30 |
}
|
31 |
|
32 |
-
protected function _prepareCollection()
|
|
|
33 |
$collection = Mage::getModel('webwinkelconnect/log')->getCollection();
|
34 |
$this->setCollection($collection);
|
35 |
return parent::_prepareCollection();
|
36 |
}
|
37 |
|
38 |
-
protected function _prepareColumns()
|
39 |
-
|
40 |
$this->addColumn('company', array(
|
41 |
'header' => Mage::helper('webwinkelconnect')->__('Shop'),
|
42 |
'index' => 'company',
|
@@ -107,7 +109,8 @@ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkellog_Grid extends Mage
|
|
107 |
return parent::_prepareColumns();
|
108 |
}
|
109 |
|
110 |
-
protected function _prepareMassaction()
|
|
|
111 |
$this->setMassactionIdField('id');
|
112 |
$this->getMassactionBlock()->setFormFieldName('logids');
|
113 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Webwinkellog_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
parent::__construct();
|
27 |
$this->setId('webwinkellogGrid');
|
28 |
$this->setDefaultSort('date');
|
29 |
+
$this->setDefaultDir('DESC');
|
30 |
$this->setSaveParametersInSession(true);
|
31 |
}
|
32 |
|
33 |
+
protected function _prepareCollection()
|
34 |
+
{
|
35 |
$collection = Mage::getModel('webwinkelconnect/log')->getCollection();
|
36 |
$this->setCollection($collection);
|
37 |
return parent::_prepareCollection();
|
38 |
}
|
39 |
|
40 |
+
protected function _prepareColumns()
|
41 |
+
{
|
42 |
$this->addColumn('company', array(
|
43 |
'header' => Mage::helper('webwinkelconnect')->__('Shop'),
|
44 |
'index' => 'company',
|
109 |
return parent::_prepareColumns();
|
110 |
}
|
111 |
|
112 |
+
protected function _prepareMassaction()
|
113 |
+
{
|
114 |
$this->setMassactionIdField('id');
|
115 |
$this->getMassactionBlock()->setFormFieldName('logids');
|
116 |
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkelreviews.php
CHANGED
@@ -15,19 +15,19 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
$this->_controller = 'adminhtml_webwinkelreviews';
|
26 |
$this->_blockGroup = 'webwinkelconnect';
|
27 |
$this->_headerText = Mage::helper('webwinkelconnect')->__('WebwinkelKeur Reviews');
|
28 |
parent::__construct();
|
29 |
$this->_removeButton('add');
|
30 |
-
|
31 |
$this->_addButton('module_controller', array(
|
32 |
'label' => Mage::helper('webwinkelconnect')->__('Delete all reviews'),
|
33 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkelreviews/truncate')}')",
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
$this->_controller = 'adminhtml_webwinkelreviews';
|
27 |
$this->_blockGroup = 'webwinkelconnect';
|
28 |
$this->_headerText = Mage::helper('webwinkelconnect')->__('WebwinkelKeur Reviews');
|
29 |
parent::__construct();
|
30 |
$this->_removeButton('add');
|
|
|
31 |
$this->_addButton('module_controller', array(
|
32 |
'label' => Mage::helper('webwinkelconnect')->__('Delete all reviews'),
|
33 |
'onclick' => "setLocation('{$this->getUrl('adminhtml/webwinkelreviews/truncate')}')",
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkelreviews/Grid.php
CHANGED
@@ -21,7 +21,8 @@
|
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
parent::__construct();
|
26 |
$this->setId('reviewsGrid');
|
27 |
$this->setDefaultSort('date');
|
@@ -29,13 +30,15 @@ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Grid extends
|
|
29 |
$this->setSaveParametersInSession(true);
|
30 |
}
|
31 |
|
32 |
-
protected function _prepareCollection()
|
|
|
33 |
$collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
|
34 |
$this->setCollection($collection);
|
35 |
return parent::_prepareCollection();
|
36 |
}
|
37 |
|
38 |
-
protected function _prepareColumns()
|
|
|
39 |
|
40 |
$this->addColumn('company', array(
|
41 |
'header' => Mage::helper('webwinkelconnect')->__('Shop'),
|
@@ -141,7 +144,8 @@ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Grid extends
|
|
141 |
return parent::_prepareColumns();
|
142 |
}
|
143 |
|
144 |
-
protected function _prepareMassaction()
|
|
|
145 |
$this->setMassactionIdField('review_id');
|
146 |
$this->getMassactionBlock()->setFormFieldName('reviewids');
|
147 |
|
@@ -164,7 +168,8 @@ class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Grid extends
|
|
164 |
return $this;
|
165 |
}
|
166 |
|
167 |
-
public function getRowUrl($row)
|
|
|
168 |
return false;
|
169 |
}
|
170 |
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
parent::__construct();
|
27 |
$this->setId('reviewsGrid');
|
28 |
$this->setDefaultSort('date');
|
30 |
$this->setSaveParametersInSession(true);
|
31 |
}
|
32 |
|
33 |
+
protected function _prepareCollection()
|
34 |
+
{
|
35 |
$collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
|
36 |
$this->setCollection($collection);
|
37 |
return parent::_prepareCollection();
|
38 |
}
|
39 |
|
40 |
+
protected function _prepareColumns()
|
41 |
+
{
|
42 |
|
43 |
$this->addColumn('company', array(
|
44 |
'header' => Mage::helper('webwinkelconnect')->__('Shop'),
|
144 |
return parent::_prepareColumns();
|
145 |
}
|
146 |
|
147 |
+
protected function _prepareMassaction()
|
148 |
+
{
|
149 |
$this->setMassactionIdField('review_id');
|
150 |
$this->getMassactionBlock()->setFormFieldName('reviewids');
|
151 |
|
168 |
return $this;
|
169 |
}
|
170 |
|
171 |
+
public function getRowUrl($row)
|
172 |
+
{
|
173 |
return false;
|
174 |
}
|
175 |
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Webwinkelreviews/Renderer/Experience.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnectconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_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 = '120';
|
27 |
if(strlen($value) > $char_limit) {
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnectconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Webwinkelreviews_Renderer_Experience extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$value = $row->getData($this->getColumn()->getIndex());
|
27 |
$char_limit = '120';
|
28 |
if(strlen($value) > $char_limit) {
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Buttons/Process.php
CHANGED
@@ -15,16 +15,16 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_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('*/webwinkelreviews/process');
|
27 |
-
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
->setType('button')
|
30 |
->setClass('scalable')
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_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 |
+
{
|
26 |
$this->setElement($element);
|
27 |
$url = $this->getUrl('*/webwinkelreviews/process');
|
|
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
29 |
->setType('button')
|
30 |
->setClass('scalable')
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Buttons/Test.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_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('*/webwinkelreviews/testapi');
|
27 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_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 |
+
{
|
26 |
$this->setElement($element);
|
27 |
$url = $this->getUrl('*/webwinkelreviews/testapi');
|
28 |
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Form/Heading.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_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()
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Widget_Form_Heading extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
23 |
|
24 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
25 |
+
{
|
26 |
$useContainerId = $element->getData('use_container_id');
|
27 |
return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4>%s</h4></td></tr>',
|
28 |
$element->getHtmlId(), $element->getLabel()
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Log.php
CHANGED
@@ -21,10 +21,10 @@
|
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
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) {
|
@@ -53,7 +53,6 @@ class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Log extends Mage_A
|
|
53 |
$msg = Mage::helper('webwinkelconnect')->__('%s - Repsonse: %s', $order_url_text, $row->getResponse());
|
54 |
}
|
55 |
}
|
56 |
-
|
57 |
return ucfirst($msg);
|
58 |
}
|
59 |
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Log extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$type = $row->getType();
|
27 |
$msg = '';
|
|
|
28 |
if($type == 'reviews') {
|
29 |
$updates = '';
|
30 |
if($row->getReviewNew() > 0) {
|
53 |
$msg = Mage::helper('webwinkelconnect')->__('%s - Repsonse: %s', $order_url_text, $row->getResponse());
|
54 |
}
|
55 |
}
|
|
|
56 |
return ucfirst($msg);
|
57 |
}
|
58 |
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Seconds.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_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 |
if($value > 0) {
|
27 |
$value = number_format($value, 3, '.', '');
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Seconds extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$value = $row->getData($this->getColumn()->getIndex());
|
27 |
if($value > 0) {
|
28 |
$value = number_format($value, 3, '.', '');
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Grid/Stars.php
CHANGED
@@ -15,21 +15,20 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Stars extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
-
public function render(Varien_Object $row)
|
|
|
25 |
$value = $row->getData($this->getColumn()->getIndex());
|
26 |
-
|
27 |
if($value == '0') {
|
28 |
$output = '';
|
29 |
} else {
|
30 |
$output = '<span class="rating-empty"><span class="rating-star-' . $value . '"></span></span>';
|
31 |
}
|
32 |
-
|
33 |
return $output;
|
34 |
}
|
35 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Adminhtml_Widget_Grid_Stars extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action {
|
23 |
|
24 |
+
public function render(Varien_Object $row)
|
25 |
+
{
|
26 |
$value = $row->getData($this->getColumn()->getIndex());
|
|
|
27 |
if($value == '0') {
|
28 |
$output = '';
|
29 |
} else {
|
30 |
$output = '<span class="rating-empty"><span class="rating-star-' . $value . '"></span></span>';
|
31 |
}
|
|
|
32 |
return $output;
|
33 |
}
|
34 |
|
app/code/local/Magmodules/Webwinkelconnect/Block/Adminhtml/Widget/Info/Info.php
CHANGED
@@ -22,7 +22,8 @@
|
|
22 |
|
23 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
24 |
|
25 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
|
|
26 |
$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;">
|
27 |
<h4>About Magmodules.eu</h4>
|
28 |
<p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
|
22 |
|
23 |
class Magmodules_Webwinkelconnect_Block_Adminhtml_Widget_Info_Info extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
24 |
|
25 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
26 |
+
{
|
27 |
$html = '<div style="background:url(\'http://www.magmodules.eu/_logo.png\') no-repeat scroll 15px center #EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:10px 5px 5px 200px;">
|
28 |
<h4>About Magmodules.eu</h4>
|
29 |
<p>We are a Magento only E-commerce Agency located in the Netherlands.<br>
|
app/code/local/Magmodules/Webwinkelconnect/Block/Custom.php
CHANGED
@@ -15,24 +15,25 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Custom extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
protected function _construct()
|
|
|
25 |
if(Mage::getStoreConfig('webwinkelconnect/general/enabled')) {
|
26 |
$this->setWebwinkelconnectEnabled(1);
|
27 |
} else {
|
28 |
$this->setWebwinkelconnectEnabled(0);
|
29 |
}
|
30 |
-
|
31 |
parent::_construct();
|
32 |
$this->setTemplate('magmodules/webwinkelconnect/widget/custom.phtml');
|
33 |
}
|
34 |
|
35 |
-
public function getWebwinkelconnectData()
|
|
|
36 |
return $this->helper('webwinkelconnect')->getTotalScore();
|
37 |
}
|
38 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Custom extends Mage_Core_Block_Template {
|
23 |
|
24 |
+
protected function _construct()
|
25 |
+
{
|
26 |
if(Mage::getStoreConfig('webwinkelconnect/general/enabled')) {
|
27 |
$this->setWebwinkelconnectEnabled(1);
|
28 |
} else {
|
29 |
$this->setWebwinkelconnectEnabled(0);
|
30 |
}
|
|
|
31 |
parent::_construct();
|
32 |
$this->setTemplate('magmodules/webwinkelconnect/widget/custom.phtml');
|
33 |
}
|
34 |
|
35 |
+
public function getWebwinkelconnectData()
|
36 |
+
{
|
37 |
return $this->helper('webwinkelconnect')->getTotalScore();
|
38 |
}
|
39 |
|
app/code/local/Magmodules/Webwinkelconnect/Block/Reviews.php
CHANGED
@@ -15,30 +15,26 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Reviews extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
public function __construct()
|
|
|
25 |
parent::__construct();
|
26 |
-
|
27 |
-
// TODO CHECK IF IS ENABLED (extension & index page)
|
28 |
-
|
29 |
-
// Load Reviews
|
30 |
$collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
|
31 |
$collection->setOrder('date', 'DESC');
|
32 |
$collection->addFieldToFilter('status',1);
|
33 |
$collection->addFieldToFilter('shop_id', Mage::getStoreConfig('webwinkelconnect/general/api_id'));
|
34 |
$this->setReviews($collection);
|
35 |
-
|
36 |
-
// Load Stats
|
37 |
$stats = Mage::getModel('webwinkelconnect/stats')->load(Mage::getStoreConfig('webwinkelconnect/general/api_id'), 'shop_id');
|
38 |
$this->setStats($stats);
|
39 |
}
|
40 |
|
41 |
-
public function _prepareLayout()
|
|
|
42 |
parent::_prepareLayout();
|
43 |
$pager = $this->getLayout()->createBlock('page/html_pager', 'webwinkelconnect.pager');
|
44 |
if(Mage::getStoreConfig('webwinkelconnect/overview/enable_paging')) {
|
@@ -55,11 +51,13 @@ class Magmodules_Webwinkelconnect_Block_Reviews extends Mage_Core_Block_Template
|
|
55 |
return $this;
|
56 |
}
|
57 |
|
58 |
-
public function getPagerHtml()
|
|
|
59 |
return $this->getChildHtml('pager');
|
60 |
}
|
61 |
|
62 |
-
public function getFormUrl()
|
|
|
63 |
return $this->helper('webwinkelconnect')->getFormUrl();
|
64 |
}
|
65 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Reviews extends Mage_Core_Block_Template {
|
23 |
|
24 |
+
public function __construct()
|
25 |
+
{
|
26 |
parent::__construct();
|
|
|
|
|
|
|
|
|
27 |
$collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
|
28 |
$collection->setOrder('date', 'DESC');
|
29 |
$collection->addFieldToFilter('status',1);
|
30 |
$collection->addFieldToFilter('shop_id', Mage::getStoreConfig('webwinkelconnect/general/api_id'));
|
31 |
$this->setReviews($collection);
|
|
|
|
|
32 |
$stats = Mage::getModel('webwinkelconnect/stats')->load(Mage::getStoreConfig('webwinkelconnect/general/api_id'), 'shop_id');
|
33 |
$this->setStats($stats);
|
34 |
}
|
35 |
|
36 |
+
public function _prepareLayout()
|
37 |
+
{
|
38 |
parent::_prepareLayout();
|
39 |
$pager = $this->getLayout()->createBlock('page/html_pager', 'webwinkelconnect.pager');
|
40 |
if(Mage::getStoreConfig('webwinkelconnect/overview/enable_paging')) {
|
51 |
return $this;
|
52 |
}
|
53 |
|
54 |
+
public function getPagerHtml()
|
55 |
+
{
|
56 |
return $this->getChildHtml('pager');
|
57 |
}
|
58 |
|
59 |
+
public function getFormUrl()
|
60 |
+
{
|
61 |
return $this->helper('webwinkelconnect')->getFormUrl();
|
62 |
}
|
63 |
|
app/code/local/Magmodules/Webwinkelconnect/Block/Sidebar.php
CHANGED
@@ -15,27 +15,27 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
|
24 |
-
function getSidebarCollection($sidebar)
|
25 |
-
|
26 |
-
$enabled = '';
|
27 |
$qty = '5';
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
if($enabled)
|
39 |
$shop_id = Mage::getStoreConfig('webwinkelconnect/general/api_id');
|
40 |
$collection = Mage::getModel("webwinkelconnect/reviews")->getCollection();
|
41 |
$collection->setOrder('date', 'DESC');
|
@@ -45,65 +45,60 @@ class Magmodules_Webwinkelconnect_Block_Sidebar extends Mage_Core_Block_Template
|
|
45 |
$collection->setPageSize($qty);
|
46 |
$collection->load();
|
47 |
return $collection;
|
48 |
-
else
|
49 |
return false;
|
50 |
-
|
51 |
}
|
52 |
|
53 |
-
function formatContent($sidebarreview, $sidebar = 'left')
|
54 |
-
|
55 |
$content = $sidebarreview->getExperience();
|
56 |
-
|
57 |
-
if($sidebar == 'left'):
|
58 |
$char_limit = Mage::getStoreConfig('webwinkelconnect/sidebar/left_lenght');
|
59 |
-
|
60 |
-
if($sidebar == 'right')
|
61 |
$char_limit = Mage::getStoreConfig('webwinkelconnect/sidebar/right_lenght');
|
62 |
-
|
63 |
-
|
64 |
$content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
|
65 |
return $content;
|
66 |
|
67 |
}
|
68 |
|
69 |
-
function getReviewsUrl($sidebar = 'left')
|
70 |
-
|
71 |
-
if($sidebar == 'left')
|
72 |
$link = Mage::getStoreConfig('webwinkelconnect/sidebar/left_link');
|
73 |
-
|
74 |
-
if($sidebar == 'right')
|
75 |
$link = Mage::getStoreConfig('webwinkelconnect/sidebar/left_right');
|
76 |
-
|
77 |
-
|
78 |
-
if($link == 'internal'):
|
79 |
$url = $this->getUrl('webwinkelconnect');
|
80 |
$class = '';
|
81 |
-
|
82 |
-
if($link == 'external')
|
83 |
$url = Mage::getStoreConfig('webwinkelconnect/general/url');
|
84 |
$class = 'webwinkelkeurReviews';
|
85 |
-
|
86 |
-
|
87 |
if($url) {
|
88 |
return '<a href="' . $url . '" class="' . $class .'">' . $this->__('View all reviews') . '</a>';
|
89 |
} else {
|
90 |
return false;
|
91 |
}
|
92 |
-
|
93 |
}
|
94 |
|
95 |
-
function getSnippetsEnabled($sidebar = 'left')
|
96 |
-
|
97 |
-
$
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
}
|
104 |
}
|
105 |
|
106 |
-
public function getTotalScore()
|
|
|
107 |
return $this->helper('webwinkelconnect')->getTotalScore();
|
108 |
}
|
109 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Block_Sidebar extends Mage_Core_Block_Template {
|
23 |
|
24 |
+
function getSidebarCollection($sidebar)
|
25 |
+
{
|
26 |
+
$enabled = '';
|
27 |
$qty = '5';
|
28 |
+
if(Mage::getStoreConfig('webwinkelconnect/general/enabled')) {
|
29 |
+
if($sidebar == 'left') {
|
30 |
+
$qty = Mage::getStoreConfig('webwinkelconnect/sidebar/left_qty');
|
31 |
+
$enabled = Mage::getStoreConfig('webwinkelconnect/sidebar/left');
|
32 |
+
}
|
33 |
+
if($sidebar == 'right') {
|
34 |
+
$qty = Mage::getStoreConfig('webwinkelconnect/sidebar/right_qty');
|
35 |
+
$enabled = Mage::getStoreConfig('webwinkelconnect/sidebar/right');
|
36 |
+
}
|
37 |
+
}
|
38 |
+
if($enabled) {
|
39 |
$shop_id = Mage::getStoreConfig('webwinkelconnect/general/api_id');
|
40 |
$collection = Mage::getModel("webwinkelconnect/reviews")->getCollection();
|
41 |
$collection->setOrder('date', 'DESC');
|
45 |
$collection->setPageSize($qty);
|
46 |
$collection->load();
|
47 |
return $collection;
|
48 |
+
} else {
|
49 |
return false;
|
50 |
+
}
|
51 |
}
|
52 |
|
53 |
+
function formatContent($sidebarreview, $sidebar = 'left')
|
54 |
+
{
|
55 |
$content = $sidebarreview->getExperience();
|
56 |
+
if($sidebar == 'left') {
|
|
|
57 |
$char_limit = Mage::getStoreConfig('webwinkelconnect/sidebar/left_lenght');
|
58 |
+
}
|
59 |
+
if($sidebar == 'right') {
|
60 |
$char_limit = Mage::getStoreConfig('webwinkelconnect/sidebar/right_lenght');
|
61 |
+
}
|
|
|
62 |
$content = Mage::helper('core/string')->truncate($content, $char_limit, ' ...', $_remainder, false);
|
63 |
return $content;
|
64 |
|
65 |
}
|
66 |
|
67 |
+
function getReviewsUrl($sidebar = 'left')
|
68 |
+
{
|
69 |
+
if($sidebar == 'left') {
|
70 |
$link = Mage::getStoreConfig('webwinkelconnect/sidebar/left_link');
|
71 |
+
}
|
72 |
+
if($sidebar == 'right') {
|
73 |
$link = Mage::getStoreConfig('webwinkelconnect/sidebar/left_right');
|
74 |
+
}
|
75 |
+
if($link == 'internal') {
|
|
|
76 |
$url = $this->getUrl('webwinkelconnect');
|
77 |
$class = '';
|
78 |
+
}
|
79 |
+
if($link == 'external') {
|
80 |
$url = Mage::getStoreConfig('webwinkelconnect/general/url');
|
81 |
$class = 'webwinkelkeurReviews';
|
82 |
+
}
|
|
|
83 |
if($url) {
|
84 |
return '<a href="' . $url . '" class="' . $class .'">' . $this->__('View all reviews') . '</a>';
|
85 |
} else {
|
86 |
return false;
|
87 |
}
|
|
|
88 |
}
|
89 |
|
90 |
+
function getSnippetsEnabled($sidebar = 'left')
|
91 |
+
{
|
92 |
+
if($sidebar == 'left') {
|
93 |
+
return Mage::getStoreConfig('webwinkelconnect/sidebar/left_snippets');
|
94 |
+
}
|
95 |
+
if($sidebar == 'right') {
|
96 |
+
return Mage::getStoreConfig('webwinkelconnect/sidebar/right_snippets');
|
97 |
+
}
|
|
|
98 |
}
|
99 |
|
100 |
+
public function getTotalScore()
|
101 |
+
{
|
102 |
return $this->helper('webwinkelconnect')->getTotalScore();
|
103 |
}
|
104 |
|
app/code/local/Magmodules/Webwinkelconnect/Helper/Data.php
CHANGED
@@ -15,26 +15,27 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Helper_Data extends Mage_Core_Helper_Abstract {
|
23 |
|
24 |
-
public function getTotalScore()
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
}
|
35 |
}
|
36 |
|
37 |
-
function getExternalLink()
|
|
|
38 |
if(Mage::getStoreConfig('webwinkelconnect/general/url')) {
|
39 |
return Mage::helper('webwinkelconnect')->__('on') . ' <a href="' . Mage::getStoreConfig('webwinkelconnect/general/url'). '" target="_blank">WebwinkelKeur.nl</a>';
|
40 |
} else {
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Helper_Data extends Mage_Core_Helper_Abstract {
|
23 |
|
24 |
+
public function getTotalScore()
|
25 |
+
{
|
26 |
+
if(Mage::getStoreConfig('webwinkelconnect/general/enabled')) {
|
27 |
+
$shop_id = Mage::getStoreConfig('webwinkelconnect/general/api_id');
|
28 |
+
$review_stats = Mage::getModel('webwinkelconnect/stats')->load($shop_id, 'shop_id');
|
29 |
+
if($review_stats->getAverage() > 0) {
|
30 |
+
$review_stats->setPercentage($review_stats->getAverage());
|
31 |
+
$review_stats->setStarsQty(number_format(($review_stats->getPercentage() / 10), 1, ',', ''));
|
32 |
+
return $review_stats;
|
33 |
+
}
|
34 |
+
}
|
35 |
}
|
36 |
|
37 |
+
function getExternalLink()
|
38 |
+
{
|
39 |
if(Mage::getStoreConfig('webwinkelconnect/general/url')) {
|
40 |
return Mage::helper('webwinkelconnect')->__('on') . ' <a href="' . Mage::getStoreConfig('webwinkelconnect/general/url'). '" target="_blank">WebwinkelKeur.nl</a>';
|
41 |
} else {
|
app/code/local/Magmodules/Webwinkelconnect/Model/Api.php
CHANGED
@@ -15,25 +15,27 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_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 |
-
|
36 |
-
$
|
|
|
37 |
|
38 |
if($type != 'stats') {
|
39 |
$api_url = 'https://www.webwinkelkeur.nl/apistatistics.php?id=' . $api_id . '&password=' . $api_key . '&showall=1';
|
@@ -55,50 +57,66 @@ class Magmodules_Webwinkelconnect_Model_Api extends Mage_Core_Model_Abstract {
|
|
55 |
}
|
56 |
}
|
57 |
|
58 |
-
public function sendInvitation($order)
|
|
|
59 |
$start_time = microtime(true);
|
60 |
-
$crontype
|
61 |
-
$order_id
|
62 |
-
$api_id
|
63 |
-
$api_key
|
64 |
-
$delay
|
65 |
-
$
|
|
|
|
|
66 |
|
67 |
-
$
|
68 |
-
$http->setConfig(array('timeout' => 30, 'maxredirects' => 0));
|
69 |
|
70 |
-
$
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
78 |
}
|
79 |
-
}
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
$response_html = 'No response from https://www.webwinkelkeur.nl';
|
82 |
}
|
83 |
|
84 |
-
// Write to log
|
85 |
$writelog = Mage::getModel('webwinkelconnect/log')->addToLog('invitation', $order->getStoreId(), '', $response_html, (microtime(true) - $start_time), $crontype, $url, $order->getId());
|
86 |
return true;
|
87 |
}
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
$
|
93 |
-
$
|
94 |
-
$
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
99 |
}
|
100 |
-
}
|
101 |
-
return $
|
102 |
}
|
103 |
|
104 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Api extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
+
public function processFeed($storeid = 0, $type)
|
25 |
+
{
|
26 |
if($feed = $this->getFeed($storeid, $type)) {
|
27 |
+
$results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $type);
|
28 |
+
$results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
|
29 |
return $results;
|
30 |
} else {
|
31 |
return false;
|
32 |
}
|
33 |
}
|
34 |
|
35 |
+
public function getFeed($storeid, $type = '')
|
36 |
+
{
|
37 |
+
$api_id = trim(Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid));
|
38 |
+
$api_key = trim(Mage::getStoreConfig('webwinkelconnect/general/api_key', $storeid));
|
39 |
|
40 |
if($type != 'stats') {
|
41 |
$api_url = 'https://www.webwinkelkeur.nl/apistatistics.php?id=' . $api_id . '&password=' . $api_key . '&showall=1';
|
57 |
}
|
58 |
}
|
59 |
|
60 |
+
public function sendInvitation($order)
|
61 |
+
{
|
62 |
$start_time = microtime(true);
|
63 |
+
$crontype = 'orderupdate';
|
64 |
+
$order_id = $order->getIncrementId();
|
65 |
+
$api_id = trim(Mage::getStoreConfig('webwinkelconnect/general/api_id', $order->getStoreId()));
|
66 |
+
$api_key = trim(Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()));
|
67 |
+
$delay = trim(Mage::getStoreConfig('webwinkelconnect/invitation/delay', $order->getStoreId()));
|
68 |
+
$language = Mage::getStoreConfig('webwinkelconnect/invitation/language', $order->getStoreId());
|
69 |
+
$email = $order->getCustomerEmail();
|
70 |
+
$customer_name = $order->getCustomerName();
|
71 |
|
72 |
+
$url = 'https://www.webwinkelkeur.nl/api.php?id=' . $api_id . '&password=' . $api_key . '&email=' . urlencode($email) . '&order=' . $order_id . '&delay=' . $delay . '&client=magento&customername=' . urlencode($customer_name);
|
|
|
73 |
|
74 |
+
if(!empty($language)) {
|
75 |
+
if($language == 'cus') {
|
76 |
+
$lan_array = array('NL' => 'nld', 'EN' => 'eng', 'DE' => 'deu', 'FR' => 'fra', 'ES' => 'spa');
|
77 |
+
$address = $order->getShippingAddress();
|
78 |
+
if(isset($lan_array[$address->getCountry()])) {
|
79 |
+
$url = $url . '&language=' . $lan_array[$address->getCountry()];
|
80 |
+
}
|
81 |
+
} else {
|
82 |
+
$url = $url . '&language=' . $language;
|
83 |
}
|
84 |
+
}
|
85 |
+
|
86 |
+
$curl = curl_init($url);
|
87 |
+
curl_setopt($curl, CURLOPT_VERBOSE, 1);
|
88 |
+
curl_setopt($curl, CURLOPT_FAILONERROR, false);
|
89 |
+
curl_setopt($curl, CURLOPT_HEADER, 0);
|
90 |
+
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
|
91 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
92 |
+
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
|
93 |
+
$response = curl_exec($curl);
|
94 |
+
curl_close($curl);
|
95 |
+
|
96 |
+
if($response) {
|
97 |
+
$response_html = $response;
|
98 |
+
} else {
|
99 |
$response_html = 'No response from https://www.webwinkelkeur.nl';
|
100 |
}
|
101 |
|
|
|
102 |
$writelog = Mage::getModel('webwinkelconnect/log')->addToLog('invitation', $order->getStoreId(), '', $response_html, (microtime(true) - $start_time), $crontype, $url, $order->getId());
|
103 |
return true;
|
104 |
}
|
105 |
|
106 |
+
|
107 |
+
public function getStoreIds()
|
108 |
+
{
|
109 |
+
$store_ids = array(); $api_ids = array();
|
110 |
+
$stores = Mage::getModel('core/store')->getCollection();
|
111 |
+
foreach ($stores as $store) {
|
112 |
+
if($store->getIsActive()) {
|
113 |
+
$api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $store->getId());
|
114 |
+
if(!in_array($api_id, $api_ids)) {
|
115 |
+
$api_ids[] = $api_id; $store_ids[] = $store->getId();
|
116 |
+
}
|
117 |
}
|
118 |
+
}
|
119 |
+
return $store_ids;
|
120 |
}
|
121 |
|
122 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/Log.php
CHANGED
@@ -15,30 +15,38 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Log extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('webwinkelconnect/log');
|
27 |
}
|
28 |
|
29 |
-
public function addToLog($type, $storeid, $review = '', $inivation = '', $time, $crontype = '', $api_url = '', $orderid = '')
|
30 |
-
|
31 |
if(Mage::getStoreConfig('webwinkelconnect/log/enabled')) {
|
32 |
-
|
33 |
-
$
|
34 |
-
$company = Mage::getStoreConfig('webwinkelconnect/general/company', $storeid);
|
35 |
$review_updates = '';
|
36 |
-
$review_new
|
37 |
|
38 |
if($review) {
|
39 |
-
$company
|
40 |
-
$
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
|
44 |
$model = Mage::getModel('webwinkelconnect/log');
|
@@ -55,8 +63,6 @@ class Magmodules_Webwinkelconnect_Model_Log extends Mage_Core_Model_Abstract {
|
|
55 |
->setApiUrl($api_url)
|
56 |
->save();
|
57 |
}
|
58 |
-
|
59 |
-
return;
|
60 |
}
|
61 |
|
62 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Log extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('webwinkelconnect/log');
|
28 |
}
|
29 |
|
30 |
+
public function addToLog($type, $storeid, $review = '', $inivation = '', $time, $crontype = '', $api_url = '', $orderid = '')
|
31 |
+
{
|
32 |
if(Mage::getStoreConfig('webwinkelconnect/log/enabled')) {
|
33 |
+
$api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
|
34 |
+
$company = Mage::getStoreConfig('webwinkelconnect/general/company', $storeid);
|
|
|
35 |
$review_updates = '';
|
36 |
+
$review_new = '';
|
37 |
|
38 |
if($review) {
|
39 |
+
$company = $review['company'];
|
40 |
+
if(!empty($review['review_updates'])) {
|
41 |
+
$review_updates = $review['review_updates'];
|
42 |
+
} else {
|
43 |
+
$review_updates = 0;
|
44 |
+
}
|
45 |
+
if(!empty($review['review_new'])) {
|
46 |
+
$review_new = $review['review_new'];
|
47 |
+
} else {
|
48 |
+
$review_new = 0;
|
49 |
+
}
|
50 |
}
|
51 |
|
52 |
$model = Mage::getModel('webwinkelconnect/log');
|
63 |
->setApiUrl($api_url)
|
64 |
->save();
|
65 |
}
|
|
|
|
|
66 |
}
|
67 |
|
68 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Log.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
$this->_init('webwinkelconnect/log', 'id');
|
26 |
}
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
$this->_init('webwinkelconnect/log', 'id');
|
27 |
}
|
28 |
|
app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Log/Collection.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('webwinkelconnect/log');
|
27 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('webwinkelconnect/log');
|
28 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Reviews.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
$this->_init('webwinkelconnect/reviews', 'review_id');
|
26 |
}
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Mysql4_Reviews extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
$this->_init('webwinkelconnect/reviews', 'review_id');
|
27 |
}
|
28 |
|
app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Reviews/Collection.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('webwinkelconnect/reviews');
|
27 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Mysql4_Reviews_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('webwinkelconnect/reviews');
|
28 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Stats.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
$this->_init('webwinkelconnect/stats', 'id');
|
26 |
}
|
27 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Mysql4_Stats extends Mage_Core_Model_Mysql4_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
$this->_init('webwinkelconnect/stats', 'id');
|
27 |
}
|
28 |
|
app/code/local/Magmodules/Webwinkelconnect/Model/Mysql4/Stats/Collection.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('webwinkelconnect/stats');
|
27 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Mysql4_Stats_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('webwinkelconnect/stats');
|
28 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/Observer.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Observer {
|
23 |
|
24 |
-
public function processStats()
|
|
|
25 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
26 |
foreach($storeids as $storeid) {
|
27 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
|
@@ -38,7 +39,8 @@ class Magmodules_Webwinkelconnect_Model_Observer {
|
|
38 |
}
|
39 |
}
|
40 |
|
41 |
-
public function processReviews()
|
|
|
42 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
43 |
foreach($storeids as $storeid) {
|
44 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
|
@@ -46,15 +48,16 @@ class Magmodules_Webwinkelconnect_Model_Observer {
|
|
46 |
if($enabled && $cron_enabled) {
|
47 |
$crontype = 'reviews';
|
48 |
$start_time = microtime(true);
|
49 |
-
$feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $
|
50 |
$results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $crontype);
|
51 |
-
$results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid
|
52 |
$log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
53 |
}
|
54 |
}
|
55 |
}
|
56 |
|
57 |
-
public function processHistory()
|
|
|
58 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
59 |
foreach($storeids as $storeid) {
|
60 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
|
@@ -62,7 +65,7 @@ class Magmodules_Webwinkelconnect_Model_Observer {
|
|
62 |
if($enabled && $cron_enabled) {
|
63 |
$crontype = 'history';
|
64 |
$start_time = microtime(true); $storeid = 0;
|
65 |
-
$feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $
|
66 |
$results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $crontype);
|
67 |
$results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
|
68 |
$log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
@@ -70,7 +73,8 @@ class Magmodules_Webwinkelconnect_Model_Observer {
|
|
70 |
}
|
71 |
}
|
72 |
|
73 |
-
public function cleanLog()
|
|
|
74 |
$enabled = Mage::getStoreConfig('webwinkelconnect/log/clean', 0);
|
75 |
$days = Mage::getStoreConfig('webwinkelconnect/log/clean_days', 0);
|
76 |
if(($enabled) && ($days > 0)) {
|
@@ -83,7 +87,8 @@ class Magmodules_Webwinkelconnect_Model_Observer {
|
|
83 |
}
|
84 |
}
|
85 |
|
86 |
-
public function processInvitationcallAfterShipment($observer)
|
|
|
87 |
$shipment = $observer->getEvent()->getShipment();
|
88 |
$order = $shipment->getOrder();
|
89 |
if((Mage::getStoreConfig('webwinkelconnect/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()))):
|
@@ -100,7 +105,8 @@ class Magmodules_Webwinkelconnect_Model_Observer {
|
|
100 |
endif;
|
101 |
}
|
102 |
|
103 |
-
public function processInvitationcall($observer)
|
|
|
104 |
$order = $observer->getEvent()->getOrder();
|
105 |
if((Mage::getStoreConfig('webwinkelconnect/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()))):
|
106 |
if($order->getStatus() == Mage::getStoreConfig('webwinkelconnect/invitation/status', $order->getStoreId())):
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Observer {
|
23 |
|
24 |
+
public function processStats()
|
25 |
+
{
|
26 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
27 |
foreach($storeids as $storeid) {
|
28 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
|
39 |
}
|
40 |
}
|
41 |
|
42 |
+
public function processReviews()
|
43 |
+
{
|
44 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
45 |
foreach($storeids as $storeid) {
|
46 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
|
48 |
if($enabled && $cron_enabled) {
|
49 |
$crontype = 'reviews';
|
50 |
$start_time = microtime(true);
|
51 |
+
$feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $crontype);
|
52 |
$results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $crontype);
|
53 |
+
$results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
|
54 |
$log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
55 |
}
|
56 |
}
|
57 |
}
|
58 |
|
59 |
+
public function processHistory()
|
60 |
+
{
|
61 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
62 |
foreach($storeids as $storeid) {
|
63 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled', $storeid);
|
65 |
if($enabled && $cron_enabled) {
|
66 |
$crontype = 'history';
|
67 |
$start_time = microtime(true); $storeid = 0;
|
68 |
+
$feed = Mage::getModel('webwinkelconnect/api')->getFeed($storeid, $crontype);
|
69 |
$results = Mage::getModel('webwinkelconnect/reviews')->processFeed($feed, $storeid, $crontype);
|
70 |
$results['stats'] = Mage::getModel('webwinkelconnect/stats')->processFeed($feed, $storeid);
|
71 |
$log = Mage::getModel('webwinkelconnect/log')->addToLog('reviews', $storeid, $results, '', (microtime(true) - $start_time), $crontype);
|
73 |
}
|
74 |
}
|
75 |
|
76 |
+
public function cleanLog()
|
77 |
+
{
|
78 |
$enabled = Mage::getStoreConfig('webwinkelconnect/log/clean', 0);
|
79 |
$days = Mage::getStoreConfig('webwinkelconnect/log/clean_days', 0);
|
80 |
if(($enabled) && ($days > 0)) {
|
87 |
}
|
88 |
}
|
89 |
|
90 |
+
public function processInvitationcallAfterShipment($observer)
|
91 |
+
{
|
92 |
$shipment = $observer->getEvent()->getShipment();
|
93 |
$order = $shipment->getOrder();
|
94 |
if((Mage::getStoreConfig('webwinkelconnect/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()))):
|
105 |
endif;
|
106 |
}
|
107 |
|
108 |
+
public function processInvitationcall($observer)
|
109 |
+
{
|
110 |
$order = $observer->getEvent()->getOrder();
|
111 |
if((Mage::getStoreConfig('webwinkelconnect/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('webwinkelconnect/general/api_key', $order->getStoreId()))):
|
112 |
if($order->getStatus() == Mage::getStoreConfig('webwinkelconnect/invitation/status', $order->getStoreId())):
|
app/code/local/Magmodules/Webwinkelconnect/Model/Reviews.php
CHANGED
@@ -21,18 +21,20 @@
|
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Reviews extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('webwinkelconnect/reviews');
|
27 |
}
|
28 |
|
29 |
-
public function loadbyHash($hash)
|
|
|
30 |
$this->_getResource()->load($this, $hash, 'hash');
|
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('webwinkelconnect/general/api_id', $storeid);
|
38 |
$company = $feed->company;
|
@@ -66,8 +68,6 @@ class Magmodules_Webwinkelconnect_Model_Reviews extends Mage_Core_Model_Abstract
|
|
66 |
->setAftersales($aftersales)
|
67 |
->save();
|
68 |
$updates++;
|
69 |
-
} else {
|
70 |
-
break;
|
71 |
}
|
72 |
} else {
|
73 |
$reviews = Mage::getModel('webwinkelconnect/reviews');
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Reviews extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('webwinkelconnect/reviews');
|
28 |
}
|
29 |
|
30 |
+
public function loadbyHash($hash)
|
31 |
+
{
|
32 |
$this->_getResource()->load($this, $hash, 'hash');
|
33 |
return $this;
|
34 |
}
|
35 |
|
36 |
+
public function processFeed($feed, $storeid = 0, $type)
|
37 |
+
{
|
38 |
$updates = 0; $new = 0; $history = 0;
|
39 |
$api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
|
40 |
$company = $feed->company;
|
68 |
->setAftersales($aftersales)
|
69 |
->save();
|
70 |
$updates++;
|
|
|
|
|
71 |
}
|
72 |
} else {
|
73 |
$reviews = Mage::getModel('webwinkelconnect/reviews');
|
app/code/local/Magmodules/Webwinkelconnect/Model/Stats.php
CHANGED
@@ -15,18 +15,20 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_Stats extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
-
public function _construct()
|
|
|
25 |
parent::_construct();
|
26 |
$this->_init('webwinkelconnect/stats');
|
27 |
}
|
28 |
|
29 |
-
public function processFeed($feed, $storeid = 0)
|
|
|
30 |
$api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
|
31 |
|
32 |
if($storeid == 0) {
|
@@ -81,7 +83,8 @@ class Magmodules_Webwinkelconnect_Model_Stats extends Mage_Core_Model_Abstract {
|
|
81 |
}
|
82 |
}
|
83 |
|
84 |
-
public function loadbyApiId($api_id)
|
|
|
85 |
$this->_getResource()->load($this, $api_id, 'shop_id');
|
86 |
return $this;
|
87 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_Stats extends Mage_Core_Model_Abstract {
|
23 |
|
24 |
+
public function _construct()
|
25 |
+
{
|
26 |
parent::_construct();
|
27 |
$this->_init('webwinkelconnect/stats');
|
28 |
}
|
29 |
|
30 |
+
public function processFeed($feed, $storeid = 0)
|
31 |
+
{
|
32 |
$api_id = Mage::getStoreConfig('webwinkelconnect/general/api_id', $storeid);
|
33 |
|
34 |
if($storeid == 0) {
|
83 |
}
|
84 |
}
|
85 |
|
86 |
+
public function loadbyApiId($api_id)
|
87 |
+
{
|
88 |
$this->_getResource()->load($this, $api_id, 'shop_id');
|
89 |
return $this;
|
90 |
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Cronfrequency.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_System_Config_Source_Cronfrequency {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
return array(
|
26 |
'*/15 * * * *' => Mage::helper('webwinkelconnect')->__('Every 15 minutes'),
|
27 |
'0 * * * *' => Mage::helper('webwinkelconnect')->__('Every Hour'),
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_System_Config_Source_Cronfrequency {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
return array(
|
27 |
'*/15 * * * *' => Mage::helper('webwinkelconnect')->__('Every 15 minutes'),
|
28 |
'0 * * * *' => Mage::helper('webwinkelconnect')->__('Every Hour'),
|
app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Cronfrequencylong.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Webwinkelconnect
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_System_Config_Source_Cronfrequencylong {
|
23 |
+
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
+
return array(
|
27 |
+
'0 2 * * *' => Mage::helper('webwinkelconnect')->__('Once a Day'),
|
28 |
+
'0 2 * * 0' => Mage::helper('webwinkelconnect')->__('Once a Week'),
|
29 |
+
'0 2 1 * *' => Mage::helper('webwinkelconnect')->__('Once a Month'),
|
30 |
+
'' => Mage::helper('webwinkelconnect')->__('Never'),
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Language.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_Webwinkelconnect
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_System_Config_Source_Language {
|
23 |
+
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
+
$language = array();
|
27 |
+
$language[] = array('value' => '', 'label'=> Mage::helper('webwinkelconnect')->__('Use default'));
|
28 |
+
$language[] = array('value' => 'cus', 'label'=> Mage::helper('webwinkelconnect')->__('Based on customer country'));
|
29 |
+
$language[] = array('value' => 'nld', 'label'=> Mage::helper('webwinkelconnect')->__('Dutch'));
|
30 |
+
$language[] = array('value' => 'eng', 'label'=> Mage::helper('webwinkelconnect')->__('English'));
|
31 |
+
$language[] = array('value' => 'deu', 'label'=> Mage::helper('webwinkelconnect')->__('German'));
|
32 |
+
$language[] = array('value' => 'fra', 'label'=> Mage::helper('webwinkelconnect')->__('French'));
|
33 |
+
$language[] = array('value' => 'spa', 'label'=> Mage::helper('webwinkelconnect')->__('Spanish'));
|
34 |
+
return $language;
|
35 |
+
}
|
36 |
+
|
37 |
+
}
|
app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Orderstatus.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_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();
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_System_Config_Source_Orderstatus {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$storeModel = Mage::getSingleton('adminhtml/system_store');
|
27 |
$statuses = Mage::getSingleton('sales/order_config')->getStatuses();
|
28 |
$options = array();
|
app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Position.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_System_Config_Source_Position {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
$position = array();
|
26 |
$position[] = array('value'=>'left', 'label'=> Mage::helper('webwinkelconnect')->__('Left'));
|
27 |
$position[] = array('value'=>'right', 'label'=> Mage::helper('webwinkelconnect')->__('Right'));
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_System_Config_Source_Position {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
$position = array();
|
27 |
$position[] = array('value'=>'left', 'label'=> Mage::helper('webwinkelconnect')->__('Left'));
|
28 |
$position[] = array('value'=>'right', 'label'=> Mage::helper('webwinkelconnect')->__('Right'));
|
app/code/local/Magmodules/Webwinkelconnect/Model/System/Config/Source/Sidebarlink.php
CHANGED
@@ -15,13 +15,14 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Model_System_Config_Source_Sidebarlink {
|
23 |
|
24 |
-
public function toOptionArray()
|
|
|
25 |
return array(
|
26 |
'' => Mage::helper('webwinkelconnect')->__('None'),
|
27 |
'external' => Mage::helper('webwinkelconnect')->__('External (Webwinkelkeur.nl)'),
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Model_System_Config_Source_Sidebarlink {
|
23 |
|
24 |
+
public function toOptionArray()
|
25 |
+
{
|
26 |
return array(
|
27 |
'' => Mage::helper('webwinkelconnect')->__('None'),
|
28 |
'external' => Mage::helper('webwinkelconnect')->__('External (Webwinkelkeur.nl)'),
|
app/code/local/Magmodules/Webwinkelconnect/controllers/Adminhtml/WebwinkellogController.php
CHANGED
@@ -21,16 +21,19 @@
|
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Adminhtml_WebwinkellogController extends Mage_Adminhtml_Controller_Action {
|
23 |
|
24 |
-
protected function _initAction()
|
|
|
25 |
$this->loadLayout()->_setActiveMenu('webwinkelconnect/webwinkellog')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
26 |
return $this;
|
27 |
}
|
28 |
|
29 |
-
public function indexAction()
|
|
|
30 |
$this->_initAction()->renderLayout();
|
31 |
}
|
32 |
|
33 |
-
public function massDeleteAction()
|
|
|
34 |
$LogIds = $this->getRequest()->getParam('logids');
|
35 |
if(!is_array($LogIds)) {
|
36 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
@@ -47,7 +50,8 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkellogController extends Mage_
|
|
47 |
$this->_redirect('*/*/index');
|
48 |
}
|
49 |
|
50 |
-
public function cleanAction()
|
|
|
51 |
$enabled = Mage::getStoreConfig('webwinkelconnect/log/clean');
|
52 |
$days = Mage::getStoreConfig('webwinkelconnect/log/clean_days');
|
53 |
$i = 0;
|
@@ -64,7 +68,8 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkellogController extends Mage_
|
|
64 |
$this->_redirect('*/*/index');
|
65 |
}
|
66 |
|
67 |
-
protected function _isAllowed()
|
|
|
68 |
return Mage::getSingleton('admin/session')->isAllowed('admin/webwinkelconnect/webwinkelconnect_reviews');
|
69 |
}
|
70 |
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Adminhtml_WebwinkellogController extends Mage_Adminhtml_Controller_Action {
|
23 |
|
24 |
+
protected function _initAction()
|
25 |
+
{
|
26 |
$this->loadLayout()->_setActiveMenu('webwinkelconnect/webwinkellog')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
27 |
return $this;
|
28 |
}
|
29 |
|
30 |
+
public function indexAction()
|
31 |
+
{
|
32 |
$this->_initAction()->renderLayout();
|
33 |
}
|
34 |
|
35 |
+
public function massDeleteAction()
|
36 |
+
{
|
37 |
$LogIds = $this->getRequest()->getParam('logids');
|
38 |
if(!is_array($LogIds)) {
|
39 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
50 |
$this->_redirect('*/*/index');
|
51 |
}
|
52 |
|
53 |
+
public function cleanAction()
|
54 |
+
{
|
55 |
$enabled = Mage::getStoreConfig('webwinkelconnect/log/clean');
|
56 |
$days = Mage::getStoreConfig('webwinkelconnect/log/clean_days');
|
57 |
$i = 0;
|
68 |
$this->_redirect('*/*/index');
|
69 |
}
|
70 |
|
71 |
+
protected function _isAllowed()
|
72 |
+
{
|
73 |
return Mage::getSingleton('admin/session')->isAllowed('admin/webwinkelconnect/webwinkelconnect_reviews');
|
74 |
}
|
75 |
|
app/code/local/Magmodules/Webwinkelconnect/controllers/Adminhtml/WebwinkelreviewsController.php
CHANGED
@@ -15,22 +15,25 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends Mage_Adminhtml_Controller_Action {
|
23 |
|
24 |
-
protected function _initAction()
|
|
|
25 |
$this->loadLayout()->_setActiveMenu('webwinkelconnect/webwinkelreviews')->_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('webwinkelconnect/api')->getStoreIds();
|
35 |
$start_time = microtime(true);
|
36 |
foreach($storeids as $storeid) {
|
@@ -57,11 +60,13 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends M
|
|
57 |
$this->_redirect('adminhtml/system_config/edit/section/webwinkelconnect');
|
58 |
}
|
59 |
|
60 |
-
public function testapiAction()
|
|
|
61 |
$this->_redirect('adminhtml/system_config/edit/section/webwinkelconnect');
|
62 |
}
|
63 |
|
64 |
-
public function massDisableAction()
|
|
|
65 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
66 |
if(!is_array($reviewIds)) {
|
67 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
@@ -79,7 +84,8 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends M
|
|
79 |
$this->_redirect('*/*/index');
|
80 |
}
|
81 |
|
82 |
-
public function massEnableAction()
|
|
|
83 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
84 |
if(!is_array($reviewIds)) {
|
85 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
@@ -97,7 +103,8 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends M
|
|
97 |
$this->_redirect('*/*/index');
|
98 |
}
|
99 |
|
100 |
-
public function massEnableSidebarAction()
|
|
|
101 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
102 |
if(!is_array($reviewIds)) {
|
103 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
@@ -115,7 +122,8 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends M
|
|
115 |
$this->_redirect('*/*/index');
|
116 |
}
|
117 |
|
118 |
-
public function massDisableSidebarAction()
|
|
|
119 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
120 |
if(!is_array($reviewIds)) {
|
121 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
@@ -133,7 +141,8 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends M
|
|
133 |
$this->_redirect('*/*/index');
|
134 |
}
|
135 |
|
136 |
-
public function truncateAction()
|
|
|
137 |
$i = 0;
|
138 |
$collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
|
139 |
foreach ($collection as $item) {
|
@@ -144,7 +153,9 @@ class Magmodules_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends M
|
|
144 |
$this->_redirect('*/*/index');
|
145 |
}
|
146 |
|
147 |
-
protected function _isAllowed()
|
|
|
148 |
return Mage::getSingleton('admin/session')->isAllowed('admin/webwinkelconnect/webwinkelconnect_log');
|
149 |
-
}
|
|
|
150 |
}
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_Adminhtml_WebwinkelreviewsController extends Mage_Adminhtml_Controller_Action {
|
23 |
|
24 |
+
protected function _initAction()
|
25 |
+
{
|
26 |
$this->loadLayout()->_setActiveMenu('webwinkelconnect/webwinkelreviews')->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
27 |
return $this;
|
28 |
}
|
29 |
|
30 |
+
public function indexAction()
|
31 |
+
{
|
32 |
$this->_initAction()->renderLayout();
|
33 |
}
|
34 |
|
35 |
+
public function processAction()
|
36 |
+
{
|
37 |
$storeids = Mage::getModel('webwinkelconnect/api')->getStoreIds();
|
38 |
$start_time = microtime(true);
|
39 |
foreach($storeids as $storeid) {
|
60 |
$this->_redirect('adminhtml/system_config/edit/section/webwinkelconnect');
|
61 |
}
|
62 |
|
63 |
+
public function testapiAction()
|
64 |
+
{
|
65 |
$this->_redirect('adminhtml/system_config/edit/section/webwinkelconnect');
|
66 |
}
|
67 |
|
68 |
+
public function massDisableAction()
|
69 |
+
{
|
70 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
71 |
if(!is_array($reviewIds)) {
|
72 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
84 |
$this->_redirect('*/*/index');
|
85 |
}
|
86 |
|
87 |
+
public function massEnableAction()
|
88 |
+
{
|
89 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
90 |
if(!is_array($reviewIds)) {
|
91 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
103 |
$this->_redirect('*/*/index');
|
104 |
}
|
105 |
|
106 |
+
public function massEnableSidebarAction()
|
107 |
+
{
|
108 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
109 |
if(!is_array($reviewIds)) {
|
110 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
122 |
$this->_redirect('*/*/index');
|
123 |
}
|
124 |
|
125 |
+
public function massDisableSidebarAction()
|
126 |
+
{
|
127 |
$reviewIds = $this->getRequest()->getParam('reviewids');
|
128 |
if(!is_array($reviewIds)) {
|
129 |
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('webwinkelconnect')->__('Please select item(s)'));
|
141 |
$this->_redirect('*/*/index');
|
142 |
}
|
143 |
|
144 |
+
public function truncateAction()
|
145 |
+
{
|
146 |
$i = 0;
|
147 |
$collection = Mage::getModel('webwinkelconnect/reviews')->getCollection();
|
148 |
foreach ($collection as $item) {
|
153 |
$this->_redirect('*/*/index');
|
154 |
}
|
155 |
|
156 |
+
protected function _isAllowed()
|
157 |
+
{
|
158 |
return Mage::getSingleton('admin/session')->isAllowed('admin/webwinkelconnect/webwinkelconnect_log');
|
159 |
+
}
|
160 |
+
|
161 |
}
|
app/code/local/Magmodules/Webwinkelconnect/controllers/IndexController.php
CHANGED
@@ -15,33 +15,28 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
22 |
class Magmodules_Webwinkelconnect_IndexController extends Mage_Core_Controller_Front_Action {
|
23 |
|
24 |
-
public function indexAction()
|
25 |
-
|
26 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled');
|
27 |
$overview = Mage::getStoreConfig('webwinkelconnect/overview/enabled');
|
28 |
-
|
29 |
if($enabled && $overview) {
|
30 |
$this->loadLayout();
|
31 |
$head = $this->getLayout()->getBlock('head');
|
32 |
-
|
33 |
-
if($title = Mage::getStoreConfig('webwinkelconnect/overview/meta_title')):
|
34 |
$head->setTitle($title);
|
35 |
-
|
36 |
-
|
37 |
-
if($description = Mage::getStoreConfig('webwinkelconnect/overview/meta_description')):
|
38 |
$head->setDescription($description);
|
39 |
-
|
40 |
-
|
41 |
-
if($keywords = Mage::getStoreConfig('webwinkelconnect/overview/meta_keywords')):
|
42 |
$head->setKeywords($keywords);
|
43 |
-
|
44 |
-
|
45 |
$this->renderLayout();
|
46 |
} else {
|
47 |
$this->_redirect('/');
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect_IndexController extends Mage_Core_Controller_Front_Action {
|
23 |
|
24 |
+
public function indexAction()
|
25 |
+
{
|
26 |
$enabled = Mage::getStoreConfig('webwinkelconnect/general/enabled');
|
27 |
$overview = Mage::getStoreConfig('webwinkelconnect/overview/enabled');
|
|
|
28 |
if($enabled && $overview) {
|
29 |
$this->loadLayout();
|
30 |
$head = $this->getLayout()->getBlock('head');
|
31 |
+
if($title = Mage::getStoreConfig('webwinkelconnect/overview/meta_title')) {
|
|
|
32 |
$head->setTitle($title);
|
33 |
+
}
|
34 |
+
if($description = Mage::getStoreConfig('webwinkelconnect/overview/meta_description')) {
|
|
|
35 |
$head->setDescription($description);
|
36 |
+
}
|
37 |
+
if($keywords = Mage::getStoreConfig('webwinkelconnect/overview/meta_keywords')) {
|
|
|
38 |
$head->setKeywords($keywords);
|
39 |
+
}
|
|
|
40 |
$this->renderLayout();
|
41 |
} else {
|
42 |
$this->_redirect('/');
|
app/code/local/Magmodules/Webwinkelconnect/data/webwinkelconnect_setup/data-upgrade-1.0.8-1.0.9.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magmodules.eu - http://www.magmodules.eu
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to info@magmodules.eu so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Magmodules
|
16 |
+
* @package Magmodules_Webwinkelconnect
|
17 |
+
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
+
*/
|
21 |
+
|
22 |
+
$installer = $this;
|
23 |
+
if(Mage::getModel('admin/block')) {
|
24 |
+
$connection = $installer->getConnection();
|
25 |
+
$table = $installer->getTable('admin/permission_block');
|
26 |
+
$blockNames = array(
|
27 |
+
'webwinkelconnect/snippets',
|
28 |
+
'webwinkelconnect/custom',
|
29 |
+
);
|
30 |
+
foreach ($blockNames as $blockName) {
|
31 |
+
$connection->insertIgnore($table, array(
|
32 |
+
'block_name' => $blockName,
|
33 |
+
'is_allowed' => 1,
|
34 |
+
));
|
35 |
+
}
|
36 |
+
}
|
app/code/local/Magmodules/Webwinkelconnect/etc/adminhtml.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Webwinkelconnect
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
@@ -63,28 +63,34 @@
|
|
63 |
<config>
|
64 |
<children>
|
65 |
<webwinkelconnect translate="title" module="webwinkelconnect">
|
66 |
-
<title>WebwinkelKeur
|
67 |
</webwinkelconnect>
|
68 |
</children>
|
69 |
</config>
|
70 |
</children>
|
71 |
</system>
|
72 |
-
<
|
73 |
-
<title>
|
74 |
-
<sort_order>
|
75 |
<children>
|
76 |
-
<
|
77 |
-
<title>WebwinkelKeur
|
78 |
-
<sort_order>
|
79 |
-
<
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
</children>
|
87 |
-
</
|
88 |
</children>
|
89 |
</admin>
|
90 |
</resources>
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Webwinkelconnect
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2015 (http://www.magmodules.eu)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
63 |
<config>
|
64 |
<children>
|
65 |
<webwinkelconnect translate="title" module="webwinkelconnect">
|
66 |
+
<title>WebwinkelKeur</title>
|
67 |
</webwinkelconnect>
|
68 |
</children>
|
69 |
</config>
|
70 |
</children>
|
71 |
</system>
|
72 |
+
<shopreview module="webwinkelconnect">
|
73 |
+
<title>Reviews</title>
|
74 |
+
<sort_order>71</sort_order>
|
75 |
<children>
|
76 |
+
<webwinkelconnect module="webwinkelconnect">
|
77 |
+
<title>WebwinkelKeur</title>
|
78 |
+
<sort_order>60</sort_order>
|
79 |
+
<children>
|
80 |
+
<webwinkelconnect_reviews module="webwinkelconnect">
|
81 |
+
<title>WebwinkelKeur Reviews</title>
|
82 |
+
<sort_order>100</sort_order>
|
83 |
+
<action>adminhtml/webwinkelreviews/</action>
|
84 |
+
</webwinkelconnect_reviews>
|
85 |
+
<webwinkelconnect_log module="webwinkelconnect">
|
86 |
+
<title>WebwinkelKeur Log</title>
|
87 |
+
<sort_order>110</sort_order>
|
88 |
+
<action>adminhtml/webwinkellog/</action>
|
89 |
+
</webwinkelconnect_log>
|
90 |
+
</children>
|
91 |
+
</webwinkelconnect>
|
92 |
</children>
|
93 |
+
</shopreview>
|
94 |
</children>
|
95 |
</admin>
|
96 |
</resources>
|
app/code/local/Magmodules/Webwinkelconnect/etc/config.xml
CHANGED
@@ -17,14 +17,14 @@
|
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Webwinkelconnect
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
24 |
<config>
|
25 |
<modules>
|
26 |
<Magmodules_Webwinkelconnect>
|
27 |
-
<version>1.0.
|
28 |
</Magmodules_Webwinkelconnect>
|
29 |
</modules>
|
30 |
<global>
|
@@ -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
|
188 |
</reviews>
|
189 |
<sidebar>
|
190 |
<left>0</left>
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Webwinkelconnect
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2016 (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_Webwinkelconnect>
|
27 |
+
<version>1.0.9</version>
|
28 |
</Magmodules_Webwinkelconnect>
|
29 |
</modules>
|
30 |
<global>
|
184 |
<cron>0</cron>
|
185 |
<cron_stats>*/15 * * * *</cron_stats>
|
186 |
<cron_reviews>0 */2 * * *</cron_reviews>
|
187 |
+
<cron_all>0 2 * * 0</cron_all>
|
188 |
</reviews>
|
189 |
<sidebar>
|
190 |
<left>0</left>
|
app/code/local/Magmodules/Webwinkelconnect/etc/system.xml
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Webwinkelconnect
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
-
* @copyright Copyright (c)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
@@ -53,13 +53,22 @@
|
|
53 |
<show_in_website>1</show_in_website>
|
54 |
<show_in_store>1</show_in_store>
|
55 |
<expanded>1</expanded>
|
56 |
-
<comment><![CDATA[You can find the necessary information in
|
57 |
<fields>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
<enabled translate="label">
|
59 |
<label>Enabled</label>
|
60 |
<frontend_type>select</frontend_type>
|
61 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
62 |
-
<sort_order>
|
63 |
<show_in_default>1</show_in_default>
|
64 |
<show_in_website>1</show_in_website>
|
65 |
<show_in_store>1</show_in_store>
|
@@ -83,7 +92,7 @@
|
|
83 |
<heading_api translate="label">
|
84 |
<label>API CREDENTIALS</label>
|
85 |
<frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
|
86 |
-
<sort_order>
|
87 |
<show_in_default>1</show_in_default>
|
88 |
<show_in_website>0</show_in_website>
|
89 |
<show_in_store>1</show_in_store>
|
@@ -91,7 +100,7 @@
|
|
91 |
<api_id translate="label">
|
92 |
<label>Webshop ID</label>
|
93 |
<frontend_type>text</frontend_type>
|
94 |
-
<sort_order>
|
95 |
<show_in_default>1</show_in_default>
|
96 |
<show_in_website>0</show_in_website>
|
97 |
<show_in_store>1</show_in_store>
|
@@ -100,31 +109,169 @@
|
|
100 |
<api_key translate="label">
|
101 |
<label>API Key</label>
|
102 |
<frontend_type>text</frontend_type>
|
103 |
-
<sort_order>
|
104 |
<show_in_default>1</show_in_default>
|
105 |
<show_in_website>0</show_in_website>
|
106 |
<show_in_store>1</show_in_store>
|
107 |
<tooltip>You can find this information in your WebwinkelKeur account</tooltip>
|
108 |
</api_key>
|
109 |
<url translate="label">
|
110 |
-
<label>
|
111 |
<frontend_type>text</frontend_type>
|
112 |
<sort_order>100</sort_order>
|
113 |
<show_in_default>1</show_in_default>
|
114 |
<show_in_website>0</show_in_website>
|
115 |
<show_in_store>1</show_in_store>
|
|
|
116 |
</url>
|
117 |
</fields>
|
118 |
</general>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
<reviews translate="label" module="webwinkelconnect">
|
120 |
<label>WebwinkelKeur Import Reviews</label>
|
121 |
<frontend_type>text</frontend_type>
|
122 |
-
<sort_order>
|
123 |
<show_in_default>1</show_in_default>
|
124 |
<show_in_website>1</show_in_website>
|
125 |
<show_in_store>1</show_in_store>
|
126 |
<expanded>1</expanded>
|
127 |
-
<comment><![CDATA[To display the latest reviews in your store, you must import the reviews.
|
128 |
<fields>
|
129 |
<cron translate="label">
|
130 |
<label>Import Automatically</label>
|
@@ -161,7 +308,7 @@
|
|
161 |
<cron_all translate="label">
|
162 |
<label>Update Review History</label>
|
163 |
<frontend_type>select</frontend_type>
|
164 |
-
<source_model>webwinkelconnect/
|
165 |
<sort_order>4</sort_order>
|
166 |
<show_in_default>1</show_in_default>
|
167 |
<show_in_website>1</show_in_website>
|
@@ -191,12 +338,12 @@
|
|
191 |
<sidebar translate="label">
|
192 |
<label>Latest Reviews Visibility</label>
|
193 |
<frontend_type>text</frontend_type>
|
194 |
-
<sort_order>
|
195 |
<show_in_default>1</show_in_default>
|
196 |
<show_in_website>1</show_in_website>
|
197 |
<show_in_store>1</show_in_store>
|
198 |
<expanded>1</expanded>
|
199 |
-
<comment><![CDATA[Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews.<br/><br/>]]></comment>
|
200 |
<fields>
|
201 |
<left_heading translate="label">
|
202 |
<label>Left Sidebar</label>
|
@@ -254,7 +401,6 @@
|
|
254 |
<show_in_website>1</show_in_website>
|
255 |
<show_in_store>1</show_in_store>
|
256 |
<depends><left>1</left></depends>
|
257 |
-
<comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
|
258 |
</left_snippets>
|
259 |
<right_heading translate="label">
|
260 |
<label>Right Sidebar</label>
|
@@ -312,19 +458,18 @@
|
|
312 |
<show_in_website>1</show_in_website>
|
313 |
<show_in_store>1</show_in_store>
|
314 |
<depends><right>1</right></depends>
|
315 |
-
<comment>You can only activate the Rich Snippets when this block is shown on your Homepage only</comment>
|
316 |
</right_snippets>
|
317 |
</fields>
|
318 |
</sidebar>
|
319 |
<overview translate="label">
|
320 |
<label>WebwinkelKeur Overview Page</label>
|
321 |
<frontend_type>text</frontend_type>
|
322 |
-
<sort_order>
|
323 |
<show_in_default>1</show_in_default>
|
324 |
<show_in_website>1</show_in_website>
|
325 |
<show_in_store>1</show_in_store>
|
326 |
<expanded>1</expanded>
|
327 |
-
<comment><![CDATA[We can import your customer reviews and display them in your store as new content
|
328 |
<fields>
|
329 |
<enabled translate="label">
|
330 |
<label>Enabled</label>
|
@@ -355,15 +500,6 @@
|
|
355 |
<tooltip>Comma Separated, as: 10,20,30</tooltip>
|
356 |
<depends><enable_paging>1</enable_paging></depends>
|
357 |
</paging_settings>
|
358 |
-
<!--<add_toplink translate="label">
|
359 |
-
<label>Add a link to toplink</label>
|
360 |
-
<frontend_type>select</frontend_type>
|
361 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
362 |
-
<sort_order>4</sort_order>
|
363 |
-
<show_in_default>1</show_in_default>
|
364 |
-
<show_in_website>1</show_in_website>
|
365 |
-
<show_in_store>1</show_in_store>
|
366 |
-
</add_toplink>-->
|
367 |
<heading_meta translate="label">
|
368 |
<label>Meta Data</label>
|
369 |
<frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
|
@@ -401,130 +537,6 @@
|
|
401 |
</meta_keywords>
|
402 |
</fields>
|
403 |
</overview>
|
404 |
-
<invitation translate="label">
|
405 |
-
<label>Invitation to write the customer experience</label>
|
406 |
-
<frontend_type>text</frontend_type>
|
407 |
-
<sort_order>7</sort_order>
|
408 |
-
<show_in_default>1</show_in_default>
|
409 |
-
<show_in_website>1</show_in_website>
|
410 |
-
<show_in_store>1</show_in_store>
|
411 |
-
<expanded>1</expanded>
|
412 |
-
<comment><![CDATA[WebwinkelKeur can invite your customers to write customer reviews.<br>This feature is only available to PLUS members.<br>]]></comment>
|
413 |
-
<fields>
|
414 |
-
<enabled translate="label">
|
415 |
-
<label>Activate</label>
|
416 |
-
<frontend_type>select</frontend_type>
|
417 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
418 |
-
<sort_order>1</sort_order>
|
419 |
-
<show_in_default>1</show_in_default>
|
420 |
-
<show_in_website>1</show_in_website>
|
421 |
-
<show_in_store>1</show_in_store>
|
422 |
-
<comment>Send invitation?</comment>
|
423 |
-
<tooltip>Send customers automatically receive an invitation to share a customer experience. This feature is only available for WebwinkelKeur PLUS members.</tooltip>
|
424 |
-
</enabled>
|
425 |
-
<status>
|
426 |
-
<label>Order is Completed with status</label>
|
427 |
-
<frontend_type>select</frontend_type>
|
428 |
-
<source_model>webwinkelconnect/system_config_source_orderstatus</source_model>
|
429 |
-
<sort_order>2</sort_order>
|
430 |
-
<show_in_default>1</show_in_default>
|
431 |
-
<show_in_website>1</show_in_website>
|
432 |
-
<show_in_store>1</show_in_store>
|
433 |
-
<can_be_empty>1</can_be_empty>
|
434 |
-
<comment>Invitation e-mail is sent after such status is achieved</comment>
|
435 |
-
<tooltip>Specify at which status you want to send the invitation. Default is Completed</tooltip>
|
436 |
-
<depends><enabled>1</enabled></depends>
|
437 |
-
</status>
|
438 |
-
<delay translate="label">
|
439 |
-
<label>Delay</label>
|
440 |
-
<frontend_type>text</frontend_type>
|
441 |
-
<sort_order>3</sort_order>
|
442 |
-
<show_in_default>1</show_in_default>
|
443 |
-
<show_in_website>1</show_in_website>
|
444 |
-
<show_in_store>1</show_in_store>
|
445 |
-
<comment>Send the invitation x days after the order is completed</comment>
|
446 |
-
<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>
|
447 |
-
<depends><enabled>1</enabled></depends>
|
448 |
-
</delay>
|
449 |
-
<backlog translate="label">
|
450 |
-
<label>Maximum Delay</label>
|
451 |
-
<frontend_type>text</frontend_type>
|
452 |
-
<sort_order>4</sort_order>
|
453 |
-
<show_in_default>1</show_in_default>
|
454 |
-
<show_in_website>1</show_in_website>
|
455 |
-
<show_in_store>1</show_in_store>
|
456 |
-
<comment>Change only if necessary</comment>
|
457 |
-
<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 Webwinkelkeur.nl.</tooltip>
|
458 |
-
<depends><enabled>1</enabled></depends>
|
459 |
-
</backlog>
|
460 |
-
</fields>
|
461 |
-
</invitation>
|
462 |
-
<frontend translate="label">
|
463 |
-
<label>WebwinkelKeur Javascript Sidebar</label>
|
464 |
-
<frontend_type>text</frontend_type>
|
465 |
-
<sort_order>8</sort_order>
|
466 |
-
<show_in_default>1</show_in_default>
|
467 |
-
<show_in_website>1</show_in_website>
|
468 |
-
<show_in_store>1</show_in_store>
|
469 |
-
<expanded>1</expanded>
|
470 |
-
<comment><![CDATA[The WebwinkelKeur javascript integration ensures that your WebwinkelKeur to load page on your own web store. <br/> Now customers don't have to leave your store anymore to read the reviews. <br/> This effectively increases your conversion!<br><br>]]></comment>
|
471 |
-
<fields>
|
472 |
-
<enabled translate="label">
|
473 |
-
<label>Javascript Integration</label>
|
474 |
-
<frontend_type>select</frontend_type>
|
475 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
476 |
-
<sort_order>1</sort_order>
|
477 |
-
<show_in_default>1</show_in_default>
|
478 |
-
<show_in_website>1</show_in_website>
|
479 |
-
<show_in_store>1</show_in_store>
|
480 |
-
<comment>Insert the interactive WebwinkelKeur Sidebar</comment>
|
481 |
-
<tooltip>Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.</tooltip>
|
482 |
-
</enabled>
|
483 |
-
<sidebar translate="label">
|
484 |
-
<label>Show Sidebar</label>
|
485 |
-
<frontend_type>select</frontend_type>
|
486 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
487 |
-
<sort_order>2</sort_order>
|
488 |
-
<show_in_default>1</show_in_default>
|
489 |
-
<show_in_website>1</show_in_website>
|
490 |
-
<show_in_store>1</show_in_store>
|
491 |
-
<comment>Insert the interactive WebwinkelKeur Sidebar</comment>
|
492 |
-
<tooltip>Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.</tooltip>
|
493 |
-
</sidebar>
|
494 |
-
<tooltip translate="label">
|
495 |
-
<label>Tooltip</label>
|
496 |
-
<frontend_type>select</frontend_type>
|
497 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
498 |
-
<sort_order>3</sort_order>
|
499 |
-
<show_in_default>1</show_in_default>
|
500 |
-
<show_in_website>1</show_in_website>
|
501 |
-
<show_in_store>1</show_in_store>
|
502 |
-
<comment>Whether to display the mouseover tooltip</comment>
|
503 |
-
<depends><enabled>1</enabled></depends>
|
504 |
-
</tooltip>
|
505 |
-
<sidebar_position translate="label">
|
506 |
-
<label>Sidebar Position</label>
|
507 |
-
<frontend_type>select</frontend_type>
|
508 |
-
<source_model>webwinkelconnect/system_config_source_position</source_model>
|
509 |
-
<sort_order>4</sort_order>
|
510 |
-
<show_in_default>1</show_in_default>
|
511 |
-
<show_in_website>1</show_in_website>
|
512 |
-
<show_in_store>1</show_in_store>
|
513 |
-
<comment>The position of the sidebar</comment>
|
514 |
-
<depends><enabled>1</enabled></depends>
|
515 |
-
</sidebar_position>
|
516 |
-
<sidebar_height translate="label">
|
517 |
-
<label>Place of the sidebar</label>
|
518 |
-
<frontend_type>text</frontend_type>
|
519 |
-
<sort_order>5</sort_order>
|
520 |
-
<show_in_default>1</show_in_default>
|
521 |
-
<show_in_website>1</show_in_website>
|
522 |
-
<show_in_store>1</show_in_store>
|
523 |
-
<comment>Placement from top screen</comment>
|
524 |
-
<depends><enabled>1</enabled></depends>
|
525 |
-
</sidebar_height>
|
526 |
-
</fields>
|
527 |
-
</frontend>
|
528 |
<log translate="label">
|
529 |
<label>WebwinkelKeur Log Settings</label>
|
530 |
<frontend_type>text</frontend_type>
|
@@ -533,7 +545,7 @@
|
|
533 |
<show_in_website>0</show_in_website>
|
534 |
<show_in_store>0</show_in_store>
|
535 |
<expanded>1</expanded>
|
536 |
-
<comment><![CDATA[Logs can be activated in order to detect errors
|
537 |
<fields>
|
538 |
<enabled translate="label">
|
539 |
<label>Enable Log Function</label>
|
@@ -574,7 +586,7 @@
|
|
574 |
<show_in_website>1</show_in_website>
|
575 |
<show_in_store>1</show_in_store>
|
576 |
<expanded>1</expanded>
|
577 |
-
<comment><![CDATA[<p>The extension comes with two coded blocks
|
578 |
</snippets>
|
579 |
</groups>
|
580 |
</webwinkelconnect>
|
17 |
* @category Magmodules
|
18 |
* @package Magmodules_Webwinkelconnect
|
19 |
* @author Magmodules <info@magmodules.eu)
|
20 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
21 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
22 |
*/
|
23 |
-->
|
53 |
<show_in_website>1</show_in_website>
|
54 |
<show_in_store>1</show_in_store>
|
55 |
<expanded>1</expanded>
|
56 |
+
<comment><![CDATA[You can find the necessary information by logging in at https://dashboard.webwinkelkeur.nl. Navigate to Installation > Wizard and follow the installation instructions. As addition next to the activation of this extension we also recommend you to follow the installation wizard and install the WebwinkelKeur widget and banners.<br/><br/>]]></comment>
|
57 |
<fields>
|
58 |
+
<version translate="label">
|
59 |
+
<label>Extension Version</label>
|
60 |
+
<frontend_type>text</frontend_type>
|
61 |
+
<frontend_model>webwinkelconnect/adminhtml_system_version</frontend_model>
|
62 |
+
<sort_order>1</sort_order>
|
63 |
+
<show_in_default>1</show_in_default>
|
64 |
+
<show_in_website>0</show_in_website>
|
65 |
+
<show_in_store>0</show_in_store>
|
66 |
+
</version>
|
67 |
<enabled translate="label">
|
68 |
<label>Enabled</label>
|
69 |
<frontend_type>select</frontend_type>
|
70 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
71 |
+
<sort_order>2</sort_order>
|
72 |
<show_in_default>1</show_in_default>
|
73 |
<show_in_website>1</show_in_website>
|
74 |
<show_in_store>1</show_in_store>
|
92 |
<heading_api translate="label">
|
93 |
<label>API CREDENTIALS</label>
|
94 |
<frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
|
95 |
+
<sort_order>3</sort_order>
|
96 |
<show_in_default>1</show_in_default>
|
97 |
<show_in_website>0</show_in_website>
|
98 |
<show_in_store>1</show_in_store>
|
100 |
<api_id translate="label">
|
101 |
<label>Webshop ID</label>
|
102 |
<frontend_type>text</frontend_type>
|
103 |
+
<sort_order>4</sort_order>
|
104 |
<show_in_default>1</show_in_default>
|
105 |
<show_in_website>0</show_in_website>
|
106 |
<show_in_store>1</show_in_store>
|
109 |
<api_key translate="label">
|
110 |
<label>API Key</label>
|
111 |
<frontend_type>text</frontend_type>
|
112 |
+
<sort_order>5</sort_order>
|
113 |
<show_in_default>1</show_in_default>
|
114 |
<show_in_website>0</show_in_website>
|
115 |
<show_in_store>1</show_in_store>
|
116 |
<tooltip>You can find this information in your WebwinkelKeur account</tooltip>
|
117 |
</api_key>
|
118 |
<url translate="label">
|
119 |
+
<label>Url member page</label>
|
120 |
<frontend_type>text</frontend_type>
|
121 |
<sort_order>100</sort_order>
|
122 |
<show_in_default>1</show_in_default>
|
123 |
<show_in_website>0</show_in_website>
|
124 |
<show_in_store>1</show_in_store>
|
125 |
+
<tooltip>Automatically generated</tooltip>
|
126 |
</url>
|
127 |
</fields>
|
128 |
</general>
|
129 |
+
<invitation translate="label">
|
130 |
+
<label>Invitation to write review</label>
|
131 |
+
<frontend_type>text</frontend_type>
|
132 |
+
<sort_order>3</sort_order>
|
133 |
+
<show_in_default>1</show_in_default>
|
134 |
+
<show_in_website>1</show_in_website>
|
135 |
+
<show_in_store>1</show_in_store>
|
136 |
+
<expanded>1</expanded>
|
137 |
+
<comment><![CDATA[WebwinkelKeur can invite your customers to write customer reviews. It’s also possible to activate an extra reminder using the settings at https://dashboard.webwinkelkeur.nl. <strong>Note:</strong> this feature is only available to PLUS & EU members.<br/><br/>]]></comment>
|
138 |
+
<fields>
|
139 |
+
<enabled translate="label">
|
140 |
+
<label>Activate</label>
|
141 |
+
<frontend_type>select</frontend_type>
|
142 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
143 |
+
<sort_order>1</sort_order>
|
144 |
+
<show_in_default>1</show_in_default>
|
145 |
+
<show_in_website>1</show_in_website>
|
146 |
+
<show_in_store>1</show_in_store>
|
147 |
+
<comment>Send invitation?</comment>
|
148 |
+
<tooltip>Send customers automatically receive an invitation to share a customer experience. This feature is only available for WebwinkelKeur PLUS members.</tooltip>
|
149 |
+
</enabled>
|
150 |
+
<language>
|
151 |
+
<label>Language</label>
|
152 |
+
<frontend_type>select</frontend_type>
|
153 |
+
<source_model>webwinkelconnect/system_config_source_language</source_model>
|
154 |
+
<sort_order>2</sort_order>
|
155 |
+
<show_in_default>1</show_in_default>
|
156 |
+
<show_in_website>1</show_in_website>
|
157 |
+
<show_in_store>1</show_in_store>
|
158 |
+
<can_be_empty>1</can_be_empty>
|
159 |
+
<comment>Language of the review invitation email, leave empty for default language. Option only available for member with an EU membership</comment>
|
160 |
+
<depends><enabled>1</enabled></depends>
|
161 |
+
</language>
|
162 |
+
<status>
|
163 |
+
<label>Order is Completed with status</label>
|
164 |
+
<frontend_type>select</frontend_type>
|
165 |
+
<source_model>webwinkelconnect/system_config_source_orderstatus</source_model>
|
166 |
+
<sort_order>3</sort_order>
|
167 |
+
<show_in_default>1</show_in_default>
|
168 |
+
<show_in_website>1</show_in_website>
|
169 |
+
<show_in_store>1</show_in_store>
|
170 |
+
<can_be_empty>1</can_be_empty>
|
171 |
+
<comment>Invitation e-mail is sent after such status is achieved</comment>
|
172 |
+
<tooltip>Specify at which status you want to send the invitation. Default is Completed</tooltip>
|
173 |
+
<depends><enabled>1</enabled></depends>
|
174 |
+
</status>
|
175 |
+
<delay translate="label">
|
176 |
+
<label>Delay</label>
|
177 |
+
<frontend_type>text</frontend_type>
|
178 |
+
<sort_order>4</sort_order>
|
179 |
+
<show_in_default>1</show_in_default>
|
180 |
+
<show_in_website>1</show_in_website>
|
181 |
+
<show_in_store>1</show_in_store>
|
182 |
+
<comment>Send the invitation x days after the order is completed</comment>
|
183 |
+
<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>
|
184 |
+
<depends><enabled>1</enabled></depends>
|
185 |
+
</delay>
|
186 |
+
<backlog translate="label">
|
187 |
+
<label>Maximum Delay</label>
|
188 |
+
<frontend_type>text</frontend_type>
|
189 |
+
<sort_order>5</sort_order>
|
190 |
+
<show_in_default>1</show_in_default>
|
191 |
+
<show_in_website>1</show_in_website>
|
192 |
+
<show_in_store>1</show_in_store>
|
193 |
+
<comment>Change only if necessary</comment>
|
194 |
+
<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 Webwinkelkeur.nl.</tooltip>
|
195 |
+
<depends><enabled>1</enabled></depends>
|
196 |
+
</backlog>
|
197 |
+
</fields>
|
198 |
+
</invitation>
|
199 |
+
<frontend translate="label">
|
200 |
+
<label>WebwinkelKeur Javascript integration</label>
|
201 |
+
<frontend_type>text</frontend_type>
|
202 |
+
<sort_order>4</sort_order>
|
203 |
+
<show_in_default>1</show_in_default>
|
204 |
+
<show_in_website>1</show_in_website>
|
205 |
+
<show_in_store>1</show_in_store>
|
206 |
+
<expanded>1</expanded>
|
207 |
+
<comment><![CDATA[The WebwinkelKeur javascript integration ensures that your WebwinkelKeur to load page on your own web store. Now customers don't have to leave your store anymore to read the reviews. This effectively increases your conversion!<br><br>]]></comment>
|
208 |
+
<fields>
|
209 |
+
<enabled translate="label">
|
210 |
+
<label>Javascript Integration</label>
|
211 |
+
<frontend_type>select</frontend_type>
|
212 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
213 |
+
<sort_order>1</sort_order>
|
214 |
+
<show_in_default>1</show_in_default>
|
215 |
+
<show_in_website>1</show_in_website>
|
216 |
+
<show_in_store>1</show_in_store>
|
217 |
+
<comment>Activate the javascript integration.</comment>
|
218 |
+
<tooltip>Showing the sidebar ensures a higher confidence. Visitors can read the reviews without leaving the store.</tooltip>
|
219 |
+
</enabled>
|
220 |
+
<sidebar translate="label">
|
221 |
+
<label>Show Sidebar</label>
|
222 |
+
<frontend_type>select</frontend_type>
|
223 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
224 |
+
<sort_order>2</sort_order>
|
225 |
+
<show_in_default>1</show_in_default>
|
226 |
+
<show_in_website>1</show_in_website>
|
227 |
+
<show_in_store>1</show_in_store>
|
228 |
+
<depends><enabled>1</enabled></depends>
|
229 |
+
<comment>Insert the interactive WebwinkelKeur Sidebar</comment>
|
230 |
+
<tooltip>Showing the sidebar ensures a higher confidence. Visitors also do not have to leave to check the reviews which increases your conversion.</tooltip>
|
231 |
+
</sidebar>
|
232 |
+
<tooltip translate="label">
|
233 |
+
<label>Tooltip</label>
|
234 |
+
<frontend_type>select</frontend_type>
|
235 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
236 |
+
<sort_order>3</sort_order>
|
237 |
+
<show_in_default>1</show_in_default>
|
238 |
+
<show_in_website>1</show_in_website>
|
239 |
+
<show_in_store>1</show_in_store>
|
240 |
+
<comment>Whether to display the mouseover tooltip</comment>
|
241 |
+
<depends><enabled>1</enabled></depends>
|
242 |
+
</tooltip>
|
243 |
+
<sidebar_position translate="label">
|
244 |
+
<label>Sidebar Position</label>
|
245 |
+
<frontend_type>select</frontend_type>
|
246 |
+
<source_model>webwinkelconnect/system_config_source_position</source_model>
|
247 |
+
<sort_order>4</sort_order>
|
248 |
+
<show_in_default>1</show_in_default>
|
249 |
+
<show_in_website>1</show_in_website>
|
250 |
+
<show_in_store>1</show_in_store>
|
251 |
+
<comment>The position of the sidebar</comment>
|
252 |
+
<depends><enabled>1</enabled></depends>
|
253 |
+
</sidebar_position>
|
254 |
+
<sidebar_height translate="label">
|
255 |
+
<label>Place of the sidebar</label>
|
256 |
+
<frontend_type>text</frontend_type>
|
257 |
+
<sort_order>5</sort_order>
|
258 |
+
<show_in_default>1</show_in_default>
|
259 |
+
<show_in_website>1</show_in_website>
|
260 |
+
<show_in_store>1</show_in_store>
|
261 |
+
<comment>Placement from top screen</comment>
|
262 |
+
<depends><enabled>1</enabled></depends>
|
263 |
+
</sidebar_height>
|
264 |
+
</fields>
|
265 |
+
</frontend>
|
266 |
<reviews translate="label" module="webwinkelconnect">
|
267 |
<label>WebwinkelKeur Import Reviews</label>
|
268 |
<frontend_type>text</frontend_type>
|
269 |
+
<sort_order>5</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 |
<expanded>1</expanded>
|
274 |
+
<comment><![CDATA[To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually. This feature is only available to PLUS members.<br/><br/>]]></comment>
|
275 |
<fields>
|
276 |
<cron translate="label">
|
277 |
<label>Import Automatically</label>
|
308 |
<cron_all translate="label">
|
309 |
<label>Update Review History</label>
|
310 |
<frontend_type>select</frontend_type>
|
311 |
+
<source_model>webwinkelconnect/system_config_source_cronfrequencylong</source_model>
|
312 |
<sort_order>4</sort_order>
|
313 |
<show_in_default>1</show_in_default>
|
314 |
<show_in_website>1</show_in_website>
|
338 |
<sidebar translate="label">
|
339 |
<label>Latest Reviews Visibility</label>
|
340 |
<frontend_type>text</frontend_type>
|
341 |
+
<sort_order>6</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 |
<expanded>1</expanded>
|
346 |
+
<comment><![CDATA[Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews. To use this feature Importing reviews should be enabled. You can use this option instead of the WebwinkelKeur wizard to style the latest reviews yourself using CSS.<br/><br/>]]></comment>
|
347 |
<fields>
|
348 |
<left_heading translate="label">
|
349 |
<label>Left Sidebar</label>
|
401 |
<show_in_website>1</show_in_website>
|
402 |
<show_in_store>1</show_in_store>
|
403 |
<depends><left>1</left></depends>
|
|
|
404 |
</left_snippets>
|
405 |
<right_heading translate="label">
|
406 |
<label>Right Sidebar</label>
|
458 |
<show_in_website>1</show_in_website>
|
459 |
<show_in_store>1</show_in_store>
|
460 |
<depends><right>1</right></depends>
|
|
|
461 |
</right_snippets>
|
462 |
</fields>
|
463 |
</sidebar>
|
464 |
<overview translate="label">
|
465 |
<label>WebwinkelKeur Overview Page</label>
|
466 |
<frontend_type>text</frontend_type>
|
467 |
+
<sort_order>8</sort_order>
|
468 |
<show_in_default>1</show_in_default>
|
469 |
<show_in_website>1</show_in_website>
|
470 |
<show_in_store>1</show_in_store>
|
471 |
<expanded>1</expanded>
|
472 |
+
<comment><![CDATA[We can import your customer reviews and display them in your store as new content. To use this feature Importing reviews should be enabled. Eg. link: http://www.mywebshop.com/<strong>webwinkelkeur</strong><br><br>]]></comment>
|
473 |
<fields>
|
474 |
<enabled translate="label">
|
475 |
<label>Enabled</label>
|
500 |
<tooltip>Comma Separated, as: 10,20,30</tooltip>
|
501 |
<depends><enable_paging>1</enable_paging></depends>
|
502 |
</paging_settings>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
<heading_meta translate="label">
|
504 |
<label>Meta Data</label>
|
505 |
<frontend_model>webwinkelconnect/adminhtml_widget_form_heading</frontend_model>
|
537 |
</meta_keywords>
|
538 |
</fields>
|
539 |
</overview>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
540 |
<log translate="label">
|
541 |
<label>WebwinkelKeur Log Settings</label>
|
542 |
<frontend_type>text</frontend_type>
|
545 |
<show_in_website>0</show_in_website>
|
546 |
<show_in_store>0</show_in_store>
|
547 |
<expanded>1</expanded>
|
548 |
+
<comment><![CDATA[Logs can be activated in order to detect errors. This feature is particularly for developers.<br/><br/>]]></comment>
|
549 |
<fields>
|
550 |
<enabled translate="label">
|
551 |
<label>Enable Log Function</label>
|
586 |
<show_in_website>1</show_in_website>
|
587 |
<show_in_store>1</show_in_store>
|
588 |
<expanded>1</expanded>
|
589 |
+
<comment><![CDATA[<p>The extension comes with two coded blocks. 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="webwinkelconnect/snippets" name="webwinkelsnippets"}}</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/webwinkelconnect/widget/custom.phtml</p><p>Code: {{block type="webwinkelconnect/custom" name="webwinkelkeur"}}</p>]]></comment>
|
590 |
</snippets>
|
591 |
</groups>
|
592 |
</webwinkelconnect>
|
app/code/local/Magmodules/Webwinkelconnect/sql/webwinkelconnect_setup/mysql4-install-1.0.1.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
-
* @copyright Copyright (c)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
15 |
* @category Magmodules
|
16 |
* @package Magmodules_Webwinkelconnect
|
17 |
* @author Magmodules <info@magmodules.eu)
|
18 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
19 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
20 |
*/
|
21 |
|
app/design/frontend/base/default/template/magmodules/webwinkelconnect/sidebar/left.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$sidebarreviews = $this->getSidebarCollection('left');
|
@@ -30,10 +30,9 @@
|
|
30 |
<?php if($total->getPercentage() > 0): ?>
|
31 |
<?php if($this->getSnippetsEnabled('left')): ?>
|
32 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
33 |
-
<p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
|
34 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
35 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
36 |
-
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">
|
37 |
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
38 |
</div>
|
39 |
</div>
|
@@ -41,7 +40,7 @@
|
|
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(); ?> /
|
45 |
</div>
|
46 |
</div>
|
47 |
<?php endif; ?>
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (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');
|
30 |
<?php if($total->getPercentage() > 0): ?>
|
31 |
<?php if($this->getSnippetsEnabled('left')): ?>
|
32 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
|
|
33 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
34 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
35 |
+
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">10</span></strong></p>
|
36 |
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
37 |
</div>
|
38 |
</div>
|
40 |
<div class="block-content">
|
41 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
42 |
<div class="total-block-text">
|
43 |
+
<p><strong><?php echo $total->getStarsQty(); ?> / 10</strong></p>
|
44 |
</div>
|
45 |
</div>
|
46 |
<?php endif; ?>
|
app/design/frontend/base/default/template/magmodules/webwinkelconnect/sidebar/right.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
$sidebarreviews = $this->getSidebarCollection('right');
|
@@ -31,10 +31,9 @@
|
|
31 |
<?php if($total->getPercentage() > 0): ?>
|
32 |
<?php if($this->getSnippetsEnabled('right')): ?>
|
33 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
34 |
-
<p itemprop="name" class="company-name"><?php echo $total->getCompany(); ?></p>
|
35 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
36 |
<div class="total-block-text" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
37 |
-
<p><strong><span itemprop="ratingValue"><?php echo $total->getStarsQty(); ?></span> / <span itemprop="bestRating">
|
38 |
<p class="based-on"><?php echo $this->__('Based on %s reviews', '<span itemprop="ratingCount">' . $total->getVotes() . '</span>'); ?></p>
|
39 |
</div>
|
40 |
</div>
|
@@ -42,7 +41,7 @@
|
|
42 |
<div class="block-content">
|
43 |
<div class="total-block-stars"><span style="width: <?php echo $total->getPercentage(); ?>%"></span></div>
|
44 |
<div class="total-block-text">
|
45 |
-
<p><strong><?php echo $total->getStarsQty(); ?> /
|
46 |
</div>
|
47 |
</div>
|
48 |
<?php endif; ?>
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (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');
|
31 |
<?php if($total->getPercentage() > 0): ?>
|
32 |
<?php if($this->getSnippetsEnabled('right')): ?>
|
33 |
<div class="block-content" itemscope itemtype="http://schema.org/WebPage">
|
|
|
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">10</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(); ?> / 10</strong></p>
|
45 |
</div>
|
46 |
</div>
|
47 |
<?php endif; ?>
|
app/design/frontend/base/default/template/magmodules/webwinkelconnect/widget/custom.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
|
app/design/frontend/base/default/template/magmodules/webwinkelconnect/widget/richsnippets.phtml
CHANGED
@@ -16,25 +16,18 @@
|
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
-
* @copyright Copyright (c)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
23 |
<?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
<div itemscope="itemscope" itemtype="http://schema.org/
|
28 |
-
<
|
29 |
-
|
30 |
-
<p><?php echo Mage::helper('webwinkelconnect')->__('Rating %s based on %s customer reviews', '<span itemprop="ratingValue">' . $snippets->getPercentage() . '</span>%', '<span itemprop="ratingCount">' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
|
31 |
-
</div>
|
32 |
</div>
|
33 |
-
</div>
|
34 |
-
|
35 |
-
<div class="webwinkelconnect-snippets">
|
36 |
-
<?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
|
37 |
-
<p><?php echo Mage::helper('webwinkelconnect')->__('Rating %s based on %s customer reviews', '<span>' . $snippets->getPercentage() . '</span>%', '<span>' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
|
38 |
-
</div>
|
39 |
-
<?php } ?>
|
40 |
<?php } ?>
|
16 |
* @category Magmodules
|
17 |
* @package Magmodules_Webwinkelconnect
|
18 |
* @author Magmodules <info@magmodules.eu)
|
19 |
+
* @copyright Copyright (c) 2016 (http://www.magmodules.eu)
|
20 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
21 |
*/
|
22 |
?>
|
23 |
<?php if(($this->getSnippetsEnabled()) && ($snippets = $this->getSnippets())) { ?>
|
24 |
+
<div class="webwinkelconnect-snippets">
|
25 |
+
<?php echo $this->getHtmlStars($snippets->getPercentage()); ?>
|
26 |
+
<div itemscope="itemscope" itemtype="http://schema.org/WebPage">
|
27 |
+
<div itemprop="aggregateRating" itemscope="itemscope" itemtype="http://schema.org/AggregateRating">
|
28 |
+
<meta itemprop="bestRating" content="100">
|
29 |
+
<p><?php echo Mage::helper('webwinkelconnect')->__('Rating %s based on %s customer reviews', '<span itemprop="ratingValue">' . $snippets->getPercentage() . '</span>%', '<span itemprop="ratingCount">' . $snippets->getVotes() . '</span>') ?> <?php echo $this->getExternalLink(); ?> </p>
|
|
|
|
|
30 |
</div>
|
31 |
+
</div>
|
32 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
33 |
<?php } ?>
|
app/locale/nl_NL/Magmodules_Webwinkelconnect.csv
CHANGED
@@ -48,7 +48,7 @@
|
|
48 |
"Left","Links"
|
49 |
"Left Sidebar","Linker sidebar"
|
50 |
"Link to","Link naar"
|
51 |
-
"Logs can be activated in order to detect errors
|
52 |
"Magmodules","Magmodules"
|
53 |
"Manual","Handleiding"
|
54 |
"Maximum Delay","Maximale vertraging"
|
@@ -90,9 +90,9 @@
|
|
90 |
"Succefully deleted all %s saved review(s).","Alle %s opgeslagen beoordeling(en) zijn succesvol verwijdert."
|
91 |
"Test API","Test API"
|
92 |
"Time","Tijd"
|
93 |
-
"The WebwinkelKeur javascript integration ensures that your WebwinkelKeur to load page on your own web store.
|
94 |
"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.","Dit zal ervoor zorgen dat de klant na ontvangst van het product nogmaals een uitnodiging ontvangt. Dit vergroot de kans dat de klant zijn ervaring zal delen."
|
95 |
-
"To display the latest reviews in your store, you must import the reviews.
|
96 |
"Tooltip","Tooltip"
|
97 |
"Total of %d log record(s) deleted.","Totaal van %d log regel(s) zijn verwijdert."
|
98 |
"Total of %d review(s) were added to the sidebar.","Een totaal van %d beoordelingen zijn toegevoegd aan de sidebar."
|
@@ -123,11 +123,21 @@
|
|
123 |
"WebwinkelKeur Reviews","Beoordelingen"
|
124 |
"Webwinkelkeur Logs","Webwinkelkeur logs"
|
125 |
"WebwinkelKeur can invite your customers to write customer reviews.<br>This feature is only available to PLUS members.<br>","WebwinkelKeur heeft de mogelijkheid om klanten een herinnering te sturen om een beoordeling te schrijven.<br>Deze functie is enkel te gebruiken voor PLUS leden.<br><br>"
|
126 |
-
"Yes","Yes"
|
127 |
"You can find the necessary information in your WebwinkelKeur dashboard bottom of the page -Place WebwinkelKeur mark- <br/> As addition next to the activation of this extension we also recommend you to place the appropriate WebwinkelKeur logo and banner.<br/><br/>","U kunt de benodigde informatie vinden in uw WebwinkelKeur account onderaan de pagina -Place WebwinkelKeur mark- <br/>Naast het activeren van deze extensie wordt u aangeraden het WebwinkelKeur logo op uw webwinkel te tonen.<br/><br/>"
|
128 |
"You can find this information in your WebwinkelKeur account","Deze informatie is te vinden in uw WebwinkelKeur account"
|
129 |
"You can only activate the Rich Snippets when this block is shown on your Homepage only","U kunt deze optie enkel activeren wanneer de sidebar op de homepage wordt vertoond. Indien u ook gebruikt maakt van de homepage widget dan raden wij u aan deze optie uit te schakelen om dubbele Rich Snippets te voorkomen."
|
130 |
"and total score updated.","and total score updated."
|
131 |
"and total score updated.","totaal score geüpdate."
|
132 |
"on","aan"
|
133 |
-
"<p>The extension comes with two coded blocks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
"Left","Links"
|
49 |
"Left Sidebar","Linker sidebar"
|
50 |
"Link to","Link naar"
|
51 |
+
"Logs can be activated in order to detect errors. This feature is particularly for developers.<br/><br/>","De logfunctie kan worden geactiveerd om fouten op te slaan. Deze functie is voornamelijk voor ontwikkelaars.<br/><br/>"
|
52 |
"Magmodules","Magmodules"
|
53 |
"Manual","Handleiding"
|
54 |
"Maximum Delay","Maximale vertraging"
|
90 |
"Succefully deleted all %s saved review(s).","Alle %s opgeslagen beoordeling(en) zijn succesvol verwijdert."
|
91 |
"Test API","Test API"
|
92 |
"Time","Tijd"
|
93 |
+
"The WebwinkelKeur javascript integration ensures that your WebwinkelKeur to load page on your own web store. Now customers don't have to leave your store anymore to read the reviews. This effectively increases your conversion!<br><br>","Door het implementeren van dit Javascript heeft deze sidebar als voordeel dat de bezoeker de webwinkel niet hoeft te verlaten om beoordelingen te kunnen zien.<br><br>"
|
94 |
"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.","Dit zal ervoor zorgen dat de klant na ontvangst van het product nogmaals een uitnodiging ontvangt. Dit vergroot de kans dat de klant zijn ervaring zal delen."
|
95 |
+
"To display the latest reviews in your store, you must import the reviews. This can be done automatically or manually. This feature is only available to PLUS members.<br/><br/>","Om de laatste beoordelingen te tonen in de webwinkel dient u deze eerst te importeren. Dit kan volledig automatisch of handmatig, u heeft hiervoor ten alle tijden een WebwinkelKeur PLUS account nodig.<br/><br/>"
|
96 |
"Tooltip","Tooltip"
|
97 |
"Total of %d log record(s) deleted.","Totaal van %d log regel(s) zijn verwijdert."
|
98 |
"Total of %d review(s) were added to the sidebar.","Een totaal van %d beoordelingen zijn toegevoegd aan de sidebar."
|
123 |
"WebwinkelKeur Reviews","Beoordelingen"
|
124 |
"Webwinkelkeur Logs","Webwinkelkeur logs"
|
125 |
"WebwinkelKeur can invite your customers to write customer reviews.<br>This feature is only available to PLUS members.<br>","WebwinkelKeur heeft de mogelijkheid om klanten een herinnering te sturen om een beoordeling te schrijven.<br>Deze functie is enkel te gebruiken voor PLUS leden.<br><br>"
|
|
|
126 |
"You can find the necessary information in your WebwinkelKeur dashboard bottom of the page -Place WebwinkelKeur mark- <br/> As addition next to the activation of this extension we also recommend you to place the appropriate WebwinkelKeur logo and banner.<br/><br/>","U kunt de benodigde informatie vinden in uw WebwinkelKeur account onderaan de pagina -Place WebwinkelKeur mark- <br/>Naast het activeren van deze extensie wordt u aangeraden het WebwinkelKeur logo op uw webwinkel te tonen.<br/><br/>"
|
127 |
"You can find this information in your WebwinkelKeur account","Deze informatie is te vinden in uw WebwinkelKeur account"
|
128 |
"You can only activate the Rich Snippets when this block is shown on your Homepage only","U kunt deze optie enkel activeren wanneer de sidebar op de homepage wordt vertoond. Indien u ook gebruikt maakt van de homepage widget dan raden wij u aan deze optie uit te schakelen om dubbele Rich Snippets te voorkomen."
|
129 |
"and total score updated.","and total score updated."
|
130 |
"and total score updated.","totaal score geüpdate."
|
131 |
"on","aan"
|
132 |
+
"<p>The extension comes with two coded blocks. 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=""webwinkelconnect/snippets"" name=""webwinkelsnippets""}}</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/webwinkelconnect/widget/custom.phtml</p><p>Code: {{block type=""webwinkelconnect/custom"" name=""webwinkelkeur""}}</p>","<p>Deze extensie komt met 2 verschillende blokken. With this blocks you can add your store rating in a Static block or CMS page.</p><p><br><strong>Het Rich Snippets blok.</strong><br></strong>Toon de webwinkel-waardering met in blok en genereer hiermee de zogenaamde Rich Snippets waarbij de winkelbeoordelingen worden getoond in de Zoekmachine resultaten van bijvoorbeeld Google. Plaat de onderstaande code op de gewenste plaats in een statische blok of een CMS-pagina.</p> <p><strong>De code: </strong>{{block type=""webwinkelconnect/snippets"" name=""webwinkelsnippets""}}</p><p><br><strong>Custom blok.</strong><br>Met dit custom blok is het mogelijk om eenvoudig een eigen blok creëren met daarin verschillende waardes als het aantal klanbeoordelingen, bedrijfsnaam en gemiddelde rating. Plaats de onderstaande code op de gewenste plek in een statisch blok of een CMS-pagina. Om dit blok naar wens te bewerken en eventueel aan te vullen met de geweneste informatie is het mogelijk om het .phtml bestand aan te passen. Deze is te vinden via de volgende path: app/design/frontend/base/default/template/webwinkelconnect/widget/custom.phtml</p><p><strong>De code:</strong> {{block type=""webwinkelconnect/custom"" name=""webwinkelkeur""}}</p>"
|
133 |
+
"You can find the necessary information by logging in at https://dashboard.webwinkelkeur.nl. Navigate to Installation > Wizard and follow the installation instructions. As addition next to the activation of this extension we also recommend you to follow the installation wizard and install the WebwinkelKeur widget and banners.<br/><br/>","Je vindt deze informatie door in te loggen op https://dashboard.webwinkelkeur.nl. Navigeer naar Installatie > Wizard en volg de instructies. In de instructie tekst staat de API sleutel en het webwinkel id. Aanvullend op de installatie van deze extensie adviseren we je ook de installatie wizard te doorlopen. Plaats daarbij ook het WebwinkelKeur banner materiaal en de WebwinkelKeur widget.<br/><br/>"
|
134 |
+
"Url member page","Url ledenpagina"
|
135 |
+
"Automatically generated","Automatisch gegenereerd"
|
136 |
+
"Show the latest reviews directly in the right or left area of your store to gain trust and directly show your client reviews. To use this feature Importing reviews should be enabled. You can use this option instead of the WebwinkelKeur wizard to style the latest reviews yourself using CSS.<br/><br/>","Geef de nieuwste reviews direct weer op je eigen webwinkel. Om deze functie te gebruiken moet het importeren van reviews geactiveerd zijn. Je kunt deze functie gebruiken om in plaats van de WebwinkelKeur widget zelf de weergave te stylen middels CSS.<br/><br/>"
|
137 |
+
"We can import your customer reviews and display them in your store as new content. To use this feature Importing reviews should be enabled. Eg. link: http://www.mywebshop.com/<strong>webwinkelkeur</strong><br><br>","Wij kunnen reviews verzameld bij WebwinkelKeur importeren en weergeven op je eigen webwinkel. Om deze functie te gebruiken moet het importeren van reviews geactiveerd zijn. Voorbeeld link: http://www.mijnwebwinkel.nl/<strong>webwinkelkeur</strong><br><br>"
|
138 |
+
"WebwinkelKeur can invite your customers to write customer reviews. It’s also possible to activate an extra reminder using the settings at https://dashboard.webwinkelkeur.nl. <strong>Note:</strong> this feature is only available to PLUS & EU members.<br/><br/>","WebwinkelKeur heeft de mogelijkheid om klanten uit te nodigen om een beoordeling te schrijven. Het is tevens mogelijk de klant hier een tweede keer aan te herinneren via de instellingen op https://dashboard.webwinkelkeur.nl. <strong>Let op:</strong> deze functie is alleen beschikbaar voor leden met een PLUS of EU pakket.<br/><br/>"
|
139 |
+
"Activate the javascript integration.","Activeer javascript integratie."
|
140 |
+
"Enabled","Geactiveerd"
|
141 |
+
"Invitation to write review","Vragen om beoordeling"
|
142 |
+
"WebwinkelKeur Javascript integration","WebwinkelKeur Javascript integratie"
|
143 |
+
"Language of the review invitation email, leave empty for default language. Option only available for member with an EU membership","Taal van de uitnodigingsemail. Laat leeg om de standaardtaal te gebruiken. Optie alleen beschikbaar binnen het EU pakket."
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Webwinkelconnect</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 Webwinkelkeur</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>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Webwinkelconnect"><dir name="Block"><dir name="Adminhtml"><dir name="Webwinkellog"><file name="Grid.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magmodules_Webwinkelconnect</name>
|
4 |
+
<version>1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license/>
|
7 |
<channel>community</channel>
|
10 |
<description>Connect your Magento shop to Webwinkelkeur</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>2016-03-16</date>
|
14 |
+
<time>07:44:31</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Magmodules"><dir name="Webwinkelconnect"><dir name="Block"><dir name="Adminhtml"><dir name="System"><file name="Version.php" hash="1ba46a72ad79b7676564a3749288372f"/></dir><dir name="Webwinkellog"><file name="Grid.php" hash="49c90878ba370466315ef8f31b13125f"/></dir><dir name="Webwinkelreviews"><dir name="Renderer"><file name="Experience.php" hash="00059de0643e03b927422bf876ce0b62"/></dir><file name="Grid.php" hash="30acb5d78daf578d716fee8946db5c93"/></dir><dir name="Widget"><dir name="Buttons"><file name="Process.php" hash="a30f6c484054c6f7708d0478516e07a8"/><file name="Test.php" hash="04b11a53cd1e38c6ed0a3835f3d2502a"/></dir><dir name="Form"><file name="Heading.php" hash="5498ca0123d64a918382ca8f770785a2"/></dir><dir name="Grid"><file name="Log.php" hash="189a8353f1d796ffd18f69f58f50ffec"/><file name="Seconds.php" hash="252fa1ba18a6a1730e3f3c3b0b48a538"/><file name="Stars.php" hash="6e612fb47248a5785224a03557545a77"/></dir><dir name="Info"><file name="Info.php" hash="4e63eeda117003f51e439288db9bf6fe"/></dir></dir><file name="Webwinkellog.php" hash="91ae5cc3a71011f6b50c7cba0b848de2"/><file name="Webwinkelreviews.php" hash="0978a792e68fe7e05ebf01201aa8a1b4"/></dir><file name="Custom.php" hash="2e0ebd97f2a62a778187394ca86b4e69"/><file name="Reviews.php" hash="6ef47f43f23455cef296004f14ac876b"/><file name="Sidebar.php" hash="c0a2f7a47a6ef31ea89b0f957c3d566b"/><file name="Snippets.php" hash="1535a7bfbf96eddda9f69e2abb89d01d"/></dir><dir name="Helper"><file name="Data.php" hash="3569a8a61b7816a2ef192e3025a6f86d"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="29e0546a62ac65529d098e9f35de63a9"/></dir><dir name="Reviews"><file name="Collection.php" hash="277db9162cc77920dc9908f5e1632ca1"/></dir><dir name="Stats"><file name="Collection.php" hash="2aa92cf6d9fbdfea485a271b77b89773"/></dir><file name="Log.php" hash="a6075ad109911dfbba4246ff4515dd18"/><file name="Reviews.php" hash="0d67d2e3b474fa93731f83a9e19b9953"/><file name="Stats.php" hash="876f7786687b353b6c6b717cb7fe2078"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Cronfrequency.php" hash="2557eeef91be4487efdeb34c8bd1cb9c"/><file name="Cronfrequencylong.php" hash="f117dc0e59d619a56a575d1c224ca575"/><file name="Language.php" hash="0250136500c2af5cde6de8212d9fa00e"/><file name="Orderstatus.php" hash="739d600e0fcba5bdaf7b9cb5422e966d"/><file name="Position.php" hash="59cc0d6fcf673497ac792739c1839fc1"/><file name="Sidebarlink.php" hash="d3de1d3e38abeaae2e5ad48f7e045f98"/></dir></dir></dir><file name="Api.php" hash="31082b27d0fb5c119f8c5990928f7618"/><file name="Log.php" hash="b3467e859fde0036023a73d2a47ad64f"/><file name="Observer.php" hash="570ff211feb36ecd56a98a9db5b05d7d"/><file name="Reviews.php" hash="337157bef7a04c2dcfd61b9253364d12"/><file name="Stats.php" hash="9d47fa394271ace74498a9acfe37dec0"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="WebwinkellogController.php" hash="aa2db0805340d3379bb8592bf452e9e7"/><file name="WebwinkelreviewsController.php" hash="2392fdda21c551dcfe1a1a09b86b907b"/></dir><file name="IndexController.php" hash="f14fade8dff7311f4ad1e72c36c59c17"/></dir><dir name="data"><dir name="webwinkelconnect_setup"><file name="data-upgrade-1.0.8-1.0.9.php" hash="9d1bd623e60b70d1f7b8a45eb7de3c32"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="50b3069d0b78206dd00b3870fa541365"/><file name="config.xml" hash="06402a72bca229dfc2e780daaf55d4a0"/><file name="system.xml" hash="b0af3bbf87980728eb9d57b50985f6a5"/></dir><dir name="sql"><dir name="webwinkelconnect_setup"><file name="mysql4-install-1.0.1.php" hash="e61ce8348d2280577f3dac4887093ad2"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelconnect.xml" hash="0e589fce607f517314266dea8ef7e34b"/></dir><dir name="template"><dir name="magmodules"><dir name="webwinkelconnect"><dir name="sidebar"><file name="js-sidebar.phtml" hash="24f9f033fd87089371d212b18a600130"/><file name="left.phtml" hash="f28722c811d1bcd92d9ea0b70a610892"/><file name="right.phtml" hash="fb6e0be0932a38707a7fcb61d460cbda"/></dir><dir name="widget"><file name="custom.phtml" hash="51a272f137502471e21556f6a4a6580f"/><file name="richsnippets.phtml" hash="2c72e6454b326fe6097b4ee2054f9794"/></dir><file name="index.phtml" hash="886f1c12663219bbd0111d100abd738f"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magmodules_webwinkelconnect.xml" hash="34b4d3252daa7c80d230b049e0b73311"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magmodules_Webwinkelconnect.xml" hash="1784309611987476302cb191d4da009d"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magmodules_Webwinkelconnect.csv" hash="efbc09050642b8b557749803b1b29d62"/></dir><dir name="nl_NL"><file name="Magmodules_Webwinkelconnect.csv" hash="c755522d4c35d08e0f5013cbfadeea9c"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magmodules"><dir name="webwinkelconnect"><dir name="images"><file name="5-stars-empty.png" hash="799c499ca785331e7e69d892df52dd48"/><file name="5-stars-full.png" hash="1d06151a2c4da6bb71381538c8a903a5"/><file name="bkg_rating.gif" hash="0efa835d6b68d7f8042170b182ace2a9"/><file name="greystar.png" hash="ab99888c7a8f47826ad7a83bcabf9130"/><file name="star.png" hash="647c77f0ef881fb2a90a4f53f70d75fa"/></dir><file name="richsnippets.css" hash="e402d40db02e62f100d12d6dcc963e91"/><file name="sidebar.css" hash="2ce0e0147ac565e6819a43fd68ea331e"/><file name="style.css" hash="4de2d4973d80a8e99045b1d0053ae9f7"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magmodules"><dir name="webwinkelconnect"><file name="grid.css" hash="ce720c1772a8176eabf3866fcd83bb7a"/><file name="star.png" hash="4beacfb62ebdd5feecd946494e895f4c"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
skin/frontend/base/default/magmodules/webwinkelconnect/richsnippets.css
CHANGED
@@ -24,14 +24,15 @@
|
|
24 |
|
25 |
.webwinkelconnect-snippets .rating-box {
|
26 |
float: left;
|
|
|
27 |
margin-right: 5px;
|
28 |
-
margin-top:
|
29 |
-
width: 60px;
|
30 |
-
height: 13px;
|
31 |
-
font-size:0;
|
32 |
background:url('images/bkg_rating.gif') 0 0 repeat-x;
|
33 |
-
text-indent:-999em;
|
34 |
-
overflow:hidden;
|
35 |
}
|
36 |
|
37 |
.webwinkelconnect-snippets .rating {
|
24 |
|
25 |
.webwinkelconnect-snippets .rating-box {
|
26 |
float: left;
|
27 |
+
padding-right: 4px;
|
28 |
margin-right: 5px;
|
29 |
+
margin-top: 6px;
|
30 |
+
width: 60px;
|
31 |
+
height: 13px;
|
32 |
+
font-size:0;
|
33 |
background:url('images/bkg_rating.gif') 0 0 repeat-x;
|
34 |
+
text-indent:-999em;
|
35 |
+
overflow:hidden;
|
36 |
}
|
37 |
|
38 |
.webwinkelconnect-snippets .rating {
|
skin/frontend/base/default/magmodules/webwinkelconnect/style.css
CHANGED
@@ -32,26 +32,25 @@
|
|
32 |
}
|
33 |
|
34 |
.webwinkelkeur .about-webwinkelkeur {
|
35 |
-
float: left;
|
36 |
-
width: 70%;
|
37 |
}
|
38 |
|
39 |
.webwinkelkeur .stats-webwinkelkeur {
|
40 |
-
float:
|
41 |
-
|
42 |
-
text-align: center;
|
43 |
}
|
44 |
|
45 |
.webwinkelkeur .ratingblock-webwinkelkeur {
|
46 |
-
width:
|
47 |
height: 60px;
|
48 |
-
padding:
|
49 |
font-weight: bold;
|
50 |
-
font-size:
|
51 |
-
|
52 |
-
|
|
|
53 |
border: 4px solid white;
|
54 |
-
box-shadow:
|
|
|
55 |
}
|
56 |
|
57 |
.webwinkelkeur .content-webwinkelkeur {
|
32 |
}
|
33 |
|
34 |
.webwinkelkeur .about-webwinkelkeur {
|
|
|
|
|
35 |
}
|
36 |
|
37 |
.webwinkelkeur .stats-webwinkelkeur {
|
38 |
+
float: left;
|
39 |
+
margin: 20px 10px 10px 0px;
|
|
|
40 |
}
|
41 |
|
42 |
.webwinkelkeur .ratingblock-webwinkelkeur {
|
43 |
+
width: 100px;
|
44 |
height: 60px;
|
45 |
+
padding: 8px 0px 0px 0px;
|
46 |
font-weight: bold;
|
47 |
+
font-size: 12px;
|
48 |
+
text-align: center;
|
49 |
+
margin: 10px;
|
50 |
+
border-radius: 10px;
|
51 |
border: 4px solid white;
|
52 |
+
box-shadow: 0px 0px 1px #CCCCCC;
|
53 |
+
float: inherit;
|
54 |
}
|
55 |
|
56 |
.webwinkelkeur .content-webwinkelkeur {
|