Auguria_Dolibarrapi - Version 1.1.0

Version Notes

If you have ideas for improvements or find bugs, please send them to Anthony Poiret at www.auguria.net, with Auguria LastReviews as part of the subject line.

Download this release

Release Info

Developer Magento Core Team
Extension Auguria_Dolibarrapi
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.0 to 1.1.0

app/code/community/Auguria/Dolibarrapi/Model/Catalog/Category/Api.php CHANGED
@@ -1,10 +1,11 @@
1
  <?php
2
  /**
3
- * @category Auguria
4
- * @package Auguria_Dolibarrapi
5
- * @author Anthony Poiret <anthony.poiret@auguria.net>
6
- * @copyright Auguria - www.auguria.net
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 
8
  */
9
 
10
  class Auguria_Dolibarrapi_Model_Catalog_Category_Api extends Mage_Catalog_Model_Category_Api
1
  <?php
2
  /**
3
+ * @category Auguria
4
+ * @package Auguria_Dolibarrapi
5
+ * @version 1.1.0
6
+ * @author Anthony Poiret <anthony.poiret@auguria.net>
7
+ * @copyright Auguria - www.auguria.net
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
9
  */
10
 
11
  class Auguria_Dolibarrapi_Model_Catalog_Category_Api extends Mage_Catalog_Model_Category_Api
app/code/community/Auguria/Dolibarrapi/Model/Catalog/Product/Api.php CHANGED
@@ -1,26 +1,10 @@
1
  <?php
2
  /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is bundled with this package in the file LICENSE.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- * If you did not receive a copy of the license and are unable to
12
- * obtain it through the world-wide-web, please send an email
13
- * to license@magentocommerce.com so we can send you a copy immediately.
14
- *
15
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category Mage
22
- * @package Mage_Catalog
23
- * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
24
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25
  */
26
 
@@ -42,8 +26,8 @@ class Auguria_Dolibarrapi_Model_Catalog_Product_Api extends Mage_Catalog_Model_P
42
  * @return array
43
  */
44
  public function info($productId, $store = null, $attributes = null, $identifierType = null)
