Version Notes
- Minor bugfixes & improvements
Download this release
Release Info
Developer | ShoppingFlux |
Extension | Profileolabs_Shoppingflux |
Version | 0.9.9 |
Comparing to | |
See all releases |
Code changes from version 0.9.8 to 0.9.9
- app/code/community/Profileolabs/Shoppingflux/Model/Catalog/Resource/Eav/Attribute.php +13 -0
- app/code/community/Profileolabs/Shoppingflux/Model/Config.php +5 -5
- app/code/community/Profileolabs/Shoppingflux/Model/Export/Flux.php +5 -3
- app/code/community/Profileolabs/Shoppingflux/Model/Export/Observer.php +5 -0
- app/code/community/Profileolabs/Shoppingflux/Model/Export/Source/Tracking/Delay.php +4 -4
- app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Convert/Customer.php +3 -3
- app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Log.php +2 -2
- app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Observer.php +1 -1
- app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Order.php +13 -8
- app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Shipping/Carrier/Shoppingflux.php +2 -2
- app/code/community/Profileolabs/Shoppingflux/Model/Sales/Service/Quote.php +35 -0
- app/code/community/Profileolabs/Shoppingflux/Model/System/Config/Backend/Category.php +51 -0
- app/code/community/Profileolabs/Shoppingflux/controllers/Export/FluxController.php +10 -7
- app/code/community/Profileolabs/Shoppingflux/controllers/Manageorders/LaunchController.php +4 -0
- app/code/community/Profileolabs/Shoppingflux/etc/config.xml +29 -18
- app/code/community/Profileolabs/Shoppingflux/etc/system.xml +69 -42
- app/code/community/Profileolabs/Shoppingflux/sql/profileolabs_shoppingflux_setup/mysql4-install-0.9.9.php +444 -0
- package.xml +4 -4
- skin/adminhtml/default/default/images/shoppingflux/ad.png.txt +0 -0
app/code/community/Profileolabs/Shoppingflux/Model/Catalog/Resource/Eav/Attribute.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
die('ok');
|
3 |
+
|
4 |
+
class Profileolabs_Shoppingflux_Model_Catalog_Resource_Eav_Attribute extends Mage_Eav_Model_Entity_Attribute {
|
5 |
+
|
6 |
+
public function getSourceModel() {
|
7 |
+
if($this->getAttributeCode() == 'shoppingflux_default_category') {
|
8 |
+
return 'profileolabs_shoppingflux/attribute_source_category';
|
9 |
+
}
|
10 |
+
return parent::getSourceModel();
|
11 |
+
}
|
12 |
+
|
13 |
+
}
|
app/code/community/Profileolabs/Shoppingflux/Model/Config.php
CHANGED
@@ -103,7 +103,7 @@ class Profileolabs_Shoppingflux_Model_Config extends Varien_Object {
|
|
103 |
}
|
104 |
|
105 |
public function getUseAllStoreCategories($storeId = null) {
|
106 |
-
return $this->getConfigFlag('shoppingflux_export/
|
107 |
}
|
108 |
|
109 |
public function getUseAllStoreProducts($storeId = null) {
|
@@ -111,11 +111,11 @@ class Profileolabs_Shoppingflux_Model_Config extends Varien_Object {
|
|
111 |
}
|
112 |
|
113 |
public function getUseOnlySFCategory($storeId = null) {
|
114 |
-
return $this->getConfigFlag('shoppingflux_export/
|
115 |
}
|
116 |
|
117 |
public function getMaxCategoryLevel($storeId = null) {
|
118 |
-
return $this->getConfigData('shoppingflux_export/
|
119 |
}
|
120 |
|
121 |
public function getEnableEvents($storeId = null) {
|
@@ -314,11 +314,11 @@ class Profileolabs_Shoppingflux_Model_Config extends Varien_Object {
|
|
314 |
}
|
315 |
|
316 |
public function preferMobilePhone($storeId = null) {
|
317 |
-
return $this->getConfigFlag("shoppingflux_mo/import_customer/prefer_mobile_phone");
|
318 |
}
|
319 |
|
320 |
public function getMobilePhoneAttribute($storeId = null) {
|
321 |
-
return $this->getConfigData("shoppingflux_mo/import_customer/mobile_attribute");
|
322 |
}
|
323 |
|
324 |
}
|
103 |
}
|
104 |
|
105 |
public function getUseAllStoreCategories($storeId = null) {
|
106 |
+
return $this->getConfigFlag('shoppingflux_export/category/all_store_categories', $storeId);
|
107 |
}
|
108 |
|
109 |
public function getUseAllStoreProducts($storeId = null) {
|
111 |
}
|
112 |
|
113 |
public function getUseOnlySFCategory($storeId = null) {
|
114 |
+
return $this->getConfigFlag('shoppingflux_export/category/use_only_shoppingflux_category', $storeId);
|
115 |
}
|
116 |
|
117 |
public function getMaxCategoryLevel($storeId = null) {
|
118 |
+
return $this->getConfigData('shoppingflux_export/category/max_category_level', $storeId);
|
119 |
}
|
120 |
|
121 |
public function getEnableEvents($storeId = null) {
|
314 |
}
|
315 |
|
316 |
public function preferMobilePhone($storeId = null) {
|
317 |
+
return $this->getConfigFlag("shoppingflux_mo/import_customer/prefer_mobile_phone", $storeId);
|
318 |
}
|
319 |
|
320 |
public function getMobilePhoneAttribute($storeId = null) {
|
321 |
+
return $this->getConfigData("shoppingflux_mo/import_customer/mobile_attribute", $storeId);
|
322 |
}
|
323 |
|
324 |
}
|
app/code/community/Profileolabs/Shoppingflux/Model/Export/Flux.php
CHANGED
@@ -131,13 +131,14 @@ class Profileolabs_Shoppingflux_Model_Export_Flux extends Mage_Core_Model_Abstra
|
|
131 |
->walk($productCollection->getSelect(), array(array($this, 'addMissingProduct')), array('store_id' => $storeId));
|
132 |
}
|
133 |
}
|
|
|
134 |
}
|
135 |
|
136 |
public function updateFlux($store_id = false, $maxImportLimit = 1000, $shouldExportOnly = false) {
|
137 |
-
if(rand(0,100) == 50) {
|
138 |
//no need to execute this every time. todo : move to cron task
|
139 |
-
|
140 |
-
}
|
141 |
foreach (Mage::app()->getStores() as $store) {
|
142 |
$storeId = $store->getId();
|
143 |
$isCurrentStore = (Mage::app()->getStore()->getId() == $storeId);
|
@@ -417,6 +418,7 @@ class Profileolabs_Shoppingflux_Model_Export_Flux extends Mage_Core_Model_Abstra
|
|
417 |
} else {
|
418 |
$_manageStock = true;
|
419 |
}
|
|
|
420 |
$data = array(
|
421 |
'id' => $product->getId(),
|
422 |
'last-feed-update' => date('Y-m-d H:i:s'),
|
131 |
->walk($productCollection->getSelect(), array(array($this, 'addMissingProduct')), array('store_id' => $storeId));
|
132 |
}
|
133 |
}
|
134 |
+
|
135 |
}
|
136 |
|
137 |
public function updateFlux($store_id = false, $maxImportLimit = 1000, $shouldExportOnly = false) {
|
138 |
+
//if(rand(0,100) == 50) {
|
139 |
//no need to execute this every time. todo : move to cron task
|
140 |
+
// $this->checkForDeletedProducts();
|
141 |
+
//}
|
142 |
foreach (Mage::app()->getStores() as $store) {
|
143 |
$storeId = $store->getId();
|
144 |
$isCurrentStore = (Mage::app()->getStore()->getId() == $storeId);
|
418 |
} else {
|
419 |
$_manageStock = true;
|
420 |
}
|
421 |
+
|
422 |
$data = array(
|
423 |
'id' => $product->getId(),
|
424 |
'last-feed-update' => date('Y-m-d H:i:s'),
|
app/code/community/Profileolabs/Shoppingflux/Model/Export/Observer.php
CHANGED
@@ -185,6 +185,10 @@ class Profileolabs_Shoppingflux_Model_Export_Observer {
|
|
185 |
}
|
186 |
}
|
187 |
|
|
|
|
|
|
|
|
|
188 |
public function fillMainCategory() {
|
189 |
$productCollection = Mage::getModel('catalog/product')->getCollection();
|
190 |
$productCollection->addAttributeToSelect('shoppingflux_default_category', 'left');
|
@@ -431,5 +435,6 @@ class Profileolabs_Shoppingflux_Model_Export_Observer {
|
|
431 |
$this->_scheduleProductUpdates($productId, array('stock_value' => 0));
|
432 |
}
|
433 |
}
|
|
|
434 |
|
435 |
}
|
185 |
}
|
186 |
}
|
187 |
|
188 |
+
|
189 |
+
/**
|
190 |
+
* @deprecated Not used anymore. Caused problems and was not so helpfull..
|
191 |
+
*/
|
192 |
public function fillMainCategory() {
|
193 |
$productCollection = Mage::getModel('catalog/product')->getCollection();
|
194 |
$productCollection->addAttributeToSelect('shoppingflux_default_category', 'left');
|
435 |
$this->_scheduleProductUpdates($productId, array('stock_value' => 0));
|
436 |
}
|
437 |
}
|
438 |
+
|
439 |
|
440 |
}
|
app/code/community/Profileolabs/Shoppingflux/Model/Export/Source/Tracking/Delay.php
CHANGED
@@ -7,10 +7,10 @@ class Profileolabs_Shoppingflux_Model_Export_Source_Tracking_Delay
|
|
7 |
public function toOptionArray()
|
8 |
{
|
9 |
return array(
|
10 |
-
array('label'=>30, 'value'=>
|
11 |
-
array('label'=>25, 'value'=>
|
12 |
-
array('label'=>20, 'value'=>
|
13 |
-
array('label'=>15, 'value'=>
|
14 |
array('label'=>10, 'value'=>10),
|
15 |
array('label'=>9, 'value'=>9),
|
16 |
array('label'=>8, 'value'=>8),
|
7 |
public function toOptionArray()
|
8 |
{
|
9 |
return array(
|
10 |
+
array('label'=>30, 'value'=>30),
|
11 |
+
array('label'=>25, 'value'=>25),
|
12 |
+
array('label'=>20, 'value'=>20),
|
13 |
+
array('label'=>15, 'value'=>15),
|
14 |
array('label'=>10, 'value'=>10),
|
15 |
array('label'=>9, 'value'=>9),
|
16 |
array('label'=>8, 'value'=>8),
|
app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Convert/Customer.php
CHANGED
@@ -75,10 +75,10 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Convert_Customer extends Vari
|
|
75 |
$address->setTelephone($data['PhoneMobile']);
|
76 |
|
77 |
|
78 |
-
if($data['PhoneMobile'] && strlen(trim($data['PhoneMobile'])) >=
|
79 |
-
if(Mage::getSingleton('profileolabs_shoppingflux/config')->getMobilePhoneAttribute()) {
|
80 |
$customer->setData(Mage::getSingleton('profileolabs_shoppingflux/config')->getMobilePhoneAttribute(), $data['PhoneMobile']);
|
81 |
-
} else if(Mage::getSingleton('profileolabs_shoppingflux/config')->preferMobilePhone()) {
|
82 |
$address->setTelephone($data['PhoneMobile']);
|
83 |
}
|
84 |
}
|
75 |
$address->setTelephone($data['PhoneMobile']);
|
76 |
|
77 |
|
78 |
+
if($data['PhoneMobile'] && strlen(trim($data['PhoneMobile'])) >= 9) {
|
79 |
+
if(Mage::getSingleton('profileolabs_shoppingflux/config')->getMobilePhoneAttribute($storeId)) {
|
80 |
$customer->setData(Mage::getSingleton('profileolabs_shoppingflux/config')->getMobilePhoneAttribute(), $data['PhoneMobile']);
|
81 |
+
} else if(Mage::getSingleton('profileolabs_shoppingflux/config')->preferMobilePhone($storeId)) {
|
82 |
$address->setTelephone($data['PhoneMobile']);
|
83 |
}
|
84 |
}
|
app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Log.php
CHANGED
@@ -23,10 +23,10 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Log extends Mage_Core_Model_A
|
|
23 |
$orderMessage ="";
|
24 |
if(!is_null($orderId))
|
25 |
{
|
26 |
-
$orderMessage = Mage::helper('profileolabs_shoppingflux')->__('ShoppingFlux Order ID : #%s', $orderId);
|
27 |
}
|
28 |
|
29 |
-
$message = $orderMessage.$message;
|
30 |
|
31 |
$this->setMessage($message);
|
32 |
|
23 |
$orderMessage ="";
|
24 |
if(!is_null($orderId))
|
25 |
{
|
26 |
+
$orderMessage = Mage::helper('profileolabs_shoppingflux')->__('ShoppingFlux Order ID : #%s (store %s)', $orderId, Mage::app()->getStore()->getId());
|
27 |
}
|
28 |
|
29 |
+
$message = $orderMessage.' / '.$message;
|
30 |
|
31 |
$this->setMessage($message);
|
32 |
|
app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Observer.php
CHANGED
@@ -102,7 +102,7 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Observer {
|
|
102 |
$message = 'Erreur de mise à jour de l\'expédition #'.$shipment->getIncrementId().' (commande #'.$shipment->getOrder()->getIncrementId().') : <br/>' . $e->getMessage();
|
103 |
$message .= "<br/><br/> Merci de vérifier les infos de votre commandes ou de contacter le support Shopping Flux ou celui de la place de marché";
|
104 |
$this->getHelper()->notifyError($message);
|
105 |
-
if($item->getId() && !preg_match('%Error in cURL request: connect.. timed out%', $message)) {
|
106 |
try {
|
107 |
$item->delete();
|
108 |
} catch(Exception $e) {}
|
102 |
$message = 'Erreur de mise à jour de l\'expédition #'.$shipment->getIncrementId().' (commande #'.$shipment->getOrder()->getIncrementId().') : <br/>' . $e->getMessage();
|
103 |
$message .= "<br/><br/> Merci de vérifier les infos de votre commandes ou de contacter le support Shopping Flux ou celui de la place de marché";
|
104 |
$this->getHelper()->notifyError($message);
|
105 |
+
if($item->getId() && !preg_match('%Error in cURL request: connect.. timed out%', $message) && !preg_match('%Result is not Varien_Simplexml_Element%', $message)) {
|
106 |
try {
|
107 |
$item->delete();
|
108 |
} catch(Exception $e) {}
|
app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Order.php
CHANGED
@@ -46,6 +46,7 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Order extends Varien_Object {
|
|
46 |
'short_description',
|
47 |
'meta_title',
|
48 |
'meta_description',
|
|
|
49 |
'name',
|
50 |
'tax_class_id',
|
51 |
'status',
|
@@ -164,6 +165,13 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Order extends Varien_Object {
|
|
164 |
* Get orders and create it
|
165 |
*/
|
166 |
public function manageOrders() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
$stores = Mage::app()->getStores();
|
168 |
|
169 |
$storeCode = Mage::app()->getStore()->getCode();
|
@@ -234,7 +242,7 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Order extends Varien_Object {
|
|
234 |
if (($importedOrder = $this->isAlreadyImported($orderSf['IdOrder']))) {
|
235 |
$this->_ordersIdsImported[$orderSf['IdOrder']] = array(
|
236 |
'Marketplace' => $orderSf['Marketplace'],
|
237 |
-
'MageOrderId' => $importedOrder?$importedOrder->getIncrementId():'',
|
238 |
'ShippingMethod' => $orderSf['ShippingMethod'],
|
239 |
'ErrorOrder' => false
|
240 |
);
|
@@ -311,9 +319,6 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Order extends Varien_Object {
|
|
311 |
|
312 |
//Super mode is setted to bypass check item qty ;)
|
313 |
$this->_getQuote()->setIsSuperMode(true);
|
314 |
-
|
315 |
-
//Set boolean shopping flux and shipping prices in session for shopping method
|
316 |
-
Mage::register('is_shoppingfeed_import', 1, true);
|
317 |
|
318 |
$this->_getQuote()->setCustomer($this->_customer);
|
319 |
}
|
@@ -389,22 +394,22 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Order extends Varien_Object {
|
|
389 |
else
|
390 |
$order = $this->_saveOrder13($orderSf, $storeId);
|
391 |
|
392 |
-
$this->getHelper()->log('Order ' . $orderSf['IdOrder'] . ' has been created (' . $order->getIncrementId() . ')');
|
393 |
$this->_nb_orders_imported++;
|
394 |
|
395 |
if (!is_null($order) && $order->getId()) {
|
396 |
$useMarketplaceDate = $this->getConfig()->getConfigFlag('shoppingflux_mo/manageorders/use_marketplace_date');
|
397 |
-
|
398 |
if($useMarketplaceDate) {
|
399 |
$orderDate = $orderSf['OrderDate'];
|
|
|
400 |
}
|
401 |
-
$this->_changeDateCreatedAt($order, $orderDate);
|
402 |
}
|
403 |
|
404 |
//Erase session for the next order
|
405 |
$this->getSession()->clear();
|
406 |
} catch (Exception $e) {
|
407 |
-
$this->getHelper()->log($e->getMessage(), $orderSf['IdOrder']);
|
408 |
$this->_ordersIdsImported[$orderIdShoppingFlux]['ErrorOrder'] = $e->getMessage();
|
409 |
//$this->clearOrderFlagFile($orderSf['IdOrder']);
|
410 |
//Erase session for the next order
|
46 |
'short_description',
|
47 |
'meta_title',
|
48 |
'meta_description',
|
49 |
+
'meta_keyword',
|
50 |
'name',
|
51 |
'tax_class_id',
|
52 |
'status',
|
165 |
* Get orders and create it
|
166 |
*/
|
167 |
public function manageOrders() {
|
168 |
+
//Set boolean shopping flux
|
169 |
+
Mage::register('is_shoppingfeed_import', 1, true);
|
170 |
+
|
171 |
+
|
172 |
+
//compatibility with AutoShipping extension
|
173 |
+
Mage::app()->getStore()->setConfig('autoshipping/settings/enabled', "0");
|
174 |
+
|
175 |
$stores = Mage::app()->getStores();
|
176 |
|
177 |
$storeCode = Mage::app()->getStore()->getCode();
|
242 |
if (($importedOrder = $this->isAlreadyImported($orderSf['IdOrder']))) {
|
243 |
$this->_ordersIdsImported[$orderSf['IdOrder']] = array(
|
244 |
'Marketplace' => $orderSf['Marketplace'],
|
245 |
+
'MageOrderId' => is_object($importedOrder)?$importedOrder->getIncrementId():'',
|
246 |
'ShippingMethod' => $orderSf['ShippingMethod'],
|
247 |
'ErrorOrder' => false
|
248 |
);
|
319 |
|
320 |
//Super mode is setted to bypass check item qty ;)
|
321 |
$this->_getQuote()->setIsSuperMode(true);
|
|
|
|
|
|
|
322 |
|
323 |
$this->_getQuote()->setCustomer($this->_customer);
|
324 |
}
|
394 |
else
|
395 |
$order = $this->_saveOrder13($orderSf, $storeId);
|
396 |
|
397 |
+
$this->getHelper()->log('Order ' . $orderSf['IdOrder'] . ' has been created (' . $order->getIncrementId() . ' / ' . Mage::app()->getStore()->getId() . ')');
|
398 |
$this->_nb_orders_imported++;
|
399 |
|
400 |
if (!is_null($order) && $order->getId()) {
|
401 |
$useMarketplaceDate = $this->getConfig()->getConfigFlag('shoppingflux_mo/manageorders/use_marketplace_date');
|
402 |
+
//$orderDate = date('Y-m-d H:i:s', Mage::getModel('core/date')->timestamp(time()));
|
403 |
if($useMarketplaceDate) {
|
404 |
$orderDate = $orderSf['OrderDate'];
|
405 |
+
$this->_changeDateCreatedAt($order, $orderDate);
|
406 |
}
|
|
|
407 |
}
|
408 |
|
409 |
//Erase session for the next order
|
410 |
$this->getSession()->clear();
|
411 |
} catch (Exception $e) {
|
412 |
+
$this->getHelper()->log($e->getMessage() . ' Trace : ' . $e->getTraceAsString(), $orderSf['IdOrder']);
|
413 |
$this->_ordersIdsImported[$orderIdShoppingFlux]['ErrorOrder'] = $e->getMessage();
|
414 |
//$this->clearOrderFlagFile($orderSf['IdOrder']);
|
415 |
//Erase session for the next order
|
app/code/community/Profileolabs/Shoppingflux/Model/Manageorders/Shipping/Carrier/Shoppingflux.php
CHANGED
@@ -79,10 +79,10 @@ class Profileolabs_Shoppingflux_Model_Manageorders_Shipping_Carrier_Shoppingflux
|
|
79 |
*/
|
80 |
public function proccessAdditionalValidation(Mage_Shipping_Model_Rate_Request $request)
|
81 |
{
|
82 |
-
if(Mage::getVersion() == '1.4.1.0')
|
83 |
return $this->isActive();
|
84 |
|
85 |
-
return parent::proccessAdditionalValidation($request);
|
86 |
}
|
87 |
|
88 |
public function getSession()
|
79 |
*/
|
80 |
public function proccessAdditionalValidation(Mage_Shipping_Model_Rate_Request $request)
|
81 |
{
|
82 |
+
//if(Mage::getVersion() == '1.4.1.0')
|
83 |
return $this->isActive();
|
84 |
|
85 |
+
//return parent::proccessAdditionalValidation($request);
|
86 |
}
|
87 |
|
88 |
public function getSession()
|
app/code/community/Profileolabs/Shoppingflux/Model/Sales/Service/Quote.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
This rewrite is necessary for some very old magento versions compatibility. In newer versions, it is useless.
|
5 |
+
*/
|
6 |
+
class Profileolabs_Shoppingflux_Model_Sales_Service_Quote extends Mage_Sales_Model_Service_Quote {
|
7 |
+
|
8 |
+
protected function _validate()
|
9 |
+
{
|
10 |
+
if(!Mage::registry('is_shoppingfeed_import')) {
|
11 |
+
return parent::_validate();
|
12 |
+
}
|
13 |
+
$helper = Mage::helper('sales');
|
14 |
+
if (!$this->getQuote()->isVirtual()) {
|
15 |
+
$address = $this->getQuote()->getShippingAddress();
|
16 |
+
$addressValidation = $address->validate();
|
17 |
+
if ($addressValidation !== true) {
|
18 |
+
Mage::throwException(
|
19 |
+
$helper->__('Please check shipping address information. %s', implode(' ', $addressValidation))
|
20 |
+
);
|
21 |
+
}
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
+
$addressValidation = $this->getQuote()->getBillingAddress()->validate();
|
26 |
+
if ($addressValidation !== true) {
|
27 |
+
Mage::throwException(
|
28 |
+
$helper->__('Please check billing address information. %s', implode(' ', $addressValidation))
|
29 |
+
);
|
30 |
+
}
|
31 |
+
|
32 |
+
return $this;
|
33 |
+
}
|
34 |
+
|
35 |
+
}
|
app/code/community/Profileolabs/Shoppingflux/Model/System/Config/Backend/Category.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @deprecated
|
5 |
+
* Shopping Flux Backend Model for Config Api key
|
6 |
+
* @category ShoppingFlux
|
7 |
+
* @package Profileolabs_Shoppingflux
|
8 |
+
* @author kassim belghait
|
9 |
+
*/
|
10 |
+
class Profileolabs_Shoppingflux_Model_System_Config_Backend_Category extends Profileolabs_Shoppingflux_Model_System_Config_Backend_Refresh {
|
11 |
+
|
12 |
+
public function getConfig() {
|
13 |
+
return Mage::getSingleton('profileolabs_shoppingflux/config');
|
14 |
+
}
|
15 |
+
|
16 |
+
protected function _afterSave() {
|
17 |
+
try {
|
18 |
+
if ($this->isValueChanged()) {
|
19 |
+
|
20 |
+
$categoryAttribute = Mage::getSingleton('eav/config')->getAttribute('catalog_product', 'shoppingflux_default_category');
|
21 |
+
|
22 |
+
$write = Mage::getSingleton('core/resource')->getConnection('core_write');
|
23 |
+
$write->beginTransaction();
|
24 |
+
try {
|
25 |
+
if($this->getValue()) {
|
26 |
+
$query = "update " . Mage::getSingleton('core/resource')->getTableName('eav/attribute') . " set source_model = 'profileolabs_shoppingflux/attribute_source_category' where attribute_id = '" . $categoryAttribute->getId() . "'";
|
27 |
+
$write->query($query);
|
28 |
+
|
29 |
+
$query = "update " . Mage::getSingleton('core/resource')->getTableName('catalog/eav_attribute') . " set is_visible = '1' where attribute_id = '" . $categoryAttribute->getId() . "'";
|
30 |
+
$write->query($query);
|
31 |
+
} else {
|
32 |
+
$query = "update " . Mage::getSingleton('core/resource')->getTableName('eav/attribute') . " set source_model = '' where attribute_id = '" . $categoryAttribute->getId() . "'";
|
33 |
+
$write->query($query);
|
34 |
+
|
35 |
+
$query = "update " . Mage::getSingleton('core/resource')->getTableName('catalog/eav_attribute') . " set is_visible = '0' where attribute_id = '" . $categoryAttribute->getId() . "'";
|
36 |
+
$write->query($query);
|
37 |
+
}
|
38 |
+
$write->commit();
|
39 |
+
} catch (Exception $e) {
|
40 |
+
$write->rollback();
|
41 |
+
}
|
42 |
+
|
43 |
+
}
|
44 |
+
} catch (Exception $e) {
|
45 |
+
|
46 |
+
}
|
47 |
+
parent::_afterSave();
|
48 |
+
}
|
49 |
+
|
50 |
+
|
51 |
+
}
|
app/code/community/Profileolabs/Shoppingflux/controllers/Export/FluxController.php
CHANGED
@@ -8,26 +8,29 @@ class Profileolabs_Shoppingflux_Export_FluxController extends Mage_Core_Controll
|
|
8 |
|
9 |
public function testAction() {
|
10 |
ini_set('display_errors', 1);
|
|
|
|
|
11 |
//Mage::app()->cleanCache();
|
12 |
$resource = Mage::getSingleton('core/resource');
|
13 |
$readConnection = $resource->getConnection('core_read');
|
14 |
$writeConnection = $resource->getConnection('core_write');
|
15 |
$installer = Mage::getResourceModel('catalog/setup','profileolabs_shoppingflux_setup');
|
16 |
-
|
17 |
ALTER TABLE `{$installer->getTable('shoppingflux_export_flux')}` ADD `product_id` int( 11 ) NOT NULL default 0 AFTER `id`;
|
18 |
");*/
|
|
|
|
|
|
|
19 |
//$results = $readConnection->fetchAll('SHOW COLUMNS FROM '.$installer->getTable('shoppingflux_export_flux'));
|
20 |
-
|
21 |
-
|
22 |
-
INNER JOIN `catalog_product_website` AS `product_website` ON product_website.product_id = e.entity_id AND product_website.website_id = '1'
|
23 |
-
INNER JOIN `shoppingflux_export_flux` AS `sf` ON entity_id=sf.product_id where sf.store_id = '1' ");
|
24 |
var_dump($results);die();
|
25 |
|
26 |
|
27 |
//Mage::getModel('profileolabs_shoppingflux/export_flux')->checkForDeletedProducts();
|
28 |
//Mage::helper('profileolabs_shoppingflux')->newInstallation();
|
29 |
|
30 |
-
|
31 |
$installer = Mage::getResourceModel('catalog/setup','profileolabs_shoppingflux_setup');
|
32 |
$installer->addAttribute('catalog_category', 'sf_exclude', array(
|
33 |
'type' => 'int',
|
@@ -43,7 +46,7 @@ SELECT `e`.*, `sf`.`sku` AS `skusf` FROM `catalog_product_entity` AS `e`
|
|
43 |
'default' => 0,
|
44 |
'source' => 'eav/entity_attribute_source_boolean',
|
45 |
'unique' => 0,
|
46 |
-
))
|
47 |
//$sql = "delete from `".$installer->getTable('core/config_data')."` where `path` = 'shoppingflux_export/attributes_mapping/additional,'";
|
48 |
//$sql = sprintf("UPDATE `%s` SET `path` = '%s' WHERE `path` = '%s'",$installer->getTable('core/config_data'), 'shoppingflux_export/attributes_mapping/additional', 'shoppingflux_export/attributes_additionnal/list');
|
49 |
//$installer->run($sql);
|
8 |
|
9 |
public function testAction() {
|
10 |
ini_set('display_errors', 1);
|
11 |
+
|
12 |
+
|
13 |
//Mage::app()->cleanCache();
|
14 |
$resource = Mage::getSingleton('core/resource');
|
15 |
$readConnection = $resource->getConnection('core_read');
|
16 |
$writeConnection = $resource->getConnection('core_write');
|
17 |
$installer = Mage::getResourceModel('catalog/setup','profileolabs_shoppingflux_setup');
|
18 |
+
/*$installer->run("
|
19 |
ALTER TABLE `{$installer->getTable('shoppingflux_export_flux')}` ADD `product_id` int( 11 ) NOT NULL default 0 AFTER `id`;
|
20 |
");*/
|
21 |
+
/* $installer->run("
|
22 |
+
ALTER TABLE `{$installer->getTable('shoppingflux_export_flux')}` ADD INDEX ( `product_id` )
|
23 |
+
");*/
|
24 |
//$results = $readConnection->fetchAll('SHOW COLUMNS FROM '.$installer->getTable('shoppingflux_export_flux'));
|
25 |
+
// $results = $readConnection->fetchAll("SHOW INDEXES FROM shoppingflux_export_flux");
|
26 |
+
$results = $readConnection->fetchAll("SELECT * FROM core_config_data where path like 'shoppingflux_mo/shi%'");
|
|
|
|
|
27 |
var_dump($results);die();
|
28 |
|
29 |
|
30 |
//Mage::getModel('profileolabs_shoppingflux/export_flux')->checkForDeletedProducts();
|
31 |
//Mage::helper('profileolabs_shoppingflux')->newInstallation();
|
32 |
|
33 |
+
/*
|
34 |
$installer = Mage::getResourceModel('catalog/setup','profileolabs_shoppingflux_setup');
|
35 |
$installer->addAttribute('catalog_category', 'sf_exclude', array(
|
36 |
'type' => 'int',
|
46 |
'default' => 0,
|
47 |
'source' => 'eav/entity_attribute_source_boolean',
|
48 |
'unique' => 0,
|
49 |
+
));*/
|
50 |
//$sql = "delete from `".$installer->getTable('core/config_data')."` where `path` = 'shoppingflux_export/attributes_mapping/additional,'";
|
51 |
//$sql = sprintf("UPDATE `%s` SET `path` = '%s' WHERE `path` = '%s'",$installer->getTable('core/config_data'), 'shoppingflux_export/attributes_mapping/additional', 'shoppingflux_export/attributes_additionnal/list');
|
52 |
//$installer->run($sql);
|
app/code/community/Profileolabs/Shoppingflux/controllers/Manageorders/LaunchController.php
CHANGED
@@ -11,4 +11,8 @@ class Profileolabs_Shoppingflux_Manageorders_LaunchController extends Mage_Core_
|
|
11 |
public function updateordersAction() {
|
12 |
Mage::getModel('profileolabs_shoppingflux/manageorders_observer')->sendScheduledShipments();
|
13 |
}
|
|
|
|
|
|
|
|
|
14 |
}
|
11 |
public function updateordersAction() {
|
12 |
Mage::getModel('profileolabs_shoppingflux/manageorders_observer')->sendScheduledShipments();
|
13 |
}
|
14 |
+
|
15 |
+
public function getupdateorderscountAction() {
|
16 |
+
die('Count : ' . Mage::getModel('profileolabs_shoppingflux/manageorders_export_shipments')->getCollection()->count());
|
17 |
+
}
|
18 |
}
|
app/code/community/Profileolabs/Shoppingflux/etc/config.xml
CHANGED
@@ -2,18 +2,25 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Profileolabs_Shoppingflux>
|
5 |
-
<version>0.9.
|
6 |
</Profileolabs_Shoppingflux>
|
7 |
</modules>
|
8 |
<admin>
|
9 |
<routers>
|
10 |
-
|
11 |
<use>admin</use>
|
12 |
<args>
|
13 |
<module>Profileolabs_Shoppingflux</module>
|
14 |
<frontName>shoppingflux</frontName>
|
15 |
</args>
|
16 |
-
</shoppingflux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
</routers>
|
18 |
</admin>
|
19 |
<global>
|
@@ -102,6 +109,11 @@
|
|
102 |
<stock_item>Profileolabs_Shoppingflux_Model_Export_Rewrite_CatalogInventory_Stock_Item</stock_item>
|
103 |
</rewrite>
|
104 |
</cataloginventory>
|
|
|
|
|
|
|
|
|
|
|
105 |
</models>
|
106 |
<resources>
|
107 |
<profileolabs_shoppingflux_setup>
|
@@ -359,6 +371,14 @@
|
|
359 |
<model>profileolabs_shoppingflux/export_observer::updateFlux</model>
|
360 |
</run>
|
361 |
</export_updates_shoppingflux>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
<export_update_stock_shoppingflux>
|
363 |
<schedule>
|
364 |
<cron_expr>*/30 * * * *</cron_expr>
|
@@ -375,14 +395,6 @@
|
|
375 |
<model>profileolabs_shoppingflux/export_observer::generateFluxInFile</model>
|
376 |
</run>
|
377 |
</export_flux_in_file>
|
378 |
-
<!--<fill_main_category>
|
379 |
-
<schedule>
|
380 |
-
<cron_expr>0 2 * * *</cron_expr>
|
381 |
-
</schedule>
|
382 |
-
<run>
|
383 |
-
<model>profileolabs_shoppingflux/export_observer::fillMainCategory</model>
|
384 |
-
</run>
|
385 |
-
</fill_main_category>-->
|
386 |
<!--<export_shipments_shoppingflux>
|
387 |
<schedule>
|
388 |
<cron_expr>*/10 * * * *</cron_expr>
|
@@ -399,10 +411,6 @@
|
|
399 |
<model>profileolabs_shoppingflux/export_observer::manageUpdates</model>
|
400 |
</run>
|
401 |
</export_updates_shoppingflux>-->
|
402 |
-
<!-- <generate_flow_shoppingflux>
|
403 |
-
<schedule><cron_expr>30 03 * * *</cron_expr></schedule>
|
404 |
-
<run><model>profileolabs_shoppingflux/export_observer::generateFlow</model></run>
|
405 |
-
</generate_flow_shoppingflux> -->
|
406 |
</jobs>
|
407 |
</crontab>
|
408 |
<default>
|
@@ -468,15 +476,18 @@
|
|
468 |
<enable_cron>0</enable_cron>
|
469 |
<memory_limit>2048</memory_limit>
|
470 |
<use_manage_stock>1</use_manage_stock>
|
471 |
-
<all_store_categories>0</all_store_categories>
|
472 |
<all_store_products>0</all_store_products>
|
473 |
-
<use_only_shoppingflux_category>0</use_only_shoppingflux_category>
|
474 |
-
<max_category_level>5</max_category_level>
|
475 |
<enable_events>0</enable_events>
|
476 |
<manage_configurable>1</manage_configurable>
|
477 |
<manage_catalog_rules>1</manage_catalog_rules>
|
478 |
<manage_media_gallery>1</manage_media_gallery>
|
479 |
</general>
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
<attributes_mapping>
|
481 |
<ean>ean</ean>
|
482 |
<isbn>isbn</isbn>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Profileolabs_Shoppingflux>
|
5 |
+
<version>0.9.9</version>
|
6 |
</Profileolabs_Shoppingflux>
|
7 |
</modules>
|
8 |
<admin>
|
9 |
<routers>
|
10 |
+
<!--<shoppingflux>
|
11 |
<use>admin</use>
|
12 |
<args>
|
13 |
<module>Profileolabs_Shoppingflux</module>
|
14 |
<frontName>shoppingflux</frontName>
|
15 |
</args>
|
16 |
+
</shoppingflux>-->
|
17 |
+
<adminhtml>
|
18 |
+
<args>
|
19 |
+
<modules>
|
20 |
+
<shoppingflux after="Mage_Adminhtml">Profileolabs_Shoppingflux</shoppingflux>
|
21 |
+
</modules>
|
22 |
+
</args>
|
23 |
+
</adminhtml>
|
24 |
</routers>
|
25 |
</admin>
|
26 |
<global>
|
109 |
<stock_item>Profileolabs_Shoppingflux_Model_Export_Rewrite_CatalogInventory_Stock_Item</stock_item>
|
110 |
</rewrite>
|
111 |
</cataloginventory>
|
112 |
+
<sales>
|
113 |
+
<rewrite>
|
114 |
+
<service_quote>Profileolabs_Shoppingflux_Model_Sales_Service_Quote</service_quote>
|
115 |
+
</rewrite>
|
116 |
+
</sales>
|
117 |
</models>
|
118 |
<resources>
|
119 |
<profileolabs_shoppingflux_setup>
|
371 |
<model>profileolabs_shoppingflux/export_observer::updateFlux</model>
|
372 |
</run>
|
373 |
</export_updates_shoppingflux>
|
374 |
+
<remove_old_products>
|
375 |
+
<schedule>
|
376 |
+
<cron_expr>20 2 */10 * *</cron_expr>
|
377 |
+
</schedule>
|
378 |
+
<run>
|
379 |
+
<model>profileolabs_shoppingflux/export_flux::checkForDeletedProducts</model>
|
380 |
+
</run>
|
381 |
+
</remove_old_products>
|
382 |
<export_update_stock_shoppingflux>
|
383 |
<schedule>
|
384 |
<cron_expr>*/30 * * * *</cron_expr>
|
395 |
<model>profileolabs_shoppingflux/export_observer::generateFluxInFile</model>
|
396 |
</run>
|
397 |
</export_flux_in_file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
<!--<export_shipments_shoppingflux>
|
399 |
<schedule>
|
400 |
<cron_expr>*/10 * * * *</cron_expr>
|
411 |
<model>profileolabs_shoppingflux/export_observer::manageUpdates</model>
|
412 |
</run>
|
413 |
</export_updates_shoppingflux>-->
|
|
|
|
|
|
|
|
|
414 |
</jobs>
|
415 |
</crontab>
|
416 |
<default>
|
476 |
<enable_cron>0</enable_cron>
|
477 |
<memory_limit>2048</memory_limit>
|
478 |
<use_manage_stock>1</use_manage_stock>
|
|
|
479 |
<all_store_products>0</all_store_products>
|
|
|
|
|
480 |
<enable_events>0</enable_events>
|
481 |
<manage_configurable>1</manage_configurable>
|
482 |
<manage_catalog_rules>1</manage_catalog_rules>
|
483 |
<manage_media_gallery>1</manage_media_gallery>
|
484 |
</general>
|
485 |
+
<category>
|
486 |
+
<use_shoppingflux_category>0</use_shoppingflux_category>
|
487 |
+
<use_only_shoppingflux_category>0</use_only_shoppingflux_category>
|
488 |
+
<all_store_categories>0</all_store_categories>
|
489 |
+
<max_category_level>5</max_category_level>
|
490 |
+
</category>
|
491 |
<attributes_mapping>
|
492 |
<ean>ean</ean>
|
493 |
<isbn>isbn</isbn>
|
app/code/community/Profileolabs/Shoppingflux/etc/system.xml
CHANGED
@@ -1054,48 +1054,8 @@
|
|
1054 |
<show_in_website>0</show_in_website>
|
1055 |
<show_in_store>1</show_in_store>
|
1056 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1057 |
-
</all_store_products>
|
1058 |
-
|
1059 |
-
<depends>
|
1060 |
-
<show_advanced_configuration>1</show_advanced_configuration>
|
1061 |
-
</depends>
|
1062 |
-
<label>Use categories from all stores ?</label>
|
1063 |
-
<comment>If any doubt exists, leave it to 'No'</comment>
|
1064 |
-
<frontend_type>select</frontend_type>
|
1065 |
-
<sort_order>140</sort_order>
|
1066 |
-
<show_in_default>0</show_in_default>
|
1067 |
-
<show_in_website>0</show_in_website>
|
1068 |
-
<show_in_store>1</show_in_store>
|
1069 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1070 |
-
<backend_model>profileolabs_shoppingflux/system_config_backend_refresh</backend_model>
|
1071 |
-
</all_store_categories>
|
1072 |
-
<use_only_shoppingflux_category>
|
1073 |
-
<depends>
|
1074 |
-
<show_advanced_configuration>1</show_advanced_configuration>
|
1075 |
-
</depends>
|
1076 |
-
<label>Use only ShoppingFlux category ?</label>
|
1077 |
-
<comment>Faster if yes.</comment>
|
1078 |
-
<frontend_type>select</frontend_type>
|
1079 |
-
<sort_order>150</sort_order>
|
1080 |
-
<show_in_default>0</show_in_default>
|
1081 |
-
<show_in_website>0</show_in_website>
|
1082 |
-
<show_in_store>1</show_in_store>
|
1083 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1084 |
-
<backend_model>profileolabs_shoppingflux/system_config_backend_refresh</backend_model>
|
1085 |
-
</use_only_shoppingflux_category>
|
1086 |
-
<max_category_level>
|
1087 |
-
<depends>
|
1088 |
-
<show_advanced_configuration>1</show_advanced_configuration>
|
1089 |
-
</depends>
|
1090 |
-
<label>Use only X first category levels</label>
|
1091 |
-
<frontend_type>select</frontend_type>
|
1092 |
-
<sort_order>150</sort_order>
|
1093 |
-
<show_in_default>0</show_in_default>
|
1094 |
-
<show_in_website>0</show_in_website>
|
1095 |
-
<show_in_store>1</show_in_store>
|
1096 |
-
<source_model>profileolabs_shoppingflux/export_source_category_level</source_model>
|
1097 |
-
<backend_model>profileolabs_shoppingflux/system_config_backend_refresh</backend_model>
|
1098 |
-
</max_category_level>
|
1099 |
<enable_events>
|
1100 |
<depends>
|
1101 |
<show_advanced_configuration>1</show_advanced_configuration>
|
@@ -1165,6 +1125,73 @@
|
|
1165 |
</transform_qty_increments>
|
1166 |
</fields>
|
1167 |
</general>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1168 |
<attributes_mapping translate="label">
|
1169 |
<label>Attribute mapping</label>
|
1170 |
<frontend_model>profileolabs_shoppingflux/adminhtml_system_config_form_fieldset_abstract</frontend_model>
|
1054 |
<show_in_website>0</show_in_website>
|
1055 |
<show_in_store>1</show_in_store>
|
1056 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1057 |
+
</all_store_products>
|
1058 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1059 |
<enable_events>
|
1060 |
<depends>
|
1061 |
<show_advanced_configuration>1</show_advanced_configuration>
|
1125 |
</transform_qty_increments>
|
1126 |
</fields>
|
1127 |
</general>
|
1128 |
+
<category>
|
1129 |
+
<label>Categories</label>
|
1130 |
+
<frontend_model>profileolabs_shoppingflux/adminhtml_system_config_form_fieldset_abstract</frontend_model>
|
1131 |
+
<show_in_default>0</show_in_default>
|
1132 |
+
<show_in_website>0</show_in_website>
|
1133 |
+
<show_in_store>1</show_in_store>
|
1134 |
+
<sort_order>15</sort_order>
|
1135 |
+
<fields>
|
1136 |
+
<use_shoppingflux_category>
|
1137 |
+
<label>Use only ShoppingFlux category ?</label>
|
1138 |
+
<comment>Warning : Be sure that this field is set to no before uninstalling the extension.</comment>
|
1139 |
+
<frontend_type>select</frontend_type>
|
1140 |
+
<sort_order>10</sort_order>
|
1141 |
+
<show_in_default>0</show_in_default>
|
1142 |
+
<show_in_website>0</show_in_website>
|
1143 |
+
<show_in_store>1</show_in_store>
|
1144 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1145 |
+
<backend_model>profileolabs_shoppingflux/system_config_backend_category</backend_model>
|
1146 |
+
</use_shoppingflux_category>
|
1147 |
+
|
1148 |
+
<use_only_shoppingflux_category>
|
1149 |
+
<depends>
|
1150 |
+
<use_shoppingflux_category>1</use_shoppingflux_category>
|
1151 |
+
</depends>
|
1152 |
+
<label>Use only ShoppingFlux category ?</label>
|
1153 |
+
<comment>Faster if yes.</comment>
|
1154 |
+
<frontend_type>select</frontend_type>
|
1155 |
+
<sort_order>20</sort_order>
|
1156 |
+
<show_in_default>0</show_in_default>
|
1157 |
+
<show_in_website>0</show_in_website>
|
1158 |
+
<show_in_store>1</show_in_store>
|
1159 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1160 |
+
<backend_model>profileolabs_shoppingflux/system_config_backend_refresh</backend_model>
|
1161 |
+
</use_only_shoppingflux_category>
|
1162 |
+
|
1163 |
+
|
1164 |
+
<all_store_categories>
|
1165 |
+
<depends>
|
1166 |
+
<use_shoppingflux_category>1</use_shoppingflux_category>
|
1167 |
+
</depends>
|
1168 |
+
<label>Use categories from all stores ?</label>
|
1169 |
+
<comment>If any doubt exists, leave it to 'No'</comment>
|
1170 |
+
<frontend_type>select</frontend_type>
|
1171 |
+
<sort_order>30</sort_order>
|
1172 |
+
<show_in_default>0</show_in_default>
|
1173 |
+
<show_in_website>0</show_in_website>
|
1174 |
+
<show_in_store>1</show_in_store>
|
1175 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
1176 |
+
<backend_model>profileolabs_shoppingflux/system_config_backend_refresh</backend_model>
|
1177 |
+
</all_store_categories>
|
1178 |
+
|
1179 |
+
<max_category_level>
|
1180 |
+
<depends>
|
1181 |
+
<use_shoppingflux_category>1</use_shoppingflux_category>
|
1182 |
+
</depends>
|
1183 |
+
<label>Use only X first category levels</label>
|
1184 |
+
<frontend_type>select</frontend_type>
|
1185 |
+
<sort_order>40</sort_order>
|
1186 |
+
<show_in_default>0</show_in_default>
|
1187 |
+
<show_in_website>0</show_in_website>
|
1188 |
+
<show_in_store>1</show_in_store>
|
1189 |
+
<source_model>profileolabs_shoppingflux/export_source_category_level</source_model>
|
1190 |
+
<backend_model>profileolabs_shoppingflux/system_config_backend_refresh</backend_model>
|
1191 |
+
</max_category_level>
|
1192 |
+
|
1193 |
+
</fields>
|
1194 |
+
</category>
|
1195 |
<attributes_mapping translate="label">
|
1196 |
<label>Attribute mapping</label>
|
1197 |
<frontend_model>profileolabs_shoppingflux/adminhtml_system_config_form_fieldset_abstract</frontend_model>
|
app/code/community/Profileolabs/Shoppingflux/sql/profileolabs_shoppingflux_setup/mysql4-install-0.9.9.php
ADDED
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* @category ShoppingFlux
|
5 |
+
* @author vincent enjalbert
|
6 |
+
*/
|
7 |
+
|
8 |
+
|
9 |
+
/* CUSTOMER */
|
10 |
+
|
11 |
+
|
12 |
+
$installerCustomer = new Mage_Customer_Model_Entity_Setup('profileolabs_shoppingflux_setup');
|
13 |
+
/* @var $installerCustomer Mage_Customer_Model_Entity_Setup */
|
14 |
+
|
15 |
+
$installerCustomer->startSetup();
|
16 |
+
Mage::app()->getCacheInstance()->flush();
|
17 |
+
//$attribute = Mage::getModel('eav/config')->getAttribute('customer', 'from_shoppingflux');
|
18 |
+
$entityId = $installerCustomer->getEntityTypeId('customer');
|
19 |
+
$attribute = $installerCustomer->getAttribute($entityId, 'from_shoppingflux');
|
20 |
+
if (!$attribute) {
|
21 |
+
|
22 |
+
$installerCustomer->addAttribute('customer', 'from_shoppingflux', array(
|
23 |
+
'type' => 'int',
|
24 |
+
'label' => 'From ShoppingFlux',
|
25 |
+
'visible' => true,
|
26 |
+
'required' => false,
|
27 |
+
'unique' => false,
|
28 |
+
'sort_order' => 700,
|
29 |
+
'default' => 0,
|
30 |
+
'input' => 'select',
|
31 |
+
'source' => 'eav/entity_attribute_source_boolean',
|
32 |
+
'comment' => 'From ShoppingFeed ?'
|
33 |
+
));
|
34 |
+
|
35 |
+
$usedInForms = array(
|
36 |
+
'adminhtml_customer',
|
37 |
+
);
|
38 |
+
|
39 |
+
$attribute = Mage::getSingleton('eav/config')->getAttribute('customer', 'from_shoppingflux');
|
40 |
+
$attribute->setData('used_in_forms', $usedInForms);
|
41 |
+
$attribute->setData('sort_order', 700);
|
42 |
+
|
43 |
+
$attribute->save();
|
44 |
+
}
|
45 |
+
|
46 |
+
$installerCustomer->endSetup();
|
47 |
+
|
48 |
+
|
49 |
+
/* SALES */
|
50 |
+
|
51 |
+
$installerSales = new Mage_Sales_Model_Mysql4_Setup('profileolabs_shoppingflux_setup');
|
52 |
+
/* @var $installerSales Mage_Sales_Model_Mysql4_Setup */
|
53 |
+
|
54 |
+
$installerSales->startSetup();
|
55 |
+
|
56 |
+
$entityId = $installerSales->getEntityTypeId('order');
|
57 |
+
$attribute = $installerSales->getAttribute($entityId, 'from_shoppingflux');
|
58 |
+
if (!$attribute) {
|
59 |
+
$installerSales->addAttribute('order', 'from_shoppingflux', array(
|
60 |
+
'type' => 'int',
|
61 |
+
'label' => 'From ShoppingFlux',
|
62 |
+
'visible' => true,
|
63 |
+
'required' => false,
|
64 |
+
'unique' => false,
|
65 |
+
'sort_order' => 700,
|
66 |
+
'default' => 0,
|
67 |
+
'input' => 'select',
|
68 |
+
'source' => 'eav/entity_attribute_source_boolean',
|
69 |
+
'grid' => true,
|
70 |
+
'comment' => 'From ShoppingFeed ?'
|
71 |
+
));
|
72 |
+
try{
|
73 |
+
if($this->getTable('enterprise_salesarchive/order_grid')) {
|
74 |
+
$installerSales->run("
|
75 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/order_grid') . "` ADD `from_shoppingflux` INTEGER(11) NULL;
|
76 |
+
");
|
77 |
+
}
|
78 |
+
}catch(Exception $e) {}
|
79 |
+
}
|
80 |
+
|
81 |
+
$attribute = $installerSales->getAttribute($entityId, 'order_id_shoppingflux');
|
82 |
+
if (!$attribute) {
|
83 |
+
$installerSales->addAttribute('order', 'order_id_shoppingflux', array(
|
84 |
+
'type' => 'varchar',
|
85 |
+
'label' => 'ID Order ShoppingFlux',
|
86 |
+
'visible' => true,
|
87 |
+
'required' => false,
|
88 |
+
'unique' => false,
|
89 |
+
'sort_order' => 705,
|
90 |
+
'input' => 'text',
|
91 |
+
'grid' => true,
|
92 |
+
));
|
93 |
+
|
94 |
+
try {
|
95 |
+
if($this->getTable('enterprise_salesarchive/order_grid')) {
|
96 |
+
$installerSales->run("
|
97 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/order_grid') . "` ADD `order_id_shoppingflux` varchar(255) NULL;
|
98 |
+
");
|
99 |
+
}
|
100 |
+
}catch(Exception $e) {}
|
101 |
+
}
|
102 |
+
|
103 |
+
$attribute = $installerSales->getAttribute($entityId, 'marketplace_shoppingflux');
|
104 |
+
if (!$attribute) {
|
105 |
+
$installerSales->addAttribute('order', 'marketplace_shoppingflux', array(
|
106 |
+
'type' => 'varchar',
|
107 |
+
'label' => 'Marketplace ShoppingFlux',
|
108 |
+
'visible' => true,
|
109 |
+
'required' => false,
|
110 |
+
'unique' => false,
|
111 |
+
'sort_order' => 710,
|
112 |
+
'input' => 'text',
|
113 |
+
'grid' => true,
|
114 |
+
));
|
115 |
+
|
116 |
+
try {
|
117 |
+
if($this->getTable('enterprise_salesarchive/order_grid')) {
|
118 |
+
$installerSales->run("
|
119 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/order_grid') . "` ADD `marketplace_shoppingflux` varchar(255) NULL;
|
120 |
+
");
|
121 |
+
}
|
122 |
+
}catch(Exception $e) {}
|
123 |
+
}
|
124 |
+
|
125 |
+
$attribute = $installerSales->getAttribute($entityId, 'fees_shoppingflux');
|
126 |
+
if (!$attribute) {
|
127 |
+
$installerSales->addAttribute('order', 'fees_shoppingflux', array(
|
128 |
+
'type' => 'decimal',
|
129 |
+
'label' => 'Fees ShoppingFlux',
|
130 |
+
'visible' => true,
|
131 |
+
'required' => false,
|
132 |
+
'unique' => false,
|
133 |
+
'sort_order' => 720,
|
134 |
+
'input' => 'text',
|
135 |
+
'grid' => true,
|
136 |
+
));
|
137 |
+
|
138 |
+
|
139 |
+
try {
|
140 |
+
if($this->getTable('enterprise_salesarchive/order_grid')) {
|
141 |
+
$installerSales->run("
|
142 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/order_grid') . "` ADD `fees_shoppingflux` decimal(12,4) NULL;
|
143 |
+
");
|
144 |
+
}
|
145 |
+
}catch(Exception $e) {}
|
146 |
+
}
|
147 |
+
|
148 |
+
$attribute = $installerSales->getAttribute($entityId, 'other_shoppingflux');
|
149 |
+
if (!$attribute) {
|
150 |
+
$installerSales->addAttribute('order', 'other_shoppingflux', array(
|
151 |
+
'type' => 'varchar',
|
152 |
+
'label' => 'ShoppingFlux Note',
|
153 |
+
'visible' => true,
|
154 |
+
'required' => false,
|
155 |
+
'unique' => false,
|
156 |
+
'sort_order' => 710,
|
157 |
+
'input' => 'text',
|
158 |
+
'grid' => true,
|
159 |
+
));
|
160 |
+
|
161 |
+
|
162 |
+
try {
|
163 |
+
if($this->getTable('enterprise_salesarchive/order_grid')) {
|
164 |
+
$installerSales->run("
|
165 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/order_grid') . "` ADD `other_shoppingflux` varchar(255) NULL;
|
166 |
+
");
|
167 |
+
}
|
168 |
+
}catch(Exception $e) {}
|
169 |
+
}
|
170 |
+
|
171 |
+
|
172 |
+
$attribute = $installerSales->getAttribute($entityId, 'shoppingflux_shipment_flag');
|
173 |
+
if (!$attribute) {
|
174 |
+
$installerSales->addAttribute('order', 'shoppingflux_shipment_flag', array(
|
175 |
+
'type' => 'int',
|
176 |
+
'label' => 'Is shipped in ShoppingFlux',
|
177 |
+
'visible' => true,
|
178 |
+
'required' => false,
|
179 |
+
'unique' => false,
|
180 |
+
'sort_order' => 705,
|
181 |
+
'default' => 0,
|
182 |
+
'input' => 'select',
|
183 |
+
'source' => 'eav/entity_attribute_source_boolean',
|
184 |
+
'grid' => true,
|
185 |
+
));
|
186 |
+
|
187 |
+
|
188 |
+
|
189 |
+
try {
|
190 |
+
if($this->getTable('enterprise_salesarchive/order_grid')) {
|
191 |
+
$installerSales->run("
|
192 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/order_grid') . "` ADD `shoppingflux_shipment_flag` INTEGER(11) NULL;
|
193 |
+
");
|
194 |
+
}
|
195 |
+
}catch(Exception $e) {}
|
196 |
+
}
|
197 |
+
|
198 |
+
|
199 |
+
$entityId = $installerSales->getEntityTypeId('invoice');
|
200 |
+
$attribute = $installerSales->getAttribute($entityId, 'fees_shoppingflux');
|
201 |
+
if (!$attribute) {
|
202 |
+
$installerSales->addAttribute('invoice', 'fees_shoppingflux', array(
|
203 |
+
'type' => 'decimal',
|
204 |
+
'label' => 'Fees ShoppingFlux',
|
205 |
+
'visible' => true,
|
206 |
+
'required' => false,
|
207 |
+
'unique' => false,
|
208 |
+
'sort_order' => 720,
|
209 |
+
'input' => 'text',
|
210 |
+
'grid' => true,
|
211 |
+
));
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
+
try {
|
217 |
+
if($this->getTable('enterprise_salesarchive/invoice_grid')) {
|
218 |
+
$installerSales->run("
|
219 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/invoice_grid') . "` ADD `fees_shoppingflux` decimal(12,4) NULL;
|
220 |
+
");
|
221 |
+
}
|
222 |
+
}catch(Exception $e) {}
|
223 |
+
|
224 |
+
}
|
225 |
+
|
226 |
+
|
227 |
+
$entityId = $installerSales->getEntityTypeId('creditmemo');
|
228 |
+
$attribute = $installerSales->getAttribute($entityId, 'fees_shoppingflux');
|
229 |
+
if (!$attribute) {
|
230 |
+
$installerSales->addAttribute('creditmemo', 'fees_shoppingflux', array(
|
231 |
+
'type' => 'decimal',
|
232 |
+
'label' => 'Fees ShoppingFlux',
|
233 |
+
'visible' => true,
|
234 |
+
'required' => false,
|
235 |
+
'unique' => false,
|
236 |
+
'sort_order' => 720,
|
237 |
+
'input' => 'text',
|
238 |
+
'grid' => true,
|
239 |
+
));
|
240 |
+
|
241 |
+
|
242 |
+
|
243 |
+
|
244 |
+
try {
|
245 |
+
if($this->getTable('enterprise_salesarchive/creditmemo_grid')) {
|
246 |
+
$installerSales->run("
|
247 |
+
ALTER TABLE `" . $this->getTable('enterprise_salesarchive/creditmemo_grid') . "` ADD `fees_shoppingflux` decimal(12,4) NULL;
|
248 |
+
");
|
249 |
+
}
|
250 |
+
}catch(Exception $e) {}
|
251 |
+
}
|
252 |
+
|
253 |
+
|
254 |
+
$installerSales->endSetup();
|
255 |
+
|
256 |
+
|
257 |
+
//CATALOG
|
258 |
+
$installer = Mage::getResourceModel('catalog/setup','profileolabs_shoppingflux_setup');
|
259 |
+
|
260 |
+
$installer->startSetup();
|
261 |
+
|
262 |
+
|
263 |
+
$entityId = $installer->getEntityTypeId('catalog_category');
|
264 |
+
|
265 |
+
$attribute = $installer->getAttribute($entityId,'sf_exclude');
|
266 |
+
if(!$attribute)
|
267 |
+
$installer->addAttribute('catalog_category', 'sf_exclude', array(
|
268 |
+
'type' => 'int',
|
269 |
+
'group' => 'General Information',
|
270 |
+
'backend' => '',
|
271 |
+
'frontend' => '',
|
272 |
+
'label' => 'Do not export this category in ShoppingFlux',
|
273 |
+
'input' => 'select',
|
274 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
|
275 |
+
'visible' => 1,
|
276 |
+
'required' => 0,
|
277 |
+
'user_defined' => 0,
|
278 |
+
'default' => 0,
|
279 |
+
'source' => 'eav/entity_attribute_source_boolean',
|
280 |
+
'unique' => 0,
|
281 |
+
));
|
282 |
+
|
283 |
+
|
284 |
+
|
285 |
+
|
286 |
+
|
287 |
+
$entityId = $installer->getEntityTypeId('catalog_product');
|
288 |
+
|
289 |
+
$attribute = $installer->getAttribute($entityId,'shoppingflux_product');
|
290 |
+
if(!$attribute)
|
291 |
+
$installer->addAttribute('catalog_product', 'shoppingflux_product', array(
|
292 |
+
'type' => 'int',
|
293 |
+
'backend' => '',
|
294 |
+
'frontend' => '',
|
295 |
+
'label' => 'Filtrer la présence dans le flux',
|
296 |
+
'input' => 'boolean',
|
297 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
|
298 |
+
'visible' => 1,
|
299 |
+
'required' => 0,
|
300 |
+
'user_defined' => 1,
|
301 |
+
'default' => 1,
|
302 |
+
'searchable' => 0,
|
303 |
+
'filterable' => 0,
|
304 |
+
'comparable' => 0,
|
305 |
+
'visible_on_front' => 0,
|
306 |
+
'unique' => 0,
|
307 |
+
'used_in_product_listing' => 1
|
308 |
+
));
|
309 |
+
|
310 |
+
$attribute = $installer->getAttribute($entityId, 'shoppingflux_default_category');
|
311 |
+
|
312 |
+
if (!$attribute) {
|
313 |
+
|
314 |
+
$installer->addAttribute('catalog_product', 'shoppingflux_default_category', array(
|
315 |
+
'group' => 'General',
|
316 |
+
'type' => 'int',
|
317 |
+
'backend' => '',
|
318 |
+
'frontend_input' => '',
|
319 |
+
'frontend' => '',
|
320 |
+
'label' => 'Default Shoppingflux Category',
|
321 |
+
'input' => 'select',
|
322 |
+
'class' => '',
|
323 |
+
// 'source' => 'profileolabs_shoppingflux/attribute_source_category', Optional. Needs to be added manually. To avoid having an error on uninstall if attribute is still there.
|
324 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
|
325 |
+
'visible' => false,// Optional. Needs to be added manually. To avoid having an error on uninstall if attribute is still there.
|
326 |
+
'used_in_product_listing' => true,
|
327 |
+
'frontend_class' => '',
|
328 |
+
'required' => false,
|
329 |
+
'user_defined' => true,
|
330 |
+
'default' => '',
|
331 |
+
'searchable' => false,
|
332 |
+
'filterable' => false,
|
333 |
+
'comparable' => false,
|
334 |
+
'visible_on_front' => false,
|
335 |
+
'unique' => false,
|
336 |
+
'position' => 60,
|
337 |
+
));
|
338 |
+
}
|
339 |
+
|
340 |
+
$entityTypeId = $installer->getEntityTypeId(Mage_Catalog_Model_Product::ENTITY);
|
341 |
+
$attrSetIds = $installer->getAllAttributeSetIds($entityTypeId);
|
342 |
+
foreach ($attrSetIds as $attrSetId) {
|
343 |
+
$group = $installer->getAttributeGroup($entityTypeId, $attrSetId, 'Shopping Flux');
|
344 |
+
if (!$group) {
|
345 |
+
$installer->addAttributeGroup(Mage_Catalog_Model_Product::ENTITY, $attrSetId, 'Shopping Flux');
|
346 |
+
}
|
347 |
+
$groupId = $installer->getAttributeGroupId(Mage_Catalog_Model_Product::ENTITY, $attrSetId, 'Shopping Flux');
|
348 |
+
|
349 |
+
|
350 |
+
$attributeId = $installer->getAttributeId($entityTypeId, 'shoppingflux_product');
|
351 |
+
$installer->addAttributeToGroup($entityTypeId, $attrSetId, $groupId, $attributeId);
|
352 |
+
$attributeId = $installer->getAttributeId($entityTypeId, 'shoppingflux_default_category');
|
353 |
+
$installer->addAttributeToGroup($entityTypeId, $attrSetId, $groupId, $attributeId);
|
354 |
+
}
|
355 |
+
|
356 |
+
$installer->endSetup();
|
357 |
+
|
358 |
+
|
359 |
+
|
360 |
+
|
361 |
+
|
362 |
+
|
363 |
+
|
364 |
+
// DEFAULT
|
365 |
+
|
366 |
+
$installer = $this;
|
367 |
+
|
368 |
+
$installer->startSetup();
|
369 |
+
|
370 |
+
$installer->run(
|
371 |
+
"CREATE TABLE IF NOT EXISTS `{$this->getTable('shoppingflux_log')}` (
|
372 |
+
`id` int(11) NOT NULL auto_increment,
|
373 |
+
`date` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
374 |
+
`message` text NOT NULL,
|
375 |
+
PRIMARY KEY (`id`)
|
376 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
377 |
+
$installer->run(
|
378 |
+
"CREATE TABLE IF NOT EXISTS `{$this->getTable('shoppingflux_export_updates')}` (
|
379 |
+
`update_id` int(11) NOT NULL auto_increment,
|
380 |
+
`store_id` int(11) NOT NULL,
|
381 |
+
`product_sku` varchar(255) NOT NULL,
|
382 |
+
`stock_value` int(11) NOT NULL,
|
383 |
+
`price_value` decimal(12,4) NOT NULL,
|
384 |
+
`old_price_value` decimal(12,4) NOT NULL,
|
385 |
+
`updated_at` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
386 |
+
PRIMARY KEY (`update_id`)
|
387 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
388 |
+
|
389 |
+
|
390 |
+
$installer->run(
|
391 |
+
"CREATE TABLE IF NOT EXISTS `{$this->getTable('shoppingflux_export_flux')}` (
|
392 |
+
`id` int(11) NOT NULL auto_increment,
|
393 |
+
`product_id` int(11) NOT NULL default 0,
|
394 |
+
`sku` varchar(255) NOT NULL default '',
|
395 |
+
`store_id` smallint(5) NOT NULL default 1,
|
396 |
+
`xml` MEDIUMTEXT NOT NULL,
|
397 |
+
`stock_value` INT( 11 ) NOT NULL,
|
398 |
+
`price_value` DECIMAL( 12,4 ) NOT NULL,
|
399 |
+
`is_in_stock` tinyint(1) NOT NULL,
|
400 |
+
`salable` tinyint(1) NOT NULL,
|
401 |
+
`is_in_flux` tinyint(1) NOT NULL,
|
402 |
+
`type` varchar(50) NOT NULL,
|
403 |
+
`visibility` varchar(50) NOT NULL,
|
404 |
+
`update_needed` tinyint(1) NOT NULL,
|
405 |
+
`should_export` tinyint(1) NOT NULL,
|
406 |
+
`updated_at` datetime NOT NULL,
|
407 |
+
PRIMARY KEY (`id`),
|
408 |
+
CONSTRAINT SF_E_F_UNIQUE UNIQUE (`sku`, `store_id`),
|
409 |
+
INDEX (`update_needed`),
|
410 |
+
INDEX (`product_id`),
|
411 |
+
INDEX (`is_in_stock`),
|
412 |
+
INDEX (`is_in_flux`),
|
413 |
+
INDEX (`type`),
|
414 |
+
INDEX (`visibility`),
|
415 |
+
INDEX (`should_export`),
|
416 |
+
INDEX (`type`, `is_in_stock`, `is_in_flux`, `visibility`, `store_id`, `should_export`),
|
417 |
+
INDEX (`type`, `is_in_flux`, `visibility`, `store_id`,`should_export`),
|
418 |
+
INDEX (`type`, `is_in_stock`, `visibility`, `store_id`, `should_export`),
|
419 |
+
INDEX (`type`, `visibility`, `store_id`, `should_export`),
|
420 |
+
INDEX (`sku`),
|
421 |
+
INDEX (`store_id`)
|
422 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
423 |
+
|
424 |
+
$installer->run(
|
425 |
+
"CREATE TABLE IF NOT EXISTS `{$this->getTable('shoppingflux_shipping_methods')}` (
|
426 |
+
`id` int(11) NOT NULL auto_increment,
|
427 |
+
`shipping_method` varchar(255) NOT NULL default '',
|
428 |
+
`marketplace` varchar(127) NOT NULL default '',
|
429 |
+
`last_seen_at` datetime NOT NULL,
|
430 |
+
PRIMARY KEY (`id`),
|
431 |
+
CONSTRAINT SF_S_M_UNIQUE UNIQUE (`shipping_method`, `marketplace`)
|
432 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
433 |
+
|
434 |
+
$installer->run(
|
435 |
+
"CREATE TABLE IF NOT EXISTS `{$this->getTable('shoppingflux_manageorders_export_shipments')}` (
|
436 |
+
`update_id` int(11) NOT NULL auto_increment,
|
437 |
+
`shipment_id` int(11) NOT NULL,
|
438 |
+
`updated_at` timestamp NOT NULL default CURRENT_TIMESTAMP,
|
439 |
+
PRIMARY KEY (`update_id`)
|
440 |
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
441 |
+
$installer->endSetup();
|
442 |
+
Mage::app()->getCacheInstance()->flush();
|
443 |
+
Mage::helper('profileolabs_shoppingflux')->generateTokens();
|
444 |
+
Mage::helper('profileolabs_shoppingflux')->newInstallation();
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Profileolabs_Shoppingflux</name>
|
4 |
-
<version>0.9.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
@@ -11,9 +11,9 @@
|
|
11 |
<notes>- Minor bugfixes & improvements
|
12 |
</notes>
|
13 |
<authors><author><name>ShoppingFlux</name><user>ShoppingFlux</user><email>olivier.levy@gmail.com</email></author></authors>
|
14 |
-
<date>2015-
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="Profileolabs"><dir name="Shoppingflux"><dir name="Block"><dir name="Adminhtml"><dir name="Register"><file name="Notification.php" hash="13c5b3fccfd09dca376d4bc03f883384"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="Abstract.php" hash="9046ac88c58d7768d28047c5102789ae"/></dir></dir></dir></dir></dir><dir name="Export"><dir name="Adminhtml"><dir name="Catalog"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="da466a657f2b80567ef576711a190805"/></dir><dir name="Tab"><file name="Default.php" hash="b66202a43cdb1e3b178287aa1d7c1d2a"/></dir></dir></dir><file name="Feed.php" hash="a6bfac2be7c99ba5631626404e231ab0"/><file name="Process.php" hash="d5cd1471abfc8ea7f364dfb4610e4fd4"/><dir name="Product"><file name="Grid.php" hash="03b7aa3a458a0405d5d22ce7c0566033"/></dir><file name="Product.php" hash="f71a0d0f25e2484f74f1ceaeee514d3f"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Bool.php" hash="2717fd3964299bb372c355427c8136d7"/></dir></dir></dir></dir></dir><file name="Flow.php" hash="51cfa87ab0417ff26669a33bd22b50fa"/><file name="Flux.php" hash="c6da5407ccd3df3c5cd34883f02b9490"/><file name="Tracking.php" hash="a01f384121dda81f8ee3faa80ee3a32a"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Manageorders"><dir name="Adminhtml"><dir name="Cron"><file name="Grid.php" hash="ddfd5d9374446afafef1f545839e869e"/></dir><file name="Cron.php" hash="1a6a4042d3270b56e2dadc80f5c12cfa"/><file name="Import.php" hash="0d675a1731ca646ba57989b8545f4682"/><dir name="Log"><file name="Grid.php" hash="9170b01b3a6d3d558801faeba745390f"/></dir><file name="Log.php" hash="3336bc53002b82b4ab16d18a4e68e0cb"/><dir name="Order"><file name="Grid.php" hash="00cc7d1bb20437d8f7a547e0acfd7f9c"/><dir name="View"><dir name="Tab"><file name="Shoppingflux.php" hash="c0039acf525620c14cc8a1945d44150e"/></dir></dir></dir><file name="Order.php" hash="a6d45eb0146fb448f72348724c3151df"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><dir name="Shipping"><file name="Method.php" hash="3133c5e5e3f54a1605d8f59041fb5f1c"/></dir></dir></dir></dir></dir></dir><dir name="Payment"><dir name="Info"><file name="Purchaseorder.php" hash="df942f5c9a19506ef2bf70ca1d4da809"/></dir></dir></dir><dir name="Tracking"><file name="Buyline.php" hash="a60b19ed533b265a7a2aafe75c03c0fa"/><file name="Roi.php" hash="e34e26dffead694a35798d0397782d55"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dbab029caf8bfd578042fef4c8b009b3"/></dir><dir name="Model"><dir name="Attribute"><dir name="Source"><file name="Category.php" hash="49f1f7959c4741c22bbf79b7e0bd24e7"/></dir></dir><dir name="Catalog"><dir name="Product"><file name="Collection.php" hash="8c3a5fe7c329059b6b85a1e0e5ee48fd"/></dir></dir><file name="Config.php" hash="aee3ec9bc6ccefe9f0567d9ddc3c7588"/><dir name="Export"><dir name="Convert"><dir name="Parser"><file name="Product.php" hash="4e50613b82ba84c35eb87f991645c118"/></dir></dir><file name="Flow.php" hash="842fa4b4a49ea86bdeb1cb0441433ccd"/><file name="Flux.php" hash="b409605dd5fb38d7dc7ee2eb83498341"/><file name="Observer.php" hash="4549b63bc0bb7dd4e3503609d1ab314a"/><dir name="Rewrite"><dir name="Catalog"><file name="Config.php" hash="c87b13b0141123b80cb1ac33eaf75715"/></dir><dir name="CatalogInventory"><dir name="Stock"><file name="Item.php" hash="5249964f31fda6d5b7ff9587e713ca81"/></dir></dir></dir><dir name="Source"><file name="Attributes.php" hash="7c86df4782b77b69c59204a39766a787"/><file name="Attributesprice.php" hash="6cddf3b9562c8dbc56e670b377e341c1"/><dir name="Category"><file name="Level.php" hash="477d3dccefe5720eedc6b5d7a7110c9a"/></dir><dir name="Tracking"><file name="Delay.php" hash="0816c1fd9c38f9574dfc4a164d8a0b3f"/></dir><file name="Visibility.php" hash="c2a1494bc2e554074d19c58523c450b2"/></dir><file name="Updates.php" hash="6a12528f1ba69f0e0240ba471b471578"/><file name="Xml.php" hash="d6574955d2a108a91c1ebf84feb1b02b"/><file name="Xmlflow.deprecated.php" hash="960d81e05b332cdb16449029b07f0eca"/><file name="Xmlflow.php" hash="82815362cf6b2127ef961be79e48c127"/></dir><dir name="Manageorders"><dir name="Convert"><file name="Customer.php" hash="9fa96ef49eb52d1d942f5cdea68d160c"/></dir><dir name="Export"><file name="Shipments.php" hash="20e617e183366ef5447ea653aa989065"/></dir><file name="Log.php" hash="392d1811b56df12bccb2e7986e588f3d"/><file name="Observer.php" hash="00911a6675065230c35875ed20a0904e"/><file name="Order.php" hash="97759eb7ec7d66b7155fd15b9be9c262"/><file name="OrderOLD.php" hash="f25b3ce2d3610eecf201e2d2421aa460"/><dir name="Payment"><dir name="Method"><file name="Purchaseorder.php" hash="5f04df4c6792a54ba1358f1020f4415f"/></dir></dir><file name="Product.php" hash="0041c5ebcd0aa8ca17f5c1a4f07ec03d"/><dir name="Shipping"><dir name="Carrier"><file name="Shoppingflux.php" hash="d10589fa6743660ba3839f940d83e62f"/></dir><file name="Method.php" hash="a71d621b210ecdb1e69290f3e0c6f6d2"/></dir><dir name="Source"><file name="Attributes.php" hash="c9207872ddd962d6b0166d35cfe98626"/></dir></dir><dir name="Mysql4"><dir name="Export"><dir name="Flux"><file name="Collection.php" hash="25a6420bb66aeefb6a8ac0a9e6fc538f"/></dir><file name="Flux.php" hash="6140eeee9d40615eaaba736377aba17e"/><dir name="Updates"><file name="Collection.php" hash="21b355b1db82e4b8a5d1950ac2ffbd18"/></dir><file name="Updates.php" hash="02ef11d051020470231e470f3232f862"/></dir><dir name="Manageorders"><dir name="Export"><dir name="Shipments"><file name="Collection.php" hash="fcdf3c607a8d479beb10a53a618aa225"/></dir><file name="Shipments.php" hash="e06dfaf254a5fd3d8649685b56874258"/></dir><dir name="Log"><file name="Collection.php" hash="0efd8c68937edf98cc9f9bb35bd76f79"/></dir><file name="Log.php" hash="b30bbf3ead209d69993546b29f72ecd7"/><dir name="Shipping"><dir name="Method"><file name="Collection.php" hash="7b2c8fb56625953ea8cd79cc7ddcc9df"/></dir><file name="Method.php" hash="a919a6c61ad6ddefd19ffc287eaa7325"/></dir></dir></dir><dir name="Service"><dir name="Http"><dir name="Client"><dir name="Adapter"><file name="Curl.php" hash="659ab165cdd8492fdc7ee08b515732ac"/><file name="Stream.php" hash="c3a61972f5ffb625dba59ba53365965d"/></dir></dir></dir></dir><file name="Service.php" hash="3e1b05fa9e9a4ad27605bbc7586d2653"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="90036cf58c627fcc68920af912171a0c"/><file name="Refresh.php" hash="d53cbdc6ae73c146af67ef5f20d9e4e8"/></dir></dir></dir><file name=".DS_Store" hash="e7218be203fbe7f5c2243a9dea3bf55e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="GeneralController.php" hash="ca99113377d353dbc4eecfdaea767fa2"/></dir><dir name="Export"><dir name="Adminhtml"><file name="CategoryController.php" hash="d882797e1e0fbff25b312768c6569f04"/><file name="ExportController.php" hash="15e395246d428bc7e390e1078a54a390"/></dir><file name="FluxController.php" hash="dfc3346321cb2d2bcb076877871b14ee"/></dir><dir name="Manageorders"><dir name="Adminhtml"><file name="CronController.php" hash="9c43b1b18fb883b4140aaa1d3f82cb1c"/><file name="ImportController.php" hash="31203b56860d102c1565fb7653b1a770"/><file name="LogController.php" hash="f744619a2283468d03e8a3f7f8f0c080"/><file name="OrderController.php" hash="acec967d5c7fa44fd3f716fc48f500a6"/></dir><file name="LaunchController.php" hash="104e0020258b47abeacceed7b6b3669b"/></dir></dir><dir name="doc"><file name="ShoppingFeed_US.pdf" hash="0cd685730056d5f2f9c9f8292dead3ae"/><file name="ShoppingFlux_FR.pdf" hash="5590a49838bd67f70f0cacf9605cea2b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fa2e007d1511d96ca9b37fe92eab2604"/><file name="config.xml" hash="a66abd4ca610caff7585ac291a5aaa14"/><file name="system.xml" hash="b3cbe9924b99c054f1148c26f59c20bf"/></dir><dir name="sql"><dir name="profileolabs_shoppingflux_setup"><file name="mysql4-install-0.1.0.php" hash="87c47ba97a55bd71dada152b52736be2"/><file name="mysql4-install-0.8.0.php" hash="48e14fe6bea37e0813d4e8011d97f9a9"/><file name="mysql4-install-0.8.5.php" hash="1aae90e495b0a281bb6916d425561620"/><file name="mysql4-install-0.8.6.php" hash="ae6e23c12465b3b091c3235598c20b0e"/><file name="mysql4-install-0.8.7.php" hash="7672f1e89056b6bd476bf7443937dd73"/><file name="mysql4-install-0.9.3.php" hash="33a66ff8e8d4505e0c68f2f027a00750"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="0f95646d855413c52928ed4c258aacb1"/><file name="mysql4-upgrade-0.3.13-0.3.14.php" hash="4f6a5399ad06457f0ebf57b33353ebe2"/><file name="mysql4-upgrade-0.3.14-0.3.15.php" hash="6215917eef61544fc6f4193d31956df4"/><file name="mysql4-upgrade-0.3.17-0.3.18.php" hash="112b34baecd80300682bda9ba69c8970"/><file name="mysql4-upgrade-0.4.2-0.4.3.php" hash="2322a9d2b5130bc78699c1953df87a04"/><file name="mysql4-upgrade-0.4.6-0.5.0.php" hash="02be6c02a8c77e642ef3e40ded1ba8be"/><file name="mysql4-upgrade-0.5.1-0.5.2.php" hash="0e5414628efee519deff6aff301651c7"/><file name="mysql4-upgrade-0.5.3-0.5.4.php" hash="9dfb5e5895a9a2973dba57a049d9d379"/><file name="mysql4-upgrade-0.5.5-0.5.6.php" hash="e0ebe03688b7eac8252efa0d5b9b4258"/><file name="mysql4-upgrade-0.6.5-0.6.6.php" hash="c58a1219b2858d50a3d72e77ac6ee43c"/><file name="mysql4-upgrade-0.7.7-0.7.8.php" hash="0804f52786bdd97024dee79eb4b68695"/><file name="mysql4-upgrade-0.7.9-0.8.0.php" hash="7fdd68eda7f3162e979995ed2d7f847d"/><file name="mysql4-upgrade-0.8.4-0.8.5.php" hash="edb5ea0572bdc0e75fd402aeaefc4858"/><file name="mysql4-upgrade-0.8.5-0.8.6.php" hash="a80ecd198b298fecbf6807eba980361e"/><file name="mysql4-upgrade-0.8.6-0.8.7.php" hash="b2f8a980fbace011ff9632198ae6c0a5"/><file name="mysql4-upgrade-0.9.0-0.9.1.php" hash="d8c3ba1dd0bbd12c20fc221e03ff2391"/><file name="mysql4-upgrade-0.9.2-0.9.3.php" hash="5e611f9c8f337cbee764e692721520e4"/><file name=".DS_Store" hash="05157f0d6ed36203dee120b9772e6b15"/></dir></dir><file name=".DS_Store" hash="70d8319e6c95b1083e4aa566a1e7f8f7"/></dir><file name=".DS_Store" hash="d3146c6d782e4b3220b6aaa51d65eccc"/></dir></target><target name="mageetc"><dir name="modules"><file name="Profileolabs_Shoppingflux.xml" hash="73ec83cf32c72884815a3cac9f754a54"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Profileolabs_Shoppingflux.csv" hash="bb846cd4e91b8d5b49c66c29afda5c52"/></dir><dir name="fr_FR"><file name="Profileolabs_Shoppingflux.csv" hash="e7b3eb4b163a56bfe6194264c308e8d9"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="profileolabs_shoppingflux.xml" hash="d4de97001b4d68d165ea6b008541701a"/></dir><dir name="template"><dir name="profileolabs"><dir name="shoppingflux"><dir name="export"><dir name="category"><file name="edit.phtml" hash="8af812638245a0aa59a1c90aa6c20a4f"/></dir><file name="edit.phtml" hash="af3d64c7cb4b179cbf75b2def62d31f1"/><file name="feed.phtml" hash="e380f0fa763f112ff153976b97dc3704"/><file name="process.phtml" hash="1dee42b2f14c0862446e5b475aaccad3"/><file name="product.phtml" hash="3d93144b8eb1e16672d610d9c0c35092"/></dir><dir name="manageorders"><file name="import.phtml" hash="6fd3bca397be66fc17d340cfae558fe9"/><dir name="payment"><dir name="info"><file name="purchaseorder.phtml" hash="782768b0e4836b25f46443dda098db29"/></dir></dir><dir name="sales"><dir name="order"><dir name="invoice"><file name="total.phtml" hash="0d8d4aec814c41f80b9d9c475b5da3ae"/></dir><file name="total.phtml" hash="ad58dad0fd4007764f03c74cc5a6ca57"/><dir name="view"><dir name="tab"><file name="shoppingflux.phtml" hash="7492846bef04ca1f0419cd804e7c4599"/></dir></dir></dir></dir></dir><dir name="register"><file name="notification.phtml" hash="80e22e32016bbbfea1c4b8e66ba18579"/></dir><file name="register.phtml" hash="614dfd40a4e74c0db2667ba30aeb71e3"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="profileolabs_shoppingflux.xml" hash="7fd081f5a153c3912b924fe5258cc468"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="profileolabs_shoppingflux.xml" hash="7fd081f5a153c3912b924fe5258cc468"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="shoppingflux"><file name="ad.png" hash="b76c0f3e4a7084a88ba0527be9fdcc25"/><file name="logo_us.jpg" hash="cae9e6bcba9814193a59bb07d541edb6"/><file name="s_shoppingfeed.png" hash="8782818108e316533ad090c5b078866f"/><file name="s_shoppingfeed_1.jpg" hash="50b18c2dcbe3bbfa6d0bdb55787da06b"/></dir></dir><dir name="css"><file name="shoppingflux.css" hash="b607a6c8ed09795fdf9fe4876c6ca2d6"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Wcmultiselect.php" hash="304b59d32ecdd9205af1716e528ae4bd"/></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Profileolabs_Shoppingflux</name>
|
4 |
+
<version>0.9.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/gpl-license.php">GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>- Minor bugfixes & improvements
|
12 |
</notes>
|
13 |
<authors><author><name>ShoppingFlux</name><user>ShoppingFlux</user><email>olivier.levy@gmail.com</email></author></authors>
|
14 |
+
<date>2015-10-22</date>
|
15 |
+
<time>07:45:00</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Profileolabs"><dir name="Shoppingflux"><dir name="Block"><dir name="Adminhtml"><dir name="Register"><file name="Notification.php" hash="13c5b3fccfd09dca376d4bc03f883384"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><file name="Abstract.php" hash="9046ac88c58d7768d28047c5102789ae"/></dir></dir></dir></dir></dir><dir name="Export"><dir name="Adminhtml"><dir name="Catalog"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="da466a657f2b80567ef576711a190805"/></dir><dir name="Tab"><file name="Default.php" hash="b66202a43cdb1e3b178287aa1d7c1d2a"/></dir></dir></dir><file name="Feed.php" hash="a6bfac2be7c99ba5631626404e231ab0"/><file name="Process.php" hash="d5cd1471abfc8ea7f364dfb4610e4fd4"/><dir name="Product"><file name="Grid.php" hash="03b7aa3a458a0405d5d22ce7c0566033"/></dir><file name="Product.php" hash="f71a0d0f25e2484f74f1ceaeee514d3f"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Bool.php" hash="2717fd3964299bb372c355427c8136d7"/></dir></dir></dir></dir></dir><file name="Flow.php" hash="51cfa87ab0417ff26669a33bd22b50fa"/><file name="Flux.php" hash="c6da5407ccd3df3c5cd34883f02b9490"/><file name="Tracking.php" hash="a01f384121dda81f8ee3faa80ee3a32a"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Manageorders"><dir name="Adminhtml"><dir name="Cron"><file name="Grid.php" hash="ddfd5d9374446afafef1f545839e869e"/></dir><file name="Cron.php" hash="1a6a4042d3270b56e2dadc80f5c12cfa"/><file name="Import.php" hash="0d675a1731ca646ba57989b8545f4682"/><dir name="Log"><file name="Grid.php" hash="9170b01b3a6d3d558801faeba745390f"/></dir><file name="Log.php" hash="3336bc53002b82b4ab16d18a4e68e0cb"/><dir name="Order"><file name="Grid.php" hash="00cc7d1bb20437d8f7a547e0acfd7f9c"/><dir name="View"><dir name="Tab"><file name="Shoppingflux.php" hash="c0039acf525620c14cc8a1945d44150e"/></dir></dir></dir><file name="Order.php" hash="a6d45eb0146fb448f72348724c3151df"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><dir name="Shipping"><file name="Method.php" hash="3133c5e5e3f54a1605d8f59041fb5f1c"/></dir></dir></dir></dir></dir></dir><dir name="Payment"><dir name="Info"><file name="Purchaseorder.php" hash="df942f5c9a19506ef2bf70ca1d4da809"/></dir></dir></dir><dir name="Tracking"><file name="Buyline.php" hash="a60b19ed533b265a7a2aafe75c03c0fa"/><file name="Roi.php" hash="e34e26dffead694a35798d0397782d55"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dbab029caf8bfd578042fef4c8b009b3"/></dir><dir name="Model"><dir name="Attribute"><dir name="Source"><file name="Category.php" hash="49f1f7959c4741c22bbf79b7e0bd24e7"/></dir></dir><dir name="Catalog"><dir name="Product"><file name="Collection.php" hash="8c3a5fe7c329059b6b85a1e0e5ee48fd"/></dir><dir name="Resource"><dir name="Eav"><file name="Attribute.php" hash="e0a9b926e138b9043f05d2da3e973883"/></dir></dir></dir><file name="Config.php" hash="74d82e33dabb7a09d0ba1c1d52e8e3f3"/><dir name="Export"><dir name="Convert"><dir name="Parser"><file name="Product.php" hash="4e50613b82ba84c35eb87f991645c118"/></dir></dir><file name="Flow.php" hash="842fa4b4a49ea86bdeb1cb0441433ccd"/><file name="Flux.php" hash="2438ff0b0b9858760a2a4c35fc0f030d"/><file name="Observer.php" hash="1c110fc1e4f81e26661f4ef42e431731"/><dir name="Rewrite"><dir name="Catalog"><file name="Config.php" hash="c87b13b0141123b80cb1ac33eaf75715"/></dir><dir name="CatalogInventory"><dir name="Stock"><file name="Item.php" hash="5249964f31fda6d5b7ff9587e713ca81"/></dir></dir></dir><dir name="Source"><file name="Attributes.php" hash="7c86df4782b77b69c59204a39766a787"/><file name="Attributesprice.php" hash="6cddf3b9562c8dbc56e670b377e341c1"/><dir name="Category"><file name="Level.php" hash="477d3dccefe5720eedc6b5d7a7110c9a"/></dir><dir name="Tracking"><file name="Delay.php" hash="9f375db7fac8d245dd72dc416d20ae28"/></dir><file name="Visibility.php" hash="c2a1494bc2e554074d19c58523c450b2"/></dir><file name="Updates.php" hash="6a12528f1ba69f0e0240ba471b471578"/><file name="Xml.php" hash="d6574955d2a108a91c1ebf84feb1b02b"/><file name="Xmlflow.deprecated.php" hash="960d81e05b332cdb16449029b07f0eca"/><file name="Xmlflow.php" hash="82815362cf6b2127ef961be79e48c127"/></dir><dir name="Manageorders"><dir name="Convert"><file name="Customer.php" hash="ad8f3406a1d5e9b7c093eaed069b39c6"/></dir><dir name="Export"><file name="Shipments.php" hash="20e617e183366ef5447ea653aa989065"/></dir><file name="Log.php" hash="a6c88fc107c3fa207265c97b8568c757"/><file name="Observer.php" hash="9dd7452c9fb70dc70e9c5343d8b1504b"/><file name="Order.php" hash="f12b03d0ba256c004ba6164b1b009600"/><file name="OrderOLD.php" hash="f25b3ce2d3610eecf201e2d2421aa460"/><dir name="Payment"><dir name="Method"><file name="Purchaseorder.php" hash="5f04df4c6792a54ba1358f1020f4415f"/></dir></dir><file name="Product.php" hash="0041c5ebcd0aa8ca17f5c1a4f07ec03d"/><dir name="Shipping"><dir name="Carrier"><file name="Shoppingflux.php" hash="7a94de78175c833705386ae1c5ddbe3d"/></dir><file name="Method.php" hash="a71d621b210ecdb1e69290f3e0c6f6d2"/></dir><dir name="Source"><file name="Attributes.php" hash="c9207872ddd962d6b0166d35cfe98626"/></dir></dir><dir name="Mysql4"><dir name="Export"><dir name="Flux"><file name="Collection.php" hash="25a6420bb66aeefb6a8ac0a9e6fc538f"/></dir><file name="Flux.php" hash="6140eeee9d40615eaaba736377aba17e"/><dir name="Updates"><file name="Collection.php" hash="21b355b1db82e4b8a5d1950ac2ffbd18"/></dir><file name="Updates.php" hash="02ef11d051020470231e470f3232f862"/></dir><dir name="Manageorders"><dir name="Export"><dir name="Shipments"><file name="Collection.php" hash="fcdf3c607a8d479beb10a53a618aa225"/></dir><file name="Shipments.php" hash="e06dfaf254a5fd3d8649685b56874258"/></dir><dir name="Log"><file name="Collection.php" hash="0efd8c68937edf98cc9f9bb35bd76f79"/></dir><file name="Log.php" hash="b30bbf3ead209d69993546b29f72ecd7"/><dir name="Shipping"><dir name="Method"><file name="Collection.php" hash="7b2c8fb56625953ea8cd79cc7ddcc9df"/></dir><file name="Method.php" hash="a919a6c61ad6ddefd19ffc287eaa7325"/></dir></dir></dir><dir name="Sales"><dir name="Service"><file name="Quote.php" hash="ebd9c8bd918e12d0c77c26a3ce42ccb5"/></dir></dir><dir name="Service"><dir name="Http"><dir name="Client"><dir name="Adapter"><file name="Curl.php" hash="659ab165cdd8492fdc7ee08b515732ac"/><file name="Stream.php" hash="c3a61972f5ffb625dba59ba53365965d"/></dir></dir></dir></dir><file name="Service.php" hash="3e1b05fa9e9a4ad27605bbc7586d2653"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="Apikey.php" hash="90036cf58c627fcc68920af912171a0c"/><file name="Category.php" hash="7d25e1953c33d3176b2b510f5d0be381"/><file name="Refresh.php" hash="d53cbdc6ae73c146af67ef5f20d9e4e8"/></dir></dir></dir><file name=".DS_Store" hash="e7218be203fbe7f5c2243a9dea3bf55e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="GeneralController.php" hash="ca99113377d353dbc4eecfdaea767fa2"/></dir><dir name="Export"><dir name="Adminhtml"><file name="CategoryController.php" hash="d882797e1e0fbff25b312768c6569f04"/><file name="ExportController.php" hash="15e395246d428bc7e390e1078a54a390"/></dir><file name="FluxController.php" hash="1e1b17ab3fef4eace620c7ea5d61c4ef"/></dir><dir name="Manageorders"><dir name="Adminhtml"><file name="CronController.php" hash="9c43b1b18fb883b4140aaa1d3f82cb1c"/><file name="ImportController.php" hash="31203b56860d102c1565fb7653b1a770"/><file name="LogController.php" hash="f744619a2283468d03e8a3f7f8f0c080"/><file name="OrderController.php" hash="acec967d5c7fa44fd3f716fc48f500a6"/></dir><file name="LaunchController.php" hash="38c4741a204c55c1b2225a2279f578bc"/></dir></dir><dir name="doc"><file name="ShoppingFeed_US.pdf" hash="0cd685730056d5f2f9c9f8292dead3ae"/><file name="ShoppingFlux_FR.pdf" hash="5590a49838bd67f70f0cacf9605cea2b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fa2e007d1511d96ca9b37fe92eab2604"/><file name="config.xml" hash="7325da9bd74235c5a28c8e121ba9b49d"/><file name="system.xml" hash="93744c59f8947c27144595088ff9f259"/></dir><dir name="sql"><dir name="profileolabs_shoppingflux_setup"><file name="mysql4-install-0.1.0.php" hash="87c47ba97a55bd71dada152b52736be2"/><file name="mysql4-install-0.8.0.php" hash="48e14fe6bea37e0813d4e8011d97f9a9"/><file name="mysql4-install-0.8.5.php" hash="1aae90e495b0a281bb6916d425561620"/><file name="mysql4-install-0.8.6.php" hash="ae6e23c12465b3b091c3235598c20b0e"/><file name="mysql4-install-0.8.7.php" hash="7672f1e89056b6bd476bf7443937dd73"/><file name="mysql4-install-0.9.3.php" hash="33a66ff8e8d4505e0c68f2f027a00750"/><file name="mysql4-install-0.9.9.php" hash="c0f1233e4196ca2012c8c4f3838fd883"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="0f95646d855413c52928ed4c258aacb1"/><file name="mysql4-upgrade-0.3.13-0.3.14.php" hash="4f6a5399ad06457f0ebf57b33353ebe2"/><file name="mysql4-upgrade-0.3.14-0.3.15.php" hash="6215917eef61544fc6f4193d31956df4"/><file name="mysql4-upgrade-0.3.17-0.3.18.php" hash="112b34baecd80300682bda9ba69c8970"/><file name="mysql4-upgrade-0.4.2-0.4.3.php" hash="2322a9d2b5130bc78699c1953df87a04"/><file name="mysql4-upgrade-0.4.6-0.5.0.php" hash="02be6c02a8c77e642ef3e40ded1ba8be"/><file name="mysql4-upgrade-0.5.1-0.5.2.php" hash="0e5414628efee519deff6aff301651c7"/><file name="mysql4-upgrade-0.5.3-0.5.4.php" hash="9dfb5e5895a9a2973dba57a049d9d379"/><file name="mysql4-upgrade-0.5.5-0.5.6.php" hash="e0ebe03688b7eac8252efa0d5b9b4258"/><file name="mysql4-upgrade-0.6.5-0.6.6.php" hash="c58a1219b2858d50a3d72e77ac6ee43c"/><file name="mysql4-upgrade-0.7.7-0.7.8.php" hash="0804f52786bdd97024dee79eb4b68695"/><file name="mysql4-upgrade-0.7.9-0.8.0.php" hash="7fdd68eda7f3162e979995ed2d7f847d"/><file name="mysql4-upgrade-0.8.4-0.8.5.php" hash="edb5ea0572bdc0e75fd402aeaefc4858"/><file name="mysql4-upgrade-0.8.5-0.8.6.php" hash="a80ecd198b298fecbf6807eba980361e"/><file name="mysql4-upgrade-0.8.6-0.8.7.php" hash="b2f8a980fbace011ff9632198ae6c0a5"/><file name="mysql4-upgrade-0.9.0-0.9.1.php" hash="d8c3ba1dd0bbd12c20fc221e03ff2391"/><file name="mysql4-upgrade-0.9.2-0.9.3.php" hash="5e611f9c8f337cbee764e692721520e4"/><file name=".DS_Store" hash="05157f0d6ed36203dee120b9772e6b15"/></dir></dir><file name=".DS_Store" hash="70d8319e6c95b1083e4aa566a1e7f8f7"/></dir><file name=".DS_Store" hash="d3146c6d782e4b3220b6aaa51d65eccc"/></dir></target><target name="mageetc"><dir name="modules"><file name="Profileolabs_Shoppingflux.xml" hash="73ec83cf32c72884815a3cac9f754a54"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Profileolabs_Shoppingflux.csv" hash="bb846cd4e91b8d5b49c66c29afda5c52"/></dir><dir name="fr_FR"><file name="Profileolabs_Shoppingflux.csv" hash="e7b3eb4b163a56bfe6194264c308e8d9"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="profileolabs_shoppingflux.xml" hash="d4de97001b4d68d165ea6b008541701a"/></dir><dir name="template"><dir name="profileolabs"><dir name="shoppingflux"><dir name="export"><dir name="category"><file name="edit.phtml" hash="8af812638245a0aa59a1c90aa6c20a4f"/></dir><file name="edit.phtml" hash="af3d64c7cb4b179cbf75b2def62d31f1"/><file name="feed.phtml" hash="e380f0fa763f112ff153976b97dc3704"/><file name="process.phtml" hash="1dee42b2f14c0862446e5b475aaccad3"/><file name="product.phtml" hash="3d93144b8eb1e16672d610d9c0c35092"/></dir><dir name="manageorders"><file name="import.phtml" hash="6fd3bca397be66fc17d340cfae558fe9"/><dir name="payment"><dir name="info"><file name="purchaseorder.phtml" hash="782768b0e4836b25f46443dda098db29"/></dir></dir><dir name="sales"><dir name="order"><dir name="invoice"><file name="total.phtml" hash="0d8d4aec814c41f80b9d9c475b5da3ae"/></dir><file name="total.phtml" hash="ad58dad0fd4007764f03c74cc5a6ca57"/><dir name="view"><dir name="tab"><file name="shoppingflux.phtml" hash="7492846bef04ca1f0419cd804e7c4599"/></dir></dir></dir></dir></dir><dir name="register"><file name="notification.phtml" hash="80e22e32016bbbfea1c4b8e66ba18579"/></dir><file name="register.phtml" hash="614dfd40a4e74c0db2667ba30aeb71e3"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="profileolabs_shoppingflux.xml" hash="7fd081f5a153c3912b924fe5258cc468"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="profileolabs_shoppingflux.xml" hash="7fd081f5a153c3912b924fe5258cc468"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="shoppingflux"><file name="ad.png" hash="b76c0f3e4a7084a88ba0527be9fdcc25"/><file name="ad.png.txt" hash="4b54b44ffcb31c68e84f9a553e7fac28"/><file name="logo_us.jpg" hash="cae9e6bcba9814193a59bb07d541edb6"/><file name="s_shoppingfeed.png" hash="8782818108e316533ad090c5b078866f"/><file name="s_shoppingfeed_1.jpg" hash="50b18c2dcbe3bbfa6d0bdb55787da06b"/></dir></dir><dir name="css"><file name="shoppingflux.css" hash="b607a6c8ed09795fdf9fe4876c6ca2d6"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Wcmultiselect.php" hash="304b59d32ecdd9205af1716e528ae4bd"/></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
skin/adminhtml/default/default/images/shoppingflux/ad.png.txt
ADDED
Binary file
|