CommerceStack_Recommender - Version 2.2.4

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.2.4
Comparing to
See all releases


Code changes from version 2.2.3 to 2.2.4

app/code/community/CommerceStack/Recommender/Block/Catalog/Product/Edit/Tabs.php CHANGED
@@ -7,25 +7,25 @@ class CommerceStack_Recommender_Block_Catalog_Product_Edit_Tabs extends Mage_Adm
7
 
8
  $this->addTab('commercestack_related', array(
9
  'label' => Mage::helper('catalog')->__('Related Products (Automated)'),
10
- 'url' => $this->getUrl('recommender/product/related', array('_current' => true)), //'commercestack_related' => true)),
11
  'class' => 'ajax',
12
  'insertAfter' => 'related',
13
  ));
14
 
15
  // Upsell source is based on user-config
16
  $upsellSource = Mage::getStoreConfig('recommender/relatedproductsadvanced/upsellsource');
17
- $tabUrls = array('related' => 'recommender/product/related', 'crosssell' => 'recommender/product/crosssell', 'random' => '*/*/upsell');
18
 
19
  $this->addTab('commercestack_upsell', array(
20
  'label' => Mage::helper('catalog')->__('Up-sells (Automated)'),
21
- 'url' => $this->getUrl($tabUrls[$upsellSource], array('_current' => true)), //'commercestack_upsell' => true)),
22
  'class' => 'ajax',
23
  'insertAfter' => 'upsell',
24
  ));
25
 
26
  $this->addTab('commercestack_crosssell', array(
27
  'label' => Mage::helper('catalog')->__('Cross-sells (Automated)'),
28
- 'url' => $this->getUrl('recommender/product/crosssell', array('_current' => true)), //'commercestack_crosssell' => true)),
29
  'class' => 'ajax',
30
  'insertAfter' => 'crosssell',
31
  ));
7
 
8
  $this->addTab('commercestack_related', array(
9
  'label' => Mage::helper('catalog')->__('Related Products (Automated)'),
10
+ 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/recommenderproduct/related', array('_current' => true)), //'commercestack_related' => true)),
11
  'class' => 'ajax',
12
  'insertAfter' => 'related',
13
  ));
14
 
15
  // Upsell source is based on user-config
16
  $upsellSource = Mage::getStoreConfig('recommender/relatedproductsadvanced/upsellsource');
17
+ $tabUrls = array('related' => 'adminhtml/recommenderproduct/related', 'crosssell' => 'adminhtml/recommenderproduct/crosssell', 'random' => '*/*/upsell');
18
 
19
  $this->addTab('commercestack_upsell', array(
20
  'label' => Mage::helper('catalog')->__('Up-sells (Automated)'),
21
+ 'url' => Mage::helper("adminhtml")->getUrl($tabUrls[$upsellSource], array('_current' => true)), //'commercestack_upsell' => true)),
22
  'class' => 'ajax',
23
  'insertAfter' => 'upsell',
24
  ));
25
 
26
  $this->addTab('commercestack_crosssell', array(
27
  'label' => Mage::helper('catalog')->__('Cross-sells (Automated)'),
28
+ 'url' => Mage::helper("adminhtml")->getUrl('adminhtml/recommenderproduct/crosssell', array('_current' => true)), //'commercestack_crosssell' => true)),
29
  'class' => 'ajax',
30
  'insertAfter' => 'crosssell',
31
  ));
