Skip to main content

path : app\design\frontend\theme\default\temp‌​late\catalogsearch\r‌​esult.phtml

app\design\frontend\theme\default\temp‌​late\catalogsearch\r‌​esult.phtml

path : app\design\frontend\theme\default\temp‌​late\catalogsearch\r‌​esult.phtml

app\design\frontend\theme\default\temp‌​late\catalogsearch\r‌​esult.phtml

<script> jQuery(function () { jQuery(body).bind('scroll', function () { if (jQuery(this).scrollTop() + $jQuery(this).innerHeight() + 200 >= $jQuery(this)[0].scrollHeight) { if (jQuery.active <= 0) { jQuery(".ajax-loader").show(); var nextPageUrl = jQuery('.pages .i-next').attr('href'); if (nextPageUrl == undefined) { jQuery(".ajax-loader").hide(); } else { jQuery.ajax({ url: nextPageUrl, success: function (msg) { jQuery(".ajax-loader").hide(); //refresh the page class element jQuery('.pages').html(jQuery(msg).find('.pages').html()); //append the list to the existing product list jQuery('.category-products').append(jQuery(msg).find('.category-products').html()); //check if there are more products to be loaded or not return false; } }); } } } }); }); </script> 
<script> jQuery(function () { jQuery(body).bind('scroll', function () { if (jQuery(this).scrollTop() + $(this).innerHeight() + 200 >= $(this)[0].scrollHeight) { if (jQuery.active <= 0) { jQuery(".ajax-loader").show(); var nextPageUrl = jQuery('.pages .i-next').attr('href'); if (nextPageUrl == undefined) { jQuery(".ajax-loader").hide(); } else { jQuery.ajax({ url: nextPageUrl, success: function (msg) { jQuery(".ajax-loader").hide(); //refresh the page class element jQuery('.pages').html(jQuery(msg).find('.pages').html()); //append the list to the existing product list jQuery('.category-products').append(jQuery(msg).find('.category-products').html()); //check if there are more products to be loaded or not return false; } }); } } } }); }); </script> 
<script> jQuery(function () { jQuery(body).bind('scroll', function () { if (jQuery(this).scrollTop() + jQuery(this).innerHeight() + 200 >= jQuery(this)[0].scrollHeight) { if (jQuery.active <= 0) { jQuery(".ajax-loader").show(); var nextPageUrl = jQuery('.pages .i-next').attr('href'); if (nextPageUrl == undefined) { jQuery(".ajax-loader").hide(); } else { jQuery.ajax({ url: nextPageUrl, success: function (msg) { jQuery(".ajax-loader").hide(); //refresh the page class element jQuery('.pages').html(jQuery(msg).find('.pages').html()); //append the list to the existing product list jQuery('.category-products').append(jQuery(msg).find('.category-products').html()); //check if there are more products to be loaded or not return false; } }); } } } }); }); </script> 
Source Link
Mage Rider
  • 311
  • 2
  • 10

Place the below code at the end of

path : app\design\frontend\theme\default\temp‌​late\catalogsearch\r‌​esult.phtml

<script> jQuery(function () { jQuery(body).bind('scroll', function () { if (jQuery(this).scrollTop() + $(this).innerHeight() + 200 >= $(this)[0].scrollHeight) { if (jQuery.active <= 0) { jQuery(".ajax-loader").show(); var nextPageUrl = jQuery('.pages .i-next').attr('href'); if (nextPageUrl == undefined) { jQuery(".ajax-loader").hide(); } else { jQuery.ajax({ url: nextPageUrl, success: function (msg) { jQuery(".ajax-loader").hide(); //refresh the page class element jQuery('.pages').html(jQuery(msg).find('.pages').html()); //append the list to the existing product list jQuery('.category-products').append(jQuery(msg).find('.category-products').html()); //check if there are more products to be loaded or not return false; } }); } } } }); }); </script>