Version Notes
Improvements to the setup procedure
Download this release
Release Info
Developer | Magento Core Team |
Extension | Atosho |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/community/Atosho/Integration/Model/Mysql4/Setup.php +11 -0
- app/code/community/Atosho/Integration/controllers/FeedController.php +4 -1
- app/code/community/Atosho/Integration/etc/config.xml +10 -1
- app/code/community/Atosho/Integration/sql/atosho_integration_setup/mysql4-install-1.0.2.php +21 -0
- package.xml +5 -5
app/code/community/Atosho/Integration/Model/Mysql4/Setup.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Integration Setup
|
5 |
+
*
|
6 |
+
* @category Atosho
|
7 |
+
* @package Atosho_Integration
|
8 |
+
*/
|
9 |
+
class Atosho_Integration_Model_Mysql4_Setup extends Mage_Catalog_Model_Resource_Eav_Mysql4_Setup
|
10 |
+
{
|
11 |
+
}
|
app/code/community/Atosho/Integration/controllers/FeedController.php
CHANGED
@@ -83,7 +83,7 @@ class Atosho_Integration_FeedController extends Mage_Core_Controller_Front_Actio
|
|
83 |
}
|
84 |
else {
|
85 |
$info['simple'] = $simpleCollection->count();
|
86 |
-
}
|
87 |
$writer = new XMLWriter();
|
88 |
$writer->openURI('php://output');
|
89 |
$writer->startDocument('1.0', 'UTF-8');
|
@@ -549,6 +549,9 @@ class Atosho_Integration_FeedController extends Mage_Core_Controller_Front_Actio
|
|
549 |
}
|
550 |
}
|
551 |
}
|
|
|
|
|
|
|
552 |
|
553 |
$p['title'] = $product->getData('name');
|
554 |
$p['description'] = $product->getData('description');
|
83 |
}
|
84 |
else {
|
85 |
$info['simple'] = $simpleCollection->count();
|
86 |
+
}
|
87 |
$writer = new XMLWriter();
|
88 |
$writer->openURI('php://output');
|
89 |
$writer->startDocument('1.0', 'UTF-8');
|
549 |
}
|
550 |
}
|
551 |
}
|
552 |
+
else {
|
553 |
+
$p['type'] = $product->getData('type_id');
|
554 |
+
}
|
555 |
|
556 |
$p['title'] = $product->getData('name');
|
557 |
$p['description'] = $product->getData('description');
|
app/code/community/Atosho/Integration/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Atosho_Integration>
|
5 |
-
<version>1.0.
|
6 |
</Atosho_Integration>
|
7 |
</modules>
|
8 |
<frontend>
|
@@ -16,4 +16,13 @@
|
|
16 |
</atosho>
|
17 |
</routers>
|
18 |
</frontend>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Atosho_Integration>
|
5 |
+
<version>1.0.2</version>
|
6 |
</Atosho_Integration>
|
7 |
</modules>
|
8 |
<frontend>
|
16 |
</atosho>
|
17 |
</routers>
|
18 |
</frontend>
|
19 |
+
<global>
|
20 |
+
<resources>
|
21 |
+
<atosho_integration_setup>
|
22 |
+
<setup>
|
23 |
+
<module>Atosho_Integration</module>
|
24 |
+
</setup>
|
25 |
+
</atosho_integration_setup>
|
26 |
+
</resources>
|
27 |
+
</global>
|
28 |
</config>
|
app/code/community/Atosho/Integration/sql/atosho_integration_setup/mysql4-install-1.0.2.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$url = Mage::app()->getStore()->getBaseUrl();
|
3 |
+
$host = parse_url($url, PHP_URL_HOST);
|
4 |
+
|
5 |
+
$storeUrls = array();
|
6 |
+
$stores = Mage::getModel('core/store')->getCollection();
|
7 |
+
foreach ($stores as $store) {
|
8 |
+
$url = $store->getBaseUrl();
|
9 |
+
if (!in_array($url, $storeUrls)) {
|
10 |
+
$storeUrls[] = $url;
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
14 |
+
$body = 'Magento '.Mage::getVersion().PHP_EOL.PHP_EOL.implode(PHP_EOL, $storeUrls);
|
15 |
+
|
16 |
+
$mail = new Zend_Mail();
|
17 |
+
$mail->setFrom('magento@atosho.com', $host);
|
18 |
+
$mail->addTo('magento@atosho.com', 'Atosho');
|
19 |
+
$mail->setSubject('Extension Installed');
|
20 |
+
$mail->setBodyText($body);
|
21 |
+
$mail->send();
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Atosho</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL-3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Atosho.com product and order integration</summary>
|
10 |
<description>Exposes product catalog to Atosho in the form of an XML feed. Creates a new payment method called 'Atosho Payment' which indicates that an order has been paid through Atosho.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Atosho</name><user>auto-converted</user><email>magento@atosho.com</email></author></authors>
|
13 |
-
<date>2012-05-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Atosho_All.xml" hash="80137c2c28f206ab9a22ffe1f9dbb58b"/></dir></target><target name="magecommunity"><dir name="Atosho"><dir name="Integration"><dir name="controllers"><file name="FeedController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Atosho</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL-3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Atosho.com product and order integration</summary>
|
10 |
<description>Exposes product catalog to Atosho in the form of an XML feed. Creates a new payment method called 'Atosho Payment' which indicates that an order has been paid through Atosho.</description>
|
11 |
+
<notes>Improvements to the setup procedure</notes>
|
12 |
<authors><author><name>Atosho</name><user>auto-converted</user><email>magento@atosho.com</email></author></authors>
|
13 |
+
<date>2012-05-24</date>
|
14 |
+
<time>08:04:44</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Atosho_All.xml" hash="80137c2c28f206ab9a22ffe1f9dbb58b"/></dir></target><target name="magecommunity"><dir name="Atosho"><dir name="Integration"><dir name="Model"><dir name="Mysql4"><file name="Setup.php" hash="814ccf08196d33a81a8a70485b7c6a2c"/></dir></dir><dir name="controllers"><file name="FeedController.php" hash="84fc839e5e75b3e6630a37a56b384861"/></dir><dir name="etc"><file name="config.xml" hash="7d0862feffc29c9915df60137770c02f"/></dir><dir name="sql"><dir name="atosho_integration_setup"><file name="mysql4-install-1.0.2.php" hash="5f679110a69e5f933e4d4363f992e040"/></dir></dir></dir><dir name="AtoshoPayment"><dir name="Model"><file name="AtoshoPayment.php" hash="7d9afd8abc45ca252ccf36ed7f70c27f"/></dir><dir name="etc"><file name="config.xml" hash="30b5190de1b9b2cb1d3759995ca7c2ff"/><file name="system.xml" hash="ca3e25cb7ceef0da772eb88f91dd32cc"/></dir></dir><dir name="Shipping"><dir name="Model"><dir name="Carrier"><file name="Atosho.php" hash="dcd80ea031ec160eadadac847e80973b"/></dir></dir><dir name="etc"><file name="config.xml" hash="6770b1b833aa1454da307015fdbe5216"/><file name="system.xml" hash="96c2ade90fd06ab5bc3ef787a2af029a"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|