Version Notes
Fixed minor edge-case bugs
Download this release
Release Info
Developer | Damian A. Pastorini |
Extension | Strategery_InfiniteScroll2 |
Version | 2.1.9 |
Comparing to | |
See all releases |
Code changes from version 2.1.8 to 2.1.9
app/code/community/Strategery/Infinitescroll2/Model/Catalog/Observer.php
CHANGED
@@ -30,7 +30,6 @@ class Strategery_Infinitescroll2_Model_Catalog_Observer
|
|
30 |
// helper:
|
31 |
$helper = Mage::helper('infinitescroll2');
|
32 |
// observer data:
|
33 |
-
$event = $observer->getEvent();
|
34 |
$cacheName = str_replace('/','_',Mage::app()->getRequest()->getRequestString());
|
35 |
if(Mage::registry('current_category'))
|
36 |
{
|
@@ -90,8 +89,8 @@ class Strategery_Infinitescroll2_Model_Catalog_Observer
|
|
90 |
Mage::getSingleton('checkout/session')->setData('pageLoaded',$pageByParam);
|
91 |
}
|
92 |
}
|
93 |
-
return $this;
|
94 |
}
|
|
|
95 |
}
|
96 |
|
97 |
public function restoreCollection($observer)
|
@@ -144,8 +143,8 @@ class Strategery_Infinitescroll2_Model_Catalog_Observer
|
|
144 |
Mage::getSingleton('checkout/session')->setData('nextPage',$tmpNext);
|
145 |
}
|
146 |
}
|
147 |
-
|
148 |
-
|
149 |
}
|
150 |
|
151 |
public function hardReset()
|
@@ -170,6 +169,7 @@ class Strategery_Infinitescroll2_Model_Catalog_Observer
|
|
170 |
|
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";
|
30 |
// helper:
|
31 |
$helper = Mage::helper('infinitescroll2');
|
32 |
// observer data:
|
|
|
33 |
$cacheName = str_replace('/','_',Mage::app()->getRequest()->getRequestString());
|
34 |
if(Mage::registry('current_category'))
|
35 |
{
|
89 |
Mage::getSingleton('checkout/session')->setData('pageLoaded',$pageByParam);
|
90 |
}
|
91 |
}
|
|
|
92 |
}
|
93 |
+
return $this;
|
94 |
}
|
95 |
|
96 |
public function restoreCollection($observer)
|
143 |
Mage::getSingleton('checkout/session')->setData('nextPage',$tmpNext);
|
144 |
}
|
145 |
}
|
146 |
+
}
|
147 |
+
return $this;
|
148 |
}
|
149 |
|
150 |
public function hardReset()
|
169 |
|
170 |
protected function _whereAreWe()
|
171 |
{
|
172 |
+
$where = 'grid';
|
173 |
if (Mage::registry('current_category')) { $where = "grid"; }
|
174 |
if(is_object(Mage::registry('current_category')) && Mage::registry('current_category')->getIsAnchor()) {
|
175 |
$where = "layer";
|
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>
|
25 |
<config>
|
26 |
<modules>
|
27 |
<Strategery_Infinitescroll2>
|
28 |
+
<version>2.1.7</version>
|
29 |
</Strategery_Infinitescroll2>
|
30 |
</modules>
|
31 |
<global>
|
app/design/frontend/default/default/template/strategery/infinitescroll2/js.phtml
CHANGED
@@ -23,7 +23,7 @@ if ($jsConfig = $cache->load("infinitescroll2_jsConfig")) {
|
|
23 |
} else {
|
24 |
$jsConfig = $helper->getJsConfig();
|
25 |
$configData = $helper->getConfigData('selectors/content');
|
26 |
-
$cache->save($
|
27 |
$cache->save($configData, "infinitescroll2_configData", array("infinitescroll2"));
|
28 |
}
|
29 |
?>
|
@@ -33,4 +33,4 @@ jQuery(document).ready(function ($) {
|
|
33 |
},
|
34 |
<?php echo Mage::getStoreConfig('infinitescroll2/callbacks/processed_callback')?>
|
35 |
);
|
36 |
-
});
|
23 |
} else {
|
24 |
$jsConfig = $helper->getJsConfig();
|
25 |
$configData = $helper->getConfigData('selectors/content');
|
26 |
+
$cache->save($jsConfig, "infinitescroll2_jsConfig", array("infinitescroll2"));
|
27 |
$cache->save($configData, "infinitescroll2_configData", array("infinitescroll2"));
|
28 |
}
|
29 |
?>
|
33 |
},
|
34 |
<?php echo Mage::getStoreConfig('infinitescroll2/callbacks/processed_callback')?>
|
35 |
);
|
36 |
+
});
|
package.xml
CHANGED
@@ -1,40 +1,40 @@
|
|
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>
|
8 |
<extends/>
|
9 |
<summary>Automatically load the next page of products by AJAX after the end of the list.</summary>
|
10 |
-
<description
|
11 |
-
This extension is for when the user reaches the end of the current product list, the next page is loaded automatically by AJAX after the end of the list.
|
12 |
-
Easy to install and configure, this module works 100% out of the box with Magento
|
13 |
-
Now you can get a more friendly UI by helping the user to save clicks and time
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
Fixed
|
34 |
-
<authors><author><name>
|
35 |
-
<date>2013-
|
36 |
-
<time>
|
37 |
-
<contents><target name="
|
38 |
<compatible/>
|
39 |
-
<dependencies><required><php><min>5.
|
40 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Strategery_InfiniteScroll2</name>
|
4 |
+
<version>2.1.9</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>
|
8 |
<extends/>
|
9 |
<summary>Automatically load the next page of products by AJAX after the end of the list.</summary>
|
10 |
+
<description><h2>Description:</h2>
|
11 |
+
<p>This extension is for when the user reaches the end of the current product list, the next page is loaded automatically by AJAX after the end of the list.
|
12 |
+
Easy to install and configure, this module works 100% out of the box with Magento's default theme, and also gives to you the posibility to configurate the custom selectors of your custom theme.
|
13 |
+
Now you can get a more friendly UI by helping the user to save clicks and time.</p>
|
14 |
+
<h2>Installation:</h2>
|
15 |
+
<ul>
|
16 |
+
<li>Download from Magento Connect.</li>
|
17 |
+
<li>Configure the selectos for your theme on System / Configuration seccion.</li>
|
18 |
+
<li>Refresh your Magento cache.</li>
|
19 |
+
<li>Scroll to infinity and beyond!</li>
|
20 |
+
</ul>
|
21 |
+
<h2>Configuration:</h2>
|
22 |
+
<p>If you have a different theme other than the default, you will need to copy the default theme files to your custom theme folder and configure the plugin by going to
|
23 |
+
System / Configuration / Catalog / Infinite Scroll.<br />
|
24 |
+
NOTE: If you have another JS module that adds some custom behavior to the product list, remember to use our callback function to add that behavior to the products loaded by InfiniteScroll.</p>
|
25 |
+
<h2>Demo:</h2>
|
26 |
+
<p><a href="http://demo.usestrategery.com/infinite-scroll">http://demo.usestrategery.com/infinite-scroll</a></p>
|
27 |
+
<p>Admin:<br />
|
28 |
+
<a href="http://demo.usestrategery.com/infinite-scroll/admin">http://demo.usestrategery.com/infinite-scroll/admin</a><br />
|
29 |
+
User: demo<br />
|
30 |
+
Password: demo1234</p>
|
31 |
+
<h2>Reporting Issues / Support</h2>
|
32 |
+
<p>To report issues or request support please visit our <a href="https://github.com/Strategery-Inc/Magento-InfiniteScroll/issues">Github repository.</a></p></description>
|
33 |
+
<notes>Fixed minor edge-case bugs</notes>
|
34 |
+
<authors><author><name>Strategery Inc</name><user>strategery</user><email>contact@usestrategery.com</email></author></authors>
|
35 |
+
<date>2013-09-18</date>
|
36 |
+
<time>16:16:31</time>
|
37 |
+
<contents><target name="magecommunity"><dir name="Strategery"><dir name="Infinitescroll2"><dir name="Block"><file name="Config.php" hash="427f0bd42480db0b93e04711c9f1c8fe"/><file name="Flush.php" hash="335bf80fc852b77d96e20aceb7ec97fe"/></dir><dir name="Helper"><file name="Data.php" hash="05de0d81682ca71b7d34e82e1ba2be60"/></dir><dir name="Model"><dir name="Catalog"><file name="Observer.php" hash="c405df5c8985688c1cc11a6b8e464381"/></dir></dir><dir name="controllers"><file name="CacheController.php" hash="8d15ceda1ccd223f22c34d85f9714684"/><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="f8382319866aad391ccaaa75d4a75d91"/><file name="toolbar.phtml" hash="d16882d540e2c23501f84a64e33c67e2"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Strategery_Infinitescroll2.xml" hash="8724cb82b6d47b9996610029e302e5d4"/></dir></target><target name="mageweb"><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>
|
38 |
<compatible/>
|
39 |
+
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
40 |
</package>
|