kiyoh_customerreview - Version 2.1.0.8

Version Notes

Fixed work curl
Fixed mode Purchase
Fixed work module on magento 1.4-1.5

Download this release

Release Info

Developer webmeester
Extension kiyoh_customerreview
Version 2.1.0.8
Comparing to
See all releases


Code changes from version 2.1.0.7 to 2.1.0.8

Kiyoh-Manual_Dutch+UK.pdf DELETED
Binary file
app/code/community/Kiyoh/Customerreview/Adminhtml/Model/System/Config/Source/Orderstatus.php CHANGED
@@ -1,24 +1,39 @@
1
- <?php
2
- /**
3
- * My own options
4
- *
5
- */
6
- class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Orderstatus
7
- {
8
-
9
- /**
10
- * Options getter
11
- *
12
- * @return array
13
- */
14
- public function toOptionArray()
15
- {
16
- $data = Mage::getModel('sales/order_status')->getResourceCollection()->getData();
17
- foreach($data as $key => $item){
18
- $data[$key]['value'] = $item['status'];
19
- }
20
- return $data;
21
- }
22
-
23
- }
24
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @category Kiyoh
5
+ * @package Kiyoh_Customerreview
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Orderstatus {
10
+
11
+ /**
12
+ * Options getter
13
+ *
14
+ * @return array
15
+ */
16
+ public function toOptionArray() {
17
+ $magentoVersion = Mage::getVersion();
18
+ if (version_compare($magentoVersion, '1.5', '>=')) {
19
+ //version is 1.5 or greater
20
+ $data = Mage::getModel('sales/order_status')->getResourceCollection()->getData();
21
+ foreach ($data as $key => $item) {
22
+ $data[$key]['value'] = $item['status'];
23
+ }
24
+ return $data;
25
+ } else {
26
+ //version is below 1.5
27
+ $data = Mage::getSingleton('sales/order_config')->getStatuses();
28
+ $dataArray = array();
29
+ $i = 0;
30
+ foreach ($data as $key => $item) {
31
+ $dataArray[$i]['value'] = $key;
32
+ $dataArray[$i]['label'] = $item;
33
+ $i++;
34
+ }
35
+ return $dataArray;
36
+ }
37
+ }
38
+
39
+ }
app/code/community/Kiyoh/Customerreview/Adminhtml/Model/System/Config/Source/Orderstatus.php~ ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * My own options
4
+ *
5
+ */
6
+ class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Orderstatus
7
+ {
8
+
9
+ /**
10
+ * Options getter
11
+ *
12
+ * @return array
13
+ */
14
+ public function toOptionArray()
15
+ {
16
+ $data = Mage::getModel('sales/order_status')->getResourceCollection()->getData();
17
+ foreach($data as $key => $item){
18
+ $data[$key]['value'] = $item['status'];
19
+ }
20
+ return $data;
21
+ }
22
+
23
+ }
24
+ ?>
app/code/community/Kiyoh/Customerreview/Adminhtml/Model/System/Config/Source/Reviewevents.php CHANGED
@@ -1,26 +1,26 @@
1
- <?php
2
- /**
3
- * My own options
4
- *
5
- */
6
- class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Reviewevents
7
- {
8
-
9
- /**
10
- * Options getter
11
- *
12
- * @return array
13
- */
14
- public function toOptionArray()
15
- {
16
- return array(
17
- array('value' => '', 'label'=>Mage::helper('adminhtml')->__('')),
18
- array('value' => 'Shipping', 'label'=>Mage::helper('adminhtml')->__('Shipping')),
19
- array('value' => 'Purchase', 'label'=>Mage::helper('adminhtml')->__('Purchase')),
20
- array('value' => 'Orderstatus', 'label'=>Mage::helper('adminhtml')->__('Order status change')),
21
-
22
- );
23
- }
24
-
25
- }
26
  ?>
1
+ <?php
2
+ /**
3
+ * My own options
4
+ *
5
+ */
6
+ class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Reviewevents
7
+ {
8
+
9
+ /**
10
+ * Options getter
11
+ *
12
+ * @return array
13
+ */
14
+ public function toOptionArray()
15
+ {
16
+ return array(
17
+ array('value' => '', 'label'=>Mage::helper('adminhtml')->__('')),
18
+ array('value' => 'Shipping', 'label'=>Mage::helper('adminhtml')->__('Shipping')),
19
+ array('value' => 'Purchase', 'label'=>Mage::helper('adminhtml')->__('Purchase')),
20
+ array('value' => 'Orderstatus', 'label'=>Mage::helper('adminhtml')->__('Order status change')),
21
+
22
+ );
23
+ }
24
+
25
+ }
26
  ?>
app/code/community/Kiyoh/Customerreview/Adminhtml/Model/System/Config/Source/Reviewserver.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- /**
3
- * My own options
4
- *
5
- */
6
- class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Reviewserver
7
- {
8
-
9
- /**
10
- * Options getter
11
- *
12
- * @return array
13
- */
14
- public function toOptionArray()
15
- {
16
- return array(
17
- array('value' => 'kiyoh.nl', 'label'=>Mage::helper('adminhtml')->__('Kiyoh Netherlands')),
18
- array('value' => 'kiyoh.com', 'label'=>Mage::helper('adminhtml')->__('Kiyoh International')),
19
-
20
- );
21
- }
22
-
23
- }
24
  ?>
