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

#   Ordre de tri dans « Gérer les variantes »

##

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 10 months ago [\#139098](#139098) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  *[Ordre de tri dans « Gérer les variantes »](/forum/5-support-en-francais-french-support-/864871-ordre-de-tri-dans-gerer-les-variantes#139098 "J'édite un produit dans le backend. Je lui ajoute deux différentes caractéristiques. Je clique sur « Gérer les variantes ».  Comment décider de l'ordre de tri de ce listing de variants? Elles se présentent toujours dans un ordre que je ne comprends pas et qui ne répond pas à mes besoins.  Je voudrais classer les variantes par code, id ou par la valeur de chacune des caractéristiques.  Merci  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1")* was created by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")*

J'édite un produit dans le backend. Je lui ajoute deux différentes caractéristiques. Je clique sur « Gérer les variantes ».

[ ![hc193d0c.JPG](/forum/attachment/14596) ](/forum/attachment/14596 "hc193d0c.JPG")

Comment décider de l'ordre de tri de ce listing de variants? Elles se présentent toujours dans un ordre que je ne comprends pas et qui ne répond pas à mes besoins.

Je voudrais classer les variantes par code, id ou par la valeur de chacune des caractéristiques.

Merci

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1

- [ ![hc193d0c.JPG](/forum/attachment/14596) ](/forum/attachment/14596 "hc193d0c.JPG") [ ](/forum/attachment/14596?download=1 "hc193d0c.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY0ODcxLW9yZHJlLWRlLXRyaS1kYW5zLWdlcmVyLWxlcy12YXJpYW50ZXM/dG1wbD1tYXJrZG93bg==) 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: 14326
-
-

12 years 10 months ago [\#139122](#139122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ordre de tri dans « Gérer les variantes »](/forum/5-support-en-francais-french-support-/864871-ordre-de-tri-dans-gerer-les-variantes#139122 "J'édite un produit dans le backend. Je lui ajoute deux différentes caractéristiques. Je clique sur « Gérer les variantes ».  Comment décider de l'ordre de tri de ce listing de variants? Elles se présentent toujours dans un ordre que je ne comprends pas et qui ne répond pas à mes besoins.  Je voudrais classer les variantes par code, id ou par la valeur de chacune des caractéristiques.  Merci  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1")*

Hi,

There is no particular order at the moment on that listing.
You can add one by change the line: Code:

$query = 'SELECT a.* FROM '.hikashop_table('variant').' AS a WHERE '.implode(' AND ',$filters);

to something like that: Code:

$query = 'SELECT a.* FROM '.hikashop_table('variant').' AS a WHERE '.implode(' AND ',$filters).' ORDER BY a.variant_product_id ASC';

in the file administrator/components/com_hikashop/views/products/view.html.php

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY0ODcxLW9yZHJlLWRlLXRyaS1kYW5zLWdlcmVyLWxlcy12YXJpYW50ZXM/dG1wbD1tYXJrZG93bg==) 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.052 seconds

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