May 13, 2014 at 01:45 #1829
Support please see attached and advice?May 13, 2014 at 01:46 #1831
What file and code need to change to include sub category listing in search filter? Help….May 13, 2014 at 11:35 #1833
dear Support, or how to make the search filter like the chain menu such that we can filter by selecting type of Category, then follow by the Sub-Category will appear example, if I choose to filter Car, then Ferrari, Honda will appear in the search form, please let us know?May 13, 2014 at 13:13 #1834
It is possible to make category selection in search to list subcategories along with main categories. Making them chain select requires one more line of code. All these changes are direct customization to main script so you need to keep track of them and repeat if you update your script later.
/sys/app/models/Widget.phpfile line 856 inside
$return_custom .= '<p>' . Category::selectBox($selected_category->id, 'category_id', Category::STATUS_ENABLED, true, __('All categories'), 1) . '</p>';
$return_custom .= '<p>' . Category::selectBox($selected_category->id, 'category_id', Category::STATUS_ENABLED, true, __('All categories')) . '</p>'; $return_custom .= Category::selectBoxChain($selected_category->id, 'category_id', Category::STATUS_ENABLED, __('Select category'));
thanks alot Support, i’m using version 1.5 i made above change but the dropbox now missing see below, please let me know what’s wrong? and how to fix it? this feature very important appreciate your help and advice…..May 13, 2014 at 18:35 #1851
Support from the existing code, I just remove the ,1 and is working now… if I copy and paste your 1st code cannot work, and as for the 2nd code chain menu filter still not working appreciate you can recheck the code and please let me know? urgent becos want to launch the site asap, Thanks alot and to hear from you again for the 2nd code………May 13, 2014 at 18:39 #1852
Support, I’m using $return and it works for the 1st code, your code earlier has $return_custom, and as for the 2nd code still no chain menu filter, appreciate you can advice on 2nd code…
————-1st code working using $return
$return .= ‘<p>’ . Category::selectBox($selected_category->id, ‘category_id’, Category::STATUS_ENABLED, true, __(‘All categories’)) . ‘</p>’;
————2nd code not workingMay 13, 2014 at 19:05 #1853
dear Support, solved already i use below code, thanks alot for your wonderful support 🙂
. Category::selectBox($selected_category->id, ‘category_id’, Category::STATUS_ENABLED, true, __(‘Select category’), 0, true)
. Category::selectBoxChain($selected_category->id, ‘category_id’, Category::STATUS_ENABLED, __(‘Select category’))
. ‘</p>’;May 13, 2014 at 19:13 #1854
Support 1 more step further, after say we select Car -> Honda, how to make it such that all the searchable field in honda appear also? so that one can filter base on Car -> Honda -> price | age | mileage, etc? after selecting Car and Honda, want to make the searchable field for car appear also, what file and code to change?
Please let us know?May 15, 2014 at 07:31 #1870
Unfortunately loading custom fields with ajax when selecting category on search form is not coded into the script.May 15, 2014 at 18:01 #1876
Classifieds Business Newsletter
Get discounts and tips about growing your classifieds website.