Version Notes
Expanded store.list API functionality. Simplifies multi-site/multi-store product sync since we get website/store list automatically now.
Download this release
Release Info
Developer | FarApp |
Extension | FarApp_Connector |
Version | 1.5.9 |
Comparing to | |
See all releases |
Code changes from version 1.5.8 to 1.5.9
- app/code/community/FarApp/Connector/Model/Store/Api.php +55 -0
- app/code/community/FarApp/Connector/etc/.config.xml.swp +0 -0
- app/code/community/FarApp/Connector/etc/api.xml +13 -0
- app/code/community/FarApp/Connector/etc/config.xml +6 -1
- app/code/community/FarApp/Connector/etc/wsdl.xml +7 -0
- package.xml +5 -5
app/code/community/FarApp/Connector/Model/Store/Api.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class FarApp_Connector_Model_Store_Api extends Mage_Core_Model_Store_Api
|
4 |
+
{
|
5 |
+
public function items()
|
6 |
+
{
|
7 |
+
// Retrieve stores
|
8 |
+
$stores = Mage::app()->getStores();
|
9 |
+
|
10 |
+
// Make result array
|
11 |
+
$result = array();
|
12 |
+
foreach ($stores as $store) {
|
13 |
+
$result[] = array(
|
14 |
+
'store_id' => $store->getId(),
|
15 |
+
'code' => $store->getCode(),
|
16 |
+
'website_id' => $store->getWebsiteId(),
|
17 |
+
'website_code' => $store->getWebsite()->getCode(),
|
18 |
+
'group_id' => $store->getGroupId(),
|
19 |
+
'name' => $store->getName(),
|
20 |
+
'sort_order' => $store->getSortOrder(),
|
21 |
+
'is_active' => $store->getIsActive()
|
22 |
+
);
|
23 |
+
}
|
24 |
+
|
25 |
+
return $result;
|
26 |
+
}
|
27 |
+
|
28 |
+
public function info($storeId)
|
29 |
+
{
|
30 |
+
// Retrieve store info
|
31 |
+
try {
|
32 |
+
$store = Mage::app()->getStore($storeId);
|
33 |
+
} catch (Mage_Core_Model_Store_Exception $e) {
|
34 |
+
$this->_fault('store_not_exists');
|
35 |
+
}
|
36 |
+
|
37 |
+
if (!$store->getId()) {
|
38 |
+
$this->_fault('store_not_exists');
|
39 |
+
}
|
40 |
+
|
41 |
+
// Basic store data
|
42 |
+
$result = array();
|
43 |
+
$result['store_id'] = $store->getId();
|
44 |
+
$result['code'] = $store->getCode();
|
45 |
+
$result['website_id'] = $store->getWebsiteId();
|
46 |
+
$result['website_code'] = $store->getWebsite()->getCode();
|
47 |
+
$result['group_id'] = $store->getGroupId();
|
48 |
+
$result['name'] = $store->getName();
|
49 |
+
$result['sort_order'] = $store->getSortOrder();
|
50 |
+
$result['is_active'] = $store->getIsActive();
|
51 |
+
|
52 |
+
return $result;
|
53 |
+
}
|
54 |
+
|
55 |
+
}
|
app/code/community/FarApp/Connector/etc/.config.xml.swp
CHANGED
Binary file
|
app/code/community/FarApp/Connector/etc/api.xml
CHANGED
@@ -24,6 +24,19 @@
|
|
24 |
</info>
|
25 |
</methods>
|
26 |
</farapp_connector_product>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
</resources>
|
28 |
</api>
|
29 |
</config>
|
24 |
</info>
|
25 |
</methods>
|
26 |
</farapp_connector_product>
|
27 |
+
<farapp_connector_store translate="title" module="farapp_connector">
|
28 |
+
<title>FarApp Connector Store API</title>
|
29 |
+
<model>farapp_connector/store_api</model>
|
30 |
+
<methods>
|
31 |
+
<list translate="title" module="farapp_connector">
|
32 |
+
<title>Adds website code to store list</title>
|
33 |
+
<method>items</method>
|
34 |
+
</list>
|
35 |
+
<info translate="title" module="farapp_connector">
|
36 |
+
<title>Adds website code to store info</title>
|
37 |
+
</info>
|
38 |
+
</methods>
|
39 |
+
</farapp_connector_store>
|
40 |
</resources>
|
41 |
</api>
|
42 |
</config>
|
app/code/community/FarApp/Connector/etc/config.xml
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<config>
|
10 |
<modules>
|
11 |
<FarApp_Connector>
|
12 |
-
<version>1.5.
|
13 |
</FarApp_Connector>
|
14 |
</modules>
|
15 |
<global>
|
@@ -28,6 +28,11 @@
|
|
28 |
<product_api>FarApp_Connector_Model_Product_Api</product_api>
|
29 |
</rewrite>
|
30 |
</catalog>
|
|
|
|
|
|
|
|
|
|
|
31 |
<importexport>
|
32 |
<rewrite>
|
33 |
<import_entity_product>FarApp_Connector_Model_Import_Entity_Product</import_entity_product>
|
9 |
<config>
|
10 |
<modules>
|
11 |
<FarApp_Connector>
|
12 |
+
<version>1.5.9</version>
|
13 |
</FarApp_Connector>
|
14 |
</modules>
|
15 |
<global>
|
28 |
<product_api>FarApp_Connector_Model_Product_Api</product_api>
|
29 |
</rewrite>
|
30 |
</catalog>
|
31 |
+
<core>
|
32 |
+
<rewrite>
|
33 |
+
<store_api>FarApp_Connector_Model_Store_Api</store_api>
|
34 |
+
</rewrite>
|
35 |
+
</core>
|
36 |
<importexport>
|
37 |
<rewrite>
|
38 |
<import_entity_product>FarApp_Connector_Model_Import_Entity_Product</import_entity_product>
|
app/code/community/FarApp/Connector/etc/wsdl.xml
CHANGED
@@ -21,6 +21,13 @@
|
|
21 |
<part name="identifierType" type="xsd:string"/>
|
22 |
<part name="detailed" type="xsd:boolean"/>
|
23 |
</message>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
<service name="{{var wsdl.name}}Service">
|
26 |
<port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
|
21 |
<part name="identifierType" type="xsd:string"/>
|
22 |
<part name="detailed" type="xsd:boolean"/>
|
23 |
</message>
|
24 |
+
<message name="storeListRequest">
|
25 |
+
<part name="sessionId" type="xsd:string" />
|
26 |
+
</message>
|
27 |
+
<message name="storeInfoRequest">
|
28 |
+
<part name="sessionId" type="xsd:string" />
|
29 |
+
<part name="storeId" type="xsd:string" />
|
30 |
+
</message>
|
31 |
|
32 |
<service name="{{var wsdl.name}}Service">
|
33 |
<port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FarApp_Connector</name>
|
4 |
-
<version>1.5.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.farapp.com/signup/">Commercial</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Connector to sync product data from FarApp to Magento. FarApp currently supports NetSuite and other backends.</summary>
|
10 |
<description>FarApp is a cloud-based solution for posting product data to storefronts, retrieving orders from storefront and posting fulfillments to storefronts. We support various backends including NetSuite, X-Cart, 3D-Cart, and more. This connector allows full product data posting to Magento from FarApp. It has the the extra benefits of allowing FarApp to dynamically push new product data, automatically creating new attribute options and importing external images (features not provided by Magento).</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>FarApp</name><user>FarApp</user><email>support@farapp.com</email></author></authors>
|
13 |
-
<date>2017-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="FarApp"><dir name="Connector"><dir name="Helper"><file name="Data.php" hash="64b5205d7f0e551d1784682f4b93677a"/></dir><dir name="Model"><dir name="Export"><dir name="Adapter"><file name="Abstract.php" hash="765dc8fbab996f17b9f049cc8aa906a0"/><file name="Array.php" hash="6ca62c702dcb9512ec429563ac1ce1a2"/></dir><dir name="Entity"><file name="Order.php" hash="14a2f735cf8fc5e8f2bcd6682a1e56b1"/></dir></dir><file name="Export.php" hash="01643ef101731c6d98bbc523642f95a0"/><dir name="Import"><dir name="Entity"><file name="Customer.php" hash="376978f635c73605d428037cca8cf594"/><file name="Order.php" hash="38579396825a1bd3ad59de84278085f6"/><dir name="Product"><dir name="Type"><file name="Bundle.php" hash="e53dcb24f6324cb179fa3761a59272d9"/><file name="Configurable.php" hash="6877cb67789c03e9295545ada4c3b346"/><file name="Grouped.php" hash="e99356af57e1e9691e34c44ad75f9a0a"/><file name="Simple.php" hash="8c623e73540c20fd69bcaa9f404658bf"/><file name="Virtual.php" hash="68a0ee5d2af8269d16f56416988e90aa"/></dir></dir><file name="Product.php" hash="95776e1ea7f2bcf2265afdfe7116d22d"/><file name="minVersion2.php" hash="8df670fd68516ba1629304ae8ab6c812"/></dir></dir><file name="Import.php" hash="deb96f4867780788413d96be1c2b9ff9"/><file name="Observer.php" hash="a771dbe4b4c7592db072acbbf6c1903c"/><dir name="Order"><dir name="Creditmemo"><file name="Api.php" hash="edb85d34679eab92e8990a0dd065632e"/></dir><dir name="Invoice"><file name="Api.php" hash="f133255dae51ab9c44c71ca9cc702d0a"/></dir></dir><dir name="Product"><file name="Api.php" hash="60539725273ed3ce03adef8e90198cc3"/></dir></dir><dir name="controllers"><file name="ExportController.php" hash="83a48feea4dc3d601b2cef7df2d27110"/><file name="ImportController.php" hash="03922ffac029110e4739497c69ba45f5"/><file name="IndexController.php" hash="93918848d3ce7f6ad05688f89a730e75"/></dir><dir name="etc"><file name="api.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.7.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FarApp_Connector</name>
|
4 |
+
<version>1.5.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.farapp.com/signup/">Commercial</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Connector to sync product data from FarApp to Magento. FarApp currently supports NetSuite and other backends.</summary>
|
10 |
<description>FarApp is a cloud-based solution for posting product data to storefronts, retrieving orders from storefront and posting fulfillments to storefronts. We support various backends including NetSuite, X-Cart, 3D-Cart, and more. This connector allows full product data posting to Magento from FarApp. It has the the extra benefits of allowing FarApp to dynamically push new product data, automatically creating new attribute options and importing external images (features not provided by Magento).</description>
|
11 |
+
<notes>Expanded store.list API functionality. Simplifies multi-site/multi-store product sync since we get website/store list automatically now.</notes>
|
12 |
<authors><author><name>FarApp</name><user>FarApp</user><email>support@farapp.com</email></author></authors>
|
13 |
+
<date>2017-07-28</date>
|
14 |
+
<time>00:11:12</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="FarApp"><dir name="Connector"><dir name="Helper"><file name="Data.php" hash="64b5205d7f0e551d1784682f4b93677a"/></dir><dir name="Model"><dir name="Export"><dir name="Adapter"><file name="Abstract.php" hash="765dc8fbab996f17b9f049cc8aa906a0"/><file name="Array.php" hash="6ca62c702dcb9512ec429563ac1ce1a2"/></dir><dir name="Entity"><file name="Order.php" hash="14a2f735cf8fc5e8f2bcd6682a1e56b1"/></dir></dir><file name="Export.php" hash="01643ef101731c6d98bbc523642f95a0"/><dir name="Import"><dir name="Entity"><file name="Customer.php" hash="376978f635c73605d428037cca8cf594"/><file name="Order.php" hash="38579396825a1bd3ad59de84278085f6"/><dir name="Product"><dir name="Type"><file name="Bundle.php" hash="e53dcb24f6324cb179fa3761a59272d9"/><file name="Configurable.php" hash="6877cb67789c03e9295545ada4c3b346"/><file name="Grouped.php" hash="e99356af57e1e9691e34c44ad75f9a0a"/><file name="Simple.php" hash="8c623e73540c20fd69bcaa9f404658bf"/><file name="Virtual.php" hash="68a0ee5d2af8269d16f56416988e90aa"/></dir></dir><file name="Product.php" hash="95776e1ea7f2bcf2265afdfe7116d22d"/><file name="minVersion2.php" hash="8df670fd68516ba1629304ae8ab6c812"/></dir></dir><file name="Import.php" hash="deb96f4867780788413d96be1c2b9ff9"/><file name="Observer.php" hash="a771dbe4b4c7592db072acbbf6c1903c"/><dir name="Order"><dir name="Creditmemo"><file name="Api.php" hash="edb85d34679eab92e8990a0dd065632e"/></dir><dir name="Invoice"><file name="Api.php" hash="f133255dae51ab9c44c71ca9cc702d0a"/></dir></dir><dir name="Product"><file name="Api.php" hash="60539725273ed3ce03adef8e90198cc3"/></dir><dir name="Store"><file name="Api.php" hash="a828c8a298bbfb2865ca94f9de2f6eaa"/></dir></dir><dir name="controllers"><file name="ExportController.php" hash="83a48feea4dc3d601b2cef7df2d27110"/><file name="ImportController.php" hash="03922ffac029110e4739497c69ba45f5"/><file name="IndexController.php" hash="93918848d3ce7f6ad05688f89a730e75"/></dir><dir name="etc"><file name="api.xml" hash="d336fd0cc0d6687b5e77e38f8f17794a"/><file name="config.xml" hash="5c806569c65fec31f02915e2447272c4"/><file name="system.xml" hash="395c2670f5132a4e617310345185c200"/><file name="wsdl.xml" hash="68f451d696bd185d7f08ee55af8cf820"/><file name=".config.xml.swp" hash="26898cef10ef42101cb54d0b42add783"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FarApp_Connector.xml" hash="ff3fe315c70239229cb5ff3a49d40967"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>5.7.0</max></php></required></dependencies>
|
18 |
</package>
|