Jump to content

Custom order in manufacturer product list

Recommended Posts

Hello everyone, i want to sort product list by my own way in manfacturer page, they way I sorted in catefory page from backend.


lets clear the problem...


i have category called dell there have 5 products, dell1, dell2, dell3, dell4, dell5 etc. to sort them by my own in category view i select "position inside category" as default order, and its working fine in when clickng the category in front end. but when click manufacturer in fron end there product lists either assending or dessinding not my own order way. can anyone tell me how can i achive custome order in manufacturer page also.


Thanks in advance.

Share this post

Link to post
Share on other sites

Hi Ahmadsajid,


i have the same issue.

Is there any way you managed to fix this problem?


Thanks for any help!!

Share this post

Link to post
Share on other sites

Same issue seems broke, in manufacurer and supplier it put the product order only in the alphabetical order :(

Share this post

Link to post
Share on other sites

Hi everyone,


If you want to change this, you can modify (or override) ManufacturerController.php line 97 (in /controllers/front/ without override)


Replace $this->orderBy ...

$products = $this->manufacturer->getProducts($this->manufacturer->id, $this->context->language->id, (int)$this->p, (int)$this->n, $this->orderBy, $this->orderWay);
... by the order you want (examples : 'price', 'quantity', 'reference'). I guess you can change $this->orderway by 'desc' or 'asc' (didn't try yet)


So you have something like :

$products = $this->manufacturer->getProducts($this->manufacturer->id, $this->context->language->id, (int)$this->p, (int)$this->n, 'price' , $this->orderWay);
Unfortunately you can't use a specific order since prestashop backoffice doesn't allow you to do it (on Edited by vcopleutre (see edit history)

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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