Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Magmodules committed Jan 17, 2017
0 parents commit 87335f4
Show file tree
Hide file tree
Showing 67 changed files with 5,112 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
*.zip
.DS_Store
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# KiyOh Connect for Magento® 1

The Magento® KiyOh connector for Magento® 1 integrates KiyOh into your Magento® 1 store. Manage and show your KiyOh reviews and fully automate review invitations all from your Magento® Back-end.

## Development by Magmodules

We are a Dutch Magento® Only Agency dedicated to the development of extensions for Magento® 1 and Magento® 2. All our extensions are coded by our own team and our support team is always there to help you out.

[Visit Magmodules.eu](https://www.magmodules.eu/)

## About KiyOh

KiyOh is a specialist in customer ratings and reviews. Companies use KiyOh to ask customers for a rating and review and publish these on their webshop. This has advantages not only for consumers, but also for the company itself. Consumers can read the reviews of previous customers and know better what to expect of a company. Companies can learn from the customer feedback.

KiyOh started in 2009 and is growing fast. Meanwhile, there are already thousands of online shops that use KiyOh to collect ratings and reviews.

[Visit KiyOh.com](https://www.kiyoh.com/)

## Links

[Knowledgebase](https://www.magmodules.eu/help/webwinkelkeur)

[Terms and Conditions](https://www.magmodules.eu/terms.html)

[Contact Us](https://www.magmodules.eu/contact-us.html)
46 changes: 46 additions & 0 deletions app/code/local/Magmodules/Kiyoh/Block/Adminhtml/Kiyohlog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
/**
* Magmodules.eu - http://www.magmodules.eu
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magmodules.eu so we can send you a copy immediately.
*
* @category Magmodules
* @package Magmodules_Kiyoh
* @author Magmodules <info@magmodules.eu)
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

class Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog extends Mage_Adminhtml_Block_Widget_Grid_Container
{

/**
* Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog constructor.
*/
public function __construct()
{
$this->_controller = 'adminhtml_kiyohlog';
$this->_blockGroup = 'kiyoh';
$this->_headerText = Mage::helper('kiyoh')->__('Kiyoh Logs');

parent::__construct();

$this->_removeButton('add');
$this->_addButton(
'module_controller', array(
'label' => Mage::helper('kiyoh')->__('Cleanup Log'),
'onclick' => "setLocation('{$this->getUrl('adminhtml/kiyohlog/clean')}')",
'confirm' => Mage::helper('kiyoh')->__('Are you sure you want to cleanup logfiles?'),
)
);

}

}
162 changes: 162 additions & 0 deletions app/code/local/Magmodules/Kiyoh/Block/Adminhtml/Kiyohlog/Grid.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<?php
/**
* Magmodules.eu - http://www.magmodules.eu
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magmodules.eu so we can send you a copy immediately.
*
* @category Magmodules
* @package Magmodules_Kiyoh
* @author Magmodules <info@magmodules.eu)
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

class Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog_Grid extends Mage_Adminhtml_Block_Widget_Grid
{

/**
* Magmodules_Kiyoh_Block_Adminhtml_Kiyohlog_Grid constructor.
*/
public function __construct()
{
parent::__construct();
$this->setId('kiyohlogGrid');
$this->setDefaultSort('date');
$this->setDefaultDir('DESC');
$this->setSaveParametersInSession(true);
}

/**
* @return mixed
*/
protected function _prepareCollection()
{
$collection = Mage::getModel('kiyoh/log')->getCollection();
$this->setCollection($collection);
return parent::_prepareCollection();
}

/**
* @return mixed
*/
protected function _prepareColumns()
{
$this->addColumn(
'company', array(
'header' => Mage::helper('kiyoh')->__('Shop'),
'index' => 'company',
'width' => '120px',
)
);

$this->addColumn(
'type', array(
'header' => Mage::helper('kiyoh')->__('Type'),
'align' => 'left',
'index' => 'type',
'width' => '120',
'type' => 'options',
'options' => array(
'reviews' => Mage::helper('kiyoh')->__('Reviews'),
'invitation' => Mage::helper('kiyoh')->__('Invitation Call'),
),
)
);

if (Mage::app()->getRequest()->getParam('showapiurl')) {
$this->addColumn(
'api_url', array(
'header' => Mage::helper('kiyoh')->__('Api URL'),
'align' => 'left',
'index' => 'api_url',
'filter' => false,
'sortable' => false,
)
);
}

$this->addColumn(
'qty', array(
'header' => Mage::helper('kiyoh')->__('Description'),
'align' => 'left',
'index' => 'qty',
'renderer' => 'kiyoh/adminhtml_widget_grid_log',
'filter' => false,
'sortable' => false,
)
);

$this->addColumn(
'cron', array(
'header' => Mage::helper('kiyoh')->__('Cron'),
'align' => 'left',
'index' => 'cron',
'width' => '120',
'type' => 'options',
'options' => array(
'' => Mage::helper('kiyoh')->__('Manual'),
'stats' => Mage::helper('kiyoh')->__('Stats Cron'),
'reviews' => Mage::helper('kiyoh')->__('Reviews Cron'),
'orderupdate' => Mage::helper('kiyoh')->__('Invitation'),
),
)
);

$this->addColumn(
'time', array(
'header' => Mage::helper('kiyoh')->__('Time'),
'align' => 'left',
'index' => 'time',
'width' => '60',
'renderer' => 'kiyoh/adminhtml_widget_grid_seconds',
)
);

$this->addColumn(
'date', array(
'header' => Mage::helper('kiyoh')->__('Date'),
'align' => 'left',
'type' => 'datetime',
'index' => 'date',
'width' => '140',
)
);

return parent::_prepareColumns();
}

/**
* @return $this
*/
protected function _prepareMassaction()
{
$this->setMassactionIdField('id');
$this->getMassactionBlock()->setFormFieldName('logids');

$this->getMassactionBlock()->addItem(
'hide', array(
'label' => Mage::helper('kiyoh')->__('Delete'),
'url' => $this->getUrl('*/*/massDelete'),
)
);
return $this;
}

/**
* @param $row
*
* @return string
*/
public function getRowUrl($row)
{
return false;
}

}
46 changes: 46 additions & 0 deletions app/code/local/Magmodules/Kiyoh/Block/Adminhtml/Kiyohreviews.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php
/**
* Magmodules.eu - http://www.magmodules.eu
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magmodules.eu so we can send you a copy immediately.
*
* @category Magmodules
* @package Magmodules_Kiyoh
* @author Magmodules <info@magmodules.eu)
* @copyright Copyright (c) 2017 (http://www.magmodules.eu)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

class Magmodules_Kiyoh_Block_Adminhtml_Kiyohreviews extends Mage_Adminhtml_Block_Widget_Grid_Container
{

/**
* Magmodules_Kiyoh_Block_Adminhtml_Kiyohreviews constructor.
*/
public function __construct()
{
$this->_controller = 'adminhtml_kiyohreviews';
$this->_blockGroup = 'kiyoh';
$this->_headerText = Mage::helper('kiyoh')->__('Kiyoh Reviews');

parent::__construct();

$this->_removeButton('add');
$this->_addButton(
'module_controller', array(
'label' => Mage::helper('kiyoh')->__('Delete all reviews'),
'onclick' => "setLocation('{$this->getUrl('adminhtml/kiyohreviews/truncate')}')",
'confirm' => Mage::helper('kiyoh')->__('Are you sure you want to delete all reviews?'),
)
);

}

}
Loading

0 comments on commit 87335f4

Please sign in to comment.