Jump to content

Custom controller getproducts sort by position


Recommended Posts

        $products_partial = Product::getProducts($this->context->language->id, 0, 0, 'id_product', 'asc');
        $products = Product::getProductsProperties($this->context->language->id, $products_partial);
        $this->addColorsToProductList($products);

Hello, i'm having a hard time figuring out how to make the sort by position work in a custom controller that list all products. i can do sort by id, date, name,... but not the position which is linked to the category table. Anyone have an idea how to achieve this ?

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