Skip to main content

Backend search filters

More
15 years 3 months ago #18278 by jameswadsworth
Business 1.5.1. Tested on categories and products. If you have pagination activated, go to any page other than the first page and search for a category name or product name/code in the filter no results are displayed. The $pageInfo->limit->value and $pageInfo->limit->start are not reset when you perform a search.

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #18282 by nicolas
Replied by nicolas on topic Re: Backend search filters
Could you try to add the code:
if(JRequest::getVar('search')){
$app->setUserState( $this->paramBase.'.limitstart',0);
}
after the line:
$pageInfo->search = $app->getUserStateFromRequest( $this->paramBase.".search", 'search', '', 'string' );

in the files administrator/components/com_hikashop/views/product/view.html.php and administrator/components/com_hikashop/views/category/view.html.php

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago - 15 years 3 months ago #18294 by jameswadsworth
Did you test it? For us it has not made any difference. We have found a different solution that also permits pagination of the filtered results when necessary. I'll include it in the manufacturer files I'm sending you today. It is the view.html.php for the backend.
Last edit: 15 years 3 months ago by jameswadsworth.

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #18304 by nicolas
Replied by nicolas on topic Re: Backend search filters
I tested it and it made it work properly for me.
I looked at the view.html.php file in your package but didn't see any difference with the 1.5.1 release file (I've used winmerge to compare the files).

Please Log in or Create an account to join the conversation.

More
15 years 2 weeks ago #25642 by jameswadsworth
Hi Nicolas,

I know that you are working on filters at the moment, so may be this suggestion has already been included. It would great if you find products by categories. So in the product listing you search for a category name and it lists the products in that category or sub elements

Thanks, James

Please Log in or Create an account to join the conversation.

More
15 years 2 weeks ago #25643 by nicolas
Replied by nicolas on topic Re: Backend search filters
That will be something possible on the front end with the filters. However, on the back end, we won't change the listing of products, at least for now.

Please Log in or Create an account to join the conversation.

Time to create page: 0.167 seconds
Powered by Kunena Forum