Jump to content

Paging error on admin


Recommended Posts

Hi,
I've searched for this and haven't found anything.

I've uploaded a few hundred products using import to a new category.
When I select this category on the admin page it displays the first 50 products of it on the bottom. However if I click on the paging button to go to the next page it takes me to the second page of the "Home" category.

Can you confirm this and if yes, then fix it?
Thanks,
Peter

Link to comment
Share on other sites

Hi! I have noticed similar problem in Orders Filter - if I set any filter (and click filter) the site does not work take it (page reloads but the filter is not applied).

I wonder if it is not something related.

v1.2.5 - Back Office, Orders, List filter (paging, dates, payment methods, names, order number).

Link to comment
Share on other sites

  • 2 months later...

$currentIndex is not properly set up.

add after

        global $currentIndex;



in the display method of AdminProducts class :

        $id_category = intval(Tools::getValue('id_category'));
       if ($id_category)
           $currentIndex .= '&id;_category='.$id_category.'&token;='.$this->token;



This is a quick fix, somone with deeper understanding of internals should look into it. The code :

public function displayListHeader($token = NULL)
   {
       global $currentIndex;

       $id_category = intval(Tools::getValue('id_category'));
       if ($id_category)
           $currentIndex .= '&id;_category='.$id_category.'&token;='.$this->token;
   }



in AdminCatalog.php, that should fix the url does not get executed, and I think this problem is somewhere in the core.

Where do I report bugs ?

Link to comment
Share on other sites

  • 2 months later...

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...