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

#   Fron-end user order filtering

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 7 months ago [\#305299](#305299) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[Fron-end user order filtering](/forum/25-install-update/897225-fron-end-user-order-filtering#305299 "Hi,  With Hikashop 4.0.3 we have received great update for fron-end user order filtering. It was really welcome and makes much easier to find orders....  Now question. This part of the code returns number of orders based on current filter:  But is there a way to get order numbers excluding order range filter? Basically i would like to hide order range filter if there is no orders at ALL based on order status. So if new user has no created orders it will be hidden, as example....  Thanks")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

Hi,

With Hikashop 4.0.3 we have received great update for fron-end user order filtering. It was really welcome and makes much easier to find orders....

Now question. This part of the code returns number of orders based on current filter:
Code:

if(is_string($filterObj)) echo $filterObj;

But is there a way to get order numbers excluding order range filter?
Basically i would like to hide order range filter if there is no orders at ALL based on order status. So if new user has no created orders it will be hidden, as example....

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5NzIyNS1mcm9uLWVuZC11c2VyLW9yZGVyLWZpbHRlcmluZz90bXBsPW1hcmtkb3du) 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: 86564
- Thank you received: 14311
-
-

7 years 7 months ago [\#305302](#305302) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fron-end user order filtering](/forum/25-install-update/897225-fron-end-user-order-filtering#305302 "Hi,  With Hikashop 4.0.3 we have received great update for fron-end user order filtering. It was really welcome and makes much easier to find orders....  Now question. This part of the code returns number of orders based on current filter:  But is there a way to get order numbers excluding order range filter? Basically i would like to hide order range filter if there is no orders at ALL based on order status. So if new user has no created orders it will be hidden, as example....  Thanks")*

Hi,

That would require an extra MySQL query and some PHP with it. It's not impossible if you know MySQL/PHP. The you can just add your code in the orders/listing.php view file.

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

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

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