path : app\design\frontend\theme\default\template\catalogsearch\result.phtml
app\design\frontend\theme\default\template\catalogsearch\result.phtml
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internalpath : app\design\frontend\theme\default\template\catalogsearch\result.phtml
app\design\frontend\theme\default\template\catalogsearch\result.phtml
path : app\design\frontend\theme\default\template\catalogsearch\result.phtml
app\design\frontend\theme\default\template\catalogsearch\result.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> Place the below code at the end of
path : app\design\frontend\theme\default\template\catalogsearch\result.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>