Hello,
where i can disable empty categories ?
I don't want to show it in search, if i don't have ads in this category
For example :
https://i.ibb.co/nPD7nWw/Screen-Shot...t-09-37-52.png
Same about subcategory.
using: auto_nova
Regards,
Alex
Printable View
Hello,
where i can disable empty categories ?
I don't want to show it in search, if i don't have ads in this category
For example :
https://i.ibb.co/nPD7nWw/Screen-Shot...t-09-37-52.png
Same about subcategory.
using: auto_nova
Regards,
Alex
Hello,
Go to ftp > templates > your template > components > cascading-category > _cascading-category.js > find this.loadOptions
replace code below:
with:Code:Only registered members can view the code.
Code:Only registered members can view the code.
Done, but still have empty categories in search selects
https://i.ibb.co/FbzsWjG/Screen-Shot...t-15-38-51.png
Up, still have this problem
Hello Flynax team,
I found setting, but it does not work, or i did not understanding that option ?
https://i.ibb.co/3Wz0Gs1/Screen-Shot...t-09-34-09.png
Hello,
As I mentioned in your ticket this option hides empty categories only in category boxes
making it for dropdowns in search forms will require a customization because empty categories can be used for saving alerts
Thanks, Rudi.
Now i understanding you.
Up, still actual
Go to templates > your template > tpl > blocks > refine_search.tpl > remove or comment out the code at the bottom like this:
Code:Only registered members can view the code.
Hey Rudi,
Thanks,
Now i want disable empty categories
In file /includes/classes/rlCategories.class.php
Class :
public function getCategories($parent = 0, $type = false, $include_sections = false, $include_subcats = false){
.....
I found and comment line :
#if ($type['Cat_hide_empty'] && REALM != 'admin') {
$addwhere = "AND `Count` > 0";
#}
Now i have empty categories,
Problem remaining with empty subcategories :
if ($type['Cat_show_subcats'] && $include_subcats) {
foreach ($categories as $key => $value) {
#if ($type['Cat_hide_empty'] && REALM != 'admin') {
$addwhere = "AND `Count` > 0";
#} //
Rudi, Victor ?