Version Notes
Please contact help@commercestack.com with any feature requests, bugs, issues, or questions.
Download this release
Release Info
Developer | CommerceStack |
Extension | CommerceStack_Recommender |
Version | 2.1.2 |
Comparing to | |
See all releases |
Code changes from version 2.1.1 to 2.1.2
- app/code/community/CommerceStack/CsApiClient/Model/Account.php +8 -0
- app/code/community/CommerceStack/CsApiClient/etc/config.xml +1 -1
- app/code/community/CommerceStack/Recommender/Block/Product/List/Upsell.php +1 -1
- app/code/community/CommerceStack/Recommender/Helper/Data.php +3 -0
- app/code/community/CommerceStack/Recommender/etc/config.xml +1 -1
- package.xml +5 -5
app/code/community/CommerceStack/CsApiClient/Model/Account.php
CHANGED
@@ -49,6 +49,14 @@ class CommerceStack_CsApiClient_Model_Account extends Mage_Core_Model_Abstract
|
|
49 |
$mageVersion = Mage::getVersion();
|
50 |
$email = Mage::getStoreConfig('recommender/account/email');
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$xml = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
53 |
$xml .= "<account>\n";
|
54 |
//$xml .= "<commercestack_recommender_version>{$this->_getRecommenderVersion()}</commercestack_recommender_version>\n";
|
49 |
$mageVersion = Mage::getVersion();
|
50 |
$email = Mage::getStoreConfig('recommender/account/email');
|
51 |
|
52 |
+
if(is_null($email))
|
53 |
+
{
|
54 |
+
// This is probably first time opening admin so config DB entries
|
55 |
+
// have not been written yet.
|
56 |
+
$user = Mage::getSingleton('admin/session');
|
57 |
+
$email = $user->getUser()->getEmail();
|
58 |
+
}
|
59 |
+
|
60 |
$xml = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
61 |
$xml .= "<account>\n";
|
62 |
//$xml .= "<commercestack_recommender_version>{$this->_getRecommenderVersion()}</commercestack_recommender_version>\n";
|
app/code/community/CommerceStack/CsApiClient/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_CsApiClient>
|
5 |
-
<version>1.
|
6 |
</CommerceStack_CsApiClient>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_CsApiClient>
|
5 |
+
<version>1.1</version>
|
6 |
</CommerceStack_CsApiClient>
|
7 |
</modules>
|
8 |
|
app/code/community/CommerceStack/Recommender/Block/Product/List/Upsell.php
CHANGED
@@ -72,7 +72,7 @@ class CommerceStack_Recommender_Block_Product_List_Upsell extends Mage_Catalog_B
|
|
72 |
->setPositionOrder()
|
73 |
->addStoreFilter();
|
74 |
}
|
75 |
-
|
76 |
{
|
77 |
$linkedItemCollection = $product->getCrossSellProductCollection()
|
78 |
->setGroupBy()
|
72 |
->setPositionOrder()
|
73 |
->addStoreFilter();
|
74 |
}
|
75 |
+
else
|
76 |
{
|
77 |
$linkedItemCollection = $product->getCrossSellProductCollection()
|
78 |
->setGroupBy()
|
app/code/community/CommerceStack/Recommender/Helper/Data.php
CHANGED
@@ -67,6 +67,9 @@ class CommerceStack_Recommender_Helper_Data extends Mage_Core_Helper_Abstract
|
|
67 |
$xml .= " <$rootName>\n";
|
68 |
foreach($row as $key => $value)
|
69 |
{
|
|
|
|
|
|
|
70 |
$xml .= " <" . $key . "><![CDATA[" . $value . "]]></" . $key . ">\n";
|
71 |
}
|
72 |
$xml .= " </$rootName>\n";
|
67 |
$xml .= " <$rootName>\n";
|
68 |
foreach($row as $key => $value)
|
69 |
{
|
70 |
+
// Strip $value of any CDATA delimiters
|
71 |
+
$value = str_replace("]]>", "", $value);
|
72 |
+
|
73 |
$xml .= " <" . $key . "><![CDATA[" . $value . "]]></" . $key . ">\n";
|
74 |
}
|
75 |
$xml .= " </$rootName>\n";
|
app/code/community/CommerceStack/Recommender/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_Recommender>
|
5 |
-
<version>2.1.
|
6 |
</CommerceStack_Recommender>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CommerceStack_Recommender>
|
5 |
+
<version>2.1.2</version>
|
6 |
</CommerceStack_Recommender>
|
7 |
</modules>
|
8 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceStack_Recommender</name>
|
4 |
-
<version>2.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -9,16 +9,16 @@
|
|
9 |
<summary>Automatically generate related products, up-sells, and cross-sells for your entire catalog with one click.</summary>
|
10 |
<description>Automatically generates related products, cross-sells, and up-sells for your entire catalog using existing order and page view data.
|
11 |

|
12 |
-
Supported Magento versions: 1.5.0, 1.5.0.1, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0
|
13 |

|
14 |
Please contact help@commercestack.com with any bugs, issues, or feature requests. 
|
15 |

|
16 |
After installing, navigate to System->Configuration->Related Products Manager to begin.</description>
|
17 |
<notes>Please contact help@commercestack.com with any feature requests, bugs, issues, or questions.</notes>
|
18 |
<authors><author><name>CommerceStack</name><user>dbright</user><email>dbright@commercestack.com</email></author></authors>
|
19 |
-
<date>
|
20 |
-
<time>
|
21 |
-
<contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="3502a27a963955eb91cf8165a39af9d5"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="6bf054a0c4cb02d5029e865c1f834d65"/><file name="Related.php" hash="0daa5a8c523d389eaea2d1d220d96be9"/></dir><file name="Tabs.php" hash="aa26d6e9e585117100e983616e6a0afa"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="597516550d0a8d532f668925d59bbb35"/><file name="Upsell.php" hash="
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CommerceStack_Recommender</name>
|
4 |
+
<version>2.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License v 3.0</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Automatically generate related products, up-sells, and cross-sells for your entire catalog with one click.</summary>
|
10 |
<description>Automatically generates related products, cross-sells, and up-sells for your entire catalog using existing order and page view data.
|
11 |

|
12 |
+
Supported Magento versions: 1.5.0, 1.5.0.1, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.8.0, 1.8.1, 1.9.0, 1.9.1
|
13 |

|
14 |
Please contact help@commercestack.com with any bugs, issues, or feature requests. 
|
15 |

|
16 |
After installing, navigate to System->Configuration->Related Products Manager to begin.</description>
|
17 |
<notes>Please contact help@commercestack.com with any feature requests, bugs, issues, or questions.</notes>
|
18 |
<authors><author><name>CommerceStack</name><user>dbright</user><email>dbright@commercestack.com</email></author></authors>
|
19 |
+
<date>2014-12-09</date>
|
20 |
+
<time>22:05:23</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="3502a27a963955eb91cf8165a39af9d5"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="6bf054a0c4cb02d5029e865c1f834d65"/><file name="Related.php" hash="0daa5a8c523d389eaea2d1d220d96be9"/></dir><file name="Tabs.php" hash="aa26d6e9e585117100e983616e6a0afa"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="597516550d0a8d532f668925d59bbb35"/><file name="Upsell.php" hash="cd8e2be1800665cc7743f0765ce9b02a"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Apikey.php" hash="def235a2710cea0b01ace89bce9ffda4"/><file name="Apikeyurl.php" hash="5ce3031fd84f912b3552d7c37f2a04ac"/><file name="Apisecret.php" hash="9b9a92981a5ff80aa4ec3e4255844801"/><file name="Apiuser.php" hash="bba5a87192ab0821d999aa4ab8cddada"/><file name="Cancelbutton.php" hash="7a87871461a6d589a28ccbc18f9d1603"/><file name="Email.php" hash="0231900a317a75e1f72cfdd440df2e45"/><file name="Helpiframe.php" hash="cd049db20bfa53e6a57eaba796a0f5b6"/><file name="Paymentiframe.php" hash="aac32f6d47bf80aef61c1b4288363f7e"/><file name="Updatebutton.php" hash="997d957fab4ac828237b9b0ca92d51e6"/></dir><file name="Form.php" hash="de1c3b70b03ac09fe1d5c7cd7613feb1"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8ad308615eb1dffe036199970c978a61"/></dir><dir name="Model"><dir name="Product"><file name="Link.php" hash="c2fb978783910af6472fbcf50070bb0f"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><dir name="Link"><dir name="Product"><file name="Collection.php" hash="3fb32d0da982297829938dc2427b35cb"/></dir></dir><file name="Link.php" hash="0910e13e6a3b3cac3573a4ea1df59e9f"/></dir></dir></dir><dir name="Mysql4"><file name="Setup.php" hash="1e93566c0f56cc52cdf4e4a73153d2f9"/></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Upsellsource.php" hash="34ed5e3c61bd288340b7de3809953ad3"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="2ba2f4ae67df9a140ed2b8b5bc4ec986"/><file name="IndexController.php" hash="2a60213f638ebd16d051d83d3d8f726c"/><file name="ProductController.php" hash="83ad4a8d6d22d53f4fb03744950500d9"/></dir><dir name="etc"><file name="config.xml" hash="d4a1b429f3415107e3b3ef0ee6e4c51b"/><file name="system.xml" hash="2ee1ffb7b78936caf27acc87bc34a4c9"/></dir><dir name="sql"><dir name="recommender_setup"><file name="mysql4-install-0.9.3.php" hash="cfe38102d96814f6b254cc38c07f2037"/><file name="mysql4-upgrade-0.9.3-0.9.4.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-0.9.4-0.9.5.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-0.9.5-1.0.0.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.0.2-1.1.0.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.1.0-1.2.0.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.0-1.2.1.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.2-1.2.3.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.3-1.2.4.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.5-1.2.6.php" hash="3beefb00777a6bd04265b7d33c23efa9"/><file name="mysql4-upgrade-1.2.6-2.0.0.php" hash="b2d2b463578d50b2a1a313c36d02ecdf"/></dir></dir></dir><dir name="CsApiClient"><dir name="Model"><file name="Account.php" hash="eee0430b1dabbf423c31c42f371be1e1"/><file name="Server.php" hash="6dd11dab8794ab53cdb763d4820d36c9"/></dir><dir name="etc"><file name="config.xml" hash="aa75ad3da4595655fe6dc9507e1af176"/></dir></dir><dir name="CsNotification"><dir name="Model"><dir name="AdminNotification"><file name="Feed.php" hash="1f20e704fe895c4a2748612a028ee186"/></dir></dir><dir name="etc"><file name="config.xml" hash="9ede9a59b2e857828a341bbf53953abe"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="recommender.xml" hash="26d8deea180738fdd5e3f0a5bcbc8f07"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="commercestack"><dir name="adminhtml"><file name="recommender.js" hash="b9b1fb4afa53aeb99d3a180f9fafc155"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CommerceStack_Recommender.xml" hash="c0faaf57bb93c70fe6ba45e68c96fc11"/><file name="CommerceStack_CsApiClient.xml" hash="dd56312764a58b18b7e21738ebb8a6b0"/><file name="CommerceStack_CsNotification.xml" hash="94bb10db3af629c7e68bbf32fd18159c"/></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|