Jump to content

Lister les produits hors stock à la fin


Recommended Posts

Bonjour Bertrand57,

 

Il est nécessaire pour toutes les demandes ajouter le tri par colonne quantité les tableaux produit. Par exemple, dans le catalogue: Catégorie-> getProducts:. '. ORDER BY p `Quantité` DESC' $ sql =. (Empty ($ orderBy) ',':!?'') (Isset (orderByPrefix $) $ OrderByPrefix.?. '.':'') '`' psql ($ orderBy) '`' psql (orderWay $) '.....

La même chose doit être faite dans le module de blocklayered, s’il est utilisé.

Càd, ajouter un tri ORDER BY p.`quantity` DESC

 

Cordialement

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  • 2 months later...

Bonjour, je me permet de remonter ce topic car je cherche la solution pour afficher les produits hors stock à la fin des catégories.

Je pense qu'il faut éditer le fichier /classes/Category.php, mais ensuite que faut-il faire ?

HELP please

Link to comment
Share on other sites

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