Jump to content

Recommended Posts

Hello

 

Is there a way to turn on so I could have a bestsellers bestsales sort order everywhere were the the sort by: dropdown menu is? now not even topsellers category is sorted according to that.

It must be something that I have wrong ore is it just normal to be like this?

 

If there is no way to make it from backoffice how much will it cost to make it in code as a module?

 

Best regards

Fredrik

  • Like 1
Link to comment
Share on other sites

if is the page bestsellers, edit the classes/productsale.php

 

you get this function

 

public static function getBestSales($id_lang, $page_number = 0, $nb_products = 10, $order_by = null, $order_way = null)

 

 

and can change the orderby or orderway

Link to comment
Share on other sites

  • 2 weeks later...

ok but thos that then only effect the bestsellers page? and what can I change the vallue to?

 

I am more interested to have a sortorder on the productpage were the drop down meny is you can choos to sort by price ore name a-z, z-a ore by stock there I would like to have also the option bestsellers (as presta addons page have)

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...