app/code/community/CommerceStack/Recommender/controllers/{ProductController.php → Adminhtml/RecommenderproductController.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
  include("Mage/Adminhtml/controllers/Catalog/ProductController.php");
3
- class CommerceStack_Recommender_ProductController extends Mage_Adminhtml_Catalog_ProductController
4
  {
5
  public function relatedAction()
6
  {
1
  <?php
2
  include("Mage/Adminhtml/controllers/Catalog/ProductController.php");
3
+ class CommerceStack_Recommender_Adminhtml_RecommenderproductController extends Mage_Adminhtml_Catalog_ProductController
4
  {
5
  public function relatedAction()
6
  {
app/code/community/CommerceStack/Recommender/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <CommerceStack_Recommender>
5
- <version>2.2.3</version>
6
  </CommerceStack_Recommender>
7
  </modules>
8
 
@@ -85,13 +85,13 @@
85
 
86
  <admin>
87
  <routers>
88
- <recommender>
89
- <use>admin</use>
90
  <args>
91
- <module>CommerceStack_Recommender</module>
92
- <frontName>recommender</frontName>
 
93
  </args>
94
- </recommender>
95
  </routers>
96
  </admin>
97
 
2
  <config>
3
  <modules>
4
  <CommerceStack_Recommender>
5
+ <version>2.2.4</version>
6
  </CommerceStack_Recommender>
7
  </modules>
8
 
85
 
86
  <admin>
87
  <routers>
88
+ <adminhtml>
 
89
  <args>
90
+ <modules>
91
+ <commercestack_recommender after="Mage_Adminhtml">CommerceStack_Recommender_Adminhtml</commercestack_recommender>
92
+ </modules>
93
  </args>
94
+ </adminhtml>
95
  </routers>
96
  </admin>
97
 
app/design/adminhtml/default/default/layout/recommender.xml CHANGED
@@ -1,27 +1,27 @@
1
  <?xml version="1.0"?>
2
  <layout>
3
- <recommender_product_related>
4
  <block type="core/text_list" name="root" output="toHtml">
5
  <block type="recommender/catalog_product_edit_tab_related" name="catalog.product.edit.tab.related"/>
6
  </block>
7
- </recommender_product_related>
8
 
9
- <recommender_product_relatedgrid>
10
  <block type="core/text_list" name="root" output="toHtml">
11
  <block type="recommender/catalog_product_edit_tab_related" name="catalog.product.edit.tab.related"/>
12
  </block>
13
- </recommender_product_relatedgrid>
14
 
15
- <recommender_product_crosssell>
16
  <block type="core/text_list" name="root" output="toHtml">
17
  <block type="recommender/catalog_product_edit_tab_crosssell" name="catalog.product.edit.tab.crosssell"/>
18
  </block>
19
- </recommender_product_crosssell>
20
 
21
- <recommender_product_crosssellgrid>
22
  <block type="core/text_list" name="root" output="toHtml">
23
  <block type="recommender/catalog_product_edit_tab_crosssell" name="catalog.product.edit.tab.crosssell"/>
24
  </block>
25
- </recommender_product_crosssellgrid>
26
 
27
  </layout>
1
  <?xml version="1.0"?>
2
  <layout>
3
+ <adminhtml_recommenderproduct_related>
4
  <block type="core/text_list" name="root" output="toHtml">
5
  <block type="recommender/catalog_product_edit_tab_related" name="catalog.product.edit.tab.related"/>
6
  </block>
7
+ </adminhtml_recommenderproduct_related>
8
 
9
+ <adminhtml_recommenderproduct_relatedgrid>
10
  <block type="core/text_list" name="root" output="toHtml">
11
  <block type="recommender/catalog_product_edit_tab_related" name="catalog.product.edit.tab.related"/>
12
  </block>
13
+ </adminhtml_recommenderproduct_relatedgrid>
14
 
15
+ <adminhtml_recommenderproduct_crosssell>
16
  <block type="core/text_list" name="root" output="toHtml">
17
  <block type="recommender/catalog_product_edit_tab_crosssell" name="catalog.product.edit.tab.crosssell"/>
18
  </block>
19
+ </adminhtml_recommenderproduct_crosssell>
20
 
21
+ <adminhtml_recommenderproduct_crosssellgrid>
22
  <block type="core/text_list" name="root" output="toHtml">
23
  <block type="recommender/catalog_product_edit_tab_crosssell" name="catalog.product.edit.tab.crosssell"/>
24
  </block>
25
+ </adminhtml_recommenderproduct_crosssellgrid>
26
 
27
  </layout>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>CommerceStack_Recommender</name>
4
- <version>2.2.3</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>
@@ -16,9 +16,9 @@ Please contact help@commercestack.com with any bugs, issues, or feature requests
16
  After installing, navigate to System-&gt;Configuration-&gt;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>2015-09-24</date>
20
- <time>17:00:32</time>
21
- <contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="9c5a8e7372ecded86474b74f4a08cd13"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="4a629f55e16abcd45d8b97ea7b83ee9d"/><file name="Related.php" hash="5d3e6e6fbeadee6a7b5b31675338171e"/></dir><file name="Tabs.php" hash="aa26d6e9e585117100e983616e6a0afa"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="39724c5902d46adc59f96a9ac3ceb28b"/><file name="Upsell.php" hash="369b0e7df665c7da2c4a44686341eace"/></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="1b7818359b91eacca40dc006ecace854"/></dir><dir name="Model"><dir name="Product"><file name="Link.php" hash="e1e86dddc96b58a8cfcdf32f9de851ac"/></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><file name=".DS_Store" hash="94881651f077db217b9ec427591b721c"/></dir><file name="Link.php" hash="0910e13e6a3b3cac3573a4ea1df59e9f"/><file name=".DS_Store" hash="e999693fd37d82450997699da2d986e2"/></dir><file name=".DS_Store" hash="d032518ab85e6c3cbbb43688f6bc5bfe"/></dir><file name=".DS_Store" hash="4c2b2d46eba62dd07c7ffc1cf30460b4"/></dir><dir name="Mysql4"><file name="Setup.php" hash="1e93566c0f56cc52cdf4e4a73153d2f9"/></dir><file name=".DS_Store" hash="195fa1ec4bb1126dc072b289fb841603"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Upsellsource.php" hash="34ed5e3c61bd288340b7de3809953ad3"/></dir></dir></dir><file name=".DS_Store" hash="b98ec272e7b775e485af3b5db7b24e6c"/></dir><dir name="controllers"><file name="AccountController.php" hash="2ba2f4ae67df9a140ed2b8b5bc4ec986"/><file name="IndexController.php" hash="939da603e85033cc77542ba10d2a4336"/><file name="ProductController.php" hash="83ad4a8d6d22d53f4fb03744950500d9"/></dir><dir name="etc"><file name="config.xml" hash="7a7fe51e1108271be5a5999759d10d34"/><file name="system.xml" hash="2ee1ffb7b78936caf27acc87bc34a4c9"/></dir><dir name="sql"><dir name="recommender_setup"><file name="mysql4-install-0.9.3.php" hash="4ce1a6cfbc0dbcb55433d31d539d8f50"/><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><file name=".DS_Store" hash="9567c71fb3193ad25155b1c371035ddf"/></dir><dir name="CsApiClient"><dir name="Model"><file name="Account.php" hash="f48445eafcb1d1d80203987528387dc2"/><file name="Server.php" hash="026be03911b4af5079f2644f06634aa5"/></dir><dir name="etc"><file name="config.xml" hash="852026aa85d127c12b666444779fbc35"/></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="2594b0d39a1bb029c19054d179e766ba"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>CommerceStack_Recommender</name>
4
+ <version>2.2.4</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>
16
  After installing, navigate to System-&gt;Configuration-&gt;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>2015-10-29</date>
20
+ <time>13:50:41</time>
21
+ <contents><target name="magecommunity"><dir name="CommerceStack"><dir name="Recommender"><dir name="Block"><dir name="Cart"><file name="Crosssell.php" hash="9c5a8e7372ecded86474b74f4a08cd13"/></dir><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Crosssell.php" hash="4a629f55e16abcd45d8b97ea7b83ee9d"/><file name="Related.php" hash="5d3e6e6fbeadee6a7b5b31675338171e"/></dir><file name="Tabs.php" hash="132463b3f80243dc433fd20d706d2b9c"/></dir></dir></dir><dir name="Product"><dir name="List"><file name="Related.php" hash="39724c5902d46adc59f96a9ac3ceb28b"/><file name="Upsell.php" hash="369b0e7df665c7da2c4a44686341eace"/></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="1b7818359b91eacca40dc006ecace854"/></dir><dir name="Model"><dir name="Product"><file name="Link.php" hash="e1e86dddc96b58a8cfcdf32f9de851ac"/></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><file name=".DS_Store" hash="94881651f077db217b9ec427591b721c"/></dir><file name="Link.php" hash="0910e13e6a3b3cac3573a4ea1df59e9f"/><file name=".DS_Store" hash="e999693fd37d82450997699da2d986e2"/></dir><file name=".DS_Store" hash="d032518ab85e6c3cbbb43688f6bc5bfe"/></dir><file name=".DS_Store" hash="4c2b2d46eba62dd07c7ffc1cf30460b4"/></dir><dir name="Mysql4"><file name="Setup.php" hash="1e93566c0f56cc52cdf4e4a73153d2f9"/></dir><file name=".DS_Store" hash="195fa1ec4bb1126dc072b289fb841603"/></dir><dir name="System"><dir name="Config"><dir name="Form"><file name="Upsellsource.php" hash="34ed5e3c61bd288340b7de3809953ad3"/></dir></dir></dir><file name=".DS_Store" hash="b98ec272e7b775e485af3b5db7b24e6c"/></dir><dir name="controllers"><file name="AccountController.php" hash="2ba2f4ae67df9a140ed2b8b5bc4ec986"/><dir name="Adminhtml"><file name="RecommenderproductController.php" hash="f106f5fce36166b0d43cbf513b234482"/></dir><file name="IndexController.php" hash="939da603e85033cc77542ba10d2a4336"/></dir><dir name="etc"><file name="config.xml" hash="ee290663f8f104cfe09bac5c7b7c73cf"/><file name="system.xml" hash="2ee1ffb7b78936caf27acc87bc34a4c9"/></dir><dir name="sql"><dir name="recommender_setup"><file name="mysql4-install-0.9.3.php" hash="4ce1a6cfbc0dbcb55433d31d539d8f50"/><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><file name=".DS_Store" hash="9567c71fb3193ad25155b1c371035ddf"/></dir><dir name="CsApiClient"><dir name="Model"><file name="Account.php" hash="f48445eafcb1d1d80203987528387dc2"/><file name="Server.php" hash="026be03911b4af5079f2644f06634aa5"/></dir><dir name="etc"><file name="config.xml" hash="852026aa85d127c12b666444779fbc35"/></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="8a42112390c712a8085f1b966c5fe437"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="commercestack"><dir name="adminhtml"><file name="recommender.js" hash="2594b0d39a1bb029c19054d179e766ba"/></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>