webbusiness23 Posted December 3, 2009 Share Posted December 3, 2009 Hi,on one of my categories i have 500+ products.When i go to the BO and i select that category, i can view only the first page of products.If i click on the small arrow to go to the next page (the green thing from the below picture), i get redirected to the main page of the catalog (with all the categories listed) instead of being redirected to the next page with the products from that category.What is wrong and how can i solve it? Link to comment Share on other sites More sharing options...
jhnstcks Posted December 4, 2009 Share Posted December 4, 2009 I have found a workaround for this problem but it involves displaying every product in the category. If you edit the file classes/admintab.php about line 90 you will see the pagination settings for admin. Increase the values so they are higher than your total products in the categoy, close your browser then clear your cache and login again. Link to comment Share on other sites More sharing options...
pokemon3d Posted December 4, 2009 Share Posted December 4, 2009 Hello,Solution is here :http://www.prestashop.com/forums/viewthread/28222/It is in French, but basically, you need to edit the file AdminCatalog.php in folder admin/tabs/replacing the display() function by the display() function you will see into the thread.Regards Link to comment Share on other sites More sharing options...
webbusiness23 Posted December 4, 2009 Author Share Posted December 4, 2009 I have found a workaround for this problem but it involves displaying every product in the category. If you edit the file classes/admintab.php about line 90 you will see the pagination settings for admin. Increase the values so they are higher than your total products in the categoy, close your browser then clear your cache and login again. This is indeed a solution i have thought about before you wrote it here, but i considered it to be a not-so-good one. I tried replacing the dispplay() function from the French forum and it worked perfectly.Thank you for your answers! Link to comment Share on other sites More sharing options...
sm3004 Posted February 3, 2010 Share Posted February 3, 2010 This is an issue in PrestaShop 1.2.5 as well and the fix on the French site does not work. When changing the code and then clicking on catalog, the entire catalog section is completely missing...Anyone know how to fix this? Link to comment Share on other sites More sharing options...
migash Posted February 4, 2010 Share Posted February 4, 2010 Please try this file. I have just confirmed that it works for my installation of 1.2.5. AdminCatalog.php Link to comment Share on other sites More sharing options...
sm3004 Posted February 5, 2010 Share Posted February 5, 2010 Confirmed working! Thanks bud! Please try this file. I have just confirmed that it works for my installation of 1.2.5. Link to comment Share on other sites More sharing options...
m1k3 Posted March 31, 2010 Share Posted March 31, 2010 Confirmed to work in my 1.2.5.0 installation, thank you very much! Please try this file. I have just confirmed that it works for my installation of 1.2.5. Link to comment Share on other sites More sharing options...
belladict Posted April 20, 2010 Share Posted April 20, 2010 Thanks! It worked for me! Link to comment Share on other sites More sharing options...
Paulo Ens Posted April 22, 2010 Share Posted April 22, 2010 Worked for me too!!! Link to comment Share on other sites More sharing options...
Mr.E. Posted May 19, 2010 Share Posted May 19, 2010 SOLVED! But I can;t delete this message. I have very smiliar problem when I click on the small arrow.I get Error 503 Service UnavailableService Unavailable[spam-filter] Meditation:XID: 536316535 I also tried that file Admincatlog.php file form the french post but doesn't help.I'm running version 1.2.5 but I was havind same problem before with the previous version. Link to comment Share on other sites More sharing options...
Guest Posted July 18, 2010 Share Posted July 18, 2010 I'm currently using the 1.3 version - the latest version - the display fucntion doesnt seem to work for me =\ Link to comment Share on other sites More sharing options...
Mr.E. Posted July 19, 2010 Share Posted July 19, 2010 I have very smiliar problem when I click on the small arrow.I get Error 503 Service UnavailableService Unavailable[spam-filter] Meditation:XID: 536316535 I also tried that file Admincatlog.php file form the french post but doesn't help.I'm running version 1.2.5 but I was havind same problem before with the previous version. Excuse me, my problem has been solved for long time, it was a server problem. I couldn't remove my original message but after all it was suitable for this topic. Link to comment Share on other sites More sharing options...
hurray Posted August 29, 2010 Share Posted August 29, 2010 I have copied the file. So what it basically does is list all the items on one page. There is no arrow to go to the next page. For the moment it is fine for me but what happens when I start to have more than 300 items under one category? Right now 300 is set as the maximum item to display on one page. Link to comment Share on other sites More sharing options...
jave.web Posted June 5, 2016 Share Posted June 5, 2016 Problem remains in PS 1.6 (1.6.1.5) anyone having a solution? Or maybe even source/cause of thsi problem?Thanks... Link to comment Share on other sites More sharing options...
jave.web Posted June 5, 2016 Share Posted June 5, 2016 (edited) HOTFIX (NOT A PROPER FIX!) for PS1.6 In YOUR_PRESTASHOP_INSTALLATION/adminYOUR_RANDOM/themes/default/template/helpers/list/list_header.tpl Find {block name="startForm"} and do following: 1) Change form method="post" to form method="GET" 2) After begining form tag - e.g. after <form method="GET" action="{$action|escape:'html':'UTF-8'}" class="form-horizontal clearfix" id="form-{$list_id}"> add following code: {if !empty($smarty.get.id_cms_category)} <input type="hidden" name="id_cms_category" value="{$smarty.get.id_cms_category|@intval}"> {/if} {if !empty($name_controller)} {assign var="controllerName" value=$name_controller} {elseif !empty($smarty.get.controller)} {assign var="controllerName" value=$smarty.get.controller} {/if} {if !empty($controllerName)} <input type="hidden" name="controller" value="{$controllerName|escape:'html':'UTF-8'}"> {/if} Explanation: In admin of PS there are some thing done quite strangely - the final url is in GET parameters form, though navigation is done as a POST form submit sent through a controller which may strip out some info, this way all needed information is added to the form and changing it's method to GET it goes directly to the request without unnecessary redirecting... Edited June 5, 2016 by jave.web (see edit history) 1 Link to comment Share on other sites More sharing options...
Rudra123 Posted October 15, 2016 Share Posted October 15, 2016 Hello jave.web, I'm using the version 1.6.1.5 and having pagination issue in product listing in BO. I tried your code but the code doesn't work for me...I put code {if !empty($smarty.get.id_cms_category)} <input type="hidden" name="id_cms_category" value="{$smarty.get.id_cms_category|@intval}"> {/if} {if !empty($name_controller)} {assign var="controllerName" value=$name_controller} {elseif !empty($smarty.get.controller)} {assign var="controllerName" value=$smarty.get.controller} {/if} {if !empty($controllerName)} <input type="hidden" name="controller" value="{$controllerName|escape:'html':'UTF-8'}">{/if} immediately after <form method="GET" action="{$action|escape:'html':'UTF-8'}" class="form-horizontal clearfix" id="form-{$list_id}"> Can you help with this? Thanks... Link to comment Share on other sites More sharing options...
jave.web Posted October 15, 2016 Share Posted October 15, 2016 Rudra123 What file in what path did you edit? Were you editing the form after "{block name="startForm"}"? What exactly does not work for you? Link to comment Share on other sites More sharing options...
Rudra123 Posted October 17, 2016 Share Posted October 17, 2016 In YOUR_PRESTASHOP_INSTALLATION/adminYOUR_RANDOM/themes/default/template/helpers/list/list_header.tpl Find {block name="startForm"} and do following: 1) Change form method="post" to form method="GET" 2) After begining form tag - e.g. after <form method="GET" action="{$action|escape:'html':'UTF-8'}" class="form-horizontal clearfix" id="form-{$list_id}"> add following code: {if !empty($smarty.get.id_cms_category)} <input type="hidden" name="id_cms_category" value="{$smarty.get.id_cms_category|@intval}"> {/if} {if !empty($name_controller)} {assign var="controllerName" value=$name_controller} {elseif !empty($smarty.get.controller)} {assign var="controllerName" value=$smarty.get.controller} {/if} {if !empty($controllerName)} <input type="hidden" name="controller" value="{$controllerName|escape:'html':'UTF-8'}">{/if} I tried the same you suggest... But the pagination doesn't work... I have problem with pagination in my backoffice everywhere...when i go to 2nd page, the error occurs saying too many redirects.! Thanks for the response jave.web Link to comment Share on other sites More sharing options...
jave.web Posted October 19, 2016 Share Posted October 19, 2016 In YOUR_PRESTASHOP_INSTALLATION/adminYOUR_RANDOM/themes/default/template/helpers/list/list_header.tpl Find {block name="startForm"} and do following: 1) Change form method="post" to form method="GET" 2) After begining form tag - e.g. after <form method="GET" action="{$action|escape:'html':'UTF-8'}" class="form-horizontal clearfix" id="form-{$list_id}"> add following code: {if !empty($smarty.get.id_cms_category)} <input type="hidden" name="id_cms_category" value="{$smarty.get.id_cms_category|@intval}"> {/if} {if !empty($name_controller)} {assign var="controllerName" value=$name_controller} {elseif !empty($smarty.get.controller)} {assign var="controllerName" value=$smarty.get.controller} {/if} {if !empty($controllerName)} <input type="hidden" name="controller" value="{$controllerName|escape:'html':'UTF-8'}"> {/if} I tried the same you suggest... But the pagination doesn't work... I have problem with pagination in my backoffice everywhere...when i go to 2nd page, the error occurs saying too many redirects.! Thanks for the response jave.web Try to clear cache and re-save your URL settings. If that does not help, try to update your shop to the lastest PS version... Otherwise I can't help you sry :-) Link to comment Share on other sites More sharing options...
kaushikcsd Posted October 26, 2017 Share Posted October 26, 2017 We have been trying to resolve issues from the last couple of days but unable to fix. PS VERSION 1.6X The back-office pagination not working in Pretashop 1.6x, We have only 500 products listed but I never saw this kind of issues before Please guide and help me what could be the issues. We have checked with the server and installed another PS on the same server but that pagination is working. So please guide me as its bit urgent Thank you in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now