1
+ <?php
2
+ /**
3
+ * My own options
4
+ *
5
+ */
6
+ class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Reviewserver
7
+ {
8
+
9
+ /**
10
+ * Options getter
11
+ *
12
+ * @return array
13
+ */
14
+ public function toOptionArray()
15
+ {
16
+ return array(
17
+ array('value' => 'kiyoh.nl', 'label'=>Mage::helper('adminhtml')->__('Kiyoh Netherlands')),
18
+ array('value' => 'kiyoh.com', 'label'=>Mage::helper('adminhtml')->__('Kiyoh International')),
19
+
20
+ );
21
+ }
22
+
23
+ }
24
  ?>
app/code/community/Kiyoh/Customerreview/Block/Customerreview.php CHANGED
@@ -1,17 +1,17 @@
1
- <?php
2
- class Kiyoh_Customerreview_Block_Customerreview extends Mage_Core_Block_Template
3
- {
4
- public function _prepareLayout()
5
- {
6
- return parent::_prepareLayout();
7
- }
8
-
9
- public function getCustomerreview()
10
- {
11
- if (!$this->hasData('customerreview')) {
12
- $this->setData('customerreview', Mage::registry('customerreview'));
13
- }
14
- return $this->getData('customerreview');
15
-
16
- }
17
  }
1
+ <?php
2
+ class Kiyoh_Customerreview_Block_Customerreview extends Mage_Core_Block_Template
3
+ {
4
+ public function _prepareLayout()
5
+ {
6
+ return parent::_prepareLayout();
7
+ }
8
+
9
+ public function getCustomerreview()
10
+ {
11
+ if (!$this->hasData('customerreview')) {
12
+ $this->setData('customerreview', Mage::registry('customerreview'));
13
+ }
14
+ return $this->getData('customerreview');
15
+
16
+ }
17
  }
app/code/community/Kiyoh/Customerreview/Helper/Data.php CHANGED
@@ -1,6 +1,6 @@
1
- <?php
2
-
3
- class Kiyoh_Customerreview_Helper_Data extends Mage_Core_Helper_Abstract
4
- {
5
-
6
  }
1
+ <?php
2
+
3
+ class Kiyoh_Customerreview_Helper_Data extends Mage_Core_Helper_Abstract
4
+ {
5
+
6
  }
app/code/community/Kiyoh/Customerreview/Model/Customerreview.php CHANGED
@@ -1,10 +1,10 @@
1
- <?php
2
-
3
- class Kiyoh_Customerreview_Model_Customerreview extends Mage_Core_Model_Abstract
4
- {
5
- public function _construct()
6
- {
7
- parent::_construct();
8
- $this->_init('customerreview/customerreview');
9
- }
10
  }
1
+ <?php
2
+
3
+ class Kiyoh_Customerreview_Model_Customerreview extends Mage_Core_Model_Abstract
4
+ {
5
+ public function _construct()
6
+ {
7
+ parent::_construct();
8
+ $this->_init('customerreview/customerreview');
9
+ }
10
  }
app/code/community/Kiyoh/Customerreview/Model/Observer.php CHANGED
@@ -1,81 +1,86 @@
1
- <?php
2
-
3
- class Kiyoh_Customerreview_Model_Observer
4
- {
5
- public function salesOrderShipmentSaveAfter(Varien_Event_Observer $observer)
6
- {
7
- $shipment = $observer->getEvent()->getShipment();
8
- $order = $shipment->getOrder();
9
- $storeId = $order->getStoreId();
10
-
11
- $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
12
- $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
13
-
14
- if ($kiyoh_eventval === 'Shipping' && $kiyoh_status =='1'){
15
- $this->sendRequest($order);
16
- }
17
- }
18
- public function salesOrderPaymentAfter(Varien_Event_Observer $observer)
19
- {
20
- $order = $observer->getOrder();
21
- $storeId = $order->getStoreId();
22
-
23
- $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
24
- $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
25
-
26
- if ($kiyoh_eventval === 'Purchase' && $kiyoh_status =='1'){
27
- $this->sendRequest($order);
28
- }
29
- }
30
-
31
- public function salesOrderSaveAfter($observer){
32
- $order = $observer->getOrder();
33
- $storeId = $order->getStoreId();
34
- $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
35
- $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
36
- $kiyoh_orderstatus = explode(',',Mage::getStoreConfig('customconfig/review_group/custom_event_order_status',$storeId));
37
-
38
- if ($kiyoh_eventval === 'Orderstatus' && $kiyoh_status =='1' && in_array($observer->getOrder()->getStatus(), $kiyoh_orderstatus)){
39
- $this->sendRequest($observer->getOrder());
40
- }
41
- }
42
- protected function sendRequest($order){
43
- $exclude_customer_groups = explode(',',Mage::getStoreConfig('customconfig/review_group/exclude_customer_groups',$storeId));
44
- if(in_array($order->getCustomerGroupId(),$exclude_customer_groups)){
45
- return;
46
- }
47
- $email = $order->getCustomerEmail();
48
- $storeId = $order->getStoreId();
49
- $kiyoh_server = Mage::getStoreConfig('customconfig/review_group/custom_server',$storeId);
50
- $kiyoh_user = Mage::getStoreConfig('customconfig/review_group/custom_user',$storeId);
51
- $kiyoh_connector = Mage::getStoreConfig('customconfig/review_group/custom_connector',$storeId);
52
- $kiyoh_action = Mage::getStoreConfig('customconfig/review_group/custom_action',$storeId);
53
- $kiyoh_delay = Mage::getStoreConfig('customconfig/review_group/custom_delay',$storeId);
54
- $url = 'https://www.'.$kiyoh_server.'/set.php?user='.$kiyoh_user.'&connector='.$kiyoh_connector.'&action='.$kiyoh_action.'&targetMail='.$email.'&delay='.$kiyoh_delay;
55
-
56
- try{
57
- // create a new cURL resource
58
- $curl = curl_init();
59
-
60
- // set URL and other appropriate options
61
- curl_setopt($curl, CURLOPT_URL, $url);
62
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
63
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
64
- curl_setopt($curl, CURLOPT_HEADER, false);
65
- curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
66
- curl_setopt($curl, CURLOPT_TIMEOUT, 10);
67
- // grab URL and pass it to the browser
68
- $response = curl_exec($curl);
69
- if (curl_errno($curl)){
70
- throw new Exception(curl_error($curl).'---Url---'.$url);
71
- }
72
- if(Mage::getStoreConfig('customconfig/review_group/debug_enable',$storeId)){
73
- Mage::log($response.'---Url---'.$url, null, 'kiyoh.log');
74
- }
75
-
76
- } catch (Exception $e){
77
- Mage::log($e->getMessage(), null, 'kiyoh.log');
78
- }
79
- curl_close($curl);
80
- }
81
- }
 
 
 
 
 
