Jump to content

[Solved] product list BO


overbags
 Share

Recommended Posts

  • 9 months later...

Hi,

In AdminOrdersController,

For sorting by reference set

$this->_orderBy = 'reference';

and for nr. of articles

$this->_default_pagination = 300;

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

thank you very much for the answer. in the meantime he managed to modify the AdminController.php file in class -> controller to modify default_pagination now I have also corrected _orderBy and everything works. do you know the difference between AdminController.php and AdminOrdersController?

Share this post


Link to post
Share on other sites

If you change in AdminController, the changes will take effect for all classes that extend this class (and of course, are not overwritten). If you change in AdminOrdersController, the changes will only take effect on the orders page.

Share this post


Link to post
Share on other sites

do I define them within the first function?

    public function __construct()
    {
    $this->_orderBy = 'reference';
    $this->_default_pagination = 300;

        $this->bootstrap = true;
        $this->table = 'product';
        $this->className = 'Product';
ecc. ecc.

Share this post


Link to post
Share on other sites

  • overbags changed the title to [Solved] product list BO

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More