Webwinkelkeur_Connector - Version 1.0.4

Version Notes

Stable release

Download this release

Release Info

Developer Magento Core Team
Extension Webwinkelkeur_Connector
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

app/code/local/Webwinkelkeur/Connector/Model/Observer.php CHANGED
@@ -60,13 +60,17 @@ class Webwinkelkeur_Connector_Model_Observer {
60
  $order = $shipment->getOrder();
61
  if((Mage::getStoreConfig('connector/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('connector/api/api_key', $order->getStoreId()))):
62
  if($order->getStatus() == Mage::getStoreConfig('connector/invitation/status', $order->getStoreId())):
63
- $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
64
- if($date_diff < Mage::getStoreConfig('connector/invitation/backlog', $order->getStoreId())):
65
- $this->sendInvitation($order);
66
- endif;
 
 
 
 
67
  endif;
68
  endif;
69
-
70
  }
71
 
72
  public function processInvitation($observer) {
@@ -74,10 +78,14 @@ class Webwinkelkeur_Connector_Model_Observer {
74
  $order = $observer->getEvent()->getOrder();
75
  if((Mage::getStoreConfig('connector/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('connector/api/api_key', $order->getStoreId()))):
76
  if($order->getStatus() == Mage::getStoreConfig('connector/invitation/status', $order->getStoreId())):
77
- $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
78
- if($date_diff < Mage::getStoreConfig('connector/invitation/backlog', $order->getStoreId())):
79
- $this->sendInvitation($order);
80
- endif;
 
 
 
 
81
  endif;
82
  endif;
83
 
60
  $order = $shipment->getOrder();
61
  if((Mage::getStoreConfig('connector/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('connector/api/api_key', $order->getStoreId()))):
62
  if($order->getStatus() == Mage::getStoreConfig('connector/invitation/status', $order->getStoreId())):
63
+ if(Mage::getStoreConfig('connector/invitation/backlog', $order->getStoreId())):
64
+ $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
65
+ if($date_diff < Mage::getStoreConfig('connector/invitation/backlog', $order->getStoreId())):
66
+ $this->sendInvitation($order);
67
+ endif;
68
+ else:
69
+ $this->sendInvitation($order);
70
+ endif;
71
  endif;
72
  endif;
73
+
74
  }
75
 
76
  public function processInvitation($observer) {
78
  $order = $observer->getEvent()->getOrder();
79
  if((Mage::getStoreConfig('connector/invitation/enabled', $order->getStoreId())) && (Mage::getStoreConfig('connector/api/api_key', $order->getStoreId()))):
80
  if($order->getStatus() == Mage::getStoreConfig('connector/invitation/status', $order->getStoreId())):
81
+ if(Mage::getStoreConfig('connector/invitation/backlog', $order->getStoreId())):
82
+ $date_diff = floor(time() - strtotime($order->getCreatedAt()))/(60*60*24);
83
+ if($date_diff < Mage::getStoreConfig('connector/invitation/backlog', $order->getStoreId())):
84
+ $this->sendInvitation($order);
85
+ endif;
86
+ else:
87
+ $this->sendInvitation($order);
88
+ endif;
89
  endif;
90
  endif;
91
 
app/code/local/Webwinkelkeur/Connector/etc/config.xml CHANGED
@@ -100,6 +100,8 @@
100
  </frontend>
101
  <invitation>
102
  <enabled>0</enabled>
 
 
103
  </invitation>
104
  </connector>
105
  </default>
100
  </frontend>
101
  <invitation>
102
  <enabled>0</enabled>
103
+ <delay>14</delay>
104
+ <backlog>30</backlog>
105
  </invitation>
106
  </connector>
107
  </default>
app/code/local/Webwinkelkeur/Connector/etc/system.xml CHANGED
@@ -133,7 +133,6 @@
133
  <show_in_store>1</show_in_store>
134
  <comment>Verstuur de uitnodiging x dagen nadat de bestelling voltooid is</comment>
135
  <tooltip>Hierdoor zorg je ervoor dat de klant de uitnodiging ontvangt kort nadat hij het product heeft ontvangen en niet ervoor. Dit vergroot de kans dat hij zijn ervaring zal delen.</tooltip>
136
-
137
  <depends><enabled>1</enabled></depends>
138
  </delay>
139
  <backlog translate="label">
133
  <show_in_store>1</show_in_store>
134
  <comment>Verstuur de uitnodiging x dagen nadat de bestelling voltooid is</comment>
135
  <tooltip>Hierdoor zorg je ervoor dat de klant de uitnodiging ontvangt kort nadat hij het product heeft ontvangen en niet ervoor. Dit vergroot de kans dat hij zijn ervaring zal delen.</tooltip>
 
136
  <depends><enabled>1</enabled></depends>
137
  </delay>
138
  <backlog translate="label">
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webwinkelkeur_Connector</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license/>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>The WebwinkelKeur Foundation is a non-profit Dutch organisation. For members of WebwinkelKeur this module allows the integration of the innovative WebwinkelKeur Sidebar which increases the overall conversion of the webshop. For PLUS members the module also allows for automatic invitation of customers to add a review on the WebwinkelKeur page. The module is recommended for every WebwinkelKeur member with a Magento webshop. For more information visit www.webwinkelkeur.nl.</description>
11
  <notes>Stable release</notes>
12
  <authors><author><name>WebwinkelKeur</name><user>auto-converted</user><email>info@webwinkelkeur.nl</email></author></authors>
13
- <date>2013-11-12</date>
14
- <time>14:09:19</time>
15
- <contents><target name="magelocal"><dir name="Webwinkelkeur"><dir name="Connector"><dir name="Helper"><file name="Data.php" hash="a8e67bff8161f1b9f12f19725131ffb6"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Status.php" hash="a1fa4a988b053aab05d74a5523cdb116"/></dir></dir></dir><file name="Observer.php" hash="76fb9feb785a2b050cc4e5b18bd9297f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="713256c74e15173febfb41aa13ae8bb7"/><file name="config.xml" hash="e837ba8886c8c1f7e94b7f857a7b549e"/><file name="system.xml" hash="c38c83a59323f1c218ae7c6be9951afc"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="webwinkelkeur_connector.xml" hash="71f5b22be9372771c036ccd3b3425d3a"/></dir><dir name="template"><dir name="webwinkelkeur"><file name="sidebar.phtml" hash="edca3ed36455397e366d8a83322b9258"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webwinkelkeur_Connector.xml" hash="a0d5f43a744a12057798959cb9f4a25e"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webwinkelkeur_Connector</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license/>
7
  <channel>community</channel>
10
  <description>The WebwinkelKeur Foundation is a non-profit Dutch organisation. For members of WebwinkelKeur this module allows the integration of the innovative WebwinkelKeur Sidebar which increases the overall conversion of the webshop. For PLUS members the module also allows for automatic invitation of customers to add a review on the WebwinkelKeur page. The module is recommended for every WebwinkelKeur member with a Magento webshop. For more information visit www.webwinkelkeur.nl.</description>
11
  <notes>Stable release</notes>
12
  <authors><author><name>WebwinkelKeur</name><user>auto-converted</user><email>info@webwinkelkeur.nl</email></author></authors>
13
+ <date>2013-11-25</date>
14
+ <time>13:49:12</time>
15
+ <contents><target name="magelocal"><dir name="Webwinkelkeur"><dir name="Connector"><dir name="Helper"><file name="Data.php" hash="a8e67bff8161f1b9f12f19725131ffb6"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Status.php" hash="a1fa4a988b053aab05d74a5523cdb116"/></dir></dir></dir><file name="Observer.php" hash="e7b77b146de66881648c4711f611c1e5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="713256c74e15173febfb41aa13ae8bb7"/><file name="config.xml" hash="49a9390d37f2dcde54b4389b06b429a1"/><file name="system.xml" hash="31e81c7150a3aca016880d8359d6a570"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="webwinkelkeur_connector.xml" hash="71f5b22be9372771c036ccd3b3425d3a"/></dir><dir name="template"><dir name="webwinkelkeur"><file name="sidebar.phtml" hash="edca3ed36455397e366d8a83322b9258"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webwinkelkeur_Connector.xml" hash="a0d5f43a744a12057798959cb9f4a25e"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>