kiyoh_customerreview - Version 1.6.9.0

Version 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!

Download this release

Release Info

Developer webmeester
Extension kiyoh_customerreview
Version 1.6.9.0
Comparing to
See all releases


Code changes from version 1.6.8.3 to 1.6.9.0

app/code/community/Kiyoh/Customerreview/Adminhtml/Model/Observer.php CHANGED
@@ -10,68 +10,12 @@ class Kiyoh_Customerreview_Adminhtml_Model_Observer
10
  $email = $order->getCustomerEmail();
11
  $storeId = $order->getStoreId();
12
 
13
- $kiyoh_tablePrefix = Mage::getConfig()->getTablePrefix();
14
- $kiyoh_read = Mage::getSingleton('core/resource')->getConnection('core_read');
15
-
16
- $kiyoh_val_detail = $kiyoh_read->fetchAll("SELECT * FROM ".$kiyoh_tablePrefix."core_store where store_id = '".$storeId."'");
17
- $kiyoh_websiteId = $kiyoh_val_detail[0]['website_id'];
18
- $kiyoh_core_detail = $kiyoh_read->fetchAll("SELECT * FROM ".$kiyoh_tablePrefix."core_config_data where scope='stores' AND scope_id = '".$storeId."'");
19
-
20
-
21
- foreach($kiyoh_core_detail as $value)
22
- {
23
-
24
- if($value['path'] == 'customconfig/review_group/custom_enable')
25
- {
26
- $kiyoh_status = $value['value'];
27
- }
28
- if($value['path'] == 'customconfig/review_group/custom_connector')
29
- {
30
- $kiyoh_connector = $value['value'];
31
- }
32
- if($value['path'] == 'customconfig/review_group/custom_action')
33
- {
34
- $kiyoh_action = $value['value'];
35
- }
36
- if($value['path'] == 'customconfig/review_group/custom_user')
37
- {
38
- $kiyoh_user = $value['value'];
39
- }
40
- if($value['path'] == 'customconfig/review_group/custom_delay')
41
- {
42
- $kiyoh_delay = $value['value'];
43
- }
44
- if($value['path'] == 'customconfig/review_group/custom_event')
45
- {
46
- $kiyoh_eventval = $value['value'];
47
- }
48
-
49
- }
50
-
51
- if($kiyoh_status == '')
52
- {
53
- $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable');
54
- }
55
- if($kiyoh_eventval == '')
56
- {
57
- $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event');
58
- }
59
- if($kiyoh_connector == '')
60
- {
61
- $kiyoh_connector = Mage::getStoreConfig('customconfig/review_group/custom_connector');
62
- }
63
- if($kiyoh_action == '')
64
- {
65
- $kiyoh_action = Mage::getStoreConfig('customconfig/review_group/custom_action');
66
- }
67
- if($kiyoh_user == '')
68
- {
69
- $kiyoh_user = Mage::getStoreConfig('customconfig/review_group/custom_user');
70
- }
71
- if($kiyoh_delay == '')
72
- {
73
- $kiyoh_delay = Mage::getStoreConfig('customconfig/review_group/custom_delay');
74
- }
75
 
76
  if($kiyoh_eventval == 'Shipping' && $kiyoh_status =='1')
77
  {
@@ -97,7 +41,6 @@ class Kiyoh_Customerreview_Adminhtml_Model_Observer
97
 
98
  Mage::log($response.'---Url---'.$url, null, 'kiyoh.log');
99
  curl_close($curl);
100
-
101
  }
102
  }
103
  }
10
  $email = $order->getCustomerEmail();
11
  $storeId = $order->getStoreId();
12
 
13
+ $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable',$storeId);
14
+ $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event',$storeId);
15
+ $kiyoh_connector = Mage::getStoreConfig('customconfig/review_group/custom_connector',$storeId);
16
+ $kiyoh_action = Mage::getStoreConfig('customconfig/review_group/custom_action',$storeId);
17
+ $kiyoh_user = Mage::getStoreConfig('customconfig/review_group/custom_user',$storeId);
18
+ $kiyoh_delay = Mage::getStoreConfig('customconfig/review_group/custom_delay',$storeId);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  if($kiyoh_eventval == 'Shipping' && $kiyoh_status =='1')
21
  {
41
 
42
  Mage::log($response.'---Url---'.$url, null, 'kiyoh.log');
43
  curl_close($curl);
 
44
  }
45
  }
46
  }
app/code/community/Kiyoh/Customerreview/Adminhtml/Model/System/Config/Source/Reviewevents.php CHANGED
@@ -14,6 +14,7 @@ class Kiyoh_Customerreview_Adminhtml_Model_System_Config_Source_Reviewevents
14
  public function toOptionArray()
15
  {
16
  return array(
 
17
  array('value' => 'Shipping', 'label'=>Mage::helper('adminhtml')->__('Shipping')),
18
  array('value' => 'Purchase', 'label'=>Mage::helper('adminhtml')->__('Purchase')),
19
 
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
 
app/code/community/Kiyoh/Customerreview/Model/Observer.php CHANGED
@@ -9,73 +9,14 @@ class Kiyoh_Customerreview_Model_Observer
9
  $order = $shipment->getOrder();
10
  $email = $order->getCustomerEmail();
11
  $storeId = $order->getStoreId();
12
-
13
- $kiyoh_tablePrefix = Mage::getConfig()->getTablePrefix();
14
- $kiyoh_read = Mage::getSingleton('core/resource')->getConnection('core_read');
15
-
16
- $kiyoh_val_detail = $kiyoh_read->fetchAll("SELECT * FROM ".$kiyoh_tablePrefix."core_store where store_id = '".$storeId."'");
17
- $kiyoh_websiteId = $kiyoh_val_detail[0]['website_id'];
18
- $kiyoh_core_detail = $kiyoh_read->fetchAll("SELECT * FROM ".$kiyoh_tablePrefix."core_config_data where scope='stores' AND scope_id = '".$storeId."'");
19
-
20
-
21
- foreach($kiyoh_core_detail as $value)
22
- {
23
-
24
- if($value['path'] == 'customconfig/review_group/custom_enable')
25
- {
26
- $kiyoh_status = $value['value'];
27
- }
28
- if($value['path'] == 'customconfig/review_group/custom_connector')
29
- {
30
- $kiyoh_connector = $value['value'];
31
- }
32
- if($value['path'] == 'customconfig/review_group/custom_action')
33
- {
34
- $kiyoh_action = $value['value'];
35
- }
36
- if($value['path'] == 'customconfig/review_group/custom_user')
37
- {
38
- $kiyoh_user = $value['value'];
39
- }
40
- if($value['path'] == 'customconfig/review_group/custom_delay')
41
- {
42
- $kiyoh_delay = $value['value'];
43
- }
44
- if($value['path'] == 'customconfig/review_group/custom_event')
45
- {
46
- $kiyoh_eventval = $value['value'];
47
- }
48
-
49
- }
50
-
51
- if($kiyoh_status == '')
52
- {
53
  $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable');
54
- }
55
- if($kiyoh_eventval == '')
56
- {
57
  $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event');
58
- }
59
- if($kiyoh_connector == '')
60
- {
61
  $kiyoh_connector = Mage::getStoreConfig('customconfig/review_group/custom_connector');
62
- }
63
- if($kiyoh_action == '')
64
- {
65
  $kiyoh_action = Mage::getStoreConfig('customconfig/review_group/custom_action');
66
- }
67
- if($kiyoh_user == '')
68
- {
69
  $kiyoh_user = Mage::getStoreConfig('customconfig/review_group/custom_user');
70
- }
71
- if($kiyoh_delay == '')
72
- {
73
  $kiyoh_delay = Mage::getStoreConfig('customconfig/review_group/custom_delay');
74
- }
75
-
76
  if($kiyoh_eventval == 'Shipping' && $kiyoh_status =='1')
77
  {
78
-
79
  $url = 'https://www.kiyoh.nl/set.php?user='.$kiyoh_user.'&connector='.$kiyoh_connector.'&action='.$kiyoh_action.'&targetMail='.$email.'&delay='.$kiyoh_delay;
80
 
81
  // create a new cURL resource
@@ -97,7 +38,6 @@ class Kiyoh_Customerreview_Model_Observer
97
 
98
  Mage::log($response.'---Url---'.$url, null, 'kiyoh.log');
99
  curl_close($curl);
100
-
101
  }
102
  }
103
  }
9
  $order = $shipment->getOrder();
10
  $email = $order->getCustomerEmail();
11
  $storeId = $order->getStoreId();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  $kiyoh_status = Mage::getStoreConfig('customconfig/review_group/custom_enable');
 
 
 
13
  $kiyoh_eventval = Mage::getStoreConfig('customconfig/review_group/custom_event');
 
 
 
14
  $kiyoh_connector = Mage::getStoreConfig('customconfig/review_group/custom_connector');
 
 
 
15
  $kiyoh_action = Mage::getStoreConfig('customconfig/review_group/custom_action');
 
 
 
16
  $kiyoh_user = Mage::getStoreConfig('customconfig/review_group/custom_user');
 
 
 
17
  $kiyoh_delay = Mage::getStoreConfig('customconfig/review_group/custom_delay');
 
 
18
  if($kiyoh_eventval == 'Shipping' && $kiyoh_status =='1')
19
  {
 
20
  $url = 'https://www.kiyoh.nl/set.php?user='.$kiyoh_user.'&connector='.$kiyoh_connector.'&action='.$kiyoh_action.'&targetMail='.$email.'&delay='.$kiyoh_delay;
21
 
22
  // create a new cURL resource
38
 
39
  Mage::log($response.'---Url---'.$url, null, 'kiyoh.log');
40
  curl_close($curl);
 
41
  }
42
  }
43
  }
app/code/community/Kiyoh/Customerreview/etc/system.xml CHANGED
@@ -12,7 +12,7 @@
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">
@@ -60,8 +60,7 @@
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 the email address you are using for Kiyoh.
64
- Important: If a different email address has been entered for sending then you should use this email address.</comment>
65
  </custom_user>
66
  <custom_delay translate="label tooltip comment">
67
  <label>Enter delay</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">
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 email address using which you are registered at Kiyoh.</comment>
 
64
  </custom_user>
65
  <custom_delay translate="label tooltip comment">
66
  <label>Enter delay</label>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kiyoh_customerreview</name>
4
- <version>1.6.8.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
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>kiyoh_m</name><user>kiyoh_m</user><email>kiyoh.autoreview@gmail.com</email></author></authors>
13
- <date>2011-08-26</date>
14
- <time>12:47:54</time>
15
- <contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Kiyoh"><dir name="Customerreview"><dir name="Adminhtml"><dir name="Model"><file name="Observer.php" hash="32c2c496df03de81ab0a6cb01cd26ef5"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Reviewevents.php" hash="ebcb4f837723a3e1cd7d3e0996fa81ca"/></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="c09e6f877d8c7edc6984be8a6b8e0b4f"/><file name="Status.php" hash="8f23938b83ae9fa9cd404c99aa5716e7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6cf979d01f8317d9dd7a177747ab24f2"/><file name="config.xml" hash="be7afc04ea8d1fed109c1e8c8a57a67c"/><file name="system.xml" hash="1301ecaae7ca080e45f23494e316c735"/></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="customerreview.xml" hash="6243b98b49e4a1da50b0dae968b4d171"/></dir><dir name="template"><dir name="customerreview"><file name="customerreview.phtml" hash="c692037d1baf7c41be15ff9a2b0e126e"/></dir><dir name="kiyohcheckout"><file name="success.phtml" hash="dba5a1a258f9a6bef022fe8b74c93a76"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Kiyoh_Customerreview.xml" hash="bbaf093738bc2b0835c48341a8849acb"/></dir></dir></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>1.6.9.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
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>kiyoh_m</name><user>kiyoh_m</user><email>kiyoh.autoreview@gmail.com</email></author></authors>
13
+ <date>2011-09-15</date>
14
+ <time>14:35:21</time>
15
+ <contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Kiyoh"><dir name="Customerreview"><dir name="Adminhtml"><dir name="Model"><file name="Observer.php" hash="af7726cee75e3db9d9947ff58058db9d"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Reviewevents.php" hash="696a6147fa76fe8c8eaf32e525f995b9"/></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="fef9e7191351cfa9f45907a87b47d8b7"/><file name="Status.php" hash="8f23938b83ae9fa9cd404c99aa5716e7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6cf979d01f8317d9dd7a177747ab24f2"/><file name="config.xml" hash="be7afc04ea8d1fed109c1e8c8a57a67c"/><file name="system.xml" hash="f181db3d8c95e5ccd83d4bfbd5cb8548"/></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="customerreview.xml" hash="6243b98b49e4a1da50b0dae968b4d171"/></dir><dir name="template"><dir name="customerreview"><file name="customerreview.phtml" hash="c692037d1baf7c41be15ff9a2b0e126e"/></dir><dir name="kiyohcheckout"><file name="success.phtml" hash="dba5a1a258f9a6bef022fe8b74c93a76"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Kiyoh_Customerreview.xml" hash="bbaf093738bc2b0835c48341a8849acb"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>