1
+ <?php
2
+
3
+ class Kiyoh_Customerreview_Model_Observer
4
+ {
5
+ public function salesOrderShipmentSaveAfter(Varien_Event_Observer $observer)
6
+ {
7
+ $shipment = $observer->getEvent()->getShipment();
8
+ $order = $shipment->getOrder();
9
+ $storeId = $order->getStoreId();
10
+
11
+ $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
12
+ $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
13
+
14
+ if ($kiyoh_eventval === 'Shipping' && $kiyoh_status =='1'){
15
+ // Mage::log('salesOrderShipmentSaveAfter', null, 'kiyoh.log');
16
+ $this->sendRequest($order);
17
+ }
18
+ }
19
+ public function salesOrderPaymentAfter(Varien_Event_Observer $observer)
20
+ {
21
+ $order = $observer->getOrder();
22
+ $storeId = $order->getStoreId();
23
+
24
+ $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
25
+ $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
26
+
27
+ if ($kiyoh_eventval === 'Purchase' && $kiyoh_status =='1'){
28
+ // Mage::log('salesOrderPaymentAfter', null, 'kiyoh.log');
29
+ $this->sendRequest($order);
30
+ }
31
+ }
32
+
33
+ public function salesOrderSaveAfter($observer){
34
+ $order = $observer->getOrder();
35
+ $storeId = $order->getStoreId();
36
+ $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
37
+ $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
38
+ $kiyoh_orderstatus = explode(',',Mage::getStoreConfig('customconfig/review_group/custom_event_order_status',$storeId));
39
+
40
+ if ($kiyoh_eventval === 'Orderstatus' && $kiyoh_status =='1' && in_array($observer->getOrder()->getStatus(), $kiyoh_orderstatus)){
41
+ // Mage::log('salesOrderSaveAfter', null, 'kiyoh.log');
42
+ $this->sendRequest($observer->getOrder());
43
+ }
44
+ }
45
+ protected function sendRequest($order){
46
+ $storeId = $order->getStoreId();
47
+ $exclude_customer_groups = explode(',',Mage::getStoreConfig('customconfig/review_group/exclude_customer_groups',$storeId));
48
+ if(in_array($order->getCustomerGroupId(),$exclude_customer_groups)){
49
+ return;
50
+ }
51
+
52
+ $email = $order->getCustomerEmail();
53
+ $kiyoh_server = Mage::getStoreConfig('customconfig/review_group/custom_server',$storeId);
54
+ $kiyoh_user = Mage::getStoreConfig('customconfig/review_group/custom_user',$storeId);
55
+ $kiyoh_connector = Mage::getStoreConfig('customconfig/review_group/custom_connector',$storeId);
56
+ $kiyoh_action = Mage::getStoreConfig('customconfig/review_group/custom_action',$storeId);
57
+ $kiyoh_delay = Mage::getStoreConfig('customconfig/review_group/custom_delay',$storeId);
58
+ $url = 'https://www.'.$kiyoh_server.'/set.php?user='.$kiyoh_user.'&connector='.$kiyoh_connector.'&action='.$kiyoh_action.'&targetMail='.$email.'&delay='.$kiyoh_delay;
59
+
60
+ try{
61
+ // create a new cURL resource
62
+ $curl = curl_init();
63
+
64
+ // set URL and other appropriate options
65
+ curl_setopt($curl, CURLOPT_URL, $url);
66
+ curl_setopt($curl, CURLOPT_SSLVERSION,1);
67
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
68
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
69
+ curl_setopt($curl, CURLOPT_HEADER, false);
70
+ curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
71
+ curl_setopt($curl, CURLOPT_TIMEOUT, 10);
72
+ // grab URL and pass it to the browser
73
+ $response = curl_exec($curl);
74
+ if (curl_errno($curl)){
75
+ throw new Exception(curl_error($curl).'---Url---'.$url);
76
+ }
77
+ if(Mage::getStoreConfig('customconfig/review_group/debug_enable',$storeId)){
78
+ Mage::log($response.'---Url---'.$url, null, 'kiyoh.log');
79
+ }
80
+
81
+ } catch (Exception $e){
82
+ Mage::log($e->getMessage(), null, 'kiyoh.log');
83
+ }
84
+ curl_close($curl);
85
+ }
86
+ }
app/code/community/Kiyoh/Customerreview/Model/Status.php CHANGED
@@ -1,15 +1,15 @@
1
- <?php
2
-
3
- class Kiyoh_Customerreview_Model_Status extends Varien_Object
4
- {
5
- const STATUS_ENABLED = 1;
6
- const STATUS_DISABLED = 2;
7
-
8
- static public function getOptionArray()
9
- {
10
- return array(
11
- self::STATUS_ENABLED => Mage::helper('customerreview')->__('Enabled'),
12
- self::STATUS_DISABLED => Mage::helper('customerreview')->__('Disabled')
13
- );
14
- }
15
  }
