Version Notes
We improved performance on synchronization.
It should be more efficient and nearly instant on most websites.
Download this release
Release Info
Developer | Sarbacane Software |
Extension | Sarbacane_Sarbacanedesktop |
Version | 1.0.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.8 to 1.0.0.9
app/code/community/Sarbacane/Sarbacanedesktop/controllers/Adminhtml/SarbacanedesktopController.php
CHANGED
@@ -100,19 +100,20 @@ class Sarbacane_Sarbacanedesktop_Adminhtml_SarbacanedesktopController extends Ma
|
|
100 |
private function saveListConfiguration()
|
101 |
{
|
102 |
$shops = '';
|
|
|
103 |
if (Mage::app()->getRequest()->getParam('store_id')) {
|
104 |
$stores_id = Mage::app()->getRequest()->getParam('store_id');
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
}
|
114 |
-
$shops = implode(',', $stores_id);
|
115 |
}
|
|
|
116 |
}
|
117 |
Mage::helper('sarbacanedesktop')->updateConfiguration('sd_list', $shops);
|
118 |
}
|
100 |
private function saveListConfiguration()
|
101 |
{
|
102 |
$shops = '';
|
103 |
+
$stores_id = array();
|
104 |
if (Mage::app()->getRequest()->getParam('store_id')) {
|
105 |
$stores_id = Mage::app()->getRequest()->getParam('store_id');
|
106 |
+
}
|
107 |
+
if (is_array($stores_id)) {
|
108 |
+
$sd_list_array = Mage::helper('sarbacanedesktop')->getListConfiguration('array');
|
109 |
+
foreach ($sd_list_array as $sd_list) {
|
110 |
+
if ( ! in_array($sd_list, $stores_id)) {
|
111 |
+
$store_id = Mage::helper('sarbacanedesktop')->getIdShopFromList($sd_list);
|
112 |
+
$list_type = Mage::helper('sarbacanedesktop')->getListTypeFromList($sd_list);
|
113 |
+
$this->deleteListData($list_type, $store_id);
|
114 |
}
|
|
|
115 |
}
|
116 |
+
$shops = implode(',', $stores_id);
|
117 |
}
|
118 |
Mage::helper('sarbacanedesktop')->updateConfiguration('sd_list', $shops);
|
119 |
}
|
app/code/community/Sarbacane/Sarbacanedesktop/controllers/IndexController.php
CHANGED
@@ -30,9 +30,9 @@ class Sarbacane_Sarbacanedesktop_IndexController extends Mage_Core_Controller_Fr
|
|
30 |
if ($sdid != '' && Mage::helper('sarbacanedesktop')->getConfiguration('nb_configured') == 3) {
|
31 |
header('Content-type: text/plain; charset=utf-8');
|
32 |
$configuration = Mage::helper('sarbacanedesktop')->getConfiguration('all');
|
33 |
-
if ($configuration['sd_token'] != '' && $configuration['
|
34 |
$sd_list_array = Mage::helper('sarbacanedesktop')->getListConfiguration('array');
|
35 |
-
if (is_array($sd_list_array)
|
36 |
if (Mage::app()->getRequest()->getParam('list')) {
|
37 |
$list = Mage::app()->getRequest()->getParam('list');
|
38 |
$store_id = Mage::helper('sarbacanedesktop')->getIdShopFromList($list);
|
30 |
if ($sdid != '' && Mage::helper('sarbacanedesktop')->getConfiguration('nb_configured') == 3) {
|
31 |
header('Content-type: text/plain; charset=utf-8');
|
32 |
$configuration = Mage::helper('sarbacanedesktop')->getConfiguration('all');
|
33 |
+
if ($configuration['sd_token'] != '' && $configuration['sd_is_user'] != '') {
|
34 |
$sd_list_array = Mage::helper('sarbacanedesktop')->getListConfiguration('array');
|
35 |
+
if (is_array($sd_list_array)) {
|
36 |
if (Mage::app()->getRequest()->getParam('list')) {
|
37 |
$list = Mage::app()->getRequest()->getParam('list');
|
38 |
$store_id = Mage::helper('sarbacanedesktop')->getIdShopFromList($list);
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Sarbacane_Sarbacanedesktop</name>
|
4 |
-
<version>1.0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/academic.php">AFL</license>
|
7 |
<channel>community</channel>
|
@@ -61,9 +61,9 @@
|
|
61 |
<notes>We improved performance on synchronization.
|
62 |
It should be more efficient and nearly instant on most websites.</notes>
|
63 |
<authors><author><name>Sarbacane Software</name><user>sarbacane</user><email>connectors@sarbacane.com</email></author></authors>
|
64 |
-
<date>2017-06-
|
65 |
-
<time>
|
66 |
-
<contents><target name="magecommunity"><dir name="Sarbacane"><dir name="Sarbacanedesktop"><dir name="Block"><dir name="Adminhtml"><file name="Sarbacanedesktop.php" hash="37acc8335d82b2312609121c7ba7c3aa"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fef9ce9208336fd6ac8ae05b6bcd005b"/></dir><dir name="Model"><file name="Observer.php" hash="9b16a9af99bda0a4d9dbe5e5cf8596db"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SarbacanedesktopController.php" hash="
|
67 |
<compatible/>
|
68 |
<dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
|
69 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Sarbacane_Sarbacanedesktop</name>
|
4 |
+
<version>1.0.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/academic.php">AFL</license>
|
7 |
<channel>community</channel>
|
61 |
<notes>We improved performance on synchronization.
|
62 |
It should be more efficient and nearly instant on most websites.</notes>
|
63 |
<authors><author><name>Sarbacane Software</name><user>sarbacane</user><email>connectors@sarbacane.com</email></author></authors>
|
64 |
+
<date>2017-06-28</date>
|
65 |
+
<time>14:20:00</time>
|
66 |
+
<contents><target name="magecommunity"><dir name="Sarbacane"><dir name="Sarbacanedesktop"><dir name="Block"><dir name="Adminhtml"><file name="Sarbacanedesktop.php" hash="37acc8335d82b2312609121c7ba7c3aa"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fef9ce9208336fd6ac8ae05b6bcd005b"/></dir><dir name="Model"><file name="Observer.php" hash="9b16a9af99bda0a4d9dbe5e5cf8596db"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SarbacanedesktopController.php" hash="77c4913fb7316ec621907b28ba58dff0"/></dir><file name="IndexController.php" hash="4df0bb5fd29de1e2ef337fe5dd22bbe3"/></dir><dir name="etc"><file name="config.xml" hash="77537c85b83b1acc510d48e2925f52a5"/></dir><dir name="sql"><dir name="sarbacanedesktop_setup"><file name="mysql4-upgrade-1.0.0.7-1.0.0.8.php" hash="27721deaf97fd972aa8540d4bfbb41ba"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="sarbacanedesktop.css" hash="5cfd44b2883bede9f389f195dc65e6ff"/><dir name="images"><file name="sarbacanedesktop.png" hash="2038d3c503e8f59d14177a131bef7537"/></dir><file name="sarbacanedesktop.js" hash="15096b017322b4141926f7469600586c"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sarbacanedesktop.xml" hash="8dbeb59dbc0a5d5a86256880a77b0189"/></dir><dir name="template"><dir name="sarbacanedesktop"><file name="sarbacanedesktop.phtml" hash="145cb3eafd17a8fc6c181ec33c0b0d7a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sarbacane_Sarbacanedesktop.xml" hash="2ad128064122d112a5b087c0967399d6"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Sarbacane_Sarbacanedesktop.csv" hash="3468b7d20d57c6a5d3d2ffa505f347f0"/></dir><dir name="en_US"><file name="Sarbacane_Sarbacanedesktop.csv" hash="ae45c5263eafa7057e1a4bb84ae55091"/></dir></target></contents>
|
67 |
<compatible/>
|
68 |
<dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
|
69 |
</package>
|