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

#   Product Sorting

##

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

Less More

- Posts: 101
- Thank you received: 4
-
-
-

1 month 1 week ago [\#373516](#373516) by [alainz](/forum/user/44013-alainz "View alainz's Profile")  *[Product Sorting](/forum/26-product-category-display/910849-product-sorting#373516 "Hi,  We have a list of products with different origins. How can we sort the product based on the origins?  I try to create custom field (sorting&#95;display&#95;number) and add numbers and try sorting based on that custom field but it not working.  Below are the config on the menu.  Here is the Hikashop product list with the sorting number.  But the result not display as the sorting number (  wip-ayam-au.cloudaccess.host/index.php/products/meal-pastes )")* was created by *[alainz](/forum/user/44013-alainz "View alainz's Profile")*

Hi,

We have a list of products with different origins. How can we sort the product based on the origins?

I try to create custom field (sorting_display_number) and add numbers and try sorting based on that custom field but it not working.

Below are the config on the menu.

[ ![setting.png](/forum/attachment/63456) ](/forum/attachment/63456 "setting.png")

Here is the Hikashop product list with the sorting number.

[ ![sorting number.png](/forum/attachment/63457) ](/forum/attachment/63457 "...ing number.png")

But the result not display as the sorting number ([ wip-ayam-au.cloudaccess.host/index.php/products/meal-pastes](https://wip-ayam-au.cloudaccess.host/index.php/products/meal-pastes))

- [ ![setting.png](/forum/attachment/63456) ](/forum/attachment/63456 "setting.png") [ ](/forum/attachment/63456?download=1 "setting.png")
- [ ![sorting number.png](/forum/attachment/63457) ](/forum/attachment/63457 "...ing number.png") [ ](/forum/attachment/63457?download=1 "...ing number.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MTA4NDktcHJvZHVjdC1zb3J0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

1 month 1 week ago [\#373520](#373520) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Sorting](/forum/26-product-category-display/910849-product-sorting#373520 "Hi,  We have a list of products with different origins. How can we sort the product based on the origins?  I try to create custom field (sorting&#95;display&#95;number) and add numbers and try sorting based on that custom field but it not working.  Below are the config on the menu.  Here is the Hikashop product list with the sorting number.  But the result not display as the sorting number (  wip-ayam-au.cloudaccess.host/index.php/products/meal-pastes )")*

Hi,

The simplest way is to not use a custom field for this at all. Set the "Ordering field" of your menu item back to "Ordering", then in Products, select the Meal Pastes category in the explorer on the left and drag the products (or change the numbers in the "Order" column) into the order you want. The frontend listing will then follow that order, and that's the setting your page is currently using anyway: the order on your frontend page is exactly the order of the "Order" column in your backend screenshot, so it seems the menu item you edited is not the one displaying that page (the page is rendered by the menu item with the id 157), or the change wasn't saved.

Note also that if you keep the custom field, its values are stored as text, so they are sorted alphabetically: 1, 10, 11, ... 19, 2, 20, 21, 3, ... To get a correct numeric order with a custom field, you can either enter the numbers with the same number of digits (01, 02, ... 21), or change the type of the sorting_display_number column of the hikashop_product table from LONGTEXT to INT in PHPMyAdmin (make a backup of the table first).

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MTA4NDktcHJvZHVjdC1zb3J0aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.086 seconds

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