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 +5 -0
- app/code/local/GoDataFeed/Services/Model/Catalog/Product/Api.php +8 -2
- app/code/local/GoDataFeed/Services/Model/Version/Api.php +9 -0
- app/code/local/GoDataFeed/Services/etc/api.xml +30 -16
- app/code/local/GoDataFeed/Services/etc/config.xml +17 -17
- app/etc/modules/GoDataFeed_Services.xml +3 -3
- package.xml +5 -5
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 |
-
|
66 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
<acl>catalog/product</acl>
|
9 |
<methods>
|
10 |
-
<
|
11 |
<title>Retrieve product count</title>
|
12 |
<acl>catalog/product/info</acl>
|
13 |
-
|
14 |
-
|
|
|
15 |
<title>Retrieve products list by filters with extended attributes</title>
|
16 |
<acl>catalog/product/info</acl>
|
17 |
-
|
|
|
18 |
</methods>
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
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 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
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 |
-
|
8 |
-
|
9 |
-
|
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.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.godatafeed.com/aboutus.aspx">©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>
|
12 |
<authors><author><name>GoDataFeedSupport</name><user>GoDataFeedSupport</user><email>support@godatafeed.com</email></author></authors>
|
13 |
-
<date>2012-
|
14 |
-
<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="
|
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">©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>
|