Easy_Topsellers - Version 1.1.4

Version Notes

Visibility bug fix:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.visibility' in 'where clause'
With: Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);

Download this release

Release Info

Developer Magento Core Team
Extension Easy_Topsellers
Version 1.1.4
Comparing to
See all releases


Code changes from version 1.1.3 to 1.1.4

app/code/community/Magazento/Easytopsell/Block/Category.php CHANGED
@@ -29,13 +29,15 @@ class Magazento_Easytopsell_Block_Category extends Mage_Catalog_Block_Product_Ab
29
  ->addStoreFilter($storeId)
30
  ->setDateRange($sellDate['startdate'], $sellDate['todaydate']) //
31
  ->addUrlRewrite()
32
- ->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)))
33
- ->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
34
  ->setOrder('ordered_qty', 'desc')
35
  ->setPageSize($this->getModel()->getCatProductsLimit())
36
  ->setCurPage(1)
37
  ->setOrder('ordered_qty', 'desc');
38
-
 
 
39
 
40
 
41
  $c = Mage::registry("current_category");
29
  ->addStoreFilter($storeId)
30
  ->setDateRange($sellDate['startdate'], $sellDate['todaydate']) //
31
  ->addUrlRewrite()
32
+ // ->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH)))
33
+ // ->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED)
34
  ->setOrder('ordered_qty', 'desc')
35
  ->setPageSize($this->getModel()->getCatProductsLimit())
36
  ->setCurPage(1)
37
  ->setOrder('ordered_qty', 'desc');
38
+
39
+ Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
40
+ Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection);
41
 
42
 
43
  $c = Mage::registry("current_category");
package.xml CHANGED
@@ -1,18 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Easy_Topsellers</name>
4
- <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Magento module generates the list of your online store's best selling products and displays it in sidebars. Extension allows you fully configure your bestsellers on your store and of cource this extension fully configurable at backend.</summary>
10
  <description>Magento module generates the list of your online store's best selling products and displays it in sidebars. Extension allows you fully configure your bestsellers on your store and of cource this extension fully configurable at backend.</description>
11
- <notes>1.1.3</notes>
 
 
 
12
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
13
  <date>2012-07-11</date>
14
- <time>07:04:45</time>
15
- <contents><target name="magecommunity"><dir name="Magazento"><dir name="Easytopsell"><dir name="Block"><file name="Category.php" hash="68addebcc7a17d790f45a29ad06b07fc"/><file name="Developer.php" hash="752a0367c8a88bf9cb08d424e4286914"/><file name="Home.php" hash="f5b8575d86893115c356a4c10370d918"/></dir><dir name="Helper"><file name="Data.php" hash="9f977e8bb58ad496025983804d9460e8"/></dir><dir name="Model"><file name="Data.php" hash="3c5607e5a08b3ba8d8b45e25d0413c2c"/></dir><dir name="etc"><file name="config.xml" hash="0eded0066def1816a54e91108e575c93"/><file name="system.xml" hash="e20e824fb205752d3d3bdc96e35776b8"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magazento"><dir name="easytopsell"><file name="category_left.phtml" hash="65aff4867906f97d148126ff32f354f0"/><file name="category_right.phtml" hash="3d2edd1cc57bc839d1e8e0b145e77a87"/><file name="home_left.phtml" hash="507757ebf3dd1e9f781070138ad7b189"/><file name="home_right.phtml" hash="ee23e0f9ded93c70ab5e4c2c1670ca09"/></dir></dir></dir><dir name="layout"><file name="magazento_easytopsell.xml" hash="a2a91c96a57d1c8d652635371ab4e703"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Easytopsell.xml" hash="bcf1d8c496a3d7759a347cc782e934c6"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magazento"><dir name="easytopseller"><file name="logo_onecheckout.jpg" hash="cf71a3d20cf06abaf99521651c2fe3d1"/><file name="logo_pdf.jpg" hash="5a0d745372115da1d61168e2529c0c0d"/><file name="logo_sitemap.jpg" hash="937495eec93cb1640b6244bff4cb31a2"/><file name="menu_box.jpg" hash="e76e4c6b62b096ca87175eb0f5270062"/><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/><file name="style.css" hash="fcf1d218462d72cf8d14648fba62ac32"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Magazento_Easytopsell.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Easy_Topsellers</name>
4
+ <version>1.1.4</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Magento module generates the list of your online store's best selling products and displays it in sidebars. Extension allows you fully configure your bestsellers on your store and of cource this extension fully configurable at backend.</summary>
10
  <description>Magento module generates the list of your online store's best selling products and displays it in sidebars. Extension allows you fully configure your bestsellers on your store and of cource this extension fully configurable at backend.</description>
11
+ <notes>Visibility bug fix:&#xD;
12
+ SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.visibility' in 'where clause' &#xD;
13
+ With: Mage::getSingleton('catalog/product_status')-&gt;addVisibleFilterToCollection($collection);&#xD;
14
+ Mage::getSingleton('catalog/product_visibility')-&gt;addVisibleInCatalogFilterToCollection($collection);</notes>
15
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
16
  <date>2012-07-11</date>
17
+ <time>07:19:37</time>
18
+ <contents><target name="magecommunity"><dir name="Magazento"><dir name="Easytopsell"><dir name="Block"><file name="Category.php" hash="24f169574656a3378bc6d331b47f162a"/><file name="Developer.php" hash="752a0367c8a88bf9cb08d424e4286914"/><file name="Home.php" hash="f5b8575d86893115c356a4c10370d918"/></dir><dir name="Helper"><file name="Data.php" hash="9f977e8bb58ad496025983804d9460e8"/></dir><dir name="Model"><file name="Data.php" hash="3c5607e5a08b3ba8d8b45e25d0413c2c"/></dir><dir name="etc"><file name="config.xml" hash="0eded0066def1816a54e91108e575c93"/><file name="system.xml" hash="e20e824fb205752d3d3bdc96e35776b8"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magazento"><dir name="easytopsell"><file name="category_left.phtml" hash="65aff4867906f97d148126ff32f354f0"/><file name="category_right.phtml" hash="3d2edd1cc57bc839d1e8e0b145e77a87"/><file name="home_left.phtml" hash="507757ebf3dd1e9f781070138ad7b189"/><file name="home_right.phtml" hash="ee23e0f9ded93c70ab5e4c2c1670ca09"/></dir></dir></dir><dir name="layout"><file name="magazento_easytopsell.xml" hash="a2a91c96a57d1c8d652635371ab4e703"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Easytopsell.xml" hash="bcf1d8c496a3d7759a347cc782e934c6"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magazento"><dir name="easytopseller"><file name="logo_onecheckout.jpg" hash="cf71a3d20cf06abaf99521651c2fe3d1"/><file name="logo_pdf.jpg" hash="5a0d745372115da1d61168e2529c0c0d"/><file name="logo_sitemap.jpg" hash="937495eec93cb1640b6244bff4cb31a2"/><file name="menu_box.jpg" hash="e76e4c6b62b096ca87175eb0f5270062"/><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/><file name="style.css" hash="fcf1d218462d72cf8d14648fba62ac32"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Magazento_Easytopsell.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>