Version Notes
Improvements in abandoned cart feature for fire checkout, single page checkout and integration of multiple store fronts into the same marketing Infusionsoft or HubSpot account.
Download this release
Release Info
Developer | Parag Jagdale |
Extension | RevenueConduitAndInfusionsoft |
Version | 2.0.14 |
Comparing to | |
See all releases |
Code changes from version 2.0.13 to 2.0.14
app/code/community/RevenueConduit/RevenueConduit/Model/Observer.php
CHANGED
@@ -59,6 +59,8 @@ class RevenueConduit_RevenueConduit_Model_Observer{
|
|
59 |
$url = Mage::getStoreConfig('web/unsecure/base_link_url', $storeId);
|
60 |
|
61 |
$host = "https://app.revenueconduit.com/magento_incoming_requests/receive";
|
|
|
|
|
62 |
|
63 |
$parameter = array("company_app_name" => $company_app_name, "store_name" => $store_name, 'domain' => $url);
|
64 |
|
@@ -253,16 +255,20 @@ class RevenueConduit_RevenueConduit_Model_Observer{
|
|
253 |
try{
|
254 |
if(!Mage::registry('prevent_order_observer')):
|
255 |
$dataObjectClass = get_class($observer->getEvent()->getDataObject());
|
256 |
-
Mage::register('prevent_order_observer',true);
|
257 |
|
258 |
if(!empty($dataObjectClass) && $dataObjectClass == 'Mage_Sales_Model_Order'){
|
259 |
$order = $observer->getEvent()->getOrder();
|
260 |
-
}
|
261 |
$order = $observer->getEvent()->getInvoice()->getOrder();
|
|
|
|
|
262 |
}
|
263 |
|
|
|
|
|
264 |
if(!empty($order) && $order->getIncrementId()) {
|
265 |
-
$codeFromSite = $this->SendRequest("orders/updated", $order->getIncrementId(), null, 0, 0, 0, 0, $order->getStoreId(), $order->getWebsiteId());
|
|
|
266 |
}
|
267 |
endif;
|
268 |
}catch(Exception $ex){
|
@@ -275,7 +281,6 @@ class RevenueConduit_RevenueConduit_Model_Observer{
|
|
275 |
try{
|
276 |
if(!Mage::registry('prevent_order_observer')):
|
277 |
$dataObjectClass = get_class($observer->getEvent()->getDataObject());
|
278 |
-
Mage::register('prevent_order_observer',true);
|
279 |
|
280 |
if(!empty($dataObjectClass) && $dataObjectClass == 'Mage_Sales_Model_Order'){
|
281 |
$order = $observer->getEvent()->getOrder();
|
@@ -286,6 +291,7 @@ class RevenueConduit_RevenueConduit_Model_Observer{
|
|
286 |
}
|
287 |
if(!empty($order) && $order->getIncrementId()) {
|
288 |
$codeFromSite = $this->SendRequest("orders/updated", $order->getIncrementId(), null, 0, 0, 0, 0, $order->getStoreId(), $order->getWebsiteId());
|
|
|
289 |
}
|
290 |
endif;
|
291 |
}catch(Exception $ex){
|
59 |
$url = Mage::getStoreConfig('web/unsecure/base_link_url', $storeId);
|
60 |
|
61 |
$host = "https://app.revenueconduit.com/magento_incoming_requests/receive";
|
62 |
+
// $host = "https://7hktcoxjyked.runscope.net";
|
63 |
+
//$host = "https://hcbooju196rh.runscope.net";
|
64 |
|
65 |
$parameter = array("company_app_name" => $company_app_name, "store_name" => $store_name, 'domain' => $url);
|
66 |
|
255 |
try{
|
256 |
if(!Mage::registry('prevent_order_observer')):
|
257 |
$dataObjectClass = get_class($observer->getEvent()->getDataObject());
|
|
|
258 |
|
259 |
if(!empty($dataObjectClass) && $dataObjectClass == 'Mage_Sales_Model_Order'){
|
260 |
$order = $observer->getEvent()->getOrder();
|
261 |
+
}elseif(!empty($dataObjectClass) && $dataObjectClass == 'Mage_Sales_Model_Order_Invoice'){
|
262 |
$order = $observer->getEvent()->getInvoice()->getOrder();
|
263 |
+
}else {
|
264 |
+
return $this;
|
265 |
}
|
266 |
|
267 |
+
Mage::log(print_r($dataObjectClass,true), null, "test123.log");
|
268 |
+
|
269 |
if(!empty($order) && $order->getIncrementId()) {
|
270 |
+
$codeFromSite = $this->SendRequest("orders/updated", $order->getIncrementId()."test", null, 0, 0, 0, 0, $order->getStoreId(), $order->getWebsiteId());
|
271 |
+
Mage::register('prevent_order_observer',true);
|
272 |
}
|
273 |
endif;
|
274 |
}catch(Exception $ex){
|
281 |
try{
|
282 |
if(!Mage::registry('prevent_order_observer')):
|
283 |
$dataObjectClass = get_class($observer->getEvent()->getDataObject());
|
|
|
284 |
|
285 |
if(!empty($dataObjectClass) && $dataObjectClass == 'Mage_Sales_Model_Order'){
|
286 |
$order = $observer->getEvent()->getOrder();
|
291 |
}
|
292 |
if(!empty($order) && $order->getIncrementId()) {
|
293 |
$codeFromSite = $this->SendRequest("orders/updated", $order->getIncrementId(), null, 0, 0, 0, 0, $order->getStoreId(), $order->getWebsiteId());
|
294 |
+
Mage::register('prevent_order_observer',true);
|
295 |
}
|
296 |
endif;
|
297 |
}catch(Exception $ex){
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>RevenueConduitAndInfusionsoft</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -119,9 +119,9 @@
|
|
119 |
<description>Featured HubSpot integration and voted #1 app for Infusionsoft. Grow your online store, automatically</description>
|
120 |
<notes>Improvements in abandoned cart feature for fire checkout, single page checkout and integration of multiple store fronts into the same marketing Infusionsoft or HubSpot account.</notes>
|
121 |
<authors><author><name>RevenueConduit</name><user>RevenueConduit</user><email>support@revenueconduit.com</email></author></authors>
|
122 |
-
<date>2017-
|
123 |
-
<time>
|
124 |
-
<contents><target name="magecommunity"><dir name="RevenueConduit"><dir name="RevenueConduit"><dir name="Helper"><file name="Data.php" hash="0a9af814ed12bb85b1be2b0cdff4c864"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="08cea5d6c1a35dffd185677aeec60306"/></dir></dir></dir><dir name="Customer"><dir name="Customer"><dir name="Api"><file name="V2.php" hash="fd835f965fd45b7bfccdb91b0a7bb90e"/></dir></dir></dir><file name="Observer.php" hash="
|
125 |
<compatible/>
|
126 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
127 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>RevenueConduitAndInfusionsoft</name>
|
4 |
+
<version>2.0.14</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
119 |
<description>Featured HubSpot integration and voted #1 app for Infusionsoft. Grow your online store, automatically</description>
|
120 |
<notes>Improvements in abandoned cart feature for fire checkout, single page checkout and integration of multiple store fronts into the same marketing Infusionsoft or HubSpot account.</notes>
|
121 |
<authors><author><name>RevenueConduit</name><user>RevenueConduit</user><email>support@revenueconduit.com</email></author></authors>
|
122 |
+
<date>2017-04-27</date>
|
123 |
+
<time>14:38:41</time>
|
124 |
+
<contents><target name="magecommunity"><dir name="RevenueConduit"><dir name="RevenueConduit"><dir name="Helper"><file name="Data.php" hash="0a9af814ed12bb85b1be2b0cdff4c864"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><dir name="Api"><file name="V2.php" hash="08cea5d6c1a35dffd185677aeec60306"/></dir></dir></dir><dir name="Customer"><dir name="Customer"><dir name="Api"><file name="V2.php" hash="fd835f965fd45b7bfccdb91b0a7bb90e"/></dir></dir></dir><file name="Observer.php" hash="14d7387929d7cd75f769bbdfaf1f27e2"/><dir name="Sales"><dir name="Order"><dir name="Api"><dir name="1.6"><file name="V2.php" hash="7158678bb9e973b72091290218cadc36"/></dir><file name="V2.php" hash="2ff422d550dec4bb1258d31f06a817bb"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="35003c5a8ab78a359bf0f114180a6741"/></dir><dir name="etc"><file name="api.xml" hash="83ff3cb817751a0c40cbbfcb0e3df17e"/><file name="config.xml" hash="89d7a21e5b3838fabeb5490472b6e7a2"/><file name="system.xml" hash="357e5c0b20a346777a2b49e219e26102"/><file name="wsdl.xml" hash="053d171231a969b5f288c2af01abd00f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="RevenueConduit_RevenueConduit.xml" hash="8f594907ef70890af5f90fc16dd59ca7"/></dir></target></contents>
|
125 |
<compatible/>
|
126 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
127 |
</package>
|