1
+ <?php
2
+
3
+ class Kiyoh_Customerreview_Model_Status extends Varien_Object
4
+ {
5
+ const STATUS_ENABLED = 1;
6
+ const STATUS_DISABLED = 2;
7
+
8
+ static public function getOptionArray()
9
+ {
10
+ return array(
11
+ self::STATUS_ENABLED => Mage::helper('customerreview')->__('Enabled'),
12
+ self::STATUS_DISABLED => Mage::helper('customerreview')->__('Disabled')
13
+ );
14
+ }
15
  }
app/code/community/Kiyoh/Customerreview/etc/adminhtml.xml CHANGED
@@ -1,23 +1,23 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <customconfig translate="title" module="customerreview">
12
- <title>Customers</title>
13
- <sort_order>100</sort_order>
14
- </customconfig>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
  </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <customconfig translate="title" module="customerreview">
12
+ <title>Customers</title>
13
+ <sort_order>100</sort_order>
14
+ </customconfig>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
  </config>
app/code/community/Kiyoh/Customerreview/etc/config.xml CHANGED
@@ -1,103 +1,103 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Kiyoh
5
- * @package Kiyoh_Customerreview
6
- * @author ModuleCreator
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Kiyoh_Customerreview>
13
- <version>2.1.0.7</version>
14
- </Kiyoh_Customerreview>
15
- </modules>
16
- <!--<frontend>
17
- <routers>
18
- <customerreview>
19
- <use>standard</use>
20
- <args>
21
- <module>Kiyoh_Customerreview</module>
22
- <frontName>customerreview</frontName>
23
- </args>
24
- </customerreview>
25
- </routers>
26
- <layout>
27
- <updates>
28
- <customerreview>
29
- <file>customerreview.xml</file>
30
- </customerreview>
31
- </updates>
32
- </layout>
33
- </frontend>-->
34
-
35
- <!--<adminhtml>
36
- <layout>
37
- <updates>
38
- <customerreview>
39
- <file>customerreview.xml</file>
40
- </customerreview>
41
- </updates>
42
- </layout>
43
- </adminhtml>-->
44
- <global>
45
- <models>
46
- <customerreview_adminhtml>
47
- <class>Kiyoh_Customerreview_Adminhtml_Model</class>
48
- </customerreview_adminhtml>
49
-
50
- <customerreview>
51
- <class>Kiyoh_Customerreview_Model</class>
52
- </customerreview>
53
- </models>
54
- <blocks>
55
- <customerreview>
56
- <class>Kiyoh_Customerreview_Block</class>
57
- </customerreview>
58
- </blocks>
59
- <helpers>
60
- <customerreview>
61
- <class>Kiyoh_Customerreview_Helper</class>
62
- </customerreview>
63
- </helpers>
64
- <events>
65
- <sales_order_shipment_save_after>
66
- <observers>
67
- <customerreview>
68
- <type>singleton</type>
69
- <class>Kiyoh_Customerreview_Model_Observer</class>
70
- <method>salesOrderShipmentSaveAfter</method>
71
- </customerreview>
72
- </observers>
73
- </sales_order_shipment_save_after>
74
- <sales_order_place_after>
75
- <observers>
76
- <customerreview_payment>
77
- <type>singleton</type>
78
- <class>Kiyoh_Customerreview_Model_Observer</class>
79
- <method>salesOrderPaymentAfter</method>
80
- </customerreview_payment>
81
- </observers>
82
- </sales_order_place_after>
83
- <sales_order_save_after>
84
- <observers>
85
- <customerreview_orderstatus_change>
86
- <type>singleton</type>
87
- <class>Kiyoh_Customerreview_Model_Observer</class>
88
- <method>salesOrderSaveAfter</method>
89
- </customerreview_orderstatus_change>
90
- </observers>
91
- </sales_order_save_after>
92
- </events>
93
- </global>
94
- <default>
95
- <customconfig>
96
- <review_group>
97
- <custom_action>sendInvitation</custom_action>
98
- <custom_server>kiyoh.nl</custom_server>
99
- <debug_enable>1</debug_enable>
100
- </review_group>
101
- </customconfig>
102
- </default>
103
- </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Kiyoh
5
+ * @package Kiyoh_Customerreview
6
+ * @author ModuleCreator
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <modules>
12
+ <Kiyoh_Customerreview>
13
+ <version>2.1.0.7</version>
14
+ </Kiyoh_Customerreview>
15
+ </modules>
16
+ <!--<frontend>
17
+ <routers>
18
+ <customerreview>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Kiyoh_Customerreview</module>
22
+ <frontName>customerreview</frontName>
23
+ </args>
24
+ </customerreview>
25
+ </routers>
26
+ <layout>
27
+ <updates>
28
+ <customerreview>
29
+ <file>customerreview.xml</file>
30
+ </customerreview>
31
+ </updates>
32
+ </layout>
33
+ </frontend>-->
34
+
35
+ <!--<adminhtml>
36
+ <layout>
37
+ <updates>
38
+ <customerreview>
39
+ <file>customerreview.xml</file>
40
+ </customerreview>
41
+ </updates>
42
+ </layout>
43
+ </adminhtml>-->
44
+ <global>
45
+ <models>
46
+ <customerreview_adminhtml>
47
+ <class>Kiyoh_Customerreview_Adminhtml_Model</class>
48
+ </customerreview_adminhtml>
49
+
50
+ <customerreview>
51
+ <class>Kiyoh_Customerreview_Model</class>
52
+ </customerreview>
53
+ </models>
54
+ <blocks>
55
+ <customerreview>
56
+ <class>Kiyoh_Customerreview_Block</class>
57
+ </customerreview>
58
+ </blocks>
59
+ <helpers>
60
+ <customerreview>
61
+ <class>Kiyoh_Customerreview_Helper</class>
62
+ </customerreview>
63
+ </helpers>
64
+ <events>
65
+ <sales_order_shipment_save_after>
66
+ <observers>
67
+ <customerreview>
68
+ <type>singleton</type>
69
+ <class>Kiyoh_Customerreview_Model_Observer</class>
70
+ <method>salesOrderShipmentSaveAfter</method>
71
+ </customerreview>
72
+ </observers>
73
+ </sales_order_shipment_save_after>
74
+ <sales_order_place_after>
75
+ <observers>
76
+ <customerreview_payment>
77
+ <type>singleton</type>
78
+ <class>Kiyoh_Customerreview_Model_Observer</class>
79
+ <method>salesOrderPaymentAfter</method>
80
+ </customerreview_payment>
81
+ </observers>
82
+ </sales_order_place_after>
83
+ <sales_order_save_after>
84
+ <observers>
85
+ <customerreview_orderstatus_change>
86
+ <type>singleton</type>
87
+ <class>Kiyoh_Customerreview_Model_Observer</class>
88
+ <method>salesOrderSaveAfter</method>
89
+ </customerreview_orderstatus_change>
90
+ </observers>
91
+ </sales_order_save_after>
92
+ </events>
93
+ </global>
94
+ <default>
95
+ <customconfig>
96
+ <review_group>
97
+ <custom_action>sendInvitation</custom_action>
98
+ <custom_server>kiyoh.nl</custom_server>
99
+ <debug_enable>1</debug_enable>
100
+ </review_group>
101
+ </customconfig>
102
+ </default>
103
+ </config>
app/code/community/Kiyoh/Customerreview/etc/system.xml CHANGED
@@ -1,129 +1,129 @@
1
- <?xml version="1.0" ?>
2
- <config>
3
- <tabs>
4
- <mynew_tab module="customerreview" translate="label">
5
- <label>Customers</label>
6
- <sort_order>100</sort_order>
7
- </mynew_tab>
8
- </tabs>
9
- <sections>
10
- <customconfig module="customerreview" translate="label">
11
- <label>Kiyoh beoordelingen</label>
12
- <sort_order>200</sort_order>
13
- <show_in_default>1</show_in_default>
14
- <show_in_website>1</show_in_website>
15
- <show_in_store>1</show_in_store>
16
- <tab>mynew_tab</tab>
17
- <groups>
18
- <review_group translate="label">
19
- <label>Customers</label>
20
- <comment>Version 2.1.0.7</comment>
21
- <sort_order>10</sort_order>
22
- <show_in_default>1</show_in_default>
23
- <show_in_website>1</show_in_website>
24
- <show_in_store>1</show_in_store>
25
- <fields>
26
- <custom_enable translate="label">
27
- <label>Enable: </label>
28
- <comment>Source model provider Magento's default Yes/No values</comment>
29
- <frontend_type>select</frontend_type>
30
- <sort_order>0</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- <source_model>adminhtml/system_config_source_yesno</source_model>
35
- <comment>Recommended Value is Yes. On setting it to NO, module ll stop sending email invites to customers.</comment>
36
- </custom_enable>
37
-
38
- <custom_connector translate="label tooltip comment">
39
- <label>Enter Connector</label>
40
- <frontend_type>text</frontend_type>
41
- <sort_order>1</sort_order>
42
- <show_in_default>1</show_in_default>
43
- <show_in_website>1</show_in_website>
44
- <show_in_store>1</show_in_store>
45
- <comment>Enter here the Kiyoh Connector Code from your Kiyoh Account.</comment>
46
- </custom_connector>
47
- <custom_action translate="label tooltip comment">
48
-
49
- <frontend_type>hidden</frontend_type>
50
- <sort_order>2</sort_order>
51
- <show_in_default>0</show_in_default>
52
- <show_in_website>0</show_in_website>
53
- <show_in_store>0</show_in_store>
54
-
55
- </custom_action>
56
- <custom_user translate="label tooltip comment">
57
- <label>Company Email</label>
58
- <frontend_type>text</frontend_type>
59
- <sort_order>3</sort_order>
60
- <show_in_default>1</show_in_default>
61
- <show_in_website>1</show_in_website>
62
- <show_in_store>1</show_in_store>
63
- <comment>Enter here your "company email address" as registered in your KiyOh account. Not the "user email address"! </comment>
64
- </custom_user>
65
- <custom_delay translate="label tooltip comment">
66
- <label>Enter delay</label>
67
- <frontend_type>text</frontend_type>
68
- <sort_order>4</sort_order>
69
- <show_in_default>1</show_in_default>
70
- <show_in_website>1</show_in_website>
71
- <show_in_store>1</show_in_store>
72
- <comment>Enter here the delay(number of days) after which you would like to send review invite email to your customer. This delay applies after customer event(Shipping/Purchase - to be selected at next option). You may enter 0 to send review invite email immediately after customer event(Shipping/Purchase).</comment>
73
- </custom_delay>
74
- <custom_event translate="label tooltip comment">
75
- <label>Select Event</label>
76
- <frontend_type>select</frontend_type>
77
- <source_model>customerreview_adminhtml/system_config_source_reviewevents</source_model>
78
- <sort_order>5</sort_order>
79
- <show_in_default>1</show_in_default>
80
- <show_in_website>1</show_in_website>
81
- <show_in_store>1</show_in_store>
82
- <comment>Enter here the event after which you would like to send review invite email to your customer. Enter Shipping if your store sells products that need shipping. Enter Purchase if your store sells downloadable products(softwares).</comment>
83
- </custom_event>
84
- <custom_event_order_status translate="label">
85
- <label>Order Status</label>
86
- <frontend_type>multiselect</frontend_type>
87
- <source_model>customerreview_adminhtml/system_config_source_orderstatus</source_model>
88
- <sort_order>6</sort_order>
89
- <show_in_default>1</show_in_default>
90
- <show_in_website>1</show_in_website>
91
- <show_in_store>1</show_in_store>
92
- <depends><custom_event>Orderstatus</custom_event></depends>
93
- </custom_event_order_status>
94
- <custom_server translate="label tooltip comment">
95
- <label>Select Server</label>
96
- <frontend_type>select</frontend_type>
97
- <source_model>customerreview_adminhtml/system_config_source_reviewserver</source_model>
98
- <sort_order>7</sort_order>
99
- <show_in_default>1</show_in_default>
100
- <show_in_website>1</show_in_website>
101
- <show_in_store>1</show_in_store>
102
- <comment></comment>
103
- </custom_server>
104
- <exclude_customer_groups>
105
- <label>Exclude customer groups</label>
106
- <frontend_type>multiselect</frontend_type>
107
- <source_model>adminhtml/system_config_source_customer_group</source_model>
108
- <sort_order>10</sort_order>
109
- <show_in_default>1</show_in_default>
110
- <show_in_website>1</show_in_website>
111
- <show_in_store>1</show_in_store>
112
- <comment></comment>
113
- </exclude_customer_groups>
114
- <debug_enable translate="label">
115
- <label>Debug: </label>
116
- <frontend_type>select</frontend_type>
117
- <sort_order>100</sort_order>
118
- <show_in_default>1</show_in_default>
119
- <show_in_website>1</show_in_website>
120
- <show_in_store>1</show_in_store>
121
- <source_model>adminhtml/system_config_source_yesno</source_model>
122
- <comment>Debug file: var/log/kiyoh.log</comment>
123
- </debug_enable>
124
- </fields>
125
- </review_group>
126
- </groups>
127
- </customconfig>
128
- </sections>
129
  </config>
