eSellerProPlugin - Version 1.1.0.0

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
- //$this->_debug('stock level for product:'.$productData->StockLevel);
44
- $inStock = ($productData->StockLevel > 0 ? 1 : 0);
45
- $stockData['is_in_stock'] = $inStock;
46
-
47
- $product->setStockData($stockData);
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</version>
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.7</version>
5
- <stability>beta</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>&lt;p&gt;&lt;i&gt;You will need to be an existing &lt;b&gt;eSellerPro&lt;/b&gt; customer to be able to use this extension. It will only work for those who are currently using eSellerPro. If you are an eSellerPro customer, then feel free to install this extension, but then you will need to contact your Account Manager for activatationt.&lt;/i&gt;&lt;/p&gt;&#xD;
11
- &lt;p&gt;It allows the pushing of products from eSellerPro to Magento on a singular, or batch process, using eSellerPro's powerful Channel Profile. Below are some of the features supported:-&lt;/p&gt;&#xD;
12
  &lt;ul&gt;&#xD;
13
- &lt;li&gt;Both Simple (Single) and Configurable (Variations) products.&lt;/li&gt;&#xD;
14
- &lt;li&gt;Multiple Website.&lt;/li&gt;&#xD;
15
- &lt;li&gt;Multiple Categories.&lt;/li&gt;&#xD;
16
- &lt;li&gt;Customised Custom Field Groups.&lt;/li&gt;&#xD;
17
- &lt;li&gt;Automatic Attribute creation.&lt;/li&gt;&#xD;
18
- &lt;li&gt;Cost Price.&lt;/li&gt;&#xD;
19
- &lt;li&gt;Manufacturer's Suggested Retail Price (RRP)&lt;/li&gt;&#xD;
20
- &lt;li&gt;On Sale Price with Start and End dates.&lt;/li&gt;&#xD;
21
- &lt;li&gt;Weight&lt;/li&gt;&#xD;
22
- &lt;li&gt;Related Products&lt;/li&gt;&#xD;
23
- &lt;li&gt;Multiple Images&lt;/li&gt;&#xD;
24
  &lt;/ul&gt;&#xD;
25
- &lt;p&gt;Orders are currently pulled from Magento into eSellerPro periodically. When an order is completed within eSellerPro, the Magento order status and any courier tracking numbers are updated.&lt;/p&gt;</description>
26
- <notes>This is currently our beta, being tested by some customers. If you wish to join the beta programme, please contact your account manager at eSellelrPro.</notes>
 
27
  <authors><author><name>eSellerPro</name><user>eSellerPro</user><email>magento@esellerpro.com</email></author></authors>
28
- <date>2014-07-02</date>
29
- <time>12:48:08</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="58c7ca193933025e03cda2ebbcf75b27"/><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="943f4aa166fc557f161620d143b0a412"/></dir><dir name="PartialProduct"><dir name="Api"><file name="V2.php" hash="5e9375e74f6ba74bb79f20cce7574ba7"/></dir><file name="Api.php" hash="4175a73c303f07ffed2df5fb1295844e"/></dir><file name="testatts.php" hash="c519db8a12356abfc81a84148809291a"/></dir><dir name="etc"><file name="api.xml" hash="ee96f5255bb710f934c2dcef8e35cd89"/><file name="config.xml" hash="28ba1d03ffbc9c8a641674133a7207f6"/><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>
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>&lt;p&gt;The official &lt;a href="http://www.esellerpro.com"&gt;eSellerPro&lt;/a&gt; connector provides existing &lt;b&gt;eSellerPro&lt;/b&gt; customers the ability to easily and effectively manage stock on your Magento website.&lt;/p&gt;&#xD;
11
+ &lt;p&gt;Transform your business by using the &lt;b&gt;eSellerPro Connector&lt;/b&gt; to realise many benefits, including:&lt;/p&gt;&#xD;
12
  &lt;ul&gt;&#xD;
13
+ &lt;li&gt;Simple and configurable product creation&lt;/li&gt;&#xD;
14
+ &lt;li&gt;Manage your stock and product information in one central application&lt;/li&gt;&#xD;
15
+ &lt;li&gt;Automated stock sync between channels&lt;/li&gt;&#xD;
16
+ &lt;li&gt;Efficent order management using eSellerPro&lt;/li&gt;&#xD;
 
 
 
 
 
 
 
17
  &lt;/ul&gt;&#xD;
18
+ &lt;p&gt;The plugin is free to download, however, there is a small fee required to link this to your &lt;b&gt;eSellerPro&lt;/b&gt; account. Please contact your &lt;b&gt;eSellerPro&lt;/b&gt; account manager for more details.&lt;/p&gt;&#xD;
19
+ &lt;p&gt;For more information about how &lt;a href="http://www.esellerpro.com"&gt;eSellerPro&lt;/a&gt; and Magento can help you and your business achieve its full potential, please contact &lt;a href="mailto:sales_uk@esellerpro.com"&gt;sales_uk@esellerpro.com&lt;/a&gt; or visit &lt;a href="http://www.esellerpro.com"&gt;www.esellerpro.com&lt;/a&gt;&lt;/p&gt;</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>