Version Notes
New version of Lengow's Connector
Download this release
Release Info
Developer | Ludovic |
Extension | Lengow_Export |
Version | 2.0.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1.1 to 2.0.1.2
- app/code/community/Lengow/Dashboard/etc/config.xml +1 -1
- app/code/community/Lengow/Export/Block/Adminhtml/Product/Grid.php +1 -1
- app/code/community/Lengow/Export/Model/Catalog/Product.php +5 -5
- app/code/community/Lengow/Export/Model/Config.php +14 -0
- app/code/community/Lengow/Export/Model/Generate.php +16 -21
- app/code/community/Lengow/Export/Model/Observer.php +24 -1
- app/code/community/Lengow/Export/controllers/Adminhtml/Lengow/ExportController.php +12 -12
- app/code/community/Lengow/Export/etc/config.xml +13 -2
- app/code/community/Lengow/Export/etc/system.xml +11 -1
- app/code/community/Lengow/Feed/etc/config.xml +1 -1
- app/code/community/Lengow/Sync/Model/Order.php +50 -37
- app/code/community/Lengow/Sync/Model/Quote/Item.php +15 -9
- app/code/community/Lengow/Sync/controllers/ApiController.php +0 -15
- app/code/community/Lengow/Sync/etc/config.xml +1 -1
- app/code/community/Lengow/Sync/etc/marketplaces.xml +52 -2
- app/code/community/Lengow/Sync/etc/wsdl.xml +34 -0
- app/code/community/Lengow/Tracker/Block/Tracker.php +0 -1
- app/code/community/Lengow/Tracker/Helper/Check.php +1 -1
- app/code/community/Lengow/Tracker/Model/Capsule.php +7 -3
- app/code/community/Lengow/Tracker/Model/Tracker.php +5 -1
- app/code/community/Lengow/Tracker/etc/config.xml +1 -1
- app/code/community/Lengow/Tracker/etc/plugins.xml +2 -2
- app/design/frontend/base/default/layout/lengow.xml +1 -1
- package.xml +4 -4
- skin/adminhtml/default/default/lengow/js/.DS_Store +0 -0
- skin/frontend/base/default/lengow/.DS_Store +0 -0
- skin/{adminhtml/default → frontend/base}/default/lengow/js/tracker.js +0 -0
app/code/community/Lengow/Dashboard/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Dashboard>
|
5 |
-
<version>2.0.1.
|
6 |
</Lengow_Dashboard>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Dashboard>
|
5 |
+
<version>2.0.1.2</version>
|
6 |
</Lengow_Dashboard>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Export/Block/Adminhtml/Product/Grid.php
CHANGED
@@ -154,7 +154,7 @@ class Lengow_Export_Block_Adminhtml_Product_Grid extends Mage_Adminhtml_Block_Wi
|
|
154 |
1 => Mage::helper('catalog')->__('Yes'));
|
155 |
$this->addColumn('lengow_product',
|
156 |
array(
|
157 |
-
'header'=> Mage::helper('
|
158 |
'width' => '70px',
|
159 |
'index' => 'lengow_product',
|
160 |
'type' => 'options',
|
154 |
1 => Mage::helper('catalog')->__('Yes'));
|
155 |
$this->addColumn('lengow_product',
|
156 |
array(
|
157 |
+
'header'=> Mage::helper('export')->__('Publish on Lengow'),
|
158 |
'width' => '70px',
|
159 |
'index' => 'lengow_product',
|
160 |
'type' => 'options',
|
app/code/community/Lengow/Export/Model/Catalog/Product.php
CHANGED
@@ -113,7 +113,7 @@ class Lengow_Export_Model_Catalog_Product extends Mage_Catalog_Model_Product {
|
|
113 |
$productAttributeId = $productAttribute->getId();
|
114 |
$attributeValue = $product_instance->getData($productAttribute->getAttributeCode());
|
115 |
foreach($attribute->getPrices() as $priceChange) {
|
116 |
-
if ($price['value_index'] == $attributeValue) {
|
117 |
$configurableOldPrice += (float) ( $priceChange['is_percent'] ? ( ( (float) $priceChange['pricing_value'] ) * $price / 100 ) : $priceChange['pricing_value'] );
|
118 |
$configurablePrice += (float) ( $priceChange['is_percent'] ? ( ( (float) $priceChange['pricing_value'] ) * $finalPrice / 100 ) : $priceChange['pricing_value'] );
|
119 |
}
|
@@ -128,12 +128,12 @@ class Lengow_Export_Model_Catalog_Product extends Mage_Catalog_Model_Product {
|
|
128 |
);
|
129 |
$configurablePrice = $configurable_instance->getConfigurablePrice();
|
130 |
$price_including_tax = Mage::helper('tax')->getPrice(
|
131 |
-
$
|
132 |
-
$
|
133 |
);
|
134 |
$final_price_including_tax = Mage::helper('tax')->getPrice(
|
135 |
-
$
|
136 |
-
$
|
137 |
);
|
138 |
} else {
|
139 |
$price_including_tax = Mage::helper('tax')->getPrice(
|
113 |
$productAttributeId = $productAttribute->getId();
|
114 |
$attributeValue = $product_instance->getData($productAttribute->getAttributeCode());
|
115 |
foreach($attribute->getPrices() as $priceChange) {
|
116 |
+
if (array_key_exists('value_index', $price) && $price['value_index'] == $attributeValue) {
|
117 |
$configurableOldPrice += (float) ( $priceChange['is_percent'] ? ( ( (float) $priceChange['pricing_value'] ) * $price / 100 ) : $priceChange['pricing_value'] );
|
118 |
$configurablePrice += (float) ( $priceChange['is_percent'] ? ( ( (float) $priceChange['pricing_value'] ) * $finalPrice / 100 ) : $priceChange['pricing_value'] );
|
119 |
}
|
128 |
);
|
129 |
$configurablePrice = $configurable_instance->getConfigurablePrice();
|
130 |
$price_including_tax = Mage::helper('tax')->getPrice(
|
131 |
+
$product_instance->setTaxPercent(null),
|
132 |
+
$product_instance->getPrice() + $configurableOldPrice
|
133 |
);
|
134 |
$final_price_including_tax = Mage::helper('tax')->getPrice(
|
135 |
+
$product_instance->setTaxPercent(null),
|
136 |
+
$product_instance->getFinalPrice() + $configurablePrice
|
137 |
);
|
138 |
} else {
|
139 |
$price_including_tax = Mage::helper('tax')->getPrice(
|
app/code/community/Lengow/Export/Model/Config.php
CHANGED
@@ -45,6 +45,11 @@ class Lengow_Export_Model_Config extends Varien_Object {
|
|
45 |
* Config key "Attributes unkow"
|
46 |
*/
|
47 |
const ATTRIBUTES_UNKNOW = 'attributes_unknow';
|
|
|
|
|
|
|
|
|
|
|
48 |
|
49 |
/*
|
50 |
* @var array $_attributesKnow
|
@@ -147,6 +152,15 @@ class Lengow_Export_Model_Config extends Varien_Object {
|
|
147 |
public function getCountExportImages() {
|
148 |
return (int) $this->getConfigData(self::COUNT_IMAGES);
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
/**
|
152 |
* Return Attributes Unknowed in array with key=>value
|
45 |
* Config key "Attributes unkow"
|
46 |
*/
|
47 |
const ATTRIBUTES_UNKNOW = 'attributes_unknow';
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Config key "Auto export product"
|
51 |
+
*/
|
52 |
+
const AUTOEXPORT_NEWPRODUCT = 'autoexport_newproduct';
|
53 |
|
54 |
/*
|
55 |
* @var array $_attributesKnow
|
152 |
public function getCountExportImages() {
|
153 |
return (int) $this->getConfigData(self::COUNT_IMAGES);
|
154 |
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Auto export new product
|
158 |
+
*
|
159 |
+
* @return int
|
160 |
+
*/
|
161 |
+
public function isAutoExportProduct() {
|
162 |
+
return (int) $this->getConfigData(self::AUTOEXPORT_NEWPRODUCT);
|
163 |
+
}
|
164 |
|
165 |
/**
|
166 |
* Return Attributes Unknowed in array with key=>value
|
app/code/community/Lengow/Export/Model/Generate.php
CHANGED
@@ -10,27 +10,27 @@
|
|
10 |
*/
|
11 |
class Lengow_Export_Model_Generate extends Varien_Object {
|
12 |
|
13 |
-
|
14 |
|
15 |
-
|
16 |
|
17 |
-
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
22 |
|
23 |
-
|
24 |
|
25 |
-
|
26 |
|
27 |
-
|
28 |
|
29 |
-
|
30 |
|
31 |
-
|
32 |
|
33 |
-
|
34 |
'tier_price',
|
35 |
'short_description',
|
36 |
'description',
|
@@ -199,14 +199,14 @@ class Lengow_Export_Model_Generate extends Varien_Object {
|
|
199 |
$array_data = array_merge($array_data, $product->getImages($data['media_gallery']['images'], $parent->getData('media_gallery')));
|
200 |
else
|
201 |
$array_data = array_merge($array_data, $product->getImages($data['media_gallery']['images']));
|
202 |
-
|
203 |
if($product_instance->getVisibility() == Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE && isset($parent_instance)) {
|
204 |
-
$array_data['product-url'] = $parent_instance->getUrlInStore();
|
205 |
-
|
206 |
$array_data['description'] = $this->_helper->cleanData($parent_instance->getDescription());
|
207 |
$array_data['short_description'] = $this->_helper->cleanData($parent_instance->getShortDescription());
|
208 |
} else {
|
209 |
-
$array_data['product-url'] = $product_instance->getUrlInStore();
|
210 |
$array_data['description'] = $this->_helper->cleanData($product_instance->getDescription());
|
211 |
$array_data['short_description'] = $this->_helper->cleanData($product_instance->getShortDescription());
|
212 |
}
|
@@ -215,6 +215,7 @@ class Lengow_Export_Model_Generate extends Varien_Object {
|
|
215 |
$array_data['product_type'] = $product_type;
|
216 |
$array_data['product_variation'] = $variation_name;
|
217 |
$array_data['image_default'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'catalog/product' . $product_instance->getImage();
|
|
|
218 |
// Selected attributes to export with Frond End value of current shop
|
219 |
if(!empty($attributes_to_export)) {
|
220 |
foreach($attributes_to_export as $field => $attr) {
|
@@ -247,12 +248,6 @@ class Lengow_Export_Model_Generate extends Varien_Object {
|
|
247 |
echo date('Y-m-d h:i:s') .' - Export ' . $pi . ' products<br />';
|
248 |
flush();
|
249 |
}
|
250 |
-
$app = Mage::app();
|
251 |
-
if ($app != null) {
|
252 |
-
$cache = $app->getCache();
|
253 |
-
if ($cache != null)
|
254 |
-
$cache->clean();
|
255 |
-
}
|
256 |
// Fix Sébastien Ledan
|
257 |
$product->clearInstance();
|
258 |
$product_instance->clearInstance();
|
10 |
*/
|
11 |
class Lengow_Export_Model_Generate extends Varien_Object {
|
12 |
|
13 |
+
protected $_id_store;
|
14 |
|
15 |
+
protected $_file;
|
16 |
|
17 |
+
protected $_filename = 'lengow_feed';
|
18 |
|
19 |
+
protected $_stream;
|
20 |
|
21 |
+
protected $_format;
|
22 |
|
23 |
+
protected $_config_model;
|
24 |
|
25 |
+
protected $_product_model;
|
26 |
|
27 |
+
protected $_eav_model;
|
28 |
|
29 |
+
protected $_helper;
|
30 |
|
31 |
+
protected $_time = null;
|
32 |
|
33 |
+
protected $_excludes = array('media_gallery',
|
34 |
'tier_price',
|
35 |
'short_description',
|
36 |
'description',
|
199 |
$array_data = array_merge($array_data, $product->getImages($data['media_gallery']['images'], $parent->getData('media_gallery')));
|
200 |
else
|
201 |
$array_data = array_merge($array_data, $product->getImages($data['media_gallery']['images']));
|
202 |
+
$array_data['name'] = $product_instance->getName();
|
203 |
if($product_instance->getVisibility() == Mage_Catalog_Model_Product_Visibility::VISIBILITY_NOT_VISIBLE && isset($parent_instance)) {
|
204 |
+
$array_data['product-url'] = $parent_instance->getUrlInStore() ? $parent_instance->getUrlInStore() : $parent_instance->getProductUrl();
|
205 |
+
$array_data['name'] = $parent_instance->getName();
|
206 |
$array_data['description'] = $this->_helper->cleanData($parent_instance->getDescription());
|
207 |
$array_data['short_description'] = $this->_helper->cleanData($parent_instance->getShortDescription());
|
208 |
} else {
|
209 |
+
$array_data['product-url'] = $product_instance->getUrlInStore() ? $product_instance->getUrlInStore() : $product_instance->getProductUrl();
|
210 |
$array_data['description'] = $this->_helper->cleanData($product_instance->getDescription());
|
211 |
$array_data['short_description'] = $this->_helper->cleanData($product_instance->getShortDescription());
|
212 |
}
|
215 |
$array_data['product_type'] = $product_type;
|
216 |
$array_data['product_variation'] = $variation_name;
|
217 |
$array_data['image_default'] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'catalog/product' . $product_instance->getImage();
|
218 |
+
$array_data['child_name'] = $product_instance->getName();
|
219 |
// Selected attributes to export with Frond End value of current shop
|
220 |
if(!empty($attributes_to_export)) {
|
221 |
foreach($attributes_to_export as $field => $attr) {
|
248 |
echo date('Y-m-d h:i:s') .' - Export ' . $pi . ' products<br />';
|
249 |
flush();
|
250 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
// Fix Sébastien Ledan
|
252 |
$product->clearInstance();
|
253 |
$product_instance->clearInstance();
|
app/code/community/Lengow/Export/Model/Observer.php
CHANGED
@@ -22,10 +22,33 @@ class Lengow_Export_Model_Observer {
|
|
22 |
$generate->exec($store->getId(), null, $format, null, null, null, null, null, false, false);
|
23 |
}
|
24 |
} catch (Exception $e) {
|
25 |
-
|
|
|
26 |
}
|
27 |
}
|
28 |
return $this;
|
29 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
}
|
22 |
$generate->exec($store->getId(), null, $format, null, null, null, null, null, false, false);
|
23 |
}
|
24 |
} catch (Exception $e) {
|
25 |
+
Mage::log($e->getMessage());
|
26 |
+
Mage::log($e->getTraceAsString());
|
27 |
}
|
28 |
}
|
29 |
return $this;
|
30 |
}
|
31 |
+
|
32 |
+
public function autoExportProduct($observer) {
|
33 |
+
$_config = Mage::getSingleton('export/config');
|
34 |
+
if($_config->isAutoExportProduct()) {
|
35 |
+
$_product = $observer->getEvent()->getProduct();
|
36 |
+
$_product->setData('lengow_product', 1);
|
37 |
+
$_resource = Mage::getResourceModel('catalog/product');
|
38 |
+
$_entity_type_id = $_resource->getEntityType()->getId();
|
39 |
+
try {
|
40 |
+
$_product_ressource = new Varien_Object(array('entity_id' => $_product->getId(),
|
41 |
+
'id' => $_product->getId(),
|
42 |
+
'entity_type_id' => $_entity_type_id,
|
43 |
+
'store_id' => Mage::app()->getStore()->getId(),
|
44 |
+
'lengow_product' => 1));
|
45 |
+
$_resource->saveAttribute($_product_ressource, 'lengow_product');
|
46 |
+
} catch (Exception $e) {
|
47 |
+
Mage::log($e->getMessage());
|
48 |
+
Mage::log($e->getTraceAsString());
|
49 |
+
}
|
50 |
+
Mage::log('Auto export product ' . $_product->getId(). ' (SKU ' . $_product->getSku(). ') to Lengow');
|
51 |
+
}
|
52 |
+
}
|
53 |
|
54 |
}
|
app/code/community/Lengow/Export/controllers/Adminhtml/Lengow/ExportController.php
CHANGED
@@ -27,23 +27,23 @@ class Lengow_Export_Adminhtml_Lengow_ExportController extends Mage_Adminhtml_Con
|
|
27 |
}
|
28 |
|
29 |
public function massPublishAction() {
|
30 |
-
$
|
31 |
-
$
|
32 |
-
$
|
33 |
$resource = Mage::getResourceModel('catalog/product');
|
34 |
-
$
|
35 |
try {
|
36 |
-
foreach ($
|
37 |
-
$product = new Varien_Object(array('entity_id'
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
$resource->saveAttribute($product,'lengow_product');
|
43 |
|
44 |
}
|
45 |
$this->_getSession()->addSuccess(
|
46 |
-
Mage::helper('export')->__('Total of %d record(s) were successfully updated', count($
|
47 |
);
|
48 |
}
|
49 |
catch (Mage_Core_Model_Exception $e) {
|
@@ -53,7 +53,7 @@ class Lengow_Export_Adminhtml_Lengow_ExportController extends Mage_Adminhtml_Con
|
|
53 |
$this->_getSession()->addException($e, $e->getMessage() . Mage::helper('export')->__('There was an error while updating product(s) publication'));
|
54 |
}
|
55 |
|
56 |
-
$this->_redirect('*/*/', array('store'=> $
|
57 |
}
|
58 |
|
59 |
|
27 |
}
|
28 |
|
29 |
public function massPublishAction() {
|
30 |
+
$_product_ids = (array) $this->getRequest()->getParam('product');
|
31 |
+
$_store_id = (int)$this->getRequest()->getParam('store', 0);
|
32 |
+
$_publish = (int)$this->getRequest()->getParam('publish');
|
33 |
$resource = Mage::getResourceModel('catalog/product');
|
34 |
+
$_entity_type_id = $resource->getEntityType()->getId();
|
35 |
try {
|
36 |
+
foreach ($_product_ids as $_product_id) {
|
37 |
+
$product = new Varien_Object(array('entity_id' => $_product_id,
|
38 |
+
'id' => $_product_id,
|
39 |
+
'entity_type_id' => $_entity_type_id,
|
40 |
+
'store_id' => $_store_id,
|
41 |
+
'lengow_product' => $_publish));
|
42 |
$resource->saveAttribute($product,'lengow_product');
|
43 |
|
44 |
}
|
45 |
$this->_getSession()->addSuccess(
|
46 |
+
Mage::helper('export')->__('Total of %d record(s) were successfully updated', count($_product_ids))
|
47 |
);
|
48 |
}
|
49 |
catch (Mage_Core_Model_Exception $e) {
|
53 |
$this->_getSession()->addException($e, $e->getMessage() . Mage::helper('export')->__('There was an error while updating product(s) publication'));
|
54 |
}
|
55 |
|
56 |
+
$this->_redirect('*/*/', array('store'=> $_store_id));
|
57 |
}
|
58 |
|
59 |
|
app/code/community/Lengow/Export/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Export>
|
5 |
-
<version>2.0.1.
|
6 |
</Lengow_Export>
|
7 |
</modules>
|
8 |
<admin>
|
@@ -65,6 +65,17 @@
|
|
65 |
<class>Lengow_Export_Helper</class>
|
66 |
</export>
|
67 |
</helpers>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
</global>
|
69 |
<!--<frontend>
|
70 |
<routers>
|
@@ -139,7 +150,7 @@
|
|
139 |
<jobs>
|
140 |
<lengow_export_feed>
|
141 |
<schedule>
|
142 |
-
<cron_expr
|
143 |
</schedule>
|
144 |
<run>
|
145 |
<model>export/observer::cron</model>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Export>
|
5 |
+
<version>2.0.1.2</version>
|
6 |
</Lengow_Export>
|
7 |
</modules>
|
8 |
<admin>
|
65 |
<class>Lengow_Export_Helper</class>
|
66 |
</export>
|
67 |
</helpers>
|
68 |
+
<events>
|
69 |
+
<catalog_product_new_action>
|
70 |
+
<observers>
|
71 |
+
<lengow__export_product_new_action>
|
72 |
+
<type>singleton</type>
|
73 |
+
<class>Lengow_Export_Model_Observer</class>
|
74 |
+
<method>autoExportProduct</method>
|
75 |
+
</lengow__export_product_new_action>
|
76 |
+
</observers>
|
77 |
+
</catalog_product_new_action>
|
78 |
+
</events>
|
79 |
</global>
|
80 |
<!--<frontend>
|
81 |
<routers>
|
150 |
<jobs>
|
151 |
<lengow_export_feed>
|
152 |
<schedule>
|
153 |
+
<cron_expr>0 */4 * * *</cron_expr>
|
154 |
</schedule>
|
155 |
<run>
|
156 |
<model>export/observer::cron</model>
|
app/code/community/Lengow/Export/etc/system.xml
CHANGED
@@ -41,7 +41,17 @@
|
|
41 |
<show_in_website>1</show_in_website>
|
42 |
<show_in_store>1</show_in_store>
|
43 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
44 |
-
</export_only_selected>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
<export_soldout>
|
46 |
<label>Export product out of stock</label>
|
47 |
<comment></comment>
|
41 |
<show_in_website>1</show_in_website>
|
42 |
<show_in_store>1</show_in_store>
|
43 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
44 |
+
</export_only_selected>
|
45 |
+
<autoexport_newproduct>
|
46 |
+
<label><![CDATA[Auto export new product]]></label>
|
47 |
+
<comment><![CDATA[Auto export a new product on Lengow]]></comment>
|
48 |
+
<frontend_type>select</frontend_type>
|
49 |
+
<sort_order>60</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
54 |
+
</autoexport_newproduct>
|
55 |
<export_soldout>
|
56 |
<label>Export product out of stock</label>
|
57 |
<comment></comment>
|
app/code/community/Lengow/Feed/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Feed>
|
5 |
-
<version>2.0.1.
|
6 |
</Lengow_Feed>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Feed>
|
5 |
+
<version>2.0.1.2</version>
|
6 |
</Lengow_Feed>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Sync/Model/Order.php
CHANGED
@@ -66,7 +66,8 @@ class Lengow_Sync_Model_Order extends Mage_Sales_Model_Order {
|
|
66 |
->setCustomerId($customer->getId())
|
67 |
->setCustomerEmail($customer->getEmail())
|
68 |
->setCustomerIsGuest(false)
|
69 |
-
|
|
|
70 |
->setStore(Mage::app()->getDefaultStoreView());
|
71 |
// Add products to quote with data from Lengow
|
72 |
foreach($data->cart->products->product as $lengow_product) {
|
@@ -133,35 +134,54 @@ class Lengow_Sync_Model_Order extends Mage_Sales_Model_Order {
|
|
133 |
$product_model = Mage::getModel('catalog/product');
|
134 |
$sku = (string) $lengow_product->sku;
|
135 |
$sku = str_replace('\_', '_', $sku);
|
136 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
if(!$product->getId()) {
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
165 |
}
|
166 |
$quote_item = Mage::getModel('sync/quote_item');
|
167 |
$quote_item
|
@@ -172,13 +192,6 @@ class Lengow_Sync_Model_Order extends Mage_Sales_Model_Order {
|
|
172 |
->setQuote($quote)
|
173 |
->setQty((integer) $lengow_product->quantity)
|
174 |
->initPrice((float) $lengow_product->price_unit);
|
175 |
-
/*if($lengow_product->ecotax > 0) {
|
176 |
-
$quote_item->setWeeeTaxApplied($lengow_product->ecotax)
|
177 |
-
->WeeeTaxAppliedAmount($lengow_product->ecotax)
|
178 |
-
->WeeeTaxAppliedRowAmount($lengow_product->ecotax)
|
179 |
-
->BaseWeeeTaxAppliedAmount($lengow_product->ecotax)
|
180 |
-
->BaseWeeeTaxAppliedRowAmnt($lengow_product->ecotax);
|
181 |
-
}*/
|
182 |
$title_from_lengow = $this->getConfig()->setStore($quote->getStore()->getStoreId())->get('orders/title');
|
183 |
if($title_from_lengow)
|
184 |
$quote_item->setName((string) $lengow_product->title);
|
@@ -248,7 +261,7 @@ class Lengow_Sync_Model_Order extends Mage_Sales_Model_Order {
|
|
248 |
$product->setBaseTaxAmount($product->getTaxAmount());
|
249 |
$product->setBaseTaxInvoiced($product->getTaxAmount());
|
250 |
$product->setBasePriceInclTax($product->getPriceInclTax());
|
251 |
-
$product->
|
252 |
$product->save();
|
253 |
}
|
254 |
$order->setBaseTaxAmount($order->getTaxAmount());
|
66 |
->setCustomerId($customer->getId())
|
67 |
->setCustomerEmail($customer->getEmail())
|
68 |
->setCustomerIsGuest(false)
|
69 |
+
->setCustomerGroupId(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID)
|
70 |
+
//->setCustomerGroupId(1)
|
71 |
->setStore(Mage::app()->getDefaultStoreView());
|
72 |
// Add products to quote with data from Lengow
|
73 |
foreach($data->cart->products->product as $lengow_product) {
|
134 |
$product_model = Mage::getModel('catalog/product');
|
135 |
$sku = (string) $lengow_product->sku;
|
136 |
$sku = str_replace('\_', '_', $sku);
|
137 |
+
$product_field = strtolower((string) $lengow_product->sku['field'][0]);
|
138 |
+
$product = $product_model;
|
139 |
+
/*if($product_model->hasData($product_field))
|
140 |
+
$product = $product_model->loadByAttribute($product_field, $sku);*/
|
141 |
+
$attributeModel = Mage::getSingleton('eav/config')
|
142 |
+
->getAttribute('catalog_product', $product_field);
|
143 |
+
if($attributeModel->getAttributeId()) {
|
144 |
+
$collection = Mage::getResourceModel('catalog/product_collection')
|
145 |
+
->setStoreId($quote->getStore()->getStoreId())
|
146 |
+
->addAttributeToSelect('*')
|
147 |
+
->addAttributeToFilter($product_field, $sku)
|
148 |
+
->setPage(1,1)
|
149 |
+
->getData();
|
150 |
+
if(is_array($collection) && count($collection) > 0) {
|
151 |
+
$product->load($collection[0]['entity_id']);
|
152 |
+
}
|
153 |
+
}
|
154 |
if(!$product->getId()) {
|
155 |
+
$product = $product_model->load($product_model->getIdBySku($sku));
|
156 |
+
if(!$product->getId()) {
|
157 |
+
$sku = (string) $lengow_product->idMP;
|
158 |
+
$sku = str_replace('\_', '_', $sku);
|
159 |
+
$product = $product_model->load($product_model->getIdBySku($sku));
|
160 |
+
if(!$product->getId()) {
|
161 |
+
$sku = (string) $lengow_product->idLengow;
|
162 |
+
$sku = str_replace('\_', '_', $sku);
|
163 |
+
$product = $product_model->load($product_model->getIdBySku($sku));
|
164 |
+
if(!$product->getId()) {
|
165 |
+
$sku = (string) $lengow_product->sku;
|
166 |
+
$sku = str_replace('\_', '_', $sku);
|
167 |
+
$product = $product_model->load($sku);
|
168 |
+
if(!$product->getId()) {
|
169 |
+
$sku = (string) $lengow_product->idMP;
|
170 |
+
$sku = str_replace('\_', '_', $sku);
|
171 |
+
$product = $product_model->load($sku);
|
172 |
+
if(!$product->getId()) {
|
173 |
+
$sku = (string) $lengow_product->idLengow;
|
174 |
+
$sku = str_replace('\_', '_', $sku);
|
175 |
+
$product = $product_model->load($sku);
|
176 |
+
if(!$product->getId()) {
|
177 |
+
Mage::helper('sync')->log('Order ' . $order_id . ' : Product ' . (string) $lengow_product->sku . ' doesn\'t exist');
|
178 |
+
return false;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
}
|
182 |
+
}
|
183 |
+
}
|
184 |
+
}
|
185 |
}
|
186 |
$quote_item = Mage::getModel('sync/quote_item');
|
187 |
$quote_item
|
192 |
->setQuote($quote)
|
193 |
->setQty((integer) $lengow_product->quantity)
|
194 |
->initPrice((float) $lengow_product->price_unit);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
$title_from_lengow = $this->getConfig()->setStore($quote->getStore()->getStoreId())->get('orders/title');
|
196 |
if($title_from_lengow)
|
197 |
$quote_item->setName((string) $lengow_product->title);
|
261 |
$product->setBaseTaxAmount($product->getTaxAmount());
|
262 |
$product->setBaseTaxInvoiced($product->getTaxAmount());
|
263 |
$product->setBasePriceInclTax($product->getPriceInclTax());
|
264 |
+
$product->setBaseRowTotalInclTax($product->getRowTotalInclTax());
|
265 |
$product->save();
|
266 |
}
|
267 |
$order->setBaseTaxAmount($order->getTaxAmount());
|
app/code/community/Lengow/Sync/Model/Quote/Item.php
CHANGED
@@ -13,6 +13,12 @@ class Lengow_Sync_Model_Quote_Item extends Mage_Sales_Model_Quote_Item {
|
|
13 |
public function initPrice($value) {
|
14 |
$store = $this->getQuote()->getStore();
|
15 |
if (!Mage::helper('tax')->priceIncludesTax($store)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
$bAddress = $this->getQuote()->getBillingAddress();
|
17 |
$sAddress = $this->getQuote()->getShippingAddress();
|
18 |
$address = $this->getAddress();
|
@@ -40,7 +46,7 @@ class Lengow_Sync_Model_Quote_Item extends Mage_Sales_Model_Quote_Item {
|
|
40 |
$this->getQuote()->getCustomerTaxClassId(),
|
41 |
$store,
|
42 |
true
|
43 |
-
);
|
44 |
$this->setCustomPrice($priceExcludingTax);
|
45 |
$this->setOriginalCustomPrice($priceExcludingTax);
|
46 |
$this->setOriginalPrice($priceExcludingTax);
|
@@ -55,14 +61,13 @@ class Lengow_Sync_Model_Quote_Item extends Mage_Sales_Model_Quote_Item {
|
|
55 |
$store,
|
56 |
true
|
57 |
);
|
58 |
-
|
59 |
$qty = $this->getQty();
|
60 |
if ($this->getParentItem()) {
|
61 |
$qty = $qty*$this->getParentItem()->getQty();
|
62 |
}
|
63 |
|
64 |
-
if (Mage::helper('tax')->displayCartPriceInclTax($store)) {
|
65 |
-
$rowTotal = $value
|
66 |
$rowTotalExcTax = Mage::helper('tax')->getPrice(
|
67 |
$this->getProduct()->setTaxPercent(null),
|
68 |
$rowTotal,
|
@@ -72,7 +77,7 @@ class Lengow_Sync_Model_Quote_Item extends Mage_Sales_Model_Quote_Item {
|
|
72 |
$this->getQuote()->getCustomerTaxClassId(),
|
73 |
$store,
|
74 |
true
|
75 |
-
);
|
76 |
$rowTotalIncTax = Mage::helper('tax')->getPrice(
|
77 |
$this->getProduct()->setTaxPercent(null),
|
78 |
$rowTotal,
|
@@ -86,12 +91,11 @@ class Lengow_Sync_Model_Quote_Item extends Mage_Sales_Model_Quote_Item {
|
|
86 |
$totalBaseTax = $rowTotalIncTax-$rowTotalExcTax;
|
87 |
$this->setBaseRowTotal($rowTotal);
|
88 |
$this->setBaseRowTotalInclTax($rowTotal);
|
89 |
-
}
|
90 |
-
|
91 |
-
$taxAmount = $priceIncludingTax - $priceExcludingTax;
|
92 |
$this->setTaxPercent($this->getProduct()->getTaxPercent());
|
93 |
$totalBaseTax = $taxAmount*$qty;
|
94 |
-
}
|
95 |
|
96 |
$totalTax = $this->getStore()->convertPrice($totalBaseTax);
|
97 |
$this->setTaxBeforeDiscount($totalTax);
|
@@ -102,6 +106,8 @@ class Lengow_Sync_Model_Quote_Item extends Mage_Sales_Model_Quote_Item {
|
|
102 |
$this->setBaseOriginalPrice($priceExcludingTax);
|
103 |
$this->setTaxAmount($totalTax);
|
104 |
$this->setPrice($priceExcludingTax);
|
|
|
|
|
105 |
return $this;
|
106 |
} else {
|
107 |
return $this;
|
13 |
public function initPrice($value) {
|
14 |
$store = $this->getQuote()->getStore();
|
15 |
if (!Mage::helper('tax')->priceIncludesTax($store)) {
|
16 |
+
// DEEE
|
17 |
+
$_deee_amount = 0;
|
18 |
+
if (!Mage::helper('tax')->priceIncludesTax($store)) {
|
19 |
+
$_helper_weee = Mage::helper('weee');
|
20 |
+
$_deee_amount = $_helper_weee->getAmount($this->getProduct());
|
21 |
+
}
|
22 |
$bAddress = $this->getQuote()->getBillingAddress();
|
23 |
$sAddress = $this->getQuote()->getShippingAddress();
|
24 |
$address = $this->getAddress();
|
46 |
$this->getQuote()->getCustomerTaxClassId(),
|
47 |
$store,
|
48 |
true
|
49 |
+
) - $_deee_amount;
|
50 |
$this->setCustomPrice($priceExcludingTax);
|
51 |
$this->setOriginalCustomPrice($priceExcludingTax);
|
52 |
$this->setOriginalPrice($priceExcludingTax);
|
61 |
$store,
|
62 |
true
|
63 |
);
|
|
|
64 |
$qty = $this->getQty();
|
65 |
if ($this->getParentItem()) {
|
66 |
$qty = $qty*$this->getParentItem()->getQty();
|
67 |
}
|
68 |
|
69 |
+
//if (Mage::helper('tax')->displayCartPriceInclTax($store)) {
|
70 |
+
$rowTotal = $value * $qty;
|
71 |
$rowTotalExcTax = Mage::helper('tax')->getPrice(
|
72 |
$this->getProduct()->setTaxPercent(null),
|
73 |
$rowTotal,
|
77 |
$this->getQuote()->getCustomerTaxClassId(),
|
78 |
$store,
|
79 |
true
|
80 |
+
) - ($_deee_amount * $qty);
|
81 |
$rowTotalIncTax = Mage::helper('tax')->getPrice(
|
82 |
$this->getProduct()->setTaxPercent(null),
|
83 |
$rowTotal,
|
91 |
$totalBaseTax = $rowTotalIncTax-$rowTotalExcTax;
|
92 |
$this->setBaseRowTotal($rowTotal);
|
93 |
$this->setBaseRowTotalInclTax($rowTotal);
|
94 |
+
//} else {
|
95 |
+
$taxAmount = $priceIncludingTax - $priceExcludingTax ;
|
|
|
96 |
$this->setTaxPercent($this->getProduct()->getTaxPercent());
|
97 |
$totalBaseTax = $taxAmount*$qty;
|
98 |
+
//}
|
99 |
|
100 |
$totalTax = $this->getStore()->convertPrice($totalBaseTax);
|
101 |
$this->setTaxBeforeDiscount($totalTax);
|
106 |
$this->setBaseOriginalPrice($priceExcludingTax);
|
107 |
$this->setTaxAmount($totalTax);
|
108 |
$this->setPrice($priceExcludingTax);
|
109 |
+
$this->setPriceInclTax($priceIncludingTax);
|
110 |
+
$this->setBasePriceInclTax($priceIncludingTax);
|
111 |
return $this;
|
112 |
} else {
|
113 |
return $this;
|
app/code/community/Lengow/Sync/controllers/ApiController.php
CHANGED
@@ -32,21 +32,6 @@ class Lengow_Sync_ApiController extends Mage_Core_Controller_Front_Action {
|
|
32 |
}
|
33 |
|
34 |
private function _rebuildOrder($order) {
|
35 |
-
print_r($order->debug());
|
36 |
-
// Caculate Items
|
37 |
-
$items = $order->getItems();
|
38 |
-
print_r($items);
|
39 |
-
// Calculate Order
|
40 |
-
/*$priceExcludingTax = Mage::helper('tax')->getPrice(
|
41 |
-
$this->getProduct()->setTaxPercent(null),
|
42 |
-
$value,
|
43 |
-
false,
|
44 |
-
$sAddress,
|
45 |
-
$bAddress,
|
46 |
-
$this->getQuote()->getCustomerTaxClassId(),
|
47 |
-
$store,
|
48 |
-
true
|
49 |
-
);*/
|
50 |
}
|
51 |
|
52 |
private function _rebuildInvoice($order) {
|
32 |
}
|
33 |
|
34 |
private function _rebuildOrder($order) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
private function _rebuildInvoice($order) {
|
app/code/community/Lengow/Sync/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Sync>
|
5 |
-
<version>2.0.1.
|
6 |
</Lengow_Sync>
|
7 |
</modules>
|
8 |
<admin>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Sync>
|
5 |
+
<version>2.0.1.2</version>
|
6 |
</Lengow_Sync>
|
7 |
</modules>
|
8 |
<admin>
|
app/code/community/Lengow/Sync/etc/marketplaces.xml
CHANGED
@@ -570,7 +570,7 @@
|
|
570 |
<marketplace name="pixplace">
|
571 |
<states>
|
572 |
<state name="accepted">
|
573 |
-
<lengow>
|
574 |
</state>
|
575 |
<state name="processing">
|
576 |
<lengow>processing</lengow>
|
@@ -711,5 +711,55 @@
|
|
711 |
</accepted_values>
|
712 |
</param>
|
713 |
</additional_params>
|
714 |
-
</marketplace>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
715 |
</marketplaces>
|
570 |
<marketplace name="pixplace">
|
571 |
<states>
|
572 |
<state name="accepted">
|
573 |
+
<lengow>shipped</lengow>
|
574 |
</state>
|
575 |
<state name="processing">
|
576 |
<lengow>processing</lengow>
|
711 |
</accepted_values>
|
712 |
</param>
|
713 |
</additional_params>
|
714 |
+
</marketplace>
|
715 |
+
<marketplace name="ecitizen">
|
716 |
+
<states>
|
717 |
+
<state name="processing">
|
718 |
+
<lengow>processing</lengow>
|
719 |
+
</state>
|
720 |
+
<state name="shipped">
|
721 |
+
<lengow>shipped</lengow>
|
722 |
+
</state>
|
723 |
+
</states>
|
724 |
+
</marketplace>
|
725 |
+
<marketplace name="godsavethekid">
|
726 |
+
<states>
|
727 |
+
<state name="RECEIVED">
|
728 |
+
<lengow>new</lengow>
|
729 |
+
</state>
|
730 |
+
<state name="STAGING">
|
731 |
+
<lengow>new</lengow>
|
732 |
+
</state>
|
733 |
+
<state name="WAITING_ACCEPTANCE">
|
734 |
+
<lengow>new</lengow>
|
735 |
+
</state>
|
736 |
+
<state name="WAITING_DEBIT">
|
737 |
+
<lengow>new</lengow>
|
738 |
+
</state>
|
739 |
+
<state name="WAITING_DEBIT_PAYMENT">
|
740 |
+
<lengow>new</lengow>
|
741 |
+
</state>
|
742 |
+
<state name="CANCELED">
|
743 |
+
<lengow>canceled</lengow>
|
744 |
+
</state>
|
745 |
+
<state name="CLOSED">
|
746 |
+
<lengow>processing</lengow>
|
747 |
+
</state>
|
748 |
+
<state name="REFUSED">
|
749 |
+
<lengow>canceled</lengow>
|
750 |
+
</state>
|
751 |
+
<state name="SHIPPING">
|
752 |
+
<lengow>shipped</lengow>
|
753 |
+
</state>
|
754 |
+
<state name="INCIDENT_OPEN">
|
755 |
+
<lengow>processing</lengow>
|
756 |
+
</state>
|
757 |
+
<state name="SHIPPED">
|
758 |
+
<lengow>shipped</lengow>
|
759 |
+
</state>
|
760 |
+
<state name="REFUNDED">
|
761 |
+
<lengow>canceled</lengow>
|
762 |
+
</state>
|
763 |
+
</states>
|
764 |
+
</marketplace>
|
765 |
</marketplaces>
|
app/code/community/Lengow/Sync/etc/wsdl.xml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
3 |
+
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
|
4 |
+
name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
|
5 |
+
<types>
|
6 |
+
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
|
7 |
+
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
|
8 |
+
<complexType name="salesOrderEntity">
|
9 |
+
<all>
|
10 |
+
<element name="order_id_lengow" type="xsd:string" minOccurs="0" />
|
11 |
+
<element name="fees_lengow" type="xsd:string" minOccurs="0" />
|
12 |
+
<element name="feed_id_lengow" type="xsd:string" minOccurs="0" />
|
13 |
+
<element name="message_lengow" type="xsd:string" minOccurs="0" />
|
14 |
+
<element name="marketplace_lengow" type="xsd:string" minOccurs="0" />
|
15 |
+
<element name="total_paid_lengow" type="xsd:string" minOccurs="0" />
|
16 |
+
<element name="carrier_lengow" type="xsd:string" minOccurs="0" />
|
17 |
+
<element name="carrier_method_lengow" type="xsd:string" minOccurs="0" />
|
18 |
+
</all>
|
19 |
+
</complexType>
|
20 |
+
<complexType name="salesOrderListEntity">
|
21 |
+
<all>
|
22 |
+
<element name="order_id_lengow" type="xsd:string" minOccurs="0" />
|
23 |
+
<element name="fees_lengow" type="xsd:string" minOccurs="0" />
|
24 |
+
<element name="feed_id_lengow" type="xsd:string" minOccurs="0" />
|
25 |
+
<element name="message_lengow" type="xsd:string" minOccurs="0" />
|
26 |
+
<element name="marketplace_lengow" type="xsd:string" minOccurs="0" />
|
27 |
+
<element name="total_paid_lengow" type="xsd:string" minOccurs="0" />
|
28 |
+
<element name="carrier_lengow" type="xsd:string" minOccurs="0" />
|
29 |
+
<element name="carrier_method_lengow" type="xsd:string" minOccurs="0" />
|
30 |
+
</all>
|
31 |
+
</complexType>
|
32 |
+
</schema>
|
33 |
+
</types>
|
34 |
+
</definitions>
|
app/code/community/Lengow/Tracker/Block/Tracker.php
CHANGED
@@ -61,7 +61,6 @@ class Lengow_Tracker_Block_Tracker extends Mage_Core_Block_Template {
|
|
61 |
$this->setPage('page'); //by default
|
62 |
|
63 |
$handles = $this->getLayout()->getUpdate()->getHandles();
|
64 |
-
print_r($handles);
|
65 |
|
66 |
if (in_array('cms_index_index', $handles))
|
67 |
$this->setPage('homepage');
|
61 |
$this->setPage('page'); //by default
|
62 |
|
63 |
$handles = $this->getLayout()->getUpdate()->getHandles();
|
|
|
64 |
|
65 |
if (in_array('cms_index_index', $handles))
|
66 |
$this->setPage('homepage');
|
app/code/community/Lengow/Tracker/Helper/Check.php
CHANGED
@@ -75,7 +75,7 @@ class Lengow_Tracker_Helper_Check extends Mage_Core_Helper_Abstract {
|
|
75 |
}
|
76 |
|
77 |
public function getRealIP() {
|
78 |
-
return $_SERVER['
|
79 |
}
|
80 |
|
81 |
private function _loadDom() {
|
75 |
}
|
76 |
|
77 |
public function getRealIP() {
|
78 |
+
return $_SERVER['SERVER_ADDR'];
|
79 |
}
|
80 |
|
81 |
private function _loadDom() {
|
app/code/community/Lengow/Tracker/Model/Capsule.php
CHANGED
@@ -23,9 +23,13 @@ class Lengow_Tracker_Model_Capsule extends Lengow_Tracker_Model_Tracker {
|
|
23 |
$list_products = array();
|
24 |
$i = 1;
|
25 |
foreach($quote_items as $item) {
|
26 |
-
$
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
$list_products[] = $str;
|
30 |
$i++;
|
31 |
}
|
23 |
$list_products = array();
|
24 |
$i = 1;
|
25 |
foreach($quote_items as $item) {
|
26 |
+
if($item->hasProduct())
|
27 |
+
$product = $item->getProduct();
|
28 |
+
else
|
29 |
+
$product = Mage::getModel('catalog/product')->load($item->getProductId());
|
30 |
+
$str = 'i' . $i . '=' . $product->getData($this->_getIdentifier());
|
31 |
+
$str .= '&p' . $i . '=' . $item->getPrice();
|
32 |
+
$str .= '&q' . $i . '=' . ($item->getQty() > 0 ? $item->getQty() : (integer) $item->getQtyOrdered());
|
33 |
$list_products[] = $str;
|
34 |
$i++;
|
35 |
}
|
app/code/community/Lengow/Tracker/Model/Tracker.php
CHANGED
@@ -22,7 +22,11 @@ class Lengow_Tracker_Model_Tracker extends Varien_Object {
|
|
22 |
$quote_items = $quote->getAllVisibleItems();
|
23 |
$ids = array();
|
24 |
foreach($quote_items as $item) {
|
25 |
-
$
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
return implode('|', $ids);
|
28 |
}
|
22 |
$quote_items = $quote->getAllVisibleItems();
|
23 |
$ids = array();
|
24 |
foreach($quote_items as $item) {
|
25 |
+
if($item->hasProduct())
|
26 |
+
$product = $item->getProduct();
|
27 |
+
else
|
28 |
+
$product = Mage::getModel('catalog/product')->load($item->getProductId());
|
29 |
+
$ids[] = $product->getData($this->_getIdentifier());
|
30 |
}
|
31 |
return implode('|', $ids);
|
32 |
}
|
app/code/community/Lengow/Tracker/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Tracker>
|
5 |
-
<version>2.0.1.
|
6 |
</Lengow_Tracker>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Lengow_Tracker>
|
5 |
+
<version>2.0.1.2</version>
|
6 |
</Lengow_Tracker>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Lengow/Tracker/etc/plugins.xml
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
<release_date>2014-01-30</release_date>
|
6 |
</plugin>
|
7 |
<plugin name="magento">
|
8 |
-
<version>2.0.1.
|
9 |
-
<release_date>2014-02-
|
10 |
</plugin>
|
11 |
<plugin name="woomcommerce">
|
12 |
<version>1.0.0.0</version>
|
5 |
<release_date>2014-01-30</release_date>
|
6 |
</plugin>
|
7 |
<plugin name="magento">
|
8 |
+
<version>2.0.1.2</version>
|
9 |
+
<release_date>2014-02-26</release_date>
|
10 |
</plugin>
|
11 |
<plugin name="woomcommerce">
|
12 |
<version>1.0.0.0</version>
|
app/design/frontend/base/default/layout/lengow.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<reference name="head">
|
5 |
<action method="addItem">
|
6 |
<type>skin_js</type>
|
7 |
-
<name>lengow/tracker.js</name>
|
8 |
</action>
|
9 |
</reference>
|
10 |
<reference name="before_body_end">
|
4 |
<reference name="head">
|
5 |
<action method="addItem">
|
6 |
<type>skin_js</type>
|
7 |
+
<name>lengow/js/tracker.js</name>
|
8 |
</action>
|
9 |
</reference>
|
10 |
<reference name="before_body_end">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Lengow_Export</name>
|
4 |
-
<version>2.0.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></authors>
|
14 |
-
<date>2014-
|
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="dae1bbed1ede93b06f62589e93857396"/><file name="Diagrams.php" hash="001995ea1916ca192021ba52c155a466"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7129af0e9ab390e0695f84865a02fdb5"/></dir><dir name="Model"><file name="Config.php" hash="9ac1d092bffd109f02518885f89142c7"/></dir><dir name="etc"><file name="config.xml" hash="4f6016d050b7b667ddb3c292b4008334"/></dir></dir><dir name="Export"><dir name="Block"><dir name="Adminhtml"><dir name="Product"><file name="Grid.php" hash="05fd23a72f043f3f67592036c105e3a4"/></dir><file name="Product.php" hash="b4802cfa8249bfe8c7378d65a5147c1b"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="837edcfbf4d83096f5a23339a11ae9c0"/><file name="Security.php" hash="3ad6b6925ef05884a1501afa6e64a685"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="390b1e3aeefff6f39bbb39488440f5e3"/></dir><file name="Config.php" hash="5335535993d0fc1d13da0c6be56ea1e6"/><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="9e53191b25324292f962dec130c0c80a"/><file name="Json.php" hash="4df743bce6647eea36d2677ab7f6a9a8"/><file name="Xml.php" hash="dee5abfe1fa6f066a89a7de9ca3c9f3e"/><file name="Yaml.php" hash="f0c24bd481039c4fc13fa26ef7a4d1b9"/></dir><file name="Generate.php" hash="ee703e20c527e06e2895b56dbcb41937"/><file name="Observer.php" hash="ee7e08f93e78d06b035060e29c67d82f"/><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="685809c2367ec3509ecbf9f4d07f4661"/></dir></dir><dir name="Source"><file name="Attributes.php" hash="95b485a452aee5b27af0af618211f13c"/><file name="Types.php" hash="6b125e9e5c0dfd5c93cf304441ed47ac"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="111617eb86ef8dd7374efa0d4eabf781"/></dir><dir name="Source"><dir name="Category"><file name="Level.php" hash="b35d3367815682e0ed2827ae8c722e9a"/></dir><file name="Format.php" hash="fd069f484cc3ae0d914fb7a965789d9f"/><file name="Getattributes.php" hash="9ed9accf926ee7ad15a361d45eae5ff6"/><file name="Images.php" hash="e6ec93f301599ea91d69a1f4847e240d"/><file name="Status.php" hash="c848476436a961877def6ae5ea0b16d8"/><file name="Types.php" hash="56de65acbb13ee5425b95cc5f9c3f2d2"/></dir></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="ExportController.php" hash="3184ff2ece9482ea5e6039b6d41b0c21"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="FeedController.php" hash="e8fe620214eb352ff4d7cfbb06547a33"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="270499db17f7412ec90715768dab9e0c"/><file name="system.xml" hash="6b727a67ec4c912883769b77f695eb59"/></dir></dir><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Feed"><file name="Grid.php" hash="164d0069752cf6327128e2da873c6466"/><dir name="Renderer"><file name="Migrate.php" hash="e59d5a72241165ec1c8194fc257d6e11"/><file name="Select.php" hash="78808e9061b7a5aa73c2273f18bc0746"/><file name="Url.php" hash="c9060f99ffa7f47140392c4392f793e7"/></dir></dir><file name="Feed.php" hash="96aa5aa6ed7c9e4a708df5b391621421"/></dir></dir><dir name="Helper"><file name="Data.php" hash="23ab67ab3d66ce8c35cfe9c8bff76f76"/></dir><dir name="Model"><file name="Config.php" hash="7487c73a3fe292614c9f4a2b66d8a664"/><file name="Feed.php" hash="75e01d41749b61db15f2603ed00f09a4"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="FeedController.php" hash="7a5f760a1768ddd6dca7b04affb1681f"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="1e6162e02eeaaaa2dc2a34f1d492d960"/><file name="system.xml" hash="22ba605f2529396e4edb41c5ec8e65e6"/></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="ca9a55f848bccb6e8a34e0217cf905f5"/></dir><file name="Log.php" hash="c8434ba0a97fb13c25fbfbc4f1841b53"/><dir name="Order"><file name="Grid.php" hash="f5423e0e9f88c29a39e494e8ce72c0e1"/><file name="Tab.php" hash="4c913f7d42506bd3e60e10a5142d9b8a"/></dir><file name="Order.php" hash="2ddb7553c4c67faf0bae5bbbe1be16fe"/></dir><dir name="Payment"><dir name="Info"><file name="Purchaseorder.php" hash="72bbeb480299903b16e505ffdd5d73fe"/></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="05e0c035a6400f6b4b56b33e6bbf424d"/></dir><dir name="Model"><file name="Config.php" hash="e356e499cd34db77a17954fb52443a4f"/><dir name="Connector"><file name="Exception.php" hash="de1fa1b69e24fe7b976c03f1ed1ca7f7"/></dir><file name="Connector.php" hash="63b645168b51d6cbb0cf748f3159d35e"/><dir name="Customer"><file name="Customer.php" hash="e195621601071a4f15d0724839e9aaaa"/></dir><file name="Import.php" hash="4a7e3d1c3c7dba329987afd34d7e9479"/><file name="Log.php" hash="3dd56825227289f380bf5c0e2f8e848e"/><dir name="Marketplace"><file name="Exception.php" hash="bd7ab8db94e241d022cd6e467e8596ec"/></dir><file name="Marketplace.php" hash="40f6243e4e106a7f4f77f0985b775d6a"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="e3c7a389004afa2a116560e5501cb9fa"/></dir><file name="Log.php" hash="3cc46747828dc075638b115cb8bdbf68"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="Observer.php" hash="b798657837ade214c3bf3e8a4b53ec64"/><file name="Order.php" hash="8937e9b65b763104b9acc3913fd7fecc"/><dir name="Payment"><dir name="Method"><file name="Lengow.php" hash="41344a615275c14d06707ed63ec58e59"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Quote"><file name="Item.php" hash="5ac5bd4bdfceacabb6d090eaf724c0f4"/></dir><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="64627df21b7d1d089ce7caa6fb3837a9"/></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="LogController.php" hash="2eb76e322af63ee3639364ec4bb44017"/><file name="OrderController.php" hash="6d348a79987f24919d32beb454fa9b13"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="ApiController.php" hash="4760695213bf840c18c8473b43304fda"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="c05abcc1166b6263c00ac5973a6dd03d"/><file name="marketplaces.xml" hash="a6a940eb5ae454fa4a373493a4d3d17f"/><file name="system.xml" hash="be59409e1daec954eeb3b9422fa01b9f"/></dir><dir name="sql"><dir name="lengow_setup"><file name="mysql4-install-2.0.0.0.php" hash="ec6f4fbc56eb98d2439d9e53a6d5906f"/><file name="mysql4-upgrade-2.0.0.0-2.0.0.1.php" hash="8a452156d98da3e2508e7e67fd6b3006"/></dir></dir><file name=".DS_Store" hash="dc971dc7108101d485bfc11f9d1bd4c0"/></dir><dir name="Tracker"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Check"><file name="Point.php" hash="b1b7be8e668e789ddfa26a615b4a5040"/></dir><file name="Check.php" hash="bc55760cc20b6ef21bf894f49454ea1e"/></dir></dir></dir><dir name="Tag"><file name="Capsule.php" hash="14256e8019240284092096ec888a4f58"/><file name="Simple.php" hash="5cae14470caf8393ed8eaf0b7b006996"/></dir><file name="Tracker.php" hash="392f499d21ec1f8658b950a51ca89ff3"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Check.php" hash="cb25e508ce65cdfacef25de6084ae732"/><file name="Data.php" hash="e526694354fe760f266bf925e5e4ac39"/></dir><dir name="Model"><file name="Capsule.php" hash="a13590e2393d76c7d15f5094745b586f"/><file name="Config.php" hash="d475fd6dd049ed712f69e4a1bfc2036c"/><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="0a753473d269769b507e89400ed528c8"/></dir><dir name="etc"><file name="config.xml" hash="609ebd7fa73ed9214c08efb90e4455a5"/><file name="plugins.xml" hash="136bc0cf82db219c82f6a3993d3debf3"/><file name="system.xml" hash="79f9f43e00295f51c428023e8349ac0d"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="8bd6d3c25e5911481a5f105fe55833f1"/></dir><dir name="template"><dir name="lengow"><dir name="check"><file name="point.phtml" hash="8e221f846b0731f8e3f1a6229e342166"/></dir><dir name="dashboard"><file name="charts.phtml" hash="e03c9e77fe69066ed335669c38d56266"/></dir><dir name="export"><file name="product.phtml" hash="fcab2dbf0f9ff81992d9b1e75cc1b5c5"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="feed"><file name="grid.phtml" hash="7e965f793beb4847fad559506865a35e"/></dir><dir name="sales"><dir name="order"><dir name="tab"><file name="info.phtml" hash="fd76ca51399fd00b52f8430acce8555c"/></dir></dir><dir name="payment"><dir name="info"><file name="purchaseorder.phtml" hash="8e9e7a287ef57fe72023e28747fb0864"/></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="6c936eef50a6394cbb5fce30f2f216d9"/></dir><dir name="template"><dir name="lengow"><dir name="tracker"><file name="simpletag.phtml" hash="2b761f6da02185a6931b30fddd679d64"/><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="f8b456f0213aa71cb3c5ad18494c8545"/></dir></target><target name="mageetc"><dir name="modules"><file name="Lengow_Connector.xml" hash="34b39beecc725740ea1e0bc8d339287a"/></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"/><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.0.1.2</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></authors>
|
14 |
+
<date>2014-03-06</date>
|
15 |
+
<time>14:53:32</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="dae1bbed1ede93b06f62589e93857396"/><file name="Diagrams.php" hash="001995ea1916ca192021ba52c155a466"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7129af0e9ab390e0695f84865a02fdb5"/></dir><dir name="Model"><file name="Config.php" hash="9ac1d092bffd109f02518885f89142c7"/></dir><dir name="etc"><file name="config.xml" hash="af2a5f6194309122ef21aac04fa63bde"/></dir></dir><dir name="Export"><dir name="Block"><dir name="Adminhtml"><dir name="Product"><file name="Grid.php" hash="5ceb46d0b2ba6ab2e64e95eacad57cf4"/></dir><file name="Product.php" hash="b4802cfa8249bfe8c7378d65a5147c1b"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="837edcfbf4d83096f5a23339a11ae9c0"/><file name="Security.php" hash="3ad6b6925ef05884a1501afa6e64a685"/></dir><dir name="Model"><dir name="Catalog"><file name="Product.php" hash="3adf8ff033a599a93a99c2d4626ec15c"/></dir><file name="Config.php" hash="99e3221d774542191026baff3776f8b6"/><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="9e53191b25324292f962dec130c0c80a"/><file name="Json.php" hash="4df743bce6647eea36d2677ab7f6a9a8"/><file name="Xml.php" hash="dee5abfe1fa6f066a89a7de9ca3c9f3e"/><file name="Yaml.php" hash="f0c24bd481039c4fc13fa26ef7a4d1b9"/></dir><file name="Generate.php" hash="7b3c5f921ec254ba08089012f6a880ce"/><file name="Observer.php" hash="df1db3722a4621a0b96f8a94c60cdbe7"/><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="685809c2367ec3509ecbf9f4d07f4661"/></dir></dir><dir name="Source"><file name="Attributes.php" hash="95b485a452aee5b27af0af618211f13c"/><file name="Types.php" hash="6b125e9e5c0dfd5c93cf304441ed47ac"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="111617eb86ef8dd7374efa0d4eabf781"/></dir><dir name="Source"><dir name="Category"><file name="Level.php" hash="b35d3367815682e0ed2827ae8c722e9a"/></dir><file name="Format.php" hash="fd069f484cc3ae0d914fb7a965789d9f"/><file name="Getattributes.php" hash="9ed9accf926ee7ad15a361d45eae5ff6"/><file name="Images.php" hash="e6ec93f301599ea91d69a1f4847e240d"/><file name="Status.php" hash="c848476436a961877def6ae5ea0b16d8"/><file name="Types.php" hash="56de65acbb13ee5425b95cc5f9c3f2d2"/></dir></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="ExportController.php" hash="a9945fb7906fb30523599d19b97ef3a1"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="FeedController.php" hash="e8fe620214eb352ff4d7cfbb06547a33"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="7efec4c0fcd66c6b14bcd53e4e5bf8ae"/><file name="system.xml" hash="0fc8294856d3d5ef5288af7c9b0d4e06"/></dir></dir><dir name="Feed"><dir name="Block"><dir name="Adminhtml"><dir name="Feed"><file name="Grid.php" hash="164d0069752cf6327128e2da873c6466"/><dir name="Renderer"><file name="Migrate.php" hash="e59d5a72241165ec1c8194fc257d6e11"/><file name="Select.php" hash="78808e9061b7a5aa73c2273f18bc0746"/><file name="Url.php" hash="c9060f99ffa7f47140392c4392f793e7"/></dir></dir><file name="Feed.php" hash="96aa5aa6ed7c9e4a708df5b391621421"/></dir></dir><dir name="Helper"><file name="Data.php" hash="23ab67ab3d66ce8c35cfe9c8bff76f76"/></dir><dir name="Model"><file name="Config.php" hash="7487c73a3fe292614c9f4a2b66d8a664"/><file name="Feed.php" hash="75e01d41749b61db15f2603ed00f09a4"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="FeedController.php" hash="7a5f760a1768ddd6dca7b04affb1681f"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="7ef4df5b01868a514760bbdf4868f664"/><file name="system.xml" hash="22ba605f2529396e4edb41c5ec8e65e6"/></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="ca9a55f848bccb6e8a34e0217cf905f5"/></dir><file name="Log.php" hash="c8434ba0a97fb13c25fbfbc4f1841b53"/><dir name="Order"><file name="Grid.php" hash="f5423e0e9f88c29a39e494e8ce72c0e1"/><file name="Tab.php" hash="4c913f7d42506bd3e60e10a5142d9b8a"/></dir><file name="Order.php" hash="2ddb7553c4c67faf0bae5bbbe1be16fe"/></dir><dir name="Payment"><dir name="Info"><file name="Purchaseorder.php" hash="72bbeb480299903b16e505ffdd5d73fe"/></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="05e0c035a6400f6b4b56b33e6bbf424d"/></dir><dir name="Model"><file name="Config.php" hash="e356e499cd34db77a17954fb52443a4f"/><dir name="Connector"><file name="Exception.php" hash="de1fa1b69e24fe7b976c03f1ed1ca7f7"/></dir><file name="Connector.php" hash="63b645168b51d6cbb0cf748f3159d35e"/><dir name="Customer"><file name="Customer.php" hash="e195621601071a4f15d0724839e9aaaa"/></dir><file name="Import.php" hash="4a7e3d1c3c7dba329987afd34d7e9479"/><file name="Log.php" hash="3dd56825227289f380bf5c0e2f8e848e"/><dir name="Marketplace"><file name="Exception.php" hash="bd7ab8db94e241d022cd6e467e8596ec"/></dir><file name="Marketplace.php" hash="40f6243e4e106a7f4f77f0985b775d6a"/><dir name="Mysql4"><dir name="Log"><file name="Collection.php" hash="e3c7a389004afa2a116560e5501cb9fa"/></dir><file name="Log.php" hash="3cc46747828dc075638b115cb8bdbf68"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="Observer.php" hash="b798657837ade214c3bf3e8a4b53ec64"/><file name="Order.php" hash="4c0926676218ad2af71053a6afe30002"/><dir name="Payment"><dir name="Method"><file name="Lengow.php" hash="41344a615275c14d06707ed63ec58e59"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Quote"><file name="Item.php" hash="30f9faf6b299ef64f10785ba16030a17"/></dir><dir name="Shipping"><dir name="Carrier"><file name="Lengow.php" hash="64627df21b7d1d089ce7caa6fb3837a9"/></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Lengow"><file name="LogController.php" hash="2eb76e322af63ee3639364ec4bb44017"/><file name="OrderController.php" hash="6d348a79987f24919d32beb454fa9b13"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name="ApiController.php" hash="7386c653ad093a891ffc75f0326d163f"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="7b0c218d2e0b308d5975cae7f56c55fc"/><file name="marketplaces.xml" hash="2eb3aa3b0ba89abf0de8802c6957e6a2"/><file name="system.xml" hash="be59409e1daec954eeb3b9422fa01b9f"/><file name="wsdl.xml" hash="d299fecf68e9f795e26037be4f2115b3"/></dir><dir name="sql"><dir name="lengow_setup"><file name="mysql4-install-2.0.0.0.php" hash="ec6f4fbc56eb98d2439d9e53a6d5906f"/><file name="mysql4-upgrade-2.0.0.0-2.0.0.1.php" hash="8a452156d98da3e2508e7e67fd6b3006"/></dir></dir><file name=".DS_Store" hash="dc971dc7108101d485bfc11f9d1bd4c0"/></dir><dir name="Tracker"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Check"><file name="Point.php" hash="b1b7be8e668e789ddfa26a615b4a5040"/></dir><file name="Check.php" hash="bc55760cc20b6ef21bf894f49454ea1e"/></dir></dir></dir><dir name="Tag"><file name="Capsule.php" hash="14256e8019240284092096ec888a4f58"/><file name="Simple.php" hash="5cae14470caf8393ed8eaf0b7b006996"/></dir><file name="Tracker.php" hash="b12dc4b32f1de2fb396620f317ce63bb"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Check.php" hash="8ac8d07d45494fb39bec90ec9f11cdf9"/><file name="Data.php" hash="e526694354fe760f266bf925e5e4ac39"/></dir><dir name="Model"><file name="Capsule.php" hash="55504d0b6398f5a88b5977bf54f5b54b"/><file name="Config.php" hash="d475fd6dd049ed712f69e4a1bfc2036c"/><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="8897c38fe557f52bbaaf8532529f149c"/></dir><dir name="etc"><file name="config.xml" hash="5f8bebab2071098e602c97a7e5d0f043"/><file name="plugins.xml" hash="afea3f2dd9e0aa063f4ce652b5f414d9"/><file name="system.xml" hash="79f9f43e00295f51c428023e8349ac0d"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="8bd6d3c25e5911481a5f105fe55833f1"/></dir><dir name="template"><dir name="lengow"><dir name="check"><file name="point.phtml" hash="8e221f846b0731f8e3f1a6229e342166"/></dir><dir name="dashboard"><file name="charts.phtml" hash="e03c9e77fe69066ed335669c38d56266"/></dir><dir name="export"><file name="product.phtml" hash="fcab2dbf0f9ff81992d9b1e75cc1b5c5"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="feed"><file name="grid.phtml" hash="7e965f793beb4847fad559506865a35e"/></dir><dir name="sales"><dir name="order"><dir name="tab"><file name="info.phtml" hash="fd76ca51399fd00b52f8430acce8555c"/></dir></dir><dir name="payment"><dir name="info"><file name="purchaseorder.phtml" hash="8e9e7a287ef57fe72023e28747fb0864"/></dir></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="lengow.xml" hash="823da63da3444c91f7e0197cc3f57225"/></dir><dir name="template"><dir name="lengow"><dir name="tracker"><file name="simpletag.phtml" hash="2b761f6da02185a6931b30fddd679d64"/><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="f8b456f0213aa71cb3c5ad18494c8545"/></dir></target><target name="mageetc"><dir name="modules"><file name="Lengow_Connector.xml" hash="34b39beecc725740ea1e0bc8d339287a"/></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"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></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><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></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/js/.DS_Store
ADDED
Binary file
|
skin/frontend/base/default/lengow/.DS_Store
ADDED
Binary file
|
skin/{adminhtml/default → frontend/base}/default/lengow/js/tracker.js
RENAMED
File without changes
|