Jump to content

( SOLVED ) Back Office pagination problem


Recommended Posts

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?

15437_O2I5AfVYf1EEnVEtT222_t

Link to comment
Share on other sites

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

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

  • 1 month later...
  • 1 month later...
  • 3 weeks later...
  • 4 weeks later...

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 Unavailable
Service 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

  • 1 month later...
I have very smiliar problem when I click on the small arrow.

I get


Error 503 Service Unavailable
Service 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

  • 1 month later...

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

  • 5 years later...

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 by jave.web (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...

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

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

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

  • 1 year later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...