Version Notes
New version of Lengow's Connector
Download this release
Release Info
Developer | Ludovic |
Extension | Lengow_Export |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- app/code/community/Lengow/Dashboard/etc/config.xml +1 -1
- app/code/community/Lengow/Export/Helper/Security.php +19 -11
- app/code/community/Lengow/Export/Model/Generate.php +1 -1
- app/code/community/Lengow/Export/etc/config.xml +1 -1
- app/code/community/Lengow/Feed/etc/config.xml +1 -1
- app/code/community/Lengow/Sync/Block/Adminhtml/Cron.php +57 -0
- app/code/community/Lengow/Sync/Block/Adminhtml/Cron/Grid.php +94 -0
- app/code/community/Lengow/Sync/Helper/Cron.php +62 -0
- app/code/community/Lengow/Sync/Model/Import.php +1 -1
- app/code/community/Lengow/Sync/controllers/Adminhtml/Lengow/DebugController.php +35 -0
- app/code/community/Lengow/Sync/controllers/Adminhtml/Lengow/OrderController.php +6 -6
- app/code/community/Lengow/Sync/etc/config.xml +1 -1
- app/code/community/Lengow/Sync/etc/marketplaces.xml +73 -1
- app/code/community/Lengow/Tracker/Helper/Check.php +22 -6
- app/code/community/Lengow/Tracker/etc/config.xml +1 -1
- app/design/adminhtml/default/default/layout/lengow.xml +11 -0
- app/design/adminhtml/default/default/template/lengow/debug/index.phtml +222 -0
- app/locale/fr_FR/Lengow_Connector.csv +29 -1
- package.xml +4 -4
- skin/adminhtml/default/default/lengow/css/admin.css +67 -0
app/code/community/Lengow/Dashboard/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Dashboard>
|
5 |
-
<version>2.1.
|
6 |
</Lengow_Dashboard>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Dashboard>
|
5 |
+
<version>2.1.1</version>
|
6 |
</Lengow_Dashboard>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Export/Helper/Security.php
CHANGED
@@ -42,21 +42,29 @@ class Lengow_Export_Helper_Security extends Mage_Core_Helper_Abstract {
|
|
42 |
$ips = trim(str_replace(array("\r\n", ',', '-', '|', ' '), ';', $ips), ';');
|
43 |
$ips = explode(';', $ips);
|
44 |
$authorized_ips = array_merge($ips, self::$IPS_LENGOW);
|
45 |
-
// Proxy
|
46 |
-
/*if(function_exists('apache_request_headers')) {
|
47 |
-
$headers = apache_request_headers();
|
48 |
-
if (array_key_exists('X-Forwarded-For', $headers)) {
|
49 |
-
$hostname_ip = $headers['X-Forwarded-For'];
|
50 |
-
} else {
|
51 |
-
$hostname_ip = $_SERVER['REMOTE_ADDR'];
|
52 |
-
}
|
53 |
-
} else {
|
54 |
-
$hostname_ip = $_SERVER['REMOTE_ADDR'];
|
55 |
-
}*/
|
56 |
$hostname_ip = $_SERVER['REMOTE_ADDR'];
|
57 |
if(in_array($hostname_ip, $authorized_ips))
|
58 |
return true;
|
59 |
return false;
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
42 |
$ips = trim(str_replace(array("\r\n", ',', '-', '|', ' '), ';', $ips), ';');
|
43 |
$ips = explode(';', $ips);
|
44 |
$authorized_ips = array_merge($ips, self::$IPS_LENGOW);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
$hostname_ip = $_SERVER['REMOTE_ADDR'];
|
46 |
if(in_array($hostname_ip, $authorized_ips))
|
47 |
return true;
|
48 |
return false;
|
49 |
}
|
50 |
|
51 |
+
/**
|
52 |
+
* Check if Authorized Ip is Valid.
|
53 |
+
*
|
54 |
+
* @return boolean.
|
55 |
+
*/
|
56 |
+
public function checkValidAuthorizedIP($authorizedIp)
|
57 |
+
{
|
58 |
+
$cleanIps = preg_replace('/\ /','',$authorizedIp);
|
59 |
+
if (strlen($cleanIps)==0){ return false; }
|
60 |
+
$ips = explode(',',$cleanIps);
|
61 |
+
foreach($ips as $ip){
|
62 |
+
if (!preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/',$ip)){
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
return true;
|
67 |
+
}
|
68 |
+
|
69 |
+
|
70 |
}
|
app/code/community/Lengow/Export/Model/Generate.php
CHANGED
@@ -200,7 +200,7 @@ class Lengow_Export_Model_Generate extends Varien_Object {
|
|
200 |
$product->getTypeInstance(true)->getChildrenIds($product->getId()),
|
201 |
function (array $reduce, $value) {
|
202 |
return array_merge($reduce, $value);
|
203 |
-
},
|
204 |
foreach ($childrenIds as $childrenId) {
|
205 |
$product_temporary = Mage::getModel('catalog/product')
|
206 |
->setOriginalCurrency($this->getOriginalCurrency())
|
200 |
$product->getTypeInstance(true)->getChildrenIds($product->getId()),
|
201 |
function (array $reduce, $value) {
|
202 |
return array_merge($reduce, $value);
|
203 |
+
}, array());
|
204 |
foreach ($childrenIds as $childrenId) {
|
205 |
$product_temporary = Mage::getModel('catalog/product')
|
206 |
->setOriginalCurrency($this->getOriginalCurrency())
|
app/code/community/Lengow/Export/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Export>
|
5 |
-
<version>2.1.
|
6 |
</Lengow_Export>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Export>
|
5 |
+
<version>2.1.1</version>
|
6 |
</Lengow_Export>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Feed/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Feed>
|
5 |
-
<version>2.1.
|
6 |
</Lengow_Feed>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Feed>
|
5 |
+
<version>2.1.1</version>
|
6 |
</Lengow_Feed>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Sync/Block/Adminhtml/Cron.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Lengow grid products block
|
4 |
+
*
|
5 |
+
* @category Lengow
|
6 |
+
* @package Lengow_Cron
|
7 |
+
* @author Pierre Basile <pierre.basile@lengow.com>
|
8 |
+
* @copyright 2015 Lengow SAS
|
9 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
+
*/
|
11 |
+
class Lengow_Sync_Block_Adminhtml_Cron extends Mage_Adminhtml_Block_Widget_Grid_Container {
|
12 |
+
|
13 |
+
public function __construct()
|
14 |
+
{
|
15 |
+
$this->_controller = 'adminhtml_cron';
|
16 |
+
$this->_blockGroup = 'lensync';
|
17 |
+
$this->_headerText = Mage::helper('lensync')->__('Item Manager');
|
18 |
+
$this->_addButtonLabel = Mage::helper('lensync')->__('Add Item');
|
19 |
+
parent::__construct();
|
20 |
+
}
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Prepare button and grid
|
24 |
+
*
|
25 |
+
* @return Mage_Adminhtml_Block_Catalog_Product
|
26 |
+
*/
|
27 |
+
protected function _prepareLayout()
|
28 |
+
{
|
29 |
+
$this->_removeButton('add');
|
30 |
+
$this->_addButton(
|
31 |
+
'import',
|
32 |
+
array(
|
33 |
+
'label' => $this->__('Call Cron Script'),
|
34 |
+
'onclick' => 'popWin(\'/cron.php\', \'_blank\')',
|
35 |
+
)
|
36 |
+
);
|
37 |
+
$this->_addButton(
|
38 |
+
'configure',
|
39 |
+
array(
|
40 |
+
'label' => $this->__('Cron Configuration'),
|
41 |
+
'onclick' => "popWin('{$this->getUrl('adminhtml/system_config/edit', array('section' => 'system'))}#system_cron', '_blank')",
|
42 |
+
)
|
43 |
+
);
|
44 |
+
$this->setChild('grid', $this->getLayout()->createBlock('lensync/adminhtml_cron_grid', 'cron.grid'));
|
45 |
+
return parent::_prepareLayout();
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Render grid
|
50 |
+
*
|
51 |
+
* @return string
|
52 |
+
*/
|
53 |
+
public function getGridHtml()
|
54 |
+
{
|
55 |
+
return $this->getChildHtml('grid');
|
56 |
+
}
|
57 |
+
}
|
app/code/community/Lengow/Sync/Block/Adminhtml/Cron/Grid.php
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Lengow adminhtml cron grid
|
4 |
+
*
|
5 |
+
* @category Lengow
|
6 |
+
* @package Lengow_Cron
|
7 |
+
* @author Pierre Basile <pierre.basile@lengow.com>
|
8 |
+
* @copyright 2015 Lengow SAS
|
9 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
+
*/
|
11 |
+
class Lengow_Sync_Block_Adminhtml_Cron_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
12 |
+
|
13 |
+
public function __construct()
|
14 |
+
{
|
15 |
+
parent::__construct();
|
16 |
+
$this->setId('sales_sync_cron_grid');
|
17 |
+
$this->setUseAjax(true);
|
18 |
+
$this->setDefaultSort('scheduled_at');
|
19 |
+
$this->setDefaultDir('ASC');
|
20 |
+
$this->setDefaultFilter(array('job_code' => 'lengow'));
|
21 |
+
$this->setSaveParametersInSession(true);
|
22 |
+
}
|
23 |
+
|
24 |
+
protected function _prepareCollection()
|
25 |
+
{
|
26 |
+
$collection = Mage::getModel('cron/schedule')->getCollection();
|
27 |
+
$this->setCollection($collection);
|
28 |
+
return parent::_prepareCollection();
|
29 |
+
}
|
30 |
+
|
31 |
+
|
32 |
+
public function getTestButtonHtml()
|
33 |
+
{
|
34 |
+
return $this->getChildHtml('test_button');
|
35 |
+
}
|
36 |
+
|
37 |
+
protected function _prepareColumns()
|
38 |
+
{
|
39 |
+
|
40 |
+
|
41 |
+
$viewHelper = $this->helper('lensync/cron');
|
42 |
+
|
43 |
+
$this->addColumn('id', array(
|
44 |
+
'header'=> Mage::helper('lensync')->__('ID'),
|
45 |
+
'index' => 'schedule_id',
|
46 |
+
'width' => '80px',
|
47 |
+
'type' => 'text',
|
48 |
+
));
|
49 |
+
$this->addColumn('job_code', array(
|
50 |
+
'header' => Mage::helper('lensync')->__('Code'),
|
51 |
+
'index' => 'job_code',
|
52 |
+
'width' => '100px',
|
53 |
+
));
|
54 |
+
$this->addColumn('message', array(
|
55 |
+
'header' => Mage::helper('lensync')->__('Message'),
|
56 |
+
'index' => 'messages',
|
57 |
+
));
|
58 |
+
$this->addColumn('created_at', array(
|
59 |
+
'header' => Mage::helper('lensync')->__('Created at'),
|
60 |
+
'index' => 'created_at',
|
61 |
+
'type' => 'datetime',
|
62 |
+
));
|
63 |
+
$this->addColumn('scheduled_at', array(
|
64 |
+
'header' => Mage::helper('lensync')->__('Scheduled at'),
|
65 |
+
'index' => 'scheduled_at',
|
66 |
+
'type' => 'datetime',
|
67 |
+
));
|
68 |
+
$this->addColumn('executed_at', array(
|
69 |
+
'header' => Mage::helper('lensync')->__('Executed at'),
|
70 |
+
'index' => 'executed_at',
|
71 |
+
'type' => 'datetime',
|
72 |
+
));
|
73 |
+
$this->addColumn('finished_at', array(
|
74 |
+
'header' => Mage::helper('lensync')->__('Finished at'),
|
75 |
+
'index' => 'finished_at',
|
76 |
+
'type' => 'datetime',
|
77 |
+
));
|
78 |
+
$this->addColumn(
|
79 |
+
'status',
|
80 |
+
array(
|
81 |
+
'header' => Mage::helper('lensync')->__('Status'),
|
82 |
+
'index' => 'status',
|
83 |
+
'frame_callback' => array($viewHelper, 'decorateStatus'),
|
84 |
+
)
|
85 |
+
);
|
86 |
+
return parent::_prepareColumns();
|
87 |
+
}
|
88 |
+
|
89 |
+
public function getGridUrl()
|
90 |
+
{
|
91 |
+
return $this->getUrl('*/*/grid', array('_current'=>true));
|
92 |
+
}
|
93 |
+
|
94 |
+
}
|
app/code/community/Lengow/Sync/Helper/Cron.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Lengow sync helper data
|
5 |
+
*
|
6 |
+
* @category Lengow
|
7 |
+
* @package Lengow_Cron
|
8 |
+
* @author Pierre Basile <pierre.basile@lengow.com>
|
9 |
+
* @copyright 2015 Lengow SAS
|
10 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
11 |
+
*/
|
12 |
+
class Lengow_Sync_Helper_Cron extends Mage_Core_Helper_Abstract
|
13 |
+
{
|
14 |
+
|
15 |
+
const STATUS_PENDING = 'pending';
|
16 |
+
const STATUS_RUNNING = 'running';
|
17 |
+
const STATUS_SUCCESS = 'success';
|
18 |
+
const STATUS_MISSED = 'missed';
|
19 |
+
const STATUS_ERROR = 'error';
|
20 |
+
|
21 |
+
const STATUS_KILLED = 'killed';
|
22 |
+
const STATUS_DISAPPEARED = 'gone';
|
23 |
+
const STATUS_DIDNTDOANYTHING = 'nothing';
|
24 |
+
const STATUS_SKIP_LOCKED = 'locked';
|
25 |
+
const STATUS_SKIP_OTHERJOBRUNNING = 'other_job_running';
|
26 |
+
const STATUS_DIED = 'died';
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Decorate status values
|
30 |
+
*
|
31 |
+
* @param $status
|
32 |
+
* @return string
|
33 |
+
*/
|
34 |
+
public function decorateStatus($status)
|
35 |
+
{
|
36 |
+
switch ($status) {
|
37 |
+
case self::STATUS_SUCCESS:
|
38 |
+
case self::STATUS_DIDNTDOANYTHING:
|
39 |
+
return '<span class="lengow-status green"><span>' . $status . '</span></span>';
|
40 |
+
break;
|
41 |
+
case self::STATUS_PENDING:
|
42 |
+
return '<span class="lengow-status grey"><span>' . $status . '</span></span>';
|
43 |
+
break;
|
44 |
+
case self::STATUS_RUNNING:
|
45 |
+
return '<span class="lengow-status blue"><span>' . $status . '</span></span>';
|
46 |
+
break;
|
47 |
+
case self::STATUS_SKIP_OTHERJOBRUNNING:
|
48 |
+
case self::STATUS_SKIP_LOCKED:
|
49 |
+
case self::STATUS_MISSED:
|
50 |
+
return '<span class="lengow-status orange"><span>' . $status . '</span></span>';
|
51 |
+
break;
|
52 |
+
case self::STATUS_ERROR:
|
53 |
+
case self::STATUS_DISAPPEARED:
|
54 |
+
case self::STATUS_KILLED:
|
55 |
+
return '<span class="lengow-status red"><span>' . $status . '</span></span>';
|
56 |
+
break;
|
57 |
+
default:
|
58 |
+
return $status;
|
59 |
+
break;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
app/code/community/Lengow/Sync/Model/Import.php
CHANGED
@@ -87,7 +87,7 @@ class Lengow_Sync_Model_Import extends Varien_Object {
|
|
87 |
$error = (string) $orders->error;
|
88 |
if (strtolower($error) == 'no way')
|
89 |
$message = $this->_helper->__('API\'s connection refused with IP %s', (string) $orders->ip);
|
90 |
-
$error =
|
91 |
$this->_helper->log($error);
|
92 |
return array('new' => 0, 'update' => 0, 'error' => $error);
|
93 |
} else {
|
87 |
$error = (string) $orders->error;
|
88 |
if (strtolower($error) == 'no way')
|
89 |
$message = $this->_helper->__('API\'s connection refused with IP %s', (string) $orders->ip);
|
90 |
+
$error = 'Error on lengow webservice ' . (isset($message) ? ': ' . $message : json_encode($orders));
|
91 |
$this->_helper->log($error);
|
92 |
return array('new' => 0, 'update' => 0, 'error' => $error);
|
93 |
} else {
|
app/code/community/Lengow/Sync/controllers/Adminhtml/Lengow/DebugController.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Lengow adminhtml log controller
|
4 |
+
*
|
5 |
+
* @category Lengow
|
6 |
+
* @package Lengow_Sync
|
7 |
+
* @author Pierre Basile <pierre.basile@lengow.com>
|
8 |
+
* @copyright 2015 Lengow SAS
|
9 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
+
*/
|
11 |
+
class Lengow_Sync_Adminhtml_Lengow_DebugController extends Mage_Adminhtml_Controller_Action {
|
12 |
+
|
13 |
+
//can access page without secret key
|
14 |
+
public function preDispatch()
|
15 |
+
{
|
16 |
+
if ($this->getRequest()->getActionName() == 'index') Mage::getSingleton('adminhtml/url')->turnOffSecretKey();
|
17 |
+
parent::preDispatch();
|
18 |
+
}
|
19 |
+
|
20 |
+
public function indexAction()
|
21 |
+
{
|
22 |
+
$this->loadLayout();
|
23 |
+
$this->renderLayout();
|
24 |
+
return $this;
|
25 |
+
}
|
26 |
+
|
27 |
+
//call when use the grid
|
28 |
+
public function gridAction()
|
29 |
+
{
|
30 |
+
$this->loadLayout();
|
31 |
+
$this->getResponse()->setBody($this->getLayout()->createBlock('lensync/adminhtml_cron_grid')->toHtml());
|
32 |
+
return $this;
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/code/community/Lengow/Sync/controllers/Adminhtml/Lengow/OrderController.php
CHANGED
@@ -112,7 +112,7 @@ class Lengow_Sync_Adminhtml_Lengow_OrderController extends Mage_Adminhtml_Contro
|
|
112 |
$api_token_lengow = $lentracker_config->get('general/api_key');
|
113 |
// if ID Customer or token API are empty -> stop import
|
114 |
if (empty($id_lengow_customer) || !is_numeric($id_lengow_customer) || empty($api_token_lengow)) {
|
115 |
-
$message = 'ID customer or token API is empty
|
116 |
$this->_getSession()->addError(Mage::helper('lensync')->__($message));
|
117 |
Mage::helper('lensync/data')->log($message);
|
118 |
break;
|
@@ -155,19 +155,19 @@ class Lengow_Sync_Adminhtml_Lengow_OrderController extends Mage_Adminhtml_Contro
|
|
155 |
}
|
156 |
if($result_new > 0) {
|
157 |
$this->_getSession()->addSuccess(Mage::helper('lensync')->__('%d orders are imported', $result_new));
|
158 |
-
Mage::helper('lensync/data')->log(
|
159 |
}
|
160 |
if($result_update > 0) {
|
161 |
$this->_getSession()->addSuccess(Mage::helper('lensync')->__('%d orders are updated', $result_update));
|
162 |
-
Mage::helper('lensync/data')->log(
|
163 |
}
|
164 |
if($result_new == 0 && $result_update == 0) {
|
165 |
$this->_getSession()->addSuccess(Mage::helper('lensync')->__('No order available to import'));
|
166 |
-
Mage::helper('lensync/data')->log(
|
167 |
}
|
168 |
if ($store_count == $store_disabled) {
|
169 |
-
$this->_getSession()->addError(Mage::helper('lensync')->__('
|
170 |
-
Mage::helper('lensync/data')->log(
|
171 |
}
|
172 |
Mage::helper('lensync/data')->log('## End manual import ##');
|
173 |
Mage::getSingleton('lensync/config')->importSetEnd();
|
112 |
$api_token_lengow = $lentracker_config->get('general/api_key');
|
113 |
// if ID Customer or token API are empty -> stop import
|
114 |
if (empty($id_lengow_customer) || !is_numeric($id_lengow_customer) || empty($api_token_lengow)) {
|
115 |
+
$message = 'Please checks your plugin configuration. ID customer or token API is empty';
|
116 |
$this->_getSession()->addError(Mage::helper('lensync')->__($message));
|
117 |
Mage::helper('lensync/data')->log($message);
|
118 |
break;
|
155 |
}
|
156 |
if($result_new > 0) {
|
157 |
$this->_getSession()->addSuccess(Mage::helper('lensync')->__('%d orders are imported', $result_new));
|
158 |
+
Mage::helper('lensync/data')->log($result_new . ' orders are imported');
|
159 |
}
|
160 |
if($result_update > 0) {
|
161 |
$this->_getSession()->addSuccess(Mage::helper('lensync')->__('%d orders are updated', $result_update));
|
162 |
+
Mage::helper('lensync/data')->log($result_update . ' orders are updated');
|
163 |
}
|
164 |
if($result_new == 0 && $result_update == 0) {
|
165 |
$this->_getSession()->addSuccess(Mage::helper('lensync')->__('No order available to import'));
|
166 |
+
Mage::helper('lensync/data')->log('No order available to import');
|
167 |
}
|
168 |
if ($store_count == $store_disabled) {
|
169 |
+
$this->_getSession()->addError(Mage::helper('lensync')->__('Please checks your plugin configuration. No store enabled to import'));
|
170 |
+
Mage::helper('lensync/data')->log('Please checks your plugin configuration. No store enabled to import');
|
171 |
}
|
172 |
Mage::helper('lensync/data')->log('## End manual import ##');
|
173 |
Mage::getSingleton('lensync/config')->importSetEnd();
|
app/code/community/Lengow/Sync/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Sync>
|
5 |
-
<version>2.1.
|
6 |
</Lengow_Sync>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Sync>
|
5 |
+
<version>2.1.1</version>
|
6 |
</Lengow_Sync>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Sync/etc/marketplaces.xml
CHANGED
@@ -110,7 +110,7 @@
|
|
110 |
<marketplace name="priceminister">
|
111 |
<api>https://wsdl.lengow.com/wsdl/priceminister/#ID_FLUX#/#ORDER_ID#/#ACTION#.xml</api>
|
112 |
<states>
|
113 |
-
<state name="
|
114 |
<actions>
|
115 |
<action type="accept">accept</action>
|
116 |
<action type="shipped">acceptOrder</action>
|
@@ -158,6 +158,7 @@
|
|
158 |
<value>Tatex</value>
|
159 |
<value>GLS</value>
|
160 |
<value>DHL</value>
|
|
|
161 |
<value>Courrier Suivi</value>
|
162 |
</accepted_values>
|
163 |
</param>
|
@@ -2449,6 +2450,77 @@
|
|
2449 |
</param>
|
2450 |
</additional_params>
|
2451 |
</marketplace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2452 |
<marketplace name="menlook">
|
2453 |
<api>https://wsdl.lengow.com/wsdl/menlook/#ID_FLUX#/#ORDER_ID#/#ACTION#.xml</api>
|
2454 |
<states>
|
110 |
<marketplace name="priceminister">
|
111 |
<api>https://wsdl.lengow.com/wsdl/priceminister/#ID_FLUX#/#ORDER_ID#/#ACTION#.xml</api>
|
112 |
<states>
|
113 |
+
<state name="new">
|
114 |
<actions>
|
115 |
<action type="accept">accept</action>
|
116 |
<action type="shipped">acceptOrder</action>
|
158 |
<value>Tatex</value>
|
159 |
<value>GLS</value>
|
160 |
<value>DHL</value>
|
161 |
+
<value>DPD</value>
|
162 |
<value>Courrier Suivi</value>
|
163 |
</accepted_values>
|
164 |
</param>
|
2450 |
</param>
|
2451 |
</additional_params>
|
2452 |
</marketplace>
|
2453 |
+
<marketplace name="auchan">
|
2454 |
+
<api>https://wsdl.lengow.com/wsdl/auchan/#ID_FLUX#/#ORDER_ID#/#ACTION#.xml</api>
|
2455 |
+
<states>
|
2456 |
+
<state name="STAGING">
|
2457 |
+
<lengow>new</lengow>
|
2458 |
+
</state>
|
2459 |
+
<state name="WAITING_ACCEPTANCE">
|
2460 |
+
<lengow>new</lengow>
|
2461 |
+
<actions>
|
2462 |
+
<action type="accept">accept</action>
|
2463 |
+
<action type="refuse">canceled</action>
|
2464 |
+
</actions>
|
2465 |
+
</state>
|
2466 |
+
<state name="WAITING_DEBIT">
|
2467 |
+
<lengow>new</lengow>
|
2468 |
+
</state>
|
2469 |
+
<state name="WAITING_DEBIT_PAYMENT">
|
2470 |
+
<lengow>new</lengow>
|
2471 |
+
</state>
|
2472 |
+
<state name="SHIPPING">
|
2473 |
+
<lengow>processing</lengow>
|
2474 |
+
<actions>
|
2475 |
+
<action type="shipped">shipped</action>
|
2476 |
+
</actions>
|
2477 |
+
</state>
|
2478 |
+
<state name="RECEIVED">
|
2479 |
+
<lengow>shipped</lengow>
|
2480 |
+
</state>
|
2481 |
+
<state name="SHIPPED">
|
2482 |
+
<lengow>shipped</lengow>
|
2483 |
+
</state>
|
2484 |
+
<state name="CANCELED">
|
2485 |
+
<lengow>canceled</lengow>
|
2486 |
+
</state>
|
2487 |
+
<state name="CLOSED">
|
2488 |
+
<lengow>shipped</lengow>
|
2489 |
+
</state>
|
2490 |
+
<state name="REFUSED">
|
2491 |
+
<lengow>canceled</lengow>
|
2492 |
+
</state>
|
2493 |
+
<state name="INCIDENT_OPEN">
|
2494 |
+
<lengow>processing</lengow>
|
2495 |
+
</state>
|
2496 |
+
<state name="INCIDENT_CLOSED">
|
2497 |
+
<lengow>processing</lengow>
|
2498 |
+
</state>
|
2499 |
+
<state name="WAITING_REFUND">
|
2500 |
+
<lengow>processing</lengow>
|
2501 |
+
</state>
|
2502 |
+
<state name="WAITING_REFUND_PAYMENT">
|
2503 |
+
<lengow>processing</lengow>
|
2504 |
+
</state>
|
2505 |
+
<state name="REFUNDED">
|
2506 |
+
<lengow>canceled</lengow>
|
2507 |
+
</state>
|
2508 |
+
</states>
|
2509 |
+
<additional_params>
|
2510 |
+
<param usedby="shipped">
|
2511 |
+
<type>tracking</type>
|
2512 |
+
<name>tracking_number</name>
|
2513 |
+
</param>
|
2514 |
+
<param usedby="shipped">
|
2515 |
+
<type>carrier</type>
|
2516 |
+
<name>carrier_name</name>
|
2517 |
+
</param>
|
2518 |
+
<param usedby="shipped">
|
2519 |
+
<type>tracking_url</type>
|
2520 |
+
<name>carrier_url</name>
|
2521 |
+
</param>
|
2522 |
+
</additional_params>
|
2523 |
+
</marketplace>
|
2524 |
<marketplace name="menlook">
|
2525 |
<api>https://wsdl.lengow.com/wsdl/menlook/#ID_FLUX#/#ORDER_ID#/#ACTION#.xml</api>
|
2526 |
<states>
|
app/code/community/Lengow/Tracker/Helper/Check.php
CHANGED
@@ -18,12 +18,14 @@ class Lengow_Tracker_Helper_Check extends Mage_Core_Helper_Abstract {
|
|
18 |
|
19 |
protected $_dom;
|
20 |
|
21 |
-
public function getVersion()
|
|
|
22 |
$this->updatePluginsVersion();
|
23 |
return (string) Mage::getConfig()->getNode()->modules->Lengow_Tracker->version;
|
24 |
}
|
25 |
|
26 |
-
public function getLastVersion()
|
|
|
27 |
$this->_loadDom();
|
28 |
// Compare version
|
29 |
$object = $this->_dom->xpath('/plugins/plugin[@name=\'' . self::PLUGIN_NAME . '\']');
|
@@ -39,7 +41,8 @@ class Lengow_Tracker_Helper_Check extends Mage_Core_Helper_Abstract {
|
|
39 |
*
|
40 |
* @return boolean
|
41 |
*/
|
42 |
-
public static function updatePluginsVersion()
|
|
|
43 |
$mp_update = Mage::getModel('lentracker/config')->get('hidden/last_synchro');
|
44 |
if (!$mp_update || !$mp_update == '0000-00-00' ||$mp_update != date('Y-m-d')) {
|
45 |
$sep = DS;
|
@@ -57,7 +60,8 @@ class Lengow_Tracker_Helper_Check extends Mage_Core_Helper_Abstract {
|
|
57 |
*
|
58 |
* @return boolean true if up to date, false if old version currently installed
|
59 |
*/
|
60 |
-
public function checkPluginVersion($current_version = null)
|
|
|
61 |
if($current_version == null)
|
62 |
return false;
|
63 |
$this->_loadDom();
|
@@ -74,13 +78,25 @@ class Lengow_Tracker_Helper_Check extends Mage_Core_Helper_Abstract {
|
|
74 |
return true;
|
75 |
}
|
76 |
|
77 |
-
public function getRealIP()
|
|
|
78 |
return $_SERVER['SERVER_ADDR'];
|
79 |
}
|
80 |
|
81 |
-
private function _loadDom()
|
|
|
82 |
if(!$this->_dom)
|
83 |
$this->_dom = simplexml_load_file(Mage::getModuleDir('etc', 'Lengow_Tracker') . DS . self::URI_TAG_CAPSULE );
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
18 |
|
19 |
protected $_dom;
|
20 |
|
21 |
+
public function getVersion()
|
22 |
+
{
|
23 |
$this->updatePluginsVersion();
|
24 |
return (string) Mage::getConfig()->getNode()->modules->Lengow_Tracker->version;
|
25 |
}
|
26 |
|
27 |
+
public function getLastVersion()
|
28 |
+
{
|
29 |
$this->_loadDom();
|
30 |
// Compare version
|
31 |
$object = $this->_dom->xpath('/plugins/plugin[@name=\'' . self::PLUGIN_NAME . '\']');
|
41 |
*
|
42 |
* @return boolean
|
43 |
*/
|
44 |
+
public static function updatePluginsVersion()
|
45 |
+
{
|
46 |
$mp_update = Mage::getModel('lentracker/config')->get('hidden/last_synchro');
|
47 |
if (!$mp_update || !$mp_update == '0000-00-00' ||$mp_update != date('Y-m-d')) {
|
48 |
$sep = DS;
|
60 |
*
|
61 |
* @return boolean true if up to date, false if old version currently installed
|
62 |
*/
|
63 |
+
public function checkPluginVersion($current_version = null)
|
64 |
+
{
|
65 |
if($current_version == null)
|
66 |
return false;
|
67 |
$this->_loadDom();
|
78 |
return true;
|
79 |
}
|
80 |
|
81 |
+
public function getRealIP()
|
82 |
+
{
|
83 |
return $_SERVER['SERVER_ADDR'];
|
84 |
}
|
85 |
|
86 |
+
private function _loadDom()
|
87 |
+
{
|
88 |
if(!$this->_dom)
|
89 |
$this->_dom = simplexml_load_file(Mage::getModuleDir('etc', 'Lengow_Tracker') . DS . self::URI_TAG_CAPSULE );
|
90 |
}
|
91 |
|
92 |
+
/**
|
93 |
+
* Check if valid magento version
|
94 |
+
*
|
95 |
+
* @return boolean.
|
96 |
+
*/
|
97 |
+
public function checkValidMagentoVersion()
|
98 |
+
{
|
99 |
+
return (Mage::getVersion() < '1.5.0.0') ? false : true;
|
100 |
+
}
|
101 |
+
|
102 |
}
|
app/code/community/Lengow/Tracker/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Tracker>
|
5 |
-
<version>2.1.
|
6 |
</Lengow_Tracker>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Tracker>
|
5 |
+
<version>2.1.1</version>
|
6 |
</Lengow_Tracker>
|
7 |
</modules>
|
8 |
<global>
|
app/design/adminhtml/default/default/layout/lengow.xml
CHANGED
@@ -24,6 +24,17 @@
|
|
24 |
</reference>
|
25 |
</adminhtml_lengow_log_index>
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
<adminhtml_lengow_export_index>
|
28 |
<reference name="head">
|
29 |
<action method="setTitle" translate="title">
|
24 |
</reference>
|
25 |
</adminhtml_lengow_log_index>
|
26 |
|
27 |
+
<adminhtml_lengow_debug_index>
|
28 |
+
<reference name="head">
|
29 |
+
<action method="setTitle" translate="title">
|
30 |
+
<title>Debug</title>
|
31 |
+
</action>
|
32 |
+
</reference>
|
33 |
+
<reference name="content">
|
34 |
+
<block type="lensync/adminhtml_cron" name="cron.grid" template="lengow/debug/index.phtml"></block>
|
35 |
+
</reference>
|
36 |
+
</adminhtml_lengow_debug_index>
|
37 |
+
|
38 |
<adminhtml_lengow_export_index>
|
39 |
<reference name="head">
|
40 |
<action method="setTitle" translate="title">
|
app/design/adminhtml/default/default/template/lengow/debug/index.phtml
ADDED
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="content-header">
|
2 |
+
<table cellspacing="0">
|
3 |
+
<tr>
|
4 |
+
<td style="width:50%;"><h3 class="icon-head head-products"><?php echo $this->__('Debug') ?></h3></td>
|
5 |
+
<td class="a-right">
|
6 |
+
<?php echo $this->getButtonsHtml() ?>
|
7 |
+
</td>
|
8 |
+
</tr>
|
9 |
+
</table>
|
10 |
+
</div>
|
11 |
+
|
12 |
+
<?php
|
13 |
+
$lenfeedConfig = Mage::getSingleton('lenfeed/config');
|
14 |
+
$helperSecurity = Mage::helper('lenexport/security');
|
15 |
+
$helperCheck = Mage::helper('lentracker/check');
|
16 |
+
?>
|
17 |
+
|
18 |
+
<div>
|
19 |
+
<table>
|
20 |
+
<tr>
|
21 |
+
<td style="width:550px">
|
22 |
+
<h2><?php echo $this->__('Global information'); ?></h2>
|
23 |
+
<div class="grid">
|
24 |
+
<table class="data">
|
25 |
+
<tr>
|
26 |
+
<td><?php echo $this->__('Magento version') ?></td>
|
27 |
+
<td><?php echo Mage::getVersion(); ?></td>
|
28 |
+
<?php
|
29 |
+
if ($helperCheck->checkValidMagentoVersion()) {
|
30 |
+
echo '<td class="lengow-debug-green">' . $this->__('Yes') . '</td>';
|
31 |
+
} else {
|
32 |
+
echo '<td class="lengow-debug-red">' . $this->__('No') . '</td>';
|
33 |
+
}
|
34 |
+
?>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<td><?php echo $this->__('Plugin version'); ?></td>
|
38 |
+
<td><?php echo Mage::helper('lensync/api')->getVersion(); ?></td>
|
39 |
+
<?php
|
40 |
+
if ($helperCheck->checkPluginVersion($helperCheck->getVersion())) {
|
41 |
+
echo '<td class="lengow-debug-green">' . $this->__('Yes') . '</td>';
|
42 |
+
} else {
|
43 |
+
echo '<td class="lengow-debug-red">' . $this->__('No') . '</td>';
|
44 |
+
}
|
45 |
+
?>
|
46 |
+
</tr>
|
47 |
+
<tr>
|
48 |
+
<td><?php echo $this->__('Server IP'); ?></td>
|
49 |
+
<td colspan="2"><?php echo $_SERVER["SERVER_ADDR"]; ?></td>
|
50 |
+
</tr>
|
51 |
+
<tr>
|
52 |
+
<td><?php echo $this->__('Ip authorised to export') ?></td>
|
53 |
+
<?php
|
54 |
+
$validIP = Mage::getStoreConfig('lenexport/performances/valid_ip');
|
55 |
+
echo '<td class="a-right"><input type="text" value="' . $validIP . '"></td>';
|
56 |
+
if ($helperSecurity->checkValidAuthorizedIP($validIP)) {
|
57 |
+
echo '<td class="lengow-debug-green">' . $this->__('Yes') . '</td>';
|
58 |
+
} else {
|
59 |
+
echo '<td class="lengow-debug-red">' . $this->__('No') . '</td>';
|
60 |
+
}
|
61 |
+
?>
|
62 |
+
</tr>
|
63 |
+
<tr>
|
64 |
+
<td><?php echo $this->__('Customer ID'); ?></td>
|
65 |
+
<td colspan="2"><?php echo $lenfeedConfig->get('lentracker/general/login'); ?></td>
|
66 |
+
</tr>
|
67 |
+
<tr>
|
68 |
+
<td><?php echo $this->__('Token API'); ?></td>
|
69 |
+
<td colspan="2"><?php echo $lenfeedConfig->get('lentracker/general/api_key'); ?></td>
|
70 |
+
</tr>
|
71 |
+
<tr>
|
72 |
+
<td><?php echo $this->__('Save feed on file') ?></td>
|
73 |
+
<?php
|
74 |
+
if (Mage::getStoreConfig('lenexport/performances/usesavefile')) {
|
75 |
+
echo '<td colspan="2" class="lengow-debug-green">' . $this->__('Enabled') . '</td>';
|
76 |
+
} else {
|
77 |
+
echo '<td colspan="2" class="lengow-debug-red">' . $this->__('Disabled') . '</td>';
|
78 |
+
}
|
79 |
+
?>
|
80 |
+
</tr>
|
81 |
+
<tr>
|
82 |
+
<td><?php echo $this->__('Active cron') ?></td>
|
83 |
+
<?php
|
84 |
+
if (Mage::getStoreConfig('lenexport/performances/active_cron')) {
|
85 |
+
echo '<td colspan="2" class="lengow-debug-green">' . $this->__('Enabled') . '</td>';
|
86 |
+
} else {
|
87 |
+
echo '<td colspan="2" class="lengow-debug-red">' . $this->__('Disabled') . '</td>';
|
88 |
+
}
|
89 |
+
?>
|
90 |
+
</tr>
|
91 |
+
<tr>
|
92 |
+
<td><?php echo $this->__('Auto import') ?></td>
|
93 |
+
<?php
|
94 |
+
if (Mage::getStoreConfig('lensync/performances/active_cron')) {
|
95 |
+
echo '<td colspan="2" class="lengow-debug-green">' . $this->__('Enabled') . '</td>';
|
96 |
+
} else {
|
97 |
+
echo '<td colspan="2" class="lengow-debug-red">' . $this->__('Disabled') . '</td>';
|
98 |
+
}
|
99 |
+
?>
|
100 |
+
</tr>
|
101 |
+
<tr>
|
102 |
+
<td><?php echo $this->__('Debug mode') ?></td>
|
103 |
+
<?php
|
104 |
+
if (Mage::getStoreConfig('lensync/performances/debug')) {
|
105 |
+
echo '<td colspan="2" class="lengow-debug-green">' . $this->__('Enabled') . '</td>';
|
106 |
+
} else {
|
107 |
+
echo '<td colspan="2" class="lengow-debug-red">' . $this->__('Disabled') . '</td>';
|
108 |
+
}
|
109 |
+
?>
|
110 |
+
</tr>
|
111 |
+
<tr>
|
112 |
+
<td><?php echo $this->__('The rights of import.flag file') ?></td>
|
113 |
+
<?php
|
114 |
+
$file_path = Mage::getBaseDir('media') . DS . 'lengow' . DS . 'import.flag';
|
115 |
+
echo '<td colspan="2">' . substr(sprintf('%o', fileperms($file_path)), -4) . '</td>';
|
116 |
+
?>
|
117 |
+
</tr>
|
118 |
+
<tr>
|
119 |
+
<td><?php echo $this->__('The rights of plugin.xml file') ?></td>
|
120 |
+
<?php
|
121 |
+
$file_path = Mage::getModuleDir('etc', 'Lengow_Tracker') . DS . 'plugins.xml';
|
122 |
+
echo '<td colspan="2">' . substr(sprintf('%o', fileperms($file_path)), -4) . '</td>';
|
123 |
+
?>
|
124 |
+
</tr>
|
125 |
+
<tr>
|
126 |
+
<td><?php echo $this->__('Write permission from media folder') ?></td>
|
127 |
+
<?php
|
128 |
+
$file_path = Mage::getBaseDir('media') . DS . 'lengow' . DS .'test.txt';
|
129 |
+
$file = fopen($file_path, "w+");
|
130 |
+
if($file == false) {
|
131 |
+
echo '<td class="lengow-debug-red" colspan="2">' . $this->__('No') . '</td>';
|
132 |
+
} else {
|
133 |
+
echo '<td class="lengow-debug-green" colspan="2">' . $this->__('Yes') . '</td>';
|
134 |
+
unlink($file_path);
|
135 |
+
}
|
136 |
+
?>
|
137 |
+
</tr>
|
138 |
+
</table>
|
139 |
+
</div>
|
140 |
+
</td>
|
141 |
+
<td style="width:600px">
|
142 |
+
<h2><?php echo $this->__('Information by store'); ?></h2>
|
143 |
+
<div class="grid">
|
144 |
+
<?php
|
145 |
+
foreach (Mage::app()->getWebsites() as $website) {
|
146 |
+
foreach ($website->getGroups() as $group) {
|
147 |
+
$stores = $group->getStores();
|
148 |
+
foreach ($stores as $store) {
|
149 |
+
echo '<table class="data">';
|
150 |
+
echo '<tr><td colspan="2" class="lengow-debug-store">' . $this->__('Store') . ' : ' . $store->getName() . ' (' . $store->getId() . ')</td></tr>';
|
151 |
+
echo '<tr>';
|
152 |
+
echo '<td>' . $this->__('Export enabled') . '</td>';
|
153 |
+
if (Mage::getStoreConfig('lenexport/global/active_store', $store)) {
|
154 |
+
echo '<td class="lengow-debug-green">' . $this->__('Yes') . '</td>';
|
155 |
+
} else {
|
156 |
+
echo '<td class="lengow-debug-red">' . $this->__('No') . '</td>';
|
157 |
+
}
|
158 |
+
echo '</tr>';
|
159 |
+
echo '<tr>';
|
160 |
+
echo '<td>' . $this->__('Import enabled') . '</td>';
|
161 |
+
if (Mage::getStoreConfig('lensync/orders/active_store', $store)) {
|
162 |
+
echo '<td class="lengow-debug-green">' . $this->__('Yes') . '</td>';
|
163 |
+
} else {
|
164 |
+
echo '<td class="lengow-debug-red">' . $this->__('No') . '</td>';
|
165 |
+
}
|
166 |
+
echo '</tr>';
|
167 |
+
echo '<tr>';
|
168 |
+
echo '<td>' . $this->__('Group ID') . '</td>';
|
169 |
+
echo '<td>' . Mage::getStoreConfig('lentracker/general/group', $store) . '</td>';
|
170 |
+
echo '</tr>';
|
171 |
+
echo '<tr>';
|
172 |
+
echo '<td>' . $this->__('Feed Url') . '</td>';
|
173 |
+
$urlFeed = Mage::getUrl('lengow/feed', array('store' => $store->getId(), '_current' => false)) ;
|
174 |
+
echo '<td><input type="text" class="lengow-feed-input" value="'.$urlFeed.'" READONLY>
|
175 |
+
- <a href="'.$urlFeed.'">'.$this->__('View feed').'</a></td>';
|
176 |
+
echo '</tr>';
|
177 |
+
echo '</table><br/>';
|
178 |
+
}
|
179 |
+
}
|
180 |
+
}
|
181 |
+
?>
|
182 |
+
</div>
|
183 |
+
</td>
|
184 |
+
<td style="width:550px">
|
185 |
+
<h2><?php echo $this->__('Content folder media'); ?></h2>
|
186 |
+
<div class="grid">
|
187 |
+
<?php
|
188 |
+
foreach (Mage::app()->getWebsites() as $website) {
|
189 |
+
foreach ($website->getGroups() as $group) {
|
190 |
+
$stores = $group->getStores();
|
191 |
+
foreach ($stores as $store) {
|
192 |
+
$folder_path = Mage::getBaseDir('media') . DS . 'lengow' . DS . $store->getCode() . DS;
|
193 |
+
$folder_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'lengow' . DS . $store->getCode() . DS;
|
194 |
+
$files = array_diff(scandir($folder_path), array('..', '.'));
|
195 |
+
echo '<table class="data">';
|
196 |
+
echo '<tr><td colspan="3" class="lengow-debug-store">' . $this->__('Store') . ' : ' . $store->getName() . ' (' . $store->getId() . ')</td></tr>';
|
197 |
+
echo '<tr><td>' . $this->__('Path folder') . '</td><td colspan="2">' . $folder_path . '</td></tr>';
|
198 |
+
echo '<tr><td colspan="3" class="a-center">' . $this->__('File list') . '</td></tr>';
|
199 |
+
if (count($files) > 0) {
|
200 |
+
date_default_timezone_set(Mage::getStoreConfig('general/locale/timezone'));
|
201 |
+
foreach ($files as $file) {
|
202 |
+
echo '<tr><td>'.$file.'</td>';
|
203 |
+
echo '<td>'.date("F d Y H:i:s", filectime($folder_path.$file)).'</td>';
|
204 |
+
echo '<td><a href="' . $folder_url.$file . '" target="_blank">' . $this->__('View file') . '</a></td></tr>';
|
205 |
+
}
|
206 |
+
} else {
|
207 |
+
echo '<tr><td colspan="3" class="lengow-debug-red">' . $this->__('No file exported') . '</td></tr>';
|
208 |
+
}
|
209 |
+
echo '</table><br/>';
|
210 |
+
}
|
211 |
+
}
|
212 |
+
}
|
213 |
+
?>
|
214 |
+
</div>
|
215 |
+
</td>
|
216 |
+
</tr>
|
217 |
+
</table>
|
218 |
+
<div>
|
219 |
+
<h2><?php echo $this->__('Viewing cron jobs'); ?></h2>
|
220 |
+
<?php echo $this->getGridHtml() ?>
|
221 |
+
</div>
|
222 |
+
</div>
|
app/locale/fr_FR/Lengow_Connector.csv
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
"Save the feed on a file","Sauvegarder votre flux dans un fichier"
|
25 |
"Active cron","Activer la tâche planifiée"
|
26 |
"Active the scheduled task for export your feed every 4h","Activer la tache planifiée de l'export toutes les 4h"
|
27 |
-
"
|
28 |
"Select attributes to export","Sélectionner les attributs produits à exporter"
|
29 |
"Manage Products Export","Gestion des produits"
|
30 |
"Products","Produits"
|
@@ -170,3 +170,31 @@
|
|
170 |
"Default shipping method","La méthode de transport par défaut"
|
171 |
"Use fake emails","Utilisation de faux emails"
|
172 |
"Use fake emails for customer creation","Utilisation de faux emails pour la création de client"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
"Save the feed on a file","Sauvegarder votre flux dans un fichier"
|
25 |
"Active cron","Activer la tâche planifiée"
|
26 |
"Active the scheduled task for export your feed every 4h","Activer la tache planifiée de l'export toutes les 4h"
|
27 |
+
"Product attributes","Attributs produit"
|
28 |
"Select attributes to export","Sélectionner les attributs produits à exporter"
|
29 |
"Manage Products Export","Gestion des produits"
|
30 |
"Products","Produits"
|
170 |
"Default shipping method","La méthode de transport par défaut"
|
171 |
"Use fake emails","Utilisation de faux emails"
|
172 |
"Use fake emails for customer creation","Utilisation de faux emails pour la création de client"
|
173 |
+
"Import is already started","Une importation est déjà en cours"
|
174 |
+
"Please checks your plugin configuration. ID customer or token API is empty","Merci de vérifier votre configuration de plugin. L'ID client ou le token API est vide"
|
175 |
+
"Please checks your plugin configuration. No store enabled to import","Merci de vérifier votre configuration de plugin. Aucune boutique active pour l'importation"
|
176 |
+
"Debug","Debug"
|
177 |
+
"Global information","Information globale"
|
178 |
+
"Magento version","Version de Magento"
|
179 |
+
"Plugin version","Version du plugin"
|
180 |
+
"Server IP","L'IP du serveur"
|
181 |
+
"The rights of import.flag file","Les droits du fichier import.flag"
|
182 |
+
"The rights of plugin.xml file","Les droits du fichier plugins.xml"
|
183 |
+
"Write permission from media folder","Permission d'écrire dans le dossier media"
|
184 |
+
"Information by store","Information par boutique"
|
185 |
+
"Store","Boutique"
|
186 |
+
"Export enabled","Export activé"
|
187 |
+
"Import enabled","Import activé"
|
188 |
+
"Feed Url","L'Url du flux"
|
189 |
+
"View feed","Voir le flux"
|
190 |
+
"Content folder media","Contenu du dossier media"
|
191 |
+
"Path folder","Chemin du dossier"
|
192 |
+
"File list","Liste de fichier"
|
193 |
+
"View file","Voir le fichier"
|
194 |
+
"Viewing cron jobs","Visualisation des tâches cron"
|
195 |
+
"Update cron table","Mettre à jour la table cron"
|
196 |
+
"Cron Configuration","Configuration du cron"
|
197 |
+
"Code","Code"
|
198 |
+
"Scheduled at","Date de planification"
|
199 |
+
"Executed at","Date d'exécution"
|
200 |
+
"Finished at","Date de fin"
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Lengow_Export</name>
|
4 |
-
<version>2.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -11,9 +11,9 @@
|
|
11 |
Export your catalog, import your orders from all Marketplaces.</description>
|
12 |
<notes>New version of Lengow's Connector</notes>
|
13 |
<authors><author><name>Ludovic</name><user>ludo</user><email>ludovic@lengow.com</email></author><author><name>Romain</name><user>romain</user><email>romain@lengow.com</email></author><author><name>Mathieu</name><user>mathieu</user><email>mathieu.sabourin@lengow.com</email></author><author><name>Benjamin</name><user>benjamin</user><email>benjamin.le-neve@lengow.com</email></author></authors>
|
14 |
-
<date>2015-11-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Lengow"><dir name="Dashboard"><dir name="Block"><dir name="Adminhtml"><dir name="Dashboard"><file name="Charts.php" hash="71641cf5b1ccd6267b5566a025dc96a4"/><file name="Diagrams.php" hash="0aeb53d09f0a83d03ce66825283b0046"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7129af0e9ab390e0695f84865a02fdb5"/></dir><dir name="Model"><file name="Config.php" hash="7e0b019175b5ad29f0b70a6e43b5ebce"/></dir><dir name="etc"><file name="config.xml" hash="15a0dde0e691bfb1e32d62ad3ca92cd0"/></dir></dir><dir name="Export"><dir name="Block"><dir name="Adminhtml"><dir name="Product"><file name="Grid.php" hash="9299bea84d78c5c852e0b8f6c05b17b6"/></dir><file name="Product.php" hash="e043c5abef03d0c46ccd51e49c868cf9"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3f6f4b46059a479394786987d66eb027"/><file name="Security.php" hash="20cbf93d2c167c320ce8292d9bc186b4"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="5cefda415930c953311c8aad2cca5fda"/></dir><file name="Config.php" hash="fba4bed58d9c1a69d247b7cc7c0b6b64"/><dir name="Convert"><dir name="Parser"><file name="Product.php" hash="bc664380ca9d37256460613ecdbd8f92"/></dir></dir><dir name="Export"><dir name="Rewrite"><dir name="Catalog"><file name="Config.php" hash="e192cd30c6ed7e4cc370953c3ecd2367"/></dir></dir></dir><dir name="Feed"><file name="Abstract.php" hash="ed13409ab1c507b48b9460c8886bef8d"/><file name="Csv.php" hash="5958c0bdfc04dd33f59245fded2949d7"/><file name="Json.php" hash="4df743bce6647eea36d2677ab7f6a9a8"/><file name="Xml.php" hash="3202baa8a64b22bd7c39c1022a9b48c8"/><file name="Yaml.php" hash="f0c24bd481039c4fc13fa26ef7a4d1b9"/></dir><file name="Generate.php" hash="c9e3836400937b94cd51a8087e5e75b8"/><file name="Observer.php" hash="dcfeae8ac1130cd4f8e952b3d75d59b4"/><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="685809c2367ec3509ecbf9f4d07f4661"/></dir></dir><dir name="Source"><file name="Attributes.php" hash="f8cae8fe1a7a15c7b4cd76503bffd053"/><file name="Types.php" hash="513868577816d51f6cc61e75ba43a938"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="140ba6e9cce1204fe0e0c50cf81762ec"/></dir><dir name="Source"><dir name="Category"><file name="Level.php" hash="a1875080def0c89a2bb4b4088f57eac8"/></dir><file name="Format.php" hash="fd069f484cc3ae0d914fb7a965789d9f"/><file name="Getattributes.php" hash="d42c66b3f0ed0c21d5e824400c0b1dc5"/><file name="Images.php" hash="e6ec93f301599ea91d69a1f4847e240d"/><file name="Status.php" hash="449b2bf3c121c3a07aab6072aa629a90"/><file name="Types.php" hash="cab52d0a7e34ff4629ad17d0a2c96362"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="ExportController.php" hash="1ee080105825d45ce474065e57a4e89e"/></dir></dir><file name="FeedController.php" hash="4ac4e3fa4f69099c89d951411bc51838"/></dir><dir name="etc"><file name="config.xml" hash="aa2d5443ed2061f9d053f38cfc3f0f63"/><file name="system.xml" hash="04d019632939dc948d3b1acd0c9bb32b"/></dir></dir><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Feed"><file name="Grid.php" hash="74fcb8c472666b89d9ba550357102c38"/><dir name="Renderer"><file name="Migrate.php" hash="a6a1fd08b4269b052d8c9ed447589ae3"/><file name="Select.php" hash="78808e9061b7a5aa73c2273f18bc0746"/><file name="Url.php" hash="2a3c4fa22460806dda478a088a17ced7"/></dir></dir><file name="Feed.php" hash="30e2d20268eb24bbcc9554ba97e5149e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="799d69122855da8c287b86e663f3562d"/></dir><dir name="Model"><file name="Config.php" hash="7487c73a3fe292614c9f4a2b66d8a664"/><file name="Feed.php" hash="9e7096ba72dcb071662842c681e50928"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="FeedController.php" hash="964721ca7619b7c1f16b66d13fed2a54"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="b854253f0a8e41e5df2cc6de4b40892d"/><file name="system.xml" hash="81e6692a37fead4aaa02a4e255ce8464"/></dir></dir><dir name="Sync"><dir name="Block"><dir name="Adminhtml"><file name="Import.php" hash="832bc82dde18ae4bc886933b28f41885"/><dir name="Log"><file name="Grid.php" hash="31416dda25b833416ef9dad2143b2d9f"/></dir><file name="Log.php" hash="e4032e885dbbdd0c3f4112efbc8ef5a2"/><dir name="Order"><file name="Grid.php" hash="313ea7fde1df56b36159e5d37a757ac9"/><file name="Tab.php" hash="405c887f100b259ba9750088b1c17b44"/></dir><file name="Order.php" hash="c5cecae61feb8dacd348124ba3a2ffef"/></dir><dir name="Payment"><dir name="Info"><file name="Purchaseorder.php" hash="ccf3a1c41c21d1ffd315819be1808fec"/></dir></dir></dir><dir name="Helper"><file name="Api.php" hash="e8846c81d34c1025579151c7372492fb"/><file name="Data.php" hash="d66a6bf80a4d4cb86aa793ad10e4aef3"/></dir><dir name="Model"><file name="Config.php" hash="938e26ef034db15e8a3d977b1a665e25"/><dir name="Connector"><file name="Exception.php" hash="de1fa1b69e24fe7b976c03f1ed1ca7f7"/></dir><file name="Connector.php" hash="544000640f47a5e12482138b1d920ce8"/><dir name="Customer"><file name="Customer.php" hash="2cb9388279a880b8bd602f4b026c9162"/></dir><file name="File.php" hash="d5c9e6af9ca7c7c6013430327b2019df"/><file name="Import.php" hash="8b146e5409105164505b0cc0e316bb2b"/><file name="Log.php" hash="29e1e489b6d125fe64d91693f987a502"/><dir name="Marketplace"><file name="Exception.php" hash="bd7ab8db94e241d022cd6e467e8596ec"/></dir><file name="Marketplace.php" hash="19c8254e80a459b7304a75dc84afd280"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="22e087b5cfee173440877dd0714fee55"/></dir><file name="Log.php" hash="ab90ef25ea4f6369f713325b6ba247e5"/></dir><file name="Observer.php" hash="32e0c71fa9b39308983efdee11eb8ac2"/><file name="Order.php" hash="fd722ee55aa18db7f0d84cd80f00547e"/><dir name="Payment"><dir name="Method"><file name="Lengow.php" hash="34c96c7a150ee18598301f57dbc707bc"/></dir></dir><dir name="Quote"><file name="Exception.php" hash="7002f0d752509f576352e7bbd78b590c"/><file name="Item.php" hash="30f9faf6b299ef64f10785ba16030a17"/></dir><file name="Quote.php" hash="725f739d4664e5bc5da424aa1f6b3df1"/><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="8340d3cef16fc86306d626a71d2e9ebc"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Customer"><file name="Group.php" hash="640638dcee398949ec4d0c1e2731005d"/></dir><dir name="Shipping"><file name="Carrier.php" hash="f83fd1e7fb5c2bd50d2ba983e24b6240"/><file name="Method.php" hash="8df07e95712559dad4b37bde3acf9f77"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="LogController.php" hash="118fa3fdb4aa3fdd70a7bfb06c7174a2"/><file name="OrderController.php" hash="15406d8c409f6529922b6aa3d8e6f99f"/></dir></dir><file name="ApiController.php" hash="3d62e46fd860b326f288c5869fbe3389"/></dir><dir name="etc"><file name="config.xml" hash="23dae84449429adad6ba2a92ec627c96"/><file name="marketplaces.xml" hash="4645614d6219fe852cd370c4ce52743a"/><file name="system.xml" hash="0366aaf26d72400188bffbc11f85524c"/><file name="wsdl.xml" hash="d299fecf68e9f795e26037be4f2115b3"/></dir><dir name="sql"><dir name="lengow_setup"><file name="mysql4-install-2.0.0.0.php" hash="6856dcca18117fb112e6523139fb47c5"/><file name="mysql4-upgrade-2.0.0.0-2.0.0.1.php" hash="92edfe3518259e1a11213cc80ccaeb34"/><file name="mysql4-upgrade-2.0.2-2.1.0.php" hash="187da13f6ae76378f1118bbf5acaf683"/></dir></dir></dir><dir name="Tracker"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Check"><file name="Point.php" hash="de29cb19427434c1713d2dae9c97900a"/></dir><file name="Check.php" hash="877fd7a030feff2ad8bc561a3785be5b"/></dir></dir></dir><dir name="Tag"><file name="Capsule.php" hash="d2ed189be29fd76f6ceb0b8d68f21efe"/><file name="Simple.php" hash="ff8fe8fa9767b75de69f5f8e2dfa6ba1"/></dir><file name="Tracker.php" hash="3bdb94f577a831310f8f12f854739906"/></dir><dir name="Helper"><file name="Check.php" hash="508cf7578343c0807e1f010f7fd52dec"/><file name="Data.php" hash="e526694354fe760f266bf925e5e4ac39"/></dir><dir name="Model"><file name="Capsule.php" hash="55504d0b6398f5a88b5977bf54f5b54b"/><file name="Config.php" hash="7848ae5ddc1f2617effa39e27b3e838e"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Identifiant.php" hash="51943c288cab9456c62a2130405b695b"/><file name="Tracker.php" hash="8fdc4f1d9f02300525aeb295e9cd3dfc"/></dir></dir></dir><file name="Tracker.php" hash="4c740aa3a311a93b8143a69fd1ea3221"/></dir><dir name="etc"><file name="config.xml" hash="5cd30ce68d418e921b7005f1b9afc579"/><file name="plugins.xml" hash="e35408d7ea61c7ccc669cfb5b7bb8567"/><file name="system.xml" hash="e80c43066774e6fdf6e164bf06bf38ee"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="6c61c98c9a6e2f32fa6b8f9d2eef09d4"/></dir><dir name="template"><dir name="lengow"><dir name="check"><file name="point.phtml" hash="9791a2a673d45bb6db850ec802c63a71"/></dir><dir name="dashboard"><file name="charts.phtml" hash="51964c7bcace68d8f4ef23e314f07a8c"/></dir><dir name="export"><file name="product.phtml" hash="8c0c893621573c316bb7da14a3533224"/></dir><dir name="feed"><file name="grid.phtml" hash="b34e7f8ce18ce9605e88a5bc8b806442"/></dir><dir name="sales"><dir name="order"><dir name="tab"><file name="info.phtml" hash="fcaa52401ea83b17e52d0db2f8367b93"/></dir></dir><dir name="payment"><dir name="info"><file name="purchaseorder.phtml" hash="8e9e7a287ef57fe72023e28747fb0864"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="0e6a4eb11f6433d54474bfed8061d560"/></dir><dir name="template"><dir name="lengow"><dir name="tracker"><file name="simpletag.phtml" hash="3b73552b323d00bd053e1086e6f5ff45"/><file name="tag.phtml" hash="619f7bc6fe20c3dd6c1d82cdf12811b5"/><file name="tagcapsule.phtml" hash="2916e7693ef8ec9fcce5f5a8079d2beb"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Lengow_Connector.csv" hash="45a903abe80cd29994ec113b49e07199"/></dir></target><target name="mageetc"><dir name="modules"><file name="Lengow_Connector.xml" hash="34b39beecc725740ea1e0bc8d339287a"/></dir></target><target name="magemedia"><dir name="lengow"><file name="import.flag" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="lengow"><dir name="css"><file name="admin.css" hash="aa78dc26e735d8110b88d9974f72a502"/></dir><dir name="js"><file name="charts.min.js" hash="6806368c6a0bf73a5236b452fd5c2332"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="lengow"><dir name="js"><file name="tracker.js" hash="6402a4fbbb81a3b0587ec8c4c375e0a0"/></dir></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Lengow_Export</name>
|
4 |
+
<version>2.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
11 |
Export your catalog, import your orders from all Marketplaces.</description>
|
12 |
<notes>New version of Lengow's Connector</notes>
|
13 |
<authors><author><name>Ludovic</name><user>ludo</user><email>ludovic@lengow.com</email></author><author><name>Romain</name><user>romain</user><email>romain@lengow.com</email></author><author><name>Mathieu</name><user>mathieu</user><email>mathieu.sabourin@lengow.com</email></author><author><name>Benjamin</name><user>benjamin</user><email>benjamin.le-neve@lengow.com</email></author></authors>
|
14 |
+
<date>2015-11-26</date>
|
15 |
+
<time>14:18:41</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Lengow"><dir name="Dashboard"><dir name="Block"><dir name="Adminhtml"><dir name="Dashboard"><file name="Charts.php" hash="71641cf5b1ccd6267b5566a025dc96a4"/><file name="Diagrams.php" hash="0aeb53d09f0a83d03ce66825283b0046"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7129af0e9ab390e0695f84865a02fdb5"/></dir><dir name="Model"><file name="Config.php" hash="7e0b019175b5ad29f0b70a6e43b5ebce"/></dir><dir name="etc"><file name="config.xml" hash="405a7ff301cf4c62818bbb178cd899f5"/></dir></dir><dir name="Export"><dir name="Block"><dir name="Adminhtml"><dir name="Product"><file name="Grid.php" hash="9299bea84d78c5c852e0b8f6c05b17b6"/></dir><file name="Product.php" hash="e043c5abef03d0c46ccd51e49c868cf9"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3f6f4b46059a479394786987d66eb027"/><file name="Security.php" hash="c8771b29a19c2ef12796a3affc837ae5"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="5cefda415930c953311c8aad2cca5fda"/></dir><file name="Config.php" hash="fba4bed58d9c1a69d247b7cc7c0b6b64"/><dir name="Convert"><dir name="Parser"><file name="Product.php" hash="bc664380ca9d37256460613ecdbd8f92"/></dir></dir><dir name="Export"><dir name="Rewrite"><dir name="Catalog"><file name="Config.php" hash="e192cd30c6ed7e4cc370953c3ecd2367"/></dir></dir></dir><dir name="Feed"><file name="Abstract.php" hash="ed13409ab1c507b48b9460c8886bef8d"/><file name="Csv.php" hash="5958c0bdfc04dd33f59245fded2949d7"/><file name="Json.php" hash="4df743bce6647eea36d2677ab7f6a9a8"/><file name="Xml.php" hash="3202baa8a64b22bd7c39c1022a9b48c8"/><file name="Yaml.php" hash="f0c24bd481039c4fc13fa26ef7a4d1b9"/></dir><file name="Generate.php" hash="31f31de72d0452437ffdabe4ab1311d0"/><file name="Observer.php" hash="dcfeae8ac1130cd4f8e952b3d75d59b4"/><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="685809c2367ec3509ecbf9f4d07f4661"/></dir></dir><dir name="Source"><file name="Attributes.php" hash="f8cae8fe1a7a15c7b4cd76503bffd053"/><file name="Types.php" hash="513868577816d51f6cc61e75ba43a938"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="140ba6e9cce1204fe0e0c50cf81762ec"/></dir><dir name="Source"><dir name="Category"><file name="Level.php" hash="a1875080def0c89a2bb4b4088f57eac8"/></dir><file name="Format.php" hash="fd069f484cc3ae0d914fb7a965789d9f"/><file name="Getattributes.php" hash="d42c66b3f0ed0c21d5e824400c0b1dc5"/><file name="Images.php" hash="e6ec93f301599ea91d69a1f4847e240d"/><file name="Status.php" hash="449b2bf3c121c3a07aab6072aa629a90"/><file name="Types.php" hash="cab52d0a7e34ff4629ad17d0a2c96362"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="ExportController.php" hash="1ee080105825d45ce474065e57a4e89e"/></dir></dir><file name="FeedController.php" hash="4ac4e3fa4f69099c89d951411bc51838"/></dir><dir name="etc"><file name="config.xml" hash="f4adcb9c0dd62272ffedaebe471aac6d"/><file name="system.xml" hash="04d019632939dc948d3b1acd0c9bb32b"/></dir></dir><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Feed"><file name="Grid.php" hash="74fcb8c472666b89d9ba550357102c38"/><dir name="Renderer"><file name="Migrate.php" hash="a6a1fd08b4269b052d8c9ed447589ae3"/><file name="Select.php" hash="78808e9061b7a5aa73c2273f18bc0746"/><file name="Url.php" hash="2a3c4fa22460806dda478a088a17ced7"/></dir></dir><file name="Feed.php" hash="30e2d20268eb24bbcc9554ba97e5149e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="799d69122855da8c287b86e663f3562d"/></dir><dir name="Model"><file name="Config.php" hash="7487c73a3fe292614c9f4a2b66d8a664"/><file name="Feed.php" hash="9e7096ba72dcb071662842c681e50928"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="FeedController.php" hash="964721ca7619b7c1f16b66d13fed2a54"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="8002389dc536a9c705cd491dd64e9b8e"/><file name="system.xml" hash="81e6692a37fead4aaa02a4e255ce8464"/></dir></dir><dir name="Sync"><dir name="Block"><dir name="Adminhtml"><dir name="Cron"><file name="Grid.php" hash="ac84c0ace4548928d5e7706a67eac7c1"/></dir><file name="Cron.php" hash="0be9b2a4d2b751d54a51bd1f1e5a15d3"/><file name="Import.php" hash="832bc82dde18ae4bc886933b28f41885"/><dir name="Log"><file name="Grid.php" hash="31416dda25b833416ef9dad2143b2d9f"/></dir><file name="Log.php" hash="e4032e885dbbdd0c3f4112efbc8ef5a2"/><dir name="Order"><file name="Grid.php" hash="313ea7fde1df56b36159e5d37a757ac9"/><file name="Tab.php" hash="405c887f100b259ba9750088b1c17b44"/></dir><file name="Order.php" hash="c5cecae61feb8dacd348124ba3a2ffef"/></dir><dir name="Payment"><dir name="Info"><file name="Purchaseorder.php" hash="ccf3a1c41c21d1ffd315819be1808fec"/></dir></dir></dir><dir name="Helper"><file name="Api.php" hash="e8846c81d34c1025579151c7372492fb"/><file name="Cron.php" hash="cf6c9289006e4bdea116e90ba8ec8d10"/><file name="Data.php" hash="d66a6bf80a4d4cb86aa793ad10e4aef3"/></dir><dir name="Model"><file name="Config.php" hash="938e26ef034db15e8a3d977b1a665e25"/><dir name="Connector"><file name="Exception.php" hash="de1fa1b69e24fe7b976c03f1ed1ca7f7"/></dir><file name="Connector.php" hash="544000640f47a5e12482138b1d920ce8"/><dir name="Customer"><file name="Customer.php" hash="2cb9388279a880b8bd602f4b026c9162"/></dir><file name="File.php" hash="d5c9e6af9ca7c7c6013430327b2019df"/><file name="Import.php" hash="773149f38880af977721af9ffb65f70f"/><file name="Log.php" hash="29e1e489b6d125fe64d91693f987a502"/><dir name="Marketplace"><file name="Exception.php" hash="bd7ab8db94e241d022cd6e467e8596ec"/></dir><file name="Marketplace.php" hash="19c8254e80a459b7304a75dc84afd280"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="22e087b5cfee173440877dd0714fee55"/></dir><file name="Log.php" hash="ab90ef25ea4f6369f713325b6ba247e5"/></dir><file name="Observer.php" hash="32e0c71fa9b39308983efdee11eb8ac2"/><file name="Order.php" hash="fd722ee55aa18db7f0d84cd80f00547e"/><dir name="Payment"><dir name="Method"><file name="Lengow.php" hash="34c96c7a150ee18598301f57dbc707bc"/></dir></dir><dir name="Quote"><file name="Exception.php" hash="7002f0d752509f576352e7bbd78b590c"/><file name="Item.php" hash="30f9faf6b299ef64f10785ba16030a17"/></dir><file name="Quote.php" hash="725f739d4664e5bc5da424aa1f6b3df1"/><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="8340d3cef16fc86306d626a71d2e9ebc"/></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><dir name="Customer"><file name="Group.php" hash="640638dcee398949ec4d0c1e2731005d"/></dir><dir name="Shipping"><file name="Carrier.php" hash="f83fd1e7fb5c2bd50d2ba983e24b6240"/><file name="Method.php" hash="8df07e95712559dad4b37bde3acf9f77"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="DebugController.php" hash="a0197d3783c806e97aed734378735014"/><file name="LogController.php" hash="118fa3fdb4aa3fdd70a7bfb06c7174a2"/><file name="OrderController.php" hash="13b50921f4cb1a5148195e92345602a8"/></dir></dir><file name="ApiController.php" hash="3d62e46fd860b326f288c5869fbe3389"/></dir><dir name="etc"><file name="config.xml" hash="0ec189f2fece1b334f8f5c2018d9de8b"/><file name="marketplaces.xml" hash="e8f110f4a879bc522effc70ec71eb65f"/><file name="system.xml" hash="0366aaf26d72400188bffbc11f85524c"/><file name="wsdl.xml" hash="d299fecf68e9f795e26037be4f2115b3"/></dir><dir name="sql"><dir name="lengow_setup"><file name="mysql4-install-2.0.0.0.php" hash="6856dcca18117fb112e6523139fb47c5"/><file name="mysql4-upgrade-2.0.0.0-2.0.0.1.php" hash="92edfe3518259e1a11213cc80ccaeb34"/><file name="mysql4-upgrade-2.0.2-2.1.0.php" hash="187da13f6ae76378f1118bbf5acaf683"/></dir></dir></dir><dir name="Tracker"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Check"><file name="Point.php" hash="de29cb19427434c1713d2dae9c97900a"/></dir><file name="Check.php" hash="877fd7a030feff2ad8bc561a3785be5b"/></dir></dir></dir><dir name="Tag"><file name="Capsule.php" hash="d2ed189be29fd76f6ceb0b8d68f21efe"/><file name="Simple.php" hash="ff8fe8fa9767b75de69f5f8e2dfa6ba1"/></dir><file name="Tracker.php" hash="3bdb94f577a831310f8f12f854739906"/></dir><dir name="Helper"><file name="Check.php" hash="01f7145b0963867f78c29ec53e5ea5b7"/><file name="Data.php" hash="e526694354fe760f266bf925e5e4ac39"/></dir><dir name="Model"><file name="Capsule.php" hash="55504d0b6398f5a88b5977bf54f5b54b"/><file name="Config.php" hash="7848ae5ddc1f2617effa39e27b3e838e"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Identifiant.php" hash="51943c288cab9456c62a2130405b695b"/><file name="Tracker.php" hash="8fdc4f1d9f02300525aeb295e9cd3dfc"/></dir></dir></dir><file name="Tracker.php" hash="4c740aa3a311a93b8143a69fd1ea3221"/></dir><dir name="etc"><file name="config.xml" hash="c4fd5a45956aa46ed3da05d51800549a"/><file name="plugins.xml" hash="e35408d7ea61c7ccc669cfb5b7bb8567"/><file name="system.xml" hash="e80c43066774e6fdf6e164bf06bf38ee"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="359ec9ffc2b7f6785750ef0a760b7c6b"/></dir><dir name="template"><dir name="lengow"><dir name="check"><file name="point.phtml" hash="9791a2a673d45bb6db850ec802c63a71"/></dir><dir name="dashboard"><file name="charts.phtml" hash="51964c7bcace68d8f4ef23e314f07a8c"/></dir><dir name="debug"><file name="index.phtml" hash="23df3288336269a12024f13ed3ae0023"/></dir><dir name="export"><file name="product.phtml" hash="8c0c893621573c316bb7da14a3533224"/></dir><dir name="feed"><file name="grid.phtml" hash="b34e7f8ce18ce9605e88a5bc8b806442"/></dir><dir name="sales"><dir name="order"><dir name="tab"><file name="info.phtml" hash="fcaa52401ea83b17e52d0db2f8367b93"/></dir></dir><dir name="payment"><dir name="info"><file name="purchaseorder.phtml" hash="8e9e7a287ef57fe72023e28747fb0864"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="0e6a4eb11f6433d54474bfed8061d560"/></dir><dir name="template"><dir name="lengow"><dir name="tracker"><file name="simpletag.phtml" hash="3b73552b323d00bd053e1086e6f5ff45"/><file name="tag.phtml" hash="619f7bc6fe20c3dd6c1d82cdf12811b5"/><file name="tagcapsule.phtml" hash="2916e7693ef8ec9fcce5f5a8079d2beb"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Lengow_Connector.csv" hash="4913a36467b3a1893131839b68b8dd91"/></dir></target><target name="mageetc"><dir name="modules"><file name="Lengow_Connector.xml" hash="34b39beecc725740ea1e0bc8d339287a"/></dir></target><target name="magemedia"><dir name="lengow"><file name="import.flag" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="lengow"><dir name="css"><file name="admin.css" hash="45e6eca21d130d11c1e6fda8dae35f3d"/></dir><dir name="js"><file name="charts.min.js" hash="6806368c6a0bf73a5236b452fd5c2332"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="lengow"><dir name="js"><file name="tracker.js" hash="6402a4fbbb81a3b0587ec8c4c375e0a0"/></dir></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
skin/adminhtml/default/default/lengow/css/admin.css
CHANGED
@@ -86,4 +86,71 @@
|
|
86 |
color: #ffffff;
|
87 |
background-color: #d2322d;
|
88 |
border-color: #ac2925;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
86 |
color: #ffffff;
|
87 |
background-color: #d2322d;
|
88 |
border-color: #ac2925;
|
89 |
+
}
|
90 |
+
|
91 |
+
/* DEBUG PAGE */
|
92 |
+
.lengow-feed-input {
|
93 |
+
width:400px;
|
94 |
+
}
|
95 |
+
|
96 |
+
.lengow-debug-green {
|
97 |
+
background: #449908;
|
98 |
+
font-weight: bold;
|
99 |
+
color: white;
|
100 |
+
text-align: center;
|
101 |
+
}
|
102 |
+
.lengow-debug-red {
|
103 |
+
background: #9E0C00;
|
104 |
+
text-align: center;
|
105 |
+
font-weight: bold;
|
106 |
+
color: white;
|
107 |
+
}
|
108 |
+
.lengow-debug-orange {
|
109 |
+
background: #F37A00;
|
110 |
+
text-align: center;
|
111 |
+
font-weight: bold;
|
112 |
+
color: white;
|
113 |
+
}
|
114 |
+
|
115 |
+
.lengow-debug-store {
|
116 |
+
background: #9E9E9E;
|
117 |
+
text-align: center;
|
118 |
+
font-weight: bold;
|
119 |
+
color: white;
|
120 |
+
}
|
121 |
+
|
122 |
+
/* CRON STATUS */
|
123 |
+
.lengow-status {
|
124 |
+
background: green;
|
125 |
+
padding: 2px 0;
|
126 |
+
border-radius: 7px;
|
127 |
+
color: white;
|
128 |
+
font-weight: bold;
|
129 |
+
text-align: center;
|
130 |
+
width: 100%;
|
131 |
+
display: block;
|
132 |
+
}
|
133 |
+
.lengow-status.green {
|
134 |
+
background: green;
|
135 |
+
color: white;
|
136 |
+
}
|
137 |
+
|
138 |
+
.lengow-status.grey {
|
139 |
+
background: grey;
|
140 |
+
color: white;
|
141 |
+
}
|
142 |
+
|
143 |
+
.lengow-status.red {
|
144 |
+
background: red;
|
145 |
+
color: white;
|
146 |
+
}
|
147 |
+
|
148 |
+
.lengow-status.blue {
|
149 |
+
background: blue;
|
150 |
+
color: white;
|
151 |
+
}
|
152 |
+
|
153 |
+
.lengow-status.orange {
|
154 |
+
background: orange;
|
155 |
+
color: white;
|
156 |
}
|