Fron-end user order filtering
7 years 6 months ago #305299
by kyratn
Fron-end user order filtering was created by kyratn
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
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 or Create an account to join the conversation.
7 years 6 months ago #305302
by nicolas
Replied by nicolas on topic Fron-end user order filtering
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.
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
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds