Version Notes
The ChannelUnity connector kit for Magento.
Allows automatic installation via www.channelunity.com. Fixes an issue related to flat product tables support.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Camiloo_Channelunity |
Version | 1.0.0.12 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.11 to 1.0.0.12
app/code/community/Camiloo/Channelunity/Model/Abstract.php
CHANGED
@@ -153,7 +153,6 @@ class Camiloo_Channelunity_Model_Abstract
|
|
153 |
|
154 |
public function verifyMyself($request)
|
155 |
{
|
156 |
-
|
157 |
$result = $this->postToChannelUnity("", "ValidateUser");
|
158 |
|
159 |
if (strpos($result, "<MerchantName>")
|
@@ -267,6 +266,8 @@ class Camiloo_Channelunity_Model_Abstract
|
|
267 |
Mage::getModel('core/config')->saveConfig(
|
268 |
'channelunityint/generalsettings/apikey', '');
|
269 |
|
|
|
|
|
270 |
$this->getApiKey($merchantname, $username, $password);
|
271 |
$this->postMyURLToChannelUnity($merchantname);
|
272 |
}
|
@@ -363,7 +364,7 @@ class Camiloo_Channelunity_Model_Abstract
|
|
363 |
/**
|
364 |
* skipProduct - checks whether to skip product to pass it to CU
|
365 |
*
|
366 |
-
*
|
367 |
*
|
368 |
* @return boolean - true-ignore disabled, false-don't ignore
|
369 |
*/
|
@@ -405,7 +406,7 @@ class Camiloo_Channelunity_Model_Abstract
|
|
405 |
*/
|
406 |
protected function updateProductData($storeViewId, $data)
|
407 |
{
|
408 |
-
|
409 |
$sourceUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
410 |
|
411 |
// Create XML
|
153 |
|
154 |
public function verifyMyself($request)
|
155 |
{
|
|
|
156 |
$result = $this->postToChannelUnity("", "ValidateUser");
|
157 |
|
158 |
if (strpos($result, "<MerchantName>")
|
266 |
Mage::getModel('core/config')->saveConfig(
|
267 |
'channelunityint/generalsettings/apikey', '');
|
268 |
|
269 |
+
Mage::app()->cleanCache();
|
270 |
+
|
271 |
$this->getApiKey($merchantname, $username, $password);
|
272 |
$this->postMyURLToChannelUnity($merchantname);
|
273 |
}
|
364 |
/**
|
365 |
* skipProduct - checks whether to skip product to pass it to CU
|
366 |
*
|
367 |
+
* Product field: status, 1-Enabled, 2-Disabled
|
368 |
*
|
369 |
* @return boolean - true-ignore disabled, false-don't ignore
|
370 |
*/
|
406 |
*/
|
407 |
protected function updateProductData($storeViewId, $data)
|
408 |
{
|
409 |
+
// Set variables
|
410 |
$sourceUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
411 |
|
412 |
// Create XML
|
app/code/community/Camiloo/Channelunity/controllers/ApiController.php
CHANGED
@@ -217,7 +217,12 @@ EOD;
|
|
217 |
$password = $this->getRequest()->getParam('pass');
|
218 |
|
219 |
Mage::getModel('channelunity/products')->setCredentialsInModule($merchantname, $username, $password);
|
220 |
-
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
}
|
223 |
|
217 |
$password = $this->getRequest()->getParam('pass');
|
218 |
|
219 |
Mage::getModel('channelunity/products')->setCredentialsInModule($merchantname, $username, $password);
|
220 |
+
|
221 |
+
$myStoreURL = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
|
222 |
+
|
223 |
+
$storeStatus = Mage::getModel('channelunity/stores')->postStoresToCU($myStoreURL);
|
224 |
+
$categoryStatus = Mage::getModel('channelunity/categories')->postCategoriesToCU($myStoreURL);
|
225 |
+
$attributeStatus = Mage::getModel('channelunity/products')->postAttributesToCU();
|
226 |
}
|
227 |
}
|
228 |
|
app/design/adminhtml/default/default/template/channelunity/configheader.phtml
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
<h3>ChannelUnity Integration for Magento</h3>
|
17 |
Devised and Developed in Manchester, UK by <a href="http://www.camiloo.co.uk/?ref=cu" target="_blank">Camiloo Limited</a><br />
|
18 |
<?php
|
19 |
-
$xml = Mage::getModel('channelunity/checkforupdates')->getRemoteXMLFileData("http://my.channelunity.com/versioncheck.php?Version=1.0.0.
|
20 |
$html = $xml->DisplayMessage[0];
|
21 |
echo $html;
|
22 |
?>
|
16 |
<h3>ChannelUnity Integration for Magento</h3>
|
17 |
Devised and Developed in Manchester, UK by <a href="http://www.camiloo.co.uk/?ref=cu" target="_blank">Camiloo Limited</a><br />
|
18 |
<?php
|
19 |
+
$xml = Mage::getModel('channelunity/checkforupdates')->getRemoteXMLFileData("http://my.channelunity.com/versioncheck.php?Version=1.0.0.12");
|
20 |
$html = $xml->DisplayMessage[0];
|
21 |
echo $html;
|
22 |
?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Camiloo_Channelunity</name>
|
4 |
-
<version>1.0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.camiloo.co.uk/license.txt">Camiloo EULA</license>
|
7 |
<channel>community</channel>
|
@@ -14,8 +14,8 @@ Should you need any help getting started, please email support@channelunity.com<
|
|
14 |
Allows automatic installation via www.channelunity.com. Fixes an issue related to flat product tables support.</notes>
|
15 |
<authors><author><name>Camiloo Limited</name><user>auto-converted</user><email>hello@camiloo.co.uk</email></author></authors>
|
16 |
<date>2013-01-10</date>
|
17 |
-
<time>
|
18 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="channelunity"><file name="configheader.phtml" hash="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Camiloo_Channelunity</name>
|
4 |
+
<version>1.0.0.12</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.camiloo.co.uk/license.txt">Camiloo EULA</license>
|
7 |
<channel>community</channel>
|
14 |
Allows automatic installation via www.channelunity.com. Fixes an issue related to flat product tables support.</notes>
|
15 |
<authors><author><name>Camiloo Limited</name><user>auto-converted</user><email>hello@camiloo.co.uk</email></author></authors>
|
16 |
<date>2013-01-10</date>
|
17 |
+
<time>17:30:12</time>
|
18 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="channelunity"><file name="configheader.phtml" hash="9712f0d6ea676e77b39e183693214f90"/><file name="paymentinfo.phtml" hash="76caa9ce9fbe2d6e044c0504a07b1094"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Camiloo"><dir name="Channelunity"><dir name="Block"><file name="Configheader.php" hash="3e8ac32de257ecff2631046941e6137e"/><file name="Paymentform.php" hash="fabdb31dc620cfb9ab61c8c725c17d9c"/><file name="Paymentinfo.php" hash="53895170d72a8dde7c8580be51057978"/></dir><dir name="controllers"><file name="ApiController.php" hash="c0817b82a4092a25f27f21b95c9873d3"/><file name="ApiController.php.old.php" hash="01ff34c2cf5798a82cfc11b19ab6decd"/></dir><dir name="etc"><file name="config.xml" hash="d1f11f74fc3f651bca80223c92f9c9ea"/><file name="system.xml" hash="e28563b67338d75cf60a94d2fd9f850a"/></dir><dir name="Helper"><file name="Data.php" hash="3c92fe3908be9de73f04dbfd67539830"/></dir><dir name="Model"><file name="Abstract.php" hash="6f8cc07a0c8f92ece900b5848fd13320"/><file name="Attributes.php" hash="e7e3c18496a4a33d0bb1cb56a0a2122e"/><file name="Categories.php" hash="8a45e805e20f2138194820bc5ea9f0d5"/><file name="Checkforupdates.php" hash="1059e54fb953d343dbbbf42a025148e8"/><file name="Collection.php" hash="2aa4e920044de962d1813a48defe29f1"/><file name="Customrate.php" hash="5bd3a98549764890c5b3ebc311e8c114"/><file name="Entity.php" hash="fc95b86e51597afad477cd09db5c8b4d"/><file name="Observer.php" hash="4837df027561b8482a87e22f62cf3e11"/><file name="Ordercreatebackport.php" hash="c2db4232b69e06a0f897a94735546cb4"/><file name="Orders.php" hash="e5000f854f655806a59a6ec644de76cf"/><file name="Payment.php" hash="40352086906a6a09ca220605706d62d4"/><file name="Paymentinfo.php" hash="5ae85a0e16183b3b2ee35aad71c722d8"/><file name="Paymentmethoduk.php" hash="d03558fd4886a68e8b2d618dbd64e19f"/><file name="Products.php" hash="5001579e4051846bca4246384d3e6726"/><file name="Stores.php" hash="67cacf0dd8ef1f8baa8ee706e9014e3e"/></dir><dir name="sql"><dir name="channelunity_setup"><file name="install-1.0.0.php" hash="4d1afd779a923d7755289ec169fa188d"/><file name="mysql4-install-0.0.1.php" hash="934e5541c3a9d54fafda920ac121b5bf"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Camiloo_Channelunity.xml" hash="cccfbce64ee176372c5afecb8676fab0"/></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|