GoDataFeed - Version 1.0.3

Version Notes

1.0.3

Download this release

Release Info

Developer GoDataFeedSupport
Extension GoDataFeed
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.3

app/code/local/GoDataFeed/Services/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class GoDataFeed_Services_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
app/code/local/GoDataFeed/Services/Model/Catalog/Product/Api.php CHANGED
@@ -62,8 +62,14 @@ class GoDataFeed_Services_Model_Catalog_Product_Api extends Mage_Catalog_Model_P
62
  $pageNumber,
63
  $productsPerPage)
64
  {
65
- $baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
66
- $imageBaseURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."catalog/product";
 
 
 
 
 
 
67
 
68
  $resultItems = array();
69
 
62
  $pageNumber,
63
  $productsPerPage)
64
  {
65
+
66
+ if(empty($store)) {
67
+ $baseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
68
+ $imageBaseURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."catalog/product";
69
+ } else {
70
+ $baseUrl = Mage::getModel('core/store')->load($store)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
71
+ $imageBaseURL = Mage::getModel('core/store')->load($store)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA)."catalog/product";
72
+ }
73
 
74
  $resultItems = array();
75
 
app/code/local/GoDataFeed/Services/Model/Version/Api.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class GoDataFeed_Services_Model_Version_Api
4
+ {
5
+ public function version()
6
+ {
7
+ return "1.0.3";
8
+ }
9
+ }
app/code/local/GoDataFeed/Services/etc/api.xml CHANGED
@@ -1,26 +1,40 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <api>
4
- <resources>
5
- <catalog_product translate="title" module="catalog">
6
- <title>GoDataFeed Product API</title>
7
- <model>catalog/product_api</model>
 
 
 
 
 
 
 
 
 
 
 
 
8
  <acl>catalog/product</acl>
9
  <methods>
10
- <count translate="title" module="catalog">
11
  <title>Retrieve product count</title>
12
  <acl>catalog/product/info</acl>
13
- </count>
14
- <extendedList translate="title" module="catalog">
 
15
  <title>Retrieve products list by filters with extended attributes</title>
16
  <acl>catalog/product/info</acl>
17
- </extendedList>
 
18
  </methods>
19
- </catalog_product>
20
- </resources>
21
- <!--<resources_alias>-->
22
- <!--<product>catalog_product</product>-->
23
- <!--</resources_alias>-->
24
- <!--TODO FAULTS-->
25
- </api>
26
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <api>
4
+
5
+ <resources>
6
+
7
+ <godatafeed_services translate="title" module="services">
8
+ <title>GoDataFeed Product API</title>
9
+ <model>services/version_api</model>
10
+ <methods>
11
+ <version translate="title" module="services">
12
+ <title>Retrieve extension version</title>
13
+ </version>
14
+ </methods>
15
+ </godatafeed_services>
16
+
17
+ <godatafeed_services_catalog_product translate="title" module="services">
18
+ <title>GoDataFeed Product API</title>
19
+ <model>services/catalog_product_api</model>
20
  <acl>catalog/product</acl>
21
  <methods>
22
+ <product_count translate="title" module="services">
23
  <title>Retrieve product count</title>
24
  <acl>catalog/product/info</acl>
25
+ <method>count</method>
26
+ </product_count>
27
+ <product_extendedList translate="title" module="services">
28
  <title>Retrieve products list by filters with extended attributes</title>
29
  <acl>catalog/product/info</acl>
30
+ <method>extendedList</method>
31
+ </product_extendedList>
32
  </methods>
33
+ </godatafeed_services_catalog_product>
34
+ </resources>
35
+
36
+ <!--<resources_alias>-->
37
+ <!--<product>catalog_product</product>-->
38
+ <!--</resources_alias>-->
39
+ </api>
40
  </config>
app/code/local/GoDataFeed/Services/etc/config.xml CHANGED
@@ -1,20 +1,20 @@
1
  <?xml version="1.0"?>
2
  <config>
3
- <modules>
4
- <GoDataFeed_Services>
5
- <version>0.0.1</version>
6
- <!--<depends>-->
7
- <!--<Mage_Catalog />-->
8
- <!--</depends>-->
9
- </GoDataFeed_Services>
10
- </modules>
11
- <global>
12
- <models>
13
- <catalog>
14
- <rewrite>
15
- <product_api>GoDataFeed_Services_Model_Catalog_Product_Api</product_api>
16
- </rewrite>
17
- </catalog>
18
- </models>
19
- </global>
20
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
+ <modules>
4
+ <GoDataFeed_Services>
5
+ <version>1.0.3</version>
6
+ </GoDataFeed_Services>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <services>
11
+ <class>GoDataFeed_Services_Model</class>
12
+ </services>
13
+ </models>
14
+ <helpers>
15
+ <services>
16
+ <class>GoDataFeed_Services_Helper</class>
17
+ </services>
18
+ </helpers>
19
+ </global>
20
  </config>
app/etc/modules/GoDataFeed_Services.xml CHANGED
@@ -4,9 +4,9 @@
4
  <GoDataFeed_Services>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
- <!--<depends>-->
8
- <!--<Mage_Catalog />-->
9
- <!--</depends>-->
10
  </GoDataFeed_Services>
11
  </modules>
12
  </config>
4
  <GoDataFeed_Services>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
+ <depends>
8
+ <Mage_Api />
9
+ </depends>
10
  </GoDataFeed_Services>
11
  </modules>
12
  </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GoDataFeed</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.godatafeed.com/aboutus.aspx">&#xA9;GoDataFeed All rights reserved</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A simple and affordable way to optimize your product listings, automate your datafeed submissions and drive more qualified, targeted traffic to your Website.</summary>
10
  <description>This extension optimizes product retrieval while providing enhanced attributes information. Install this extension to fully benefit GoDataFeed services.</description>
11
- <notes>No Notes</notes>
12
  <authors><author><name>GoDataFeedSupport</name><user>GoDataFeedSupport</user><email>support@godatafeed.com</email></author></authors>
13
- <date>2012-02-06</date>
14
- <time>19:47:22</time>
15
- <contents><target name="magelocal"><dir name="GoDataFeed"><dir name="Services"><dir name="Model"><dir name="Catalog"><dir name="Product"><file name="Api.php" hash="75b40084552c9b8cdf65708fe6ce9296"/></dir></dir></dir><dir name="etc"><file name="api.xml" hash="565bc8cb3899d89f37c0cc27008958f4"/><file name="config.xml" hash="8ecde4bbb6d08c822c1173f279d21bca"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GoDataFeed_Services.xml" hash="43db0e2dd6a412462d52e77143ec5cdc"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>GoDataFeed</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.godatafeed.com/aboutus.aspx">&#xA9;GoDataFeed All rights reserved</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>A simple and affordable way to optimize your product listings, automate your datafeed submissions and drive more qualified, targeted traffic to your Website.</summary>
10
  <description>This extension optimizes product retrieval while providing enhanced attributes information. Install this extension to fully benefit GoDataFeed services.</description>
11
+ <notes>1.0.3</notes>
12
  <authors><author><name>GoDataFeedSupport</name><user>GoDataFeedSupport</user><email>support@godatafeed.com</email></author></authors>
13
+ <date>2012-03-31</date>
14
+ <time>21:13:52</time>
15
+ <contents><target name="magelocal"><dir name="GoDataFeed"><dir name="Services"><dir name="Helper"><file name="Data.php" hash="fbbbbac77dc06cc167e5ab2d3bd69263"/></dir><dir name="Model"><dir name="Catalog"><dir name="Product"><file name="Api.php" hash="3869efbac04f4fe4cb775fa2c5c9cabc"/></dir></dir><dir name="Version"><file name="Api.php" hash="7d98c540f83e30e7672632c6a611c150"/></dir></dir><dir name="etc"><file name="api.xml" hash="22008e5eb33267d94da0707d9e63b3fe"/><file name="config.xml" hash="d2613958aded5625eb1759fa91dbaf14"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GoDataFeed_Services.xml" hash="e2f0d059f7dcd4ed86519c397bb9c310"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>