1
+ <?xml version="1.0" ?>
2
+ <config>
3
+ <tabs>
4
+ <mynew_tab module="customerreview" translate="label">
5
+ <label>Customers</label>
6
+ <sort_order>100</sort_order>
7
+ </mynew_tab>
8
+ </tabs>
9
+ <sections>
10
+ <customconfig module="customerreview" translate="label">
11
+ <label>Kiyoh beoordelingen</label>
12
+ <sort_order>200</sort_order>
13
+ <show_in_default>1</show_in_default>
14
+ <show_in_website>1</show_in_website>
15
+ <show_in_store>1</show_in_store>
16
+ <tab>mynew_tab</tab>
17
+ <groups>
18
+ <review_group translate="label">
19
+ <label>Customers</label>
20
+ <comment>Version 2.1.0.7</comment>
21
+ <sort_order>10</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <fields>
26
+ <custom_enable translate="label">
27
+ <label>Enable: </label>
28
+ <comment>Source model provider Magento's default Yes/No values</comment>
29
+ <frontend_type>select</frontend_type>
30
+ <sort_order>0</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ <source_model>adminhtml/system_config_source_yesno</source_model>
35
+ <comment>Recommended Value is Yes. On setting it to NO, module ll stop sending email invites to customers.</comment>
36
+ </custom_enable>
37
+
38
+ <custom_connector translate="label tooltip comment">
39
+ <label>Enter Connector</label>
40
+ <frontend_type>text</frontend_type>
41
+ <sort_order>1</sort_order>
42
+ <show_in_default>1</show_in_default>
43
+ <show_in_website>1</show_in_website>
44
+ <show_in_store>1</show_in_store>
45
+ <comment>Enter here the Kiyoh Connector Code from your Kiyoh Account.</comment>
46
+ </custom_connector>
47
+ <custom_action translate="label tooltip comment">
48
+
49
+ <frontend_type>hidden</frontend_type>
50
+ <sort_order>2</sort_order>
51
+ <show_in_default>0</show_in_default>
52
+ <show_in_website>0</show_in_website>
53
+ <show_in_store>0</show_in_store>
54
+
55
+ </custom_action>
56
+ <custom_user translate="label tooltip comment">
57
+ <label>Company Email</label>
58
+ <frontend_type>text</frontend_type>
59
+ <sort_order>3</sort_order>
60
+ <show_in_default>1</show_in_default>
61
+ <show_in_website>1</show_in_website>
62
+ <show_in_store>1</show_in_store>
63
+ <comment>Enter here your "company email address" as registered in your KiyOh account. Not the "user email address"! </comment>
64
+ </custom_user>
65
+ <custom_delay translate="label tooltip comment">
66
+ <label>Enter delay</label>
67
+ <frontend_type>text</frontend_type>
68
+ <sort_order>4</sort_order>
69
+ <show_in_default>1</show_in_default>
70
+ <show_in_website>1</show_in_website>
71
+ <show_in_store>1</show_in_store>
72
+ <comment>Enter here the delay(number of days) after which you would like to send review invite email to your customer. This delay applies after customer event(Shipping/Purchase - to be selected at next option). You may enter 0 to send review invite email immediately after customer event(Shipping/Purchase).</comment>
73
+ </custom_delay>
74
+ <custom_event translate="label tooltip comment">
75
+ <label>Select Event</label>
76
+ <frontend_type>select</frontend_type>
77
+ <source_model>customerreview_adminhtml/system_config_source_reviewevents</source_model>
78
+ <sort_order>5</sort_order>
79
+ <show_in_default>1</show_in_default>
80
+ <show_in_website>1</show_in_website>
81
+ <show_in_store>1</show_in_store>
82
+ <comment>Enter here the event after which you would like to send review invite email to your customer. Enter Shipping if your store sells products that need shipping. Enter Purchase if your store sells downloadable products(softwares).</comment>
83
+ </custom_event>
84
+ <custom_event_order_status translate="label">
85
+ <label>Order Status</label>
86
+ <frontend_type>multiselect</frontend_type>
87
+ <source_model>customerreview_adminhtml/system_config_source_orderstatus</source_model>
88
+ <sort_order>6</sort_order>
89
+ <show_in_default>1</show_in_default>
90
+ <show_in_website>1</show_in_website>
91
+ <show_in_store>1</show_in_store>
92
+ <depends><custom_event>Orderstatus</custom_event></depends>
93
+ </custom_event_order_status>
94
+ <custom_server translate="label tooltip comment">
95
+ <label>Select Server</label>
96
+ <frontend_type>select</frontend_type>
97
+ <source_model>customerreview_adminhtml/system_config_source_reviewserver</source_model>
98
+ <sort_order>7</sort_order>
99
+ <show_in_default>1</show_in_default>
100
+ <show_in_website>1</show_in_website>
101
+ <show_in_store>1</show_in_store>
102
+ <comment></comment>
103
+ </custom_server>
104
+ <exclude_customer_groups>
105
+ <label>Exclude customer groups</label>
106
+ <frontend_type>multiselect</frontend_type>
107
+ <source_model>adminhtml/system_config_source_customer_group</source_model>
108
+ <sort_order>10</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ <comment></comment>
113
+ </exclude_customer_groups>
114
+ <debug_enable translate="label">
115
+ <label>Debug: </label>
116
+ <frontend_type>select</frontend_type>
117
+ <sort_order>100</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ <source_model>adminhtml/system_config_source_yesno</source_model>
122
+ <comment>Debug file: var/log/kiyoh.log</comment>
123
+ </debug_enable>
124
+ </fields>
125
+ </review_group>
126
+ </groups>
127
+ </customconfig>
128
+ </sections>
129
  </config>