45
- {
46
- $product = $this->_getProduct($productId, $store, $identifierType);
47
 
48
  if (!$product->getId()) {
49
  $this->_fault('not_exists');
@@ -56,7 +40,7 @@ class Auguria_Dolibarrapi_Model_Catalog_Product_Api extends Mage_Catalog_Model_P
56
  'type' => $product->getTypeId(),
57
  'categories'=> $product->getCategoryIds(),
58
  'websites' => $product->getWebsiteIds()
59
- );
60
 
61
  foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute) {
62
  if ($this->_isAllowedAttribute($attribute, $attributes)) {
1
  <?php
2
  /**
3
+ * @category Auguria
4
+ * @package Auguria_Dolibarrapi
5
+ * @version 1.1.0
6
+ * @author Anthony Poiret <anthony.poiret@auguria.net>
7
+ * @copyright Auguria - www.auguria.net
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
9
  */
10
 
26
  * @return array
27
  */
28
  public function info($productId, $store = null, $attributes = null, $identifierType = null)
29
+ {
30
+ $product = $this->_getProduct($productId, $store, 'sku'); // Dolibarr never call from remote id
31
 
32
  if (!$product->getId()) {
33
  $this->_fault('not_exists');
40
  'type' => $product->getTypeId(),
41
  'categories'=> $product->getCategoryIds(),
42
  'websites' => $product->getWebsiteIds()
43
+ );
44
 
45
  foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute) {
46
  if ($this->_isAllowedAttribute($attribute, $attributes)) {
app/code/community/Auguria/Dolibarrapi/etc/api.xml CHANGED
@@ -1,11 +1,12 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * @category Auguria
5
- * @package Auguria_Dolibarrapi
6
- * @author Anthony Poiret <anthony.poiret@auguria.net>
7
- * @copyright Auguria - www.auguria.net
8
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 
9
  */
10
  -->
11
  <config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * @category Auguria
5
+ * @package Auguria_Dolibarrapi
6
+ * @version 1.1.0
7
+ * @author Anthony Poiret <anthony.poiret@auguria.net>
8
+ * @copyright Auguria - www.auguria.net
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
  */
11
  -->
12
  <config>
app/code/community/Auguria/Dolibarrapi/etc/config.xml CHANGED
@@ -1,11 +1,12 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * @category Auguria
5
- * @package Auguria_Dolibarrapi
6
- * @author Anthony Poiret <anthony.poiret@auguria.net>
7
- * @copyright Auguria - www.auguria.net
8
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 
9
  */
10
  -->
11
  <config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * @category Auguria
5
+ * @package Auguria_Dolibarrapi
6
+ * @version 1.1.0
7
+ * @author Anthony Poiret <anthony.poiret@auguria.net>
8
+ * @copyright Auguria - www.auguria.net
9
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
10
  */
11
  -->
12
  <config>
package.xml CHANGED
@@ -1,24 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Auguria_Dolibarrapi</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Override categories' and products' API to able data import from Magento to Dolibarr</summary>
10
- <description>This extension provide features required to:&#xD;
11
- - import the products' category tree from a site to Dolibarr.&#xD;
12
- - get the tax rate of a product (due to Dolibarr constraints) from his tax group and default ones for customers and countries.&#xD;
13
  &#xD;
14
- If the features offered by this Dolibarr's module awake your interest, feel free to have a look on Dolistore at http://www.dolistore.com/ where you will find much more informations.</description>
15
- <notes>You need Dolibarr 3.0 and the Auguria's eCommerce module to make use of this extension.&#xD;
16
- &#xD;
17
- If you have ideas for improvements or find bugs, please send them to Anthony Poiret at www.auguria.net, with Auguria LastReviews as part of the subject line.</notes>
18
- <authors><author><name>Auguria</name><user>Auguria</user><email>magento@auguria.net</email></author></authors>
19
- <date>2011-09-13</date>
20
- <time>08:17:40</time>
21
- <contents><target name="mageetc"><dir name="modules"><file name="Auguria_Dolibarrapi.xml" hash="d2154189d81bfa588e3d433e67abc2cc"/></dir></target><target name="magecommunity"><dir name="Auguria"><dir name="Dolibarrapi"><dir name="Model"><dir name="Catalog"><dir name="Category"><file name="Api.php" hash="5ba030b52ca8db93327ca2485183bb78"/></dir><dir name="Product"><file name="Api.php" hash="a398752ae3185fabd86e468d6fb73740"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="5a961fb242d29cdd14fb7ea7ff1a9177"/><file name="config.xml" hash="486ae8f80d35ef946e78c784f0c69a0a"/></dir></dir></dir></target></contents>
22
  <compatible/>
23
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Auguria_Dolibarrapi</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This API is required to use Auguria's E-Commerce Synchronization module for Dolibarr. It have no over purpose or utility; for more information about Dolibarr and the synchronisation module, see http://www.dolistore.com/ for more informations.</summary>
10
+ <description>This module overrides the basics API to able import of your magento's products and their categories in your Dolibarr ERP.&#xD;
 
 
11
  &#xD;
12
+ The synchronization module also manage a lot of other data, requiring the import of products in some case; this extension is required to able these advanced import functionnalities.</description>
13
+ <notes>If you have ideas for improvements or find bugs, please send them to Anthony Poiret at www.auguria.net, with Auguria LastReviews as part of the subject line.</notes>
14
+ <authors><author><name>Auguria</name><user>auto-converted</user><email>magento@auguria.net</email></author></authors>
15
+ <date>2012-05-30</date>
16
+ <time>09:48:46</time>
17
+ <contents><target name="magecommunity"><dir name="Auguria"><dir name="Dolibarrapi"><dir name="Model"><dir name="Catalog"><dir name="Category"><file name="Api.php" hash="a651064a8c4c224578ff658b6b9062b9"/></dir><dir name="Product"><file name="Api.php" hash="9f287057613b0515473b5e6658e32edd"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="3a36d6978791bac97015d825d65c2f76"/><file name="config.xml" hash="443df06e3131d66f13ea72d8d012be8e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Auguria_Dolibarrapi.xml" hash="d2154189d81bfa588e3d433e67abc2cc"/></dir></target></contents>
 
 
18
  <compatible/>
19
+ <dependencies/>
20
  </package>