Version Notes
Dev
Download this release
Release Info
| Developer | Maarten van Schalkwijk |
| Extension | Hellodialog_Tracker |
| Version | 2.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.4 to 2.0.5
app/code/community/Hellodialog/Tracker/Model/Cron.php
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
require_once "Observer.php";
|
| 22 |
}
|
| 23 |
|
| 24 |
-
$configurator =
|
| 25 |
$configurator->saveConfig('hellodialog/synchronize_history/cron_lastrun', time(), 'default', 0);
|
| 26 |
|
| 27 |
// check if this job is enabled in the first place
|
|
@@ -41,11 +41,6 @@
|
|
| 41 |
$configurator->saveConfig('hellodialog/synchronize_history/cron_started', time(), 'default', 0);
|
| 42 |
}
|
| 43 |
|
| 44 |
-
// check if done
|
| 45 |
-
if (self::check_if_done($configurator, $total, $current_page)) {
|
| 46 |
-
return;
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
// process orders
|
| 50 |
self::log('==============================================');
|
| 51 |
self::log('Hellodialog Order Sync '.date('d-m-Y @ H:i:s'));
|
|
@@ -67,10 +62,9 @@
|
|
| 67 |
}
|
| 68 |
|
| 69 |
// update current page in config
|
| 70 |
-
|
| 71 |
-
return;
|
| 72 |
-
}
|
| 73 |
$configurator->saveConfig('hellodialog/synchronize_history/current_page', $current_page, 'default', 0);
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
private static function log($l) {
|
|
@@ -81,8 +75,6 @@
|
|
| 81 |
if ($total <= $page * self::orders_per_job()) {
|
| 82 |
self::log("Hellodialog Order Sync >> DONE <<");
|
| 83 |
$configurator->saveConfig('hellodialog/synchronize_history/enabled', 0, 'default', 0);
|
| 84 |
-
return true;
|
| 85 |
}
|
| 86 |
-
return false;
|
| 87 |
}
|
| 88 |
-
}
|
| 21 |
require_once "Observer.php";
|
| 22 |
}
|
| 23 |
|
| 24 |
+
$configurator = Mage::getConfig();
|
| 25 |
$configurator->saveConfig('hellodialog/synchronize_history/cron_lastrun', time(), 'default', 0);
|
| 26 |
|
| 27 |
// check if this job is enabled in the first place
|
| 41 |
$configurator->saveConfig('hellodialog/synchronize_history/cron_started', time(), 'default', 0);
|
| 42 |
}
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
// process orders
|
| 45 |
self::log('==============================================');
|
| 46 |
self::log('Hellodialog Order Sync '.date('d-m-Y @ H:i:s'));
|
| 62 |
}
|
| 63 |
|
| 64 |
// update current page in config
|
| 65 |
+
self::check_if_done($configurator, $total, $current_page);
|
|
|
|
|
|
|
| 66 |
$configurator->saveConfig('hellodialog/synchronize_history/current_page', $current_page, 'default', 0);
|
| 67 |
+
Mage::app()->getConfig()->reinit();
|
| 68 |
}
|
| 69 |
|
| 70 |
private static function log($l) {
|
| 75 |
if ($total <= $page * self::orders_per_job()) {
|
| 76 |
self::log("Hellodialog Order Sync >> DONE <<");
|
| 77 |
$configurator->saveConfig('hellodialog/synchronize_history/enabled', 0, 'default', 0);
|
|
|
|
| 78 |
}
|
|
|
|
| 79 |
}
|
| 80 |
+
}
|
app/code/community/Hellodialog/Tracker/etc/config.xml
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
|
| 4 |
<modules>
|
| 5 |
<Hellodialog_Tracker>
|
| 6 |
-
<version>2.0.
|
| 7 |
</Hellodialog_Tracker>
|
| 8 |
</modules>
|
| 9 |
|
| 3 |
|
| 4 |
<modules>
|
| 5 |
<Hellodialog_Tracker>
|
| 6 |
+
<version>2.0.5</version>
|
| 7 |
</Hellodialog_Tracker>
|
| 8 |
</modules>
|
| 9 |
|
app/code/community/Hellodialog/Tracker/etc/system.xml
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
<show_in_store>1</show_in_store>
|
| 18 |
<groups>
|
| 19 |
<general>
|
| 20 |
-
<label>Hellodialog Magento plugin v2.0.
|
| 21 |
<frontend_type>text</frontend_type>
|
| 22 |
<sort_order>1</sort_order>
|
| 23 |
<show_in_default>1</show_in_default>
|
|
@@ -28,7 +28,7 @@
|
|
| 28 |
<