[Skip to main content](#vessel-content)

#   admin listing produit order by id desc

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

4 years 2 months ago -  4 years 2 months ago [\#344865](#344865) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[admin listing produit order by id desc](/forum/5-support-en-francais-french-support-/905032-admin-listing-produit-order-by-id-desc#344865 "-- HikaShop version -- : 4.6.1  Bonjour  dans le listing des produits de l'admin comment trier par id desc par defaut ? pour toujours avoir le dernier en haut  j'ai essaye de donner une valeur par defaut en haut du listing.php  $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value = 'b.product&#95;id'; $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir = 'desc';  mais ca ne marche pas  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

-- HikaShop version -- : 4.6.1

Bonjour

dans le listing des produits de l'admin comment trier par id desc par defaut ? pour toujours avoir le dernier en haut

j'ai essaye de donner une valeur par defaut en haut du listing.php

$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value = 'b.product_id';
$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir = 'desc';

mais ca ne marche pas

merci

Last edit: 4 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA1MDMyLWFkbWluLWxpc3RpbmctcHJvZHVpdC1vcmRlci1ieS1pZC1kZXNjP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

4 years 2 months ago [\#344879](#344879) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[admin listing produit order by id desc](/forum/5-support-en-francais-french-support-/905032-admin-listing-produit-order-by-id-desc#344879 "-- HikaShop version -- : 4.6.1  Bonjour  dans le listing des produits de l'admin comment trier par id desc par defaut ? pour toujours avoir le dernier en haut  j'ai essaye de donner une valeur par defaut en haut du listing.php  $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value = 'b.product&#95;id'; $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir = 'desc';  mais ca ne marche pas  merci")*

Bonjour,

Le chargement des produits est fait dans le view.html.php avant l'appel à la vue. Donc vos modifications arrivent trop tard dans le flux de génération de la page.

Pour faire cela, allez dans votre PHPMyAdmin et ouvrez la table hikashop_config.
Ajoutez une première entrée avec le namekey default_order_column_on_product_listing et la valeur b.product_id et une second entrée avec le namekey default_order_direction_on_product_listing et la valeur desc
Ensuite, déconnectez-vous du backend et reconnectez-vous pour vider le cache votre session utilisateur et cela devrait automatiquement utiliser ce nouveau tri par défaut.

The following user(s) said Thank You: [erickb](/forum/user/4069-erickb "View erickb's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA1MDMyLWFkbWluLWxpc3RpbmctcHJvZHVpdC1vcmRlci1ieS1pZC1kZXNjP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2705
- Thank you received: 74
-
-

4 years 2 months ago [\#344887](#344887) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[admin listing produit order by id desc](/forum/5-support-en-francais-french-support-/905032-admin-listing-produit-order-by-id-desc#344887 "-- HikaShop version -- : 4.6.1  Bonjour  dans le listing des produits de l'admin comment trier par id desc par defaut ? pour toujours avoir le dernier en haut  j'ai essaye de donner une valeur par defaut en haut du listing.php  $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value = 'b.product&#95;id'; $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir = 'desc';  mais ca ne marche pas  merci")*

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA1MDMyLWFkbWluLWxpc3RpbmctcHJvZHVpdC1vcmRlci1ieS1pZC1kZXNjP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.098 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
