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

#   Custom sorting in product list module

##

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

Less More

- Posts: 25
- Thank you received: 1
-
-

12 years 9 months ago [\#140982](#140982) by [acwilan](/forum/user/26763-acwilan "View acwilan's Profile")  *[Custom sorting in product list module](/forum/31-development/865283-custom-sorting-in-product-list-module#140982 "Hi, I'm developing a Joomla template and incorporating hikashop templates also. I am working now on the product list module, that calls the view product/list. I did the pagination part, but I'm...")* was created by *[acwilan](/forum/user/26763-acwilan "View acwilan's Profile")*

Hi, I'm developing a Joomla template and incorporating hikashop templates also. I am working now on the product list module, that calls the view product/list. I did the pagination part, but I'm looking forward to include a sort header on the grid, but I don't know where is that part. Any insights?

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : x.x.x
-- Joomla version -- : 3.2
-- PHP version -- : 5.4
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

- [ ![hd4fc4b1.png](/forum/attachment/14870) ](/forum/attachment/14870 "hd4fc4b1.png") [ ](/forum/attachment/14870?download=1 "hd4fc4b1.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

12 years 9 months ago [\#141044](#141044) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom sorting in product list module](/forum/31-development/865283-custom-sorting-in-product-list-module#141044 "Hi, I'm developing a Joomla template and incorporating hikashop templates also. I am working now on the product list module, that calls the view product/list. I did the pagination part, but I'm...")*

Hi,

The sorting is a feature provided by the filter in HikaShop business.
Otherwise, you can do some custom sorting using a custom plugin.
The trigger "onBeforeProductListingLoad" let you modify the product listing request.
[ www.hikashop.com/support/support/documen...reProductListingLoad](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onBeforeProductListingLoad)

Using a getUserStateFromRequest you can read the value from a specific parameter and store the data in session and then, apply your custom sorting.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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