Version Notes
This is version is now stable. If you wish to integrate Magento with eSellerPro, then please contact your account manager at eSellelrPro.
Download this release
Release Info
Developer | eSellerPro |
Extension | eSellerProPlugin |
Version | 1.1.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.7 to 1.1.0.0
app/code/local/Sandbourne/BulkApi/Helper/Category.php
CHANGED
@@ -27,6 +27,8 @@ class Sandbourne_BulkApi_Helper_Category extends Mage_Core_Helper_Abstract
|
|
27 |
$path = '1';
|
28 |
$currentParentID = 1;
|
29 |
|
|
|
|
|
30 |
foreach($categoryParts as $categoryPart)
|
31 |
{
|
32 |
$foundCategory = $categoryCache->findCategory($currentParentID, $categoryPart);
|
@@ -34,6 +36,17 @@ class Sandbourne_BulkApi_Helper_Category extends Mage_Core_Helper_Abstract
|
|
34 |
if (isset($foundCategory))
|
35 |
{
|
36 |
//$magentoCategories = $foundCategory->getChildrenCategories();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
else
|
39 |
{
|
@@ -42,6 +55,13 @@ class Sandbourne_BulkApi_Helper_Category extends Mage_Core_Helper_Abstract
|
|
42 |
$foundCategory->setName($categoryPart);
|
43 |
$foundCategory->setPath($path);
|
44 |
$foundCategory->setIsActive(1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
$foundCategory->save();
|
46 |
$categoryCache->addCategory($foundCategory);
|
47 |
//$magentoCategories = $foundCategory->getChildrenCategories();
|
27 |
$path = '1';
|
28 |
$currentParentID = 1;
|
29 |
|
30 |
+
$anchorCategory = (trim((String)$productData->GlobalAnchoring));
|
31 |
+
|
32 |
foreach($categoryParts as $categoryPart)
|
33 |
{
|
34 |
$foundCategory = $categoryCache->findCategory($currentParentID, $categoryPart);
|
36 |
if (isset($foundCategory))
|
37 |
{
|
38 |
//$magentoCategories = $foundCategory->getChildrenCategories();
|
39 |
+
|
40 |
+
// Need to load all the EAV's, otherwise some fields like "Include in Navigation Menu", get reset to their defaults.
|
41 |
+
$foundCategory->load();
|
42 |
+
|
43 |
+
// Check to see if we are using Category Anchoring
|
44 |
+
$foundCategory->setIsAnchor(0);
|
45 |
+
if ($anchorCategory == 'Y')
|
46 |
+
{
|
47 |
+
$foundCategory->setIsAnchor(1);
|
48 |
+
}
|
49 |
+
$foundCategory->save();
|
50 |
}
|
51 |
else
|
52 |
{
|
55 |
$foundCategory->setName($categoryPart);
|
56 |
$foundCategory->setPath($path);
|
57 |
$foundCategory->setIsActive(1);
|
58 |
+
|
59 |
+
// Check to see if we are using Category Anchoring
|
60 |
+
$foundCategory->setIsAnchor(0);
|
61 |
+
if ($anchorCategory == 'Y')
|
62 |
+
{
|
63 |
+
$foundCategory->setIsAnchor(1);
|
64 |
+
}
|
65 |
$foundCategory->save();
|
66 |
$categoryCache->addCategory($foundCategory);
|
67 |
//$magentoCategories = $foundCategory->getChildrenCategories();
|
app/code/local/Sandbourne/BulkApi/Model/FullProduct/Api.php
CHANGED
@@ -9,8 +9,9 @@ class Sandbourne_BulkApi_Model_FullProduct_Api extends Mage_Api_Model_Resource_A
|
|
9 |
|
10 |
public function version()
|
11 |
{
|
12 |
-
//return "1.0.0.6"; // 20140604
|
13 |
-
return "1.0.0.7"; // 20140702
|
|
|
14 |
}
|
15 |
|
16 |
public function update($productXML)
|
9 |
|
10 |
public function version()
|
11 |
{
|
12 |
+
//return "1.0.0.6"; // 20140604 (Beta)
|
13 |
+
//return "1.0.0.7"; // 20140702 (Beta)
|
14 |
+
return "1.1.0.0"; // 20141017 (First Stable release)
|
15 |
}
|
16 |
|
17 |
public function update($productXML)
|
app/code/local/Sandbourne/BulkApi/Model/PartialProduct/Api.php
CHANGED
@@ -39,13 +39,18 @@ class Sandbourne_BulkApi_Model_PartialProduct_Api extends Mage_Api_Model_Resourc
|
|
39 |
$product->setStatus($active);
|
40 |
$product->setPrice($productData->Price);
|
41 |
|
|
|
42 |
$stockData['qty'] = $productData->StockLevel;
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
$
|
48 |
|
|
|
|
|
|
|
|
|
49 |
$product->save();
|
50 |
}
|
51 |
}
|
39 |
$product->setStatus($active);
|
40 |
$product->setPrice($productData->Price);
|
41 |
|
42 |
+
$stockData = array();
|
43 |
$stockData['qty'] = $productData->StockLevel;
|
44 |
+
// Set the 'is_in_stock' to true incase this is a master,
|
45 |
+
// if it is a subsku and the StockLevel is 0, this will automatically get set to false anyhow.
|
46 |
+
//$inStock = ($productData->StockLevel > 0 ? 1 : 0);
|
47 |
+
//$stockData['is_in_stock'] = $inStock;
|
48 |
+
$stockData['is_in_stock'] = 1;
|
49 |
|
50 |
+
//$this->_debug($productData);
|
51 |
+
//$this->_debug($stockData);
|
52 |
+
|
53 |
+
$product->setStockData($stockData);
|
54 |
$product->save();
|
55 |
}
|
56 |
}
|
app/code/local/Sandbourne/BulkApi/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Sandbourne_BulkApi>
|
5 |
-
<version>1.0.0
|
6 |
</Sandbourne_BulkApi>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Sandbourne_BulkApi>
|
5 |
+
<version>1.1.0.0</version>
|
6 |
</Sandbourne_BulkApi>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,33 +1,27 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>eSellerProPlugin</name>
|
4 |
-
<version>1.0.0
|
5 |
-
<stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Extension to allow the creation, amendment and stock control of products from eSellerPro into Magento.</summary>
|
10 |
-
<description><p>
|
11 |
-
<p>
|
12 |
<ul>
|
13 |
-
<li>
|
14 |
-
<li>
|
15 |
-
<li>
|
16 |
-
<li>
|
17 |
-
<li>Automatic Attribute creation.</li>
|
18 |
-
<li>Cost Price.</li>
|
19 |
-
<li>Manufacturer's Suggested Retail Price (RRP)</li>
|
20 |
-
<li>On Sale Price with Start and End dates.</li>
|
21 |
-
<li>Weight</li>
|
22 |
-
<li>Related Products</li>
|
23 |
-
<li>Multiple Images</li>
|
24 |
</ul>
|
25 |
-
<p>
|
26 |
-
|
|
|
27 |
<authors><author><name>eSellerPro</name><user>eSellerPro</user><email>magento@esellerpro.com</email></author></authors>
|
28 |
-
<date>2014-
|
29 |
-
<time>
|
30 |
-
<contents><target name="magelocal"><dir name="Sandbourne"><dir name="BulkApi"><dir name="Helper"><file name="Array.php" hash="0a04d7af6b6d84fed6d1a0097a558abf"/><file name="Attribute.php" hash="62ea78350400981a21ebd024c14a3327"/><file name="AttributeCache.php" hash="258e7fd95a78ff62ff121f4a4776a3a8"/><file name="AttributeOptionCache.php" hash="be30b904d71df0f46f62ed77d6e2fc93"/><file name="Category.php" hash="
|
31 |
<compatible/>
|
32 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>Community</channel><min/><max/></package></required></dependencies>
|
33 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>eSellerProPlugin</name>
|
4 |
+
<version>1.1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Extension to allow the creation, amendment and stock control of products from eSellerPro into Magento.</summary>
|
10 |
+
<description><p>The official <a href="http://www.esellerpro.com">eSellerPro</a> connector provides existing <b>eSellerPro</b> customers the ability to easily and effectively manage stock on your Magento website.</p>
|
11 |
+
<p>Transform your business by using the <b>eSellerPro Connector</b> to realise many benefits, including:</p>
|
12 |
<ul>
|
13 |
+
<li>Simple and configurable product creation</li>
|
14 |
+
<li>Manage your stock and product information in one central application</li>
|
15 |
+
<li>Automated stock sync between channels</li>
|
16 |
+
<li>Efficent order management using eSellerPro</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
</ul>
|
18 |
+
<p>The plugin is free to download, however, there is a small fee required to link this to your <b>eSellerPro</b> account. Please contact your <b>eSellerPro</b> account manager for more details.</p>
|
19 |
+
<p>For more information about how <a href="http://www.esellerpro.com">eSellerPro</a> and Magento can help you and your business achieve its full potential, please contact <a href="mailto:sales_uk@esellerpro.com">sales_uk@esellerpro.com</a> or visit <a href="http://www.esellerpro.com">www.esellerpro.com</a></p></description>
|
20 |
+
<notes>This is version is now stable. If you wish to integrate Magento with eSellerPro, then please contact your account manager at eSellelrPro.</notes>
|
21 |
<authors><author><name>eSellerPro</name><user>eSellerPro</user><email>magento@esellerpro.com</email></author></authors>
|
22 |
+
<date>2014-10-22</date>
|
23 |
+
<time>10:05:22</time>
|
24 |
+
<contents><target name="magelocal"><dir name="Sandbourne"><dir name="BulkApi"><dir name="Helper"><file name="Array.php" hash="0a04d7af6b6d84fed6d1a0097a558abf"/><file name="Attribute.php" hash="62ea78350400981a21ebd024c14a3327"/><file name="AttributeCache.php" hash="258e7fd95a78ff62ff121f4a4776a3a8"/><file name="AttributeOptionCache.php" hash="be30b904d71df0f46f62ed77d6e2fc93"/><file name="Category.php" hash="7d4a391c9c748255ce639f836f3a00b4"/><file name="CategoryCache.php" hash="9201e35bd5e461e5483ea9b66b1306d0"/><file name="ConfigurableProduct.php" hash="6127acd0c0d96a864ed6294ef5445ebd"/><file name="Data.php" hash="7aa739540136122fdba1fa12c72a9cad"/><file name="Image.php" hash="1753b2b15ed4e7c4930c1603c44711e2"/><file name="RelatedProducts.php" hash="e927612b277080a5c835d0ceebd8598c"/><file name="TestData.php" hash="aa72f88ab2ee8cf218e43f59a846da56"/><file name="Utils.php" hash="29beb209f25ab4a462051be7fa6c681b"/><file name="Website.php" hash="0e67b9ba7cd1bbfe8c840991d0aa3079"/></dir><dir name="Model"><dir name="FullImage"><dir name="Api"><file name="V2.php" hash="d998bacd61159399567d1c46e63507a2"/></dir><file name="Api.php" hash="fcff5388032e5cde7485314c6a1d3bf2"/></dir><dir name="FullProduct"><dir name="Api"><file name="V2.php" hash="3cfb906b7c4c72906e3baccb4fdeee40"/></dir><file name="Api.php" hash="3c9f0e63d1a9ae226c23a7e643541b72"/></dir><dir name="PartialProduct"><dir name="Api"><file name="V2.php" hash="5e9375e74f6ba74bb79f20cce7574ba7"/></dir><file name="Api.php" hash="e0a2cff6023e16755bca2fc56630a316"/></dir><file name="testatts.php" hash="c519db8a12356abfc81a84148809291a"/></dir><dir name="etc"><file name="api.xml" hash="ee96f5255bb710f934c2dcef8e35cd89"/><file name="config.xml" hash="5ec4835b59d63ec52206204e81903bb7"/><file name="wsdl.xml" hash="9e291f850362a99b265645a978e45b09"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sandbourne_BulkApi.xml" hash="4418f8514205d4d52a309e83d5050c0d"/></dir></target></contents>
|
25 |
<compatible/>
|
26 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>Community</channel><min/><max/></package></required></dependencies>
|
27 |
</package>
|