Version Notes
Automatic load next page of current product list.
Support for Magento 1.3 up to 1.7.2
Download this release
Release Info
Developer | Magento Core Team |
Extension | Strategery_InfiniteScroll2 |
Version | 2.1.7 |
Comparing to | |
See all releases |
Code changes from version 2.1.6 to 2.1.7
app/code/community/Strategery/Infinitescroll2/Model/Catalog/Observer.php
CHANGED
@@ -171,7 +171,9 @@ class Strategery_Infinitescroll2_Model_Catalog_Observer
|
|
171 |
protected function _whereAreWe()
|
172 |
{
|
173 |
if (Mage::registry('current_category')) { $where = "grid"; }
|
174 |
-
if
|
|
|
|
|
175 |
if (Mage::app()->getRequest()->getControllerName() == "result"){ $where = "search"; }
|
176 |
if (Mage::app()->getRequest()->getControllerName() == "advanced") { $where = "advanced"; }
|
177 |
return $where;
|
171 |
protected function _whereAreWe()
|
172 |
{
|
173 |
if (Mage::registry('current_category')) { $where = "grid"; }
|
174 |
+
if(is_object(Mage::registry('current_category')) && Mage::registry('current_category')->getIsAnchor()) {
|
175 |
+
$where = "layer";
|
176 |
+
}
|
177 |
if (Mage::app()->getRequest()->getControllerName() == "result"){ $where = "search"; }
|
178 |
if (Mage::app()->getRequest()->getControllerName() == "advanced") { $where = "advanced"; }
|
179 |
return $where;
|
app/code/community/Strategery/Infinitescroll2/etc/config.xml
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
<config>
|
26 |
<modules>
|
27 |
<Strategery_Infinitescroll2>
|
28 |
-
<version>2.1.
|
29 |
</Strategery_Infinitescroll2>
|
30 |
</modules>
|
31 |
<global>
|
@@ -100,8 +100,14 @@
|
|
100 |
<enabled>1</enabled>
|
101 |
<debug>0</debug>
|
102 |
</general>
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
<cache>
|
104 |
-
<enabled>
|
105 |
</cache>
|
106 |
<selectors>
|
107 |
<content>div.category-products</content>
|
25 |
<config>
|
26 |
<modules>
|
27 |
<Strategery_Infinitescroll2>
|
28 |
+
<version>2.1.7</version>
|
29 |
</Strategery_Infinitescroll2>
|
30 |
</modules>
|
31 |
<global>
|
100 |
<enabled>1</enabled>
|
101 |
<debug>0</debug>
|
102 |
</general>
|
103 |
+
<instances>
|
104 |
+
<grid>1</grid>
|
105 |
+
<layer>1</layer>
|
106 |
+
<search>1</search>
|
107 |
+
<advanced>1</advanced>
|
108 |
+
</instances>
|
109 |
<cache>
|
110 |
+
<enabled>0</enabled>
|
111 |
</cache>
|
112 |
<selectors>
|
113 |
<content>div.category-products</content>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Strategery_InfiniteScroll2</name>
|
4 |
-
<version>2.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/afl-3.0.php">Academic Free License (AFL 3.0)</license>
|
7 |
<channel>community</channel>
|
@@ -31,9 +31,9 @@ NOTE: If you have another JS module that adds some custom behavior to the produc
|
|
31 |
<notes>Automatic load next page of current product list.
|
32 |
Support for Magento 1.3 up to 1.7.2</notes>
|
33 |
<authors><author><name>Damian Alberto Pastorini</name><user>auto-converted</user><email>damian.pastorini@usestrategery.com</email></author></authors>
|
34 |
-
<date>2013-
|
35 |
-
<time>
|
36 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Strategery_Infinitescroll2.xml" hash="8724cb82b6d47b9996610029e302e5d4"/></dir></target><target name="magecommunity"><dir name="Strategery"><dir name="Infinitescroll2"><dir name="Block"><file name="Config.php" hash="a587b8e8ed1ab41594bd0db6e320358b"/><file name="Flush.php" hash="d04139875ed190aec2431a7a83deaa21"/></dir><dir name="Helper"><file name="Data.php" hash="05de0d81682ca71b7d34e82e1ba2be60"/></dir><dir name="Model"><dir name="Catalog"><file name="Observer.php" hash="
|
37 |
<compatible/>
|
38 |
<dependencies/>
|
39 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Strategery_InfiniteScroll2</name>
|
4 |
+
<version>2.1.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/afl-3.0.php">Academic Free License (AFL 3.0)</license>
|
7 |
<channel>community</channel>
|
31 |
<notes>Automatic load next page of current product list.
|
32 |
Support for Magento 1.3 up to 1.7.2</notes>
|
33 |
<authors><author><name>Damian Alberto Pastorini</name><user>auto-converted</user><email>damian.pastorini@usestrategery.com</email></author></authors>
|
34 |
+
<date>2013-02-22</date>
|
35 |
+
<time>16:52:04</time>
|
36 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Strategery_Infinitescroll2.xml" hash="8724cb82b6d47b9996610029e302e5d4"/></dir></target><target name="magecommunity"><dir name="Strategery"><dir name="Infinitescroll2"><dir name="Block"><file name="Config.php" hash="a587b8e8ed1ab41594bd0db6e320358b"/><file name="Flush.php" hash="d04139875ed190aec2431a7a83deaa21"/></dir><dir name="Helper"><file name="Data.php" hash="05de0d81682ca71b7d34e82e1ba2be60"/></dir><dir name="Model"><dir name="Catalog"><file name="Observer.php" hash="cea567a4ec5bf69e9c7b3a217927e07d"/></dir></dir><dir name="controllers"><file name="CacheController.php" hash="1029bfa5495cfcf02cad62aa8a40ace3"/><file name="JsController.php" hash="3d97abe7a35b69bb70e6bb3ab1414f47"/></dir><dir name="etc"><file name="config.xml" hash="8fed346b0c54f2dc1d1df3eff6763491"/><file name="system.xml" hash="6c0034e3648fc34d730642876f376161"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="strategery-infinitescroll2.xml" hash="f8c0447f74f31b576d9e9cee89c99b8f"/></dir><dir name="template"><dir name="strategery"><dir name="infinitescroll2"><file name="js.phtml" hash="85f7a4b3265da1693c03ff97ac17094e"/><file name="toolbar.phtml" hash="d16882d540e2c23501f84a64e33c67e2"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="jquery"><dir name="infinitescroll2"><dir name="behaviors"><file name="infinitescroll-magento.js" hash="88a5a092c68911819302952e2128fe34"/></dir><file name="https.js" hash="be476c35fecb93b0a88625d8bc8a128b"/><file name="jquery.infinitescroll.js" hash="862b580a996c3f7a9daa1fcc1fae808d"/><file name="jquery.infinitescroll.min.js" hash="24131ba057a50077af7a97dfa1fcde30"/></dir><file name="jquery.latest.min.js" hash="7ffe78e450bedfa8878241c3abc5edba"/></dir></dir></target></contents>
|
37 |
<compatible/>
|
38 |
<dependencies/>
|
39 |
</package>
|