Strategery-Inc / Magento-InfiniteScroll

Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 1.9.x and earlier.
http://demo.usestrategery.com/infinite-scroll/infinitescroll.html
Academic Free License v3.0
121 stars 60 forks source link

Extension not load more products of second page in magento 1.9.1 #103

Closed devangi-azilen closed 9 years ago

devangi-azilen commented 9 years ago

Hi, I am using theme sns_tornto with magento. after installing this extension it shows loading circle but not load products of second page its shows me console error as below. Error: Syntax error, unrecognized expression: {"status":"SUCCESS","viewpanel":"<div class=\"block block-layered-nav\">\n <div class=\"block-title\">\n Shop By<\/span>\n <\/div>\n <div class=\"block-content\">\n \n <dl id=\"narrow-by-list\">\n

Price<\/dt>\n
\n \t\t\t\t\t\n\t\t\t\t<div class=\"price\">\n\t\t\t\t\t\n\t\t\t\t<div class=\"text-box\"><div class=\"inner\"><div class=\"price-from\">\n\t\t\t\t\t$<\/span> <input type=\"text\" name=\"min\" id=\"minPrice\" class=\"priceTextBox\" value=\"12\"\/><\/div><div class=\"price-separator\">-<\/div><div class=\"price-to\">$<\/span> <input type=\"text\" name=\"max\" id=\"maxPrice\" class=\"priceTextBox\" value=\"23\"\/><\/div>\n\t\t\t\t\t<\/div><input type=\"button\" value=\"Filter\" name=\"go\" class=\"go gfont\"\/>\n\t\t\t\t\t<input type=\"hidden\" id=\"amount\" readonly=\"readonly\" style=\"background:none; border:none;\" value=\"$12 - $23\" \/>\n\n\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"range-wrap\"><div id=\"slider-range\"><\/div><\/div>\n\n\t\t\t\t<\/div>\n\t\t\t<script type=\"text\/javascript\">\n\t\t\t\tjQuery(function($) {\n\t\t\t\t\tvar newMinPrice, newMaxPrice, url, temp;\n\t\t\t\t\tvar categoryMinPrice = 12;\n\t\t\t\t\tvar categoryMaxPrice = 23;\n\t\t\t\t\tfunction isNumber(n) {\n\t\t\t\t\t return !isNaN(parseFloat(n)) && isFinite(n);\n\t\t\t\t\t}\n\n\t\t\t\t\t$(\".priceTextBox\").focus(function(){\n\t\t\t\t\t\ttemp = $(this).val();\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\".priceTextBox\").keyup(function(){\n\t\t\t\t\t\tvar value = $(this).val();\n\t\t\t\t\t\tif(!isNumber(value)){\n\t\t\t\t\t\t\t$(this).val(temp);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\".priceTextBox\").keypress(function(e){\n\t\t\t\t\t\tif(e.keyCode == 13){\n\t\t\t\t\t\t\tvar value = $(this).val();\n\t\t\t\t\t\t\tif(value < categoryMinPrice || value > categoryMaxPrice){\n\t\t\t\t\t\t\t\t$(this).val(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\turl = getUrl($(\"#minPrice\").val(), $(\"#maxPrice\").val());\n\t\t\t\t\t\t\tajaxFilter(url);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\".priceTextBox\").blur(function(){\n\t\t\t\t\t\tvar value = $(this).val();\n\t\t\t\t\t\tif(value < categoryMinPrice || value > categoryMaxPrice){\n\t\t\t\t\t\t\t$(this).val(temp);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\".go\").click(function(){\n\t\t\t\t\t\turl = getUrl($(\"#minPrice\").val(), $(\"#maxPrice\").val());\n\t\t\t\t\t\tajaxFilter(url);\n\t\t\t\t\t});\n\n\t\t\t\t\t$( \"#slider-range\" ).slider({\n\t\t\t\t\t\trange: true,\n\t\t\t\t\t\tmin: categoryMinPrice,\n\t\t\t\t\t\tmax: categoryMaxPrice,\n\t\t\t\t\t\tvalues: [ 12, 23 ],\n\t\t\t\t\t\tslide: function( event, ui ) {\n\t\t\t\t\t\t\tnewMinPrice = ui.values[0];\n\t\t\t\t\t\t\tnewMaxPrice = ui.values[1];\n\n\t\t\t\t\t\t\t$( \"#amount\" ).val( \"$\" + newMinPrice + \" - $\" + newMaxPrice );\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/\/ Update TextBox Price\n\t\t\t\t\t\t\t$(\"#minPrice\").val(newMinPrice); \n\t\t\t\t\t\t\t$(\"#maxPrice\").val(newMaxPrice);\n\n\t\t\t\t\t\t},stop: function( event, ui ) {\n\n\t\t\t\t\t\t\t\/\/ Current Min and Max Price\n\t\t\t\t\t\t\tvar newMinPrice = ui.values[0];\n\t\t\t\t\t\t\tvar newMaxPrice = ui.values[1];\n\n\t\t\t\t\t\t\t\/\/ Update Text Price\n\t\t\t\t\t\t\t$( \"#amount\" ).val( \"$\"+newMinPrice+\" - $\"+newMaxPrice );\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/\/ Update TextBox Price\n\t\t\t\t\t\t\t$(\"#minPrice\").val(newMinPrice); \n\t\t\t\t\t\t\t$(\"#maxPrice\").val(newMaxPrice);\n\n\t\t\t\t\t\t\turl = getUrl(newMinPrice,newMaxPrice);\n\t\t\t\t\t\t\tif(newMinPrice != 12 && newMaxPrice != 23){\n\t\t\t\t\t\t\t\tclearTimeout(timer);\n\t\t\t\t\t\t\t\t\/\/window.location= url;\n\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\ttimer = setTimeout(function(){\n\t\t\t\t\t\t\t\t\t\tajaxFilter(url);\n\t\t\t\t\t\t\t\t\t}, 200);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tfunction getUrl(newMinPrice, newMaxPrice){\n\t\t\t\t\t\treturn \"http:\/\/localhost\/magento\/index.php\/test1.html\"+\"?min=\"+newMinPrice+\"&max=\"+newMaxPrice+\"&p=2\";\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t<\/script>\n\t\t \t\t\t\t<\/dd>\n <\/dl>\n <script type=\"text\/javascript\">decorateDataList('narrow-by-list')<\/script>\n <\/div>\n<\/div>\n","productlist":"<div class=\"category-products\">\n <div class=\"toolbar clearfix\">\n <div class=\"toolbar-inner\">\n <p class=\"view-mode\">\n
janmyszkier commented 9 years ago

@devangithakore : can you please give us the URL you have it on?

janmyszkier commented 9 years ago

is there a way we can set up a chrome remote desktop session for me to have a look? or can you send the theme files to us for debug?

gsomoza commented 9 years ago

There's absolutely no way our extension can be generating that kind of response.

What you're experiencing is almost certainly this issue: https://github.com/Strategery-Inc/Magento-InfiniteScroll/wiki/Nothing-Happens,-Although-the-%22Loading-Next-Page%22-Message-is-Visible

I recommend you identify the extension that's aggressively modifying AJAX responses and disable it. We can re-open this ticket if something else comes to light.

devangi-azilen commented 9 years ago

Hi, Can you help to if i will give you remote access to you on teamviewer10.

Thanks, Devangi.

On 6/25/2015 1:27 PM, janmyszkier wrote:

is there a way we can set up a chrome remote desktop session for me to have a look? or can you send the theme files to us for debug?

— Reply to this email directly or view it on GitHub https://github.com/Strategery-Inc/Magento-InfiniteScroll/issues/103#issuecomment-115153740.

gsomoza commented 9 years ago

Hi @devangithakore,

Since this is a free extension we can't provide free support for issues that are not caused by our extension. I'm afraid that includes remote assistance. If you'd like to hire one of our developers for an hour or two in order to help you fix this issue please email us at: contact (at) strategery (dot) io

Sorry I had to jump in last-moment to say this, but Jan is a new addition to our team so he didn't know this yet.

devangi-azilen commented 9 years ago

Hi, ok.Can you just tell me is it working for magento1.9.1?it would be great help for me if you can say. Thanks, Devangi.

On 6/25/2015 2:03 PM, Gabriel Somoza wrote:

Hi @devangithakore https://github.com/devangithakore,

Since this is a free extension we can't provide free support for issues that are not caused by our extension. I'm afraid that includes remote assistance. If you'd like to hire one of our developers for an hour or two in order to help you fix this issue please email us at: contact (at) strategery (dot) io

Sorry I had to jump in last-moment to say this, but Jan is a new addition to our team so he didn't know this yet.

— Reply to this email directly or view it on GitHub https://github.com/Strategery-Inc/Magento-InfiniteScroll/issues/103#issuecomment-115162102.

gsomoza commented 9 years ago

Hi Devangi,

Yes, our extension has been confirmed to work with Magento 1.9.1 in dozens of other stores.

All best, Gabriel