package.xml CHANGED
@@ -1,18 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kiyoh_customerreview</name>
4
- <version>2.1.0.7</version>
5
  <stability>stable</stability>
6
- <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>KiyOh.nl-gebruikers kunnen met deze plug-in automatisch klantbeoordelingen verzamelen,</summary>
10
- <description>KiyOh.nl-gebruikers kunnen met deze plug-in automatisch klantbeoordelingen verzamelen, publiceren en delen in social media. Wanneer een klant een bestelling heeft gemaakt in uw Magento Shop, wordt een e-mail uitnodiging automatisch na een paar dagen verstuurd om u te beoordelen. De e-mail wordt uit naam en e-mailadres van uw organisatie gestuurd, zodat uw klanten u herkennen. De e-mail tekst is aanpasbaar en bevat een persoonlijke en veilige link naar de pagina om te beoordelen. Vanaf nu worden de beoordelingen dus automatisch verzameld, gepubliceerd en gedeeld. Dat is nog eens handig!</description>
11
- <notes>KiyOh.nl-gebruikers kunnen met deze plug-in automatisch klantbeoordelingen verzamelen, publiceren en delen in social media. Wanneer een klant een bestelling heeft gemaakt in uw Magento Shop, wordt een e-mail uitnodiging automatisch na een paar dagen verstuurd om u te beoordelen. De e-mail wordt uit naam en e-mailadres van uw organisatie gestuurd, zodat uw klanten u herkennen. De e-mail tekst is aanpasbaar en bevat een persoonlijke en veilige link naar de pagina om te beoordelen. Vanaf nu worden de beoordelingen dus automatisch verzameld, gepubliceerd en gedeeld. Dat is nog eens handig!</notes>
 
 
 
 
12
  <authors><author><name>webmeester</name><user>kiyoh_magento</user><email>info@webmeester.eu</email></author></authors>
13
- <date>2014-10-21</date>
14
- <time>09:20:28</time>
15
- <contents><target name="magecommunity"><dir name="Kiyoh"><dir name="Customerreview"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Orderstatus.php" hash="68dc416b21d91823e506b05cc09c3f6c"/><file name="Reviewevents.php" hash="bec91300ce7358f7e40fa2652b9ab545"/><file name="Reviewserver.php" hash="de91656e5e87b96706ef10b212f6c513"/></dir></dir></dir></dir></dir><dir name="Block"><file name="Customerreview.php" hash="be8fa564fc669477445c9d8d1c7fba5c"/></dir><dir name="Helper"><file name="Data.php" hash="fda5c34b4da4ade55e107f88fc7c6287"/></dir><dir name="Model"><file name="Customerreview.php" hash="fb2f4a070079adce2670b871c1a4cd6a"/><file name="Observer.php" hash="c91beeb77cb453828b9f34b764e4f5ca"/><file name="Status.php" hash="8f23938b83ae9fa9cd404c99aa5716e7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6cf979d01f8317d9dd7a177747ab24f2"/><file name="config.xml" hash="9a3c0c89505dbdb115f455fb2087bfe0"/><file name="system.xml" hash="578a90540c917d52f91ee751ae1d8dce"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kiyoh_Customerreview.xml" hash="bbaf093738bc2b0835c48341a8849acb"/></dir></target><target name="mage"><dir name="."><file name="Kiyoh-Manual_Dutch+UK.pdf" hash="3c19995cafeb48b41af6d536dc9e66e1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kiyoh_customerreview</name>
4
+ <version>2.1.0.8</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>KiyOh.nl-gebruikers kunnen met deze plug-in automatisch klantbeoordelingen verzamelen</summary>
10
+ <description>&lt;p&gt;&lt;span&gt;KiyOh.nl-gebruikers kunnen met deze plug-in automatisch klantbeoordelingen verzamelen, publiceren en delen in social media. Wanneer een klant een bestelling heeft gemaakt in uw Magento Shop, wordt een e-mail uitnodiging automatisch na een paar dagen verstuurd om u te beoordelen. De e-mail wordt uit naam en e-mailadres van uw organisatie gestuurd, zodat uw klanten u herkennen. De e-mail tekst is aanpasbaar en bevat een persoonlijke en veilige link naar de pagina om te beoordelen. Vanaf nu worden de beoordelingen dus automatisch verzameld, gepubliceerd en gedeeld. Dat is nog eens handig!&lt;/span&gt;&lt;/p&gt;&#xD;
11
+ &lt;p&gt; &lt;/p&gt;&#xD;
12
+ &lt;p&gt;Download de volledige handleiding met instructies via:&lt;br /&gt; &lt;a href="http://www.kiyoh.nl/kiyoh_customerreview_manual.pdf"&gt;http://www.kiyoh.nl/kiyoh_customerreview_manual.pdf&lt;/a&gt; &lt;br /&gt;&lt;br /&gt; Download the complete manual with instructions here:&lt;br /&gt; &lt;a href="http://www.kiyoh.nl/kiyoh_customerreview_manual.pdf"&gt;http://www.kiyoh.nl/kiyoh_customerreview_manual.pdf&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;The manual holds both UK and Dutch descriptions.&lt;/p&gt;</description>
13
+ <notes>Fixed work curl&#xD;
14
+ Fixed mode Purchase&#xD;
15
+ Fixed work module on magento 1.4-1.5</notes>
16
  <authors><author><name>webmeester</name><user>kiyoh_magento</user><email>info@webmeester.eu</email></author></authors>
17
+ <date>2015-01-23</date>
18
+ <time>17:03:09</time>
19
+ <contents><target name="magecommunity"><dir name="Kiyoh"><dir name="Customerreview"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Orderstatus.php" hash="9d2dbfd56ff0753d5891afe043feff57"/><file name="Orderstatus.php~" hash="1456ada991c8540db5e4fc4343e60f06"/><file name="Reviewevents.php" hash="2f2cb18d12939198ff1d93864013c863"/><file name="Reviewserver.php" hash="f0f94d01b5c57cb0927caf294e765ea4"/></dir></dir></dir></dir></dir><dir name="Block"><file name="Customerreview.php" hash="f432ad8f99c6ea166af486a4ea52e29c"/></dir><dir name="Helper"><file name="Data.php" hash="88ba0e3070f175888d7ac157d48fd3f6"/></dir><dir name="Model"><file name="Customerreview.php" hash="300271d1ccb54387b8b34bca62241035"/><file name="Observer.php" hash="38db606cdc462ec8a2509a00e80add13"/><file name="Status.php" hash="644c20690349400e33f3e4bf606f2471"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b5c5e6c01a005284a28ce35c6b13ae59"/><file name="config.xml" hash="1d64c819287d09d11b9a4d6635e2d5b3"/><file name="system.xml" hash="13e16a42771cf145a3f9e5330fffb414"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kiyoh_Customerreview.xml" hash="bbaf093738bc2b0835c48341a8849acb"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>