Strategery_InfiniteScroll2 - Version 2.1.9

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
- return $this;
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.8</version>
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($jsData, "infinitescroll2_jsConfig", array("infinitescroll2"));
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.8</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>Description:&#xD;
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.&#xD;
12
- Easy to install and configure, this module works 100% out of the box with Magento&amp;apos;s default theme, and also gives to you the posibility to configurate the custom selectors of your custom theme.&#xD;
13
- Now you can get a more friendly UI by helping the user to save clicks and time.&#xD;
14
- &#xD;
15
- Demo:&#xD;
16
- http://demo.usestrategery.com/infinite-scroll&#xD;
17
- Admin:&#xD;
18
- http://demo.usestrategery.com/infinite-scroll/admin&#xD;
19
- User: demo&#xD;
20
- Password: demo1234&#xD;
21
- &#xD;
22
- Installation:&#xD;
23
- Download from Magento Connect.&#xD;
24
- Configure the selectos for your theme on System / Configuration seccion.&#xD;
25
- Refresh your Magento cache.&#xD;
26
- Scroll to infinity and beyond!&#xD;
27
- &#xD;
28
- Configuration:&#xD;
29
- 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 System / Configuration / Catalog / Infinite Scroll.&#xD;
30
- 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.</description>
31
- <notes>Automatic load next page of current product list.&#xD;
32
- Support for Magento 1.3 up to 1.7.2.&#xD;
33
- Fixed Observer.php</notes>
34
- <authors><author><name>Damian Alberto Pastorini</name><user>strategery</user><email>damian.pastorini@usestrategery.com</email></author><author><name>Miguel Balparda</name><user>strategery</user><email>miguel.balparda@usestrategery.om</email></author></authors>
35
- <date>2013-03-15</date>
36
- <time>12:17:27</time>
37
- <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="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="4c2a1a0910ed1b2ac0d79c603d54b336"/></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="2ea61b70b0426aec58d39f58839ca56f"/><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>
38
  <compatible/>
39
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
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>&lt;h2&gt;Description:&lt;/h2&gt;&#xD;
11
+ &lt;p&gt;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.&#xD;
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.&#xD;
13
+ Now you can get a more friendly UI by helping the user to save clicks and time.&lt;/p&gt;&#xD;
14
+ &lt;h2&gt;Installation:&lt;/h2&gt;&#xD;
15
+ &lt;ul&gt;&#xD;
16
+ &lt;li&gt;Download from Magento Connect.&lt;/li&gt;&#xD;
17
+ &lt;li&gt;Configure the selectos for your theme on System / Configuration seccion.&lt;/li&gt;&#xD;
18
+ &lt;li&gt;Refresh your Magento cache.&lt;/li&gt;&#xD;
19
+ &lt;li&gt;Scroll to infinity and beyond!&lt;/li&gt;&#xD;
20
+ &lt;/ul&gt;&#xD;
21
+ &lt;h2&gt;Configuration:&lt;/h2&gt;&#xD;
22
+ &lt;p&gt;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&#xD;
23
+ System / Configuration / Catalog / Infinite Scroll.&lt;br /&gt;&#xD;
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.&lt;/p&gt;&#xD;
25
+ &lt;h2&gt;Demo:&lt;/h2&gt;&#xD;
26
+ &lt;p&gt;&lt;a href="http://demo.usestrategery.com/infinite-scroll"&gt;http://demo.usestrategery.com/infinite-scroll&lt;/a&gt;&lt;/p&gt;&#xD;
27
+ &lt;p&gt;Admin:&lt;br /&gt;&#xD;
28
+ &lt;a href="http://demo.usestrategery.com/infinite-scroll/admin"&gt;http://demo.usestrategery.com/infinite-scroll/admin&lt;/a&gt;&lt;br /&gt;&#xD;
29
+ User: demo&lt;br /&gt;&#xD;
30
+ Password: demo1234&lt;/p&gt;&#xD;
31
+ &lt;h2&gt;Reporting Issues / Support&lt;/h2&gt;&#xD;
32
+ &lt;p&gt;To report issues or request support please visit our &lt;a href="https://github.com/Strategery-Inc/Magento-InfiniteScroll/issues"&gt;Github repository.&lt;/a&gt;&lt;/p&gt;</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>