Cyclr_Webhook - Version 1.0.4

Version Notes

Fixed customer create in Admin Panel.

Download this release

Release Info

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


Code changes from version 1.0.3 to 1.0.4

app/code/community/Cyclr/Webhook/Model/Observer.php CHANGED
@@ -44,7 +44,7 @@ class Cyclr_Webhook_Model_Observer
44
  $url = Mage::getStoreConfig('webhook/existingcustomer/url', $customer->getSendemailStoreId());
45
 
46
  //$subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);
47
- if (!$customer.isObjectNew()) {
48
  //$json = Mage::helper('core')->jsonEncode($customer->getData());
49
  $json = Mage::helper('core')->jsonEncode(array(
50
  'entity_id' => $customer->getData('entity_id'),
@@ -68,5 +68,9 @@ class Cyclr_Webhook_Model_Observer
68
  Mage::log("POST customer save request failed for {$email} to {$url}", null, "cyclr-webhook.log");
69
  }
70
  }
 
 
 
 
71
  }
72
  }
44
  $url = Mage::getStoreConfig('webhook/existingcustomer/url', $customer->getSendemailStoreId());
45
 
46
  //$subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);
47
+ if (!$customer->isObjectNew()) {
48
  //$json = Mage::helper('core')->jsonEncode($customer->getData());
49
  $json = Mage::helper('core')->jsonEncode(array(
50
  'entity_id' => $customer->getData('entity_id'),
68
  Mage::log("POST customer save request failed for {$email} to {$url}", null, "cyclr-webhook.log");
69
  }
70
  }
71
+ else {
72
+ // if new object, call customer register
73
+ $this->handleCustomerRegister($observer);
74
+ }
75
  }
76
  }
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cyclr_Webhook</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Sends notifications to Cyclr when a customer is created or updated.</summary>
10
  <description>This extension allows the use of webhooks in Cyclr to trigger a new cycle journey when a new customer is created or an existing customer is updated.</description>
11
- <notes>Initial release for Cyclr extension</notes>
12
  <authors><author><name>CyclrDevs</name><user>auto-converted</user><email>devs@cyclr.com</email></author></authors>
13
- <date>2015-12-18</date>
14
- <time>14:04:12</time>
15
- <contents><target name="magecommunity"><dir name="Cyclr"><dir name="Webhook"><dir name="Helper"><file name="Data.php" hash="31b1683f00d31164e449262334478c26"/></dir><dir name="Model"><file name="Observer.php" hash="1d135646aa23dba6b2a9fa4266a26441"/><file name="Url.php" hash="13fc766f09d096ec6de29a4748e27d52"/></dir><dir name="etc"><file name="config.xml" hash="f2039627b8f18e27ce3ce7dee7ed8f7d"/><file name="system.xml" hash="edec3384d338497d1294ac2c3d72a97a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cyclr_Webhook.xml" hash="55cfbe4b4e0f46691ade441940cb3d3f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cyclr_Webhook</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Sends notifications to Cyclr when a customer is created or updated.</summary>
10
  <description>This extension allows the use of webhooks in Cyclr to trigger a new cycle journey when a new customer is created or an existing customer is updated.</description>
11
+ <notes>Fixed customer create in Admin Panel.</notes>
12
  <authors><author><name>CyclrDevs</name><user>auto-converted</user><email>devs@cyclr.com</email></author></authors>
13
+ <date>2016-01-18</date>
14
+ <time>13:12:32</time>
15
+ <contents><target name="magecommunity"><dir name="Cyclr"><dir name="Webhook"><dir name="Helper"><file name="Data.php" hash="31b1683f00d31164e449262334478c26"/></dir><dir name="Model"><file name="Observer.php" hash="71a0fbd55bf9b2d2b2057cc699504c31"/><file name="Url.php" hash="13fc766f09d096ec6de29a4748e27d52"/></dir><dir name="etc"><file name="config.xml" hash="f2039627b8f18e27ce3ce7dee7ed8f7d"/><file name="system.xml" hash="edec3384d338497d1294ac2c3d72a97a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cyclr_Webhook.xml" hash="55cfbe4b4e0f46691ade441940cb3d3f"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>