One page search result using ajaxremove category filter on catalog searchMagento quick search results displaying all on one pageImproving Magento search results (either via extension or free)Catalog Search: If only one result, show product view page insted of list viewPeriodical Update Using AjaxMagento 1.9.1.0 catalog search pagination not workingHow to limit Search Result to 1Magento2 - Number of search resultsMagento : Convert Ajax Request To Normal Page CallMagento 2 how to Load custom collection data using Ajax
Repeated! Factorials!
Is it okay to use different fingers every time while playing a song on keyboard? Is it considered a bad practice?
Formal mathematical definition of renormalization group flow
Did Logical Positivism fail because it simply denied human emotion?
Does a humanoid possessed by a ghost register as undead to a paladin's Divine Sense?
How to check a file was encrypted (really & correctly)
Why do rocket engines use nitrogen actuators to operate the fuel/oxidiser valves instead of electric servos?
“The Fourier transform cannot measure two phases at the same frequency.” Why not?
Need reasons why a satellite network would not work
What are the limitations of the Hendersson-Hasselbalch equation?
Suppressing analytical evaluation in NDSolve
Is the first page of a novel really that important?
Should I use (1,3) or (1-3) or (4)?
Is a switch from R to Python worth it?
Make lens aperture in Tikz
How do people drown while wearing a life jacket?
Based on what criteria do you add/not add icons to labels within a toolbar?
Is there a general term for the items in a directory?
Why is it to say 'paucis post diebus'?
How does Rust's 128-bit integer `i128` work on a 64-bit system?
Is there a way to say "double + any number" in German?
How long should I wait to plug in my refrigerator after unplugging it?
How does Geralt transport his swords?
How does the 'Brain in a Vat Argument' differ from the 'Simulation Argument'?
One page search result using ajax
remove category filter on catalog searchMagento quick search results displaying all on one pageImproving Magento search results (either via extension or free)Catalog Search: If only one result, show product view page insted of list viewPeriodical Update Using AjaxMagento 1.9.1.0 catalog search pagination not workingHow to limit Search Result to 1Magento2 - Number of search resultsMagento : Convert Ajax Request To Normal Page CallMagento 2 how to Load custom collection data using Ajax
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm using Magento 1.9 C.E, and I want to remove pagination from catalog search result page. I want all the results to be coming on the same page itself with ajax. On click of a load more or something, the next page result will load that is will get appended to this result page. Can anyone give any idea on how to achieve this one?
magento-1.9 ajax catalogsearch
add a comment |
I'm using Magento 1.9 C.E, and I want to remove pagination from catalog search result page. I want all the results to be coming on the same page itself with ajax. On click of a load more or something, the next page result will load that is will get appended to this result page. Can anyone give any idea on how to achieve this one?
magento-1.9 ajax catalogsearch
add a comment |
I'm using Magento 1.9 C.E, and I want to remove pagination from catalog search result page. I want all the results to be coming on the same page itself with ajax. On click of a load more or something, the next page result will load that is will get appended to this result page. Can anyone give any idea on how to achieve this one?
magento-1.9 ajax catalogsearch
I'm using Magento 1.9 C.E, and I want to remove pagination from catalog search result page. I want all the results to be coming on the same page itself with ajax. On click of a load more or something, the next page result will load that is will get appended to this result page. Can anyone give any idea on how to achieve this one?
magento-1.9 ajax catalogsearch
magento-1.9 ajax catalogsearch
edited Oct 20 '16 at 6:04
Nikunj Vadariya
3,0331 gold badge9 silver badges25 bronze badges
3,0331 gold badge9 silver badges25 bronze badges
asked Oct 20 '16 at 5:19
Abhishek Dhanraj ShahdeoAbhishek Dhanraj Shahdeo
2923 gold badges7 silver badges23 bronze badges
2923 gold badges7 silver badges23 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Place the below code at the end of
path : appdesignfrontendthemedefaulttemplatecatalogsearchresult.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>
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f141740%2fone-page-search-result-using-ajax%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Place the below code at the end of
path : appdesignfrontendthemedefaulttemplatecatalogsearchresult.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>
add a comment |
Place the below code at the end of
path : appdesignfrontendthemedefaulttemplatecatalogsearchresult.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>
add a comment |
Place the below code at the end of
path : appdesignfrontendthemedefaulttemplatecatalogsearchresult.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>
Place the below code at the end of
path : appdesignfrontendthemedefaulttemplatecatalogsearchresult.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>
answered Oct 20 '16 at 7:22
Harendra PrajapatiHarendra Prajapati
1759 bronze badges
1759 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f141740%2fone-page-search-result-using-ajax%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown