The filter sometimes disappears
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
The filter sometimes disappears
php version 8.1
Windows 10
Aimeos version 2022.10.2.
Hello!
The filter sometimes disappears. (it doesn't appear when I click on it)
The javascript works well.
<div class="attribute-lists" style="display: block;">
But it doesn't appear.
Sometimes works well, I don't know why. I have no javascript console error.
HTML included filter data.
I think, <fieldset class="attr-sets" keeps display: none;
/* Enabled by JS */
.catalog-filter-attribute .attribute-lists fieldset.attr-sets,
.catalog-filter-attribute .attribute-lists fieldset.attr-sets .attr-list {
display: none;
}
Windows 10
Aimeos version 2022.10.2.
Hello!
The filter sometimes disappears. (it doesn't appear when I click on it)
The javascript works well.
<div class="attribute-lists" style="display: block;">
But it doesn't appear.
Sometimes works well, I don't know why. I have no javascript console error.
HTML included filter data.
I think, <fieldset class="attr-sets" keeps display: none;
/* Enabled by JS */
.catalog-filter-attribute .attribute-lists fieldset.attr-sets,
.catalog-filter-attribute .attribute-lists fieldset.attr-sets .attr-list {
display: none;
}
Re: The filter sometimes disappears
The fieldsets for the attribute types are automatically hidden if there are no products matching one of their attributes.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: The filter sometimes disappears
I understand, but I have products for filter.
I can read in the HTML code.
For example: Years
But the Filter sometimes show, sometimes keep display:none.
Other thing I don't understand
I have product from year 1971.
But it's not in the filter, gives a result when I click on it.
I ran it:
php artisan aimeos:clear;
php artisan cache:clear;
I can read in the HTML code.
For example: Years
But the Filter sometimes show, sometimes keep display:none.
Other thing I don't understand
I have product from year 1971.
But it's not in the filter, gives a result when I click on it.
I ran it:
php artisan aimeos:clear;
php artisan cache:clear;
Re: The filter sometimes disappears
Do you have a lot of products (> 10,000)?
In that case, there's a (configurable) limit of how much products are counted for the filter.
In that case, there's a (configurable) limit of how much products are counted for the filter.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: The filter sometimes disappears
I have 8000 records.
Re: The filter sometimes disappears
For the first problem.
in the catalog-filter.js #213
/**
* Shows the attribute filter if products are available for
*/
onShowAttributes() {
// sometimes empty
console.log($(".catalog-filter-attribute .attribute-lists .attr-count"));
$(".catalog-filter-attribute .attribute-lists .attr-count").each((idx, el) => {
$(el).closest("fieldset.attr-sets").show();
});
},
in the catalog-filter.js #213
/**
* Shows the attribute filter if products are available for
*/
onShowAttributes() {
// sometimes empty
console.log($(".catalog-filter-attribute .attribute-lists .attr-count"));
$(".catalog-filter-attribute .attribute-lists .attr-count").each((idx, el) => {
$(el).closest("fieldset.attr-sets").show();
});
},
Re: The filter sometimes disappears
Try to increase the aggregation limit e.g. to 25000:
https://aimeos.org/docs/2022.x/config/m ... ger/#limit
https://aimeos.org/docs/2022.x/config/m ... ger/#limit
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: The filter sometimes disappears
Thank You, It works fine at 50000.aimeos wrote: ↑14 Dec 2022, 08:59 Try to increase the aggregation limit e.g. to 25000:
https://aimeos.org/docs/2022.x/config/m ... ger/#limit
Re: The filter sometimes disappears
Please take in mind that counting that many rows will slow down response time!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star