Remove / add attributes to the filter
Posted: 10 Apr 2015, 10:36
Did not find how to remove the product attributes from the filter...
Cloud native, ultra fast e-commerce framework
https://aimeos.org/help/
Do you want to remove the attribute filter completely or remove one type of attributes only?aksenovaa wrote:Did not find how to remove the product attributes from the filter...
The filter attributes are automatically generated from the attributes assigned to the products. Currently, there don't exist a configuration option to hide one or more attribute types. Maybe we can implement one if you need it.aksenovaa wrote:I want to remove some of the attributes. In the settings nothing about it not found.
Code: Select all
plugin.tx_aimeos.settings.client.html.catalog.filter.attribute.types {
0 = length
1 = width
2 = color
# 3 = <attribute code>
}
Code: Select all
<fieldset class="attr-in stock">
<legend>наличие</legend>
<ul class="attr-list" style="display: none;"><!--
--><li class="attr-item" data-id="57">
<input class="attr-item" id="attr-57" name="ai[f_attrid][57]" type="checkbox" value="Нет в наличии. Срок изготовления 10-14 дней.">
<label class="attr-name" for="attr-57"><!--
--><div class="media-list"><!--
--></div>
<span>Нет в наличии. Срок изготовления 10-14 дней.</span><!--
--></label>
<span class="attr-count">11</span></li><!--
--><li class="attr-item" data-id="56">
<input class="attr-item" id="attr-56" name="ai[f_attrid][56]" type="checkbox" value="в наличии">
<label class="attr-name" for="attr-56"><!--
--><div class="media-list"><!--
--></div>
<span>в наличии</span><!--
--></label>
<span class="attr-count">2</span></li><!--
--></ul>
</fieldset>
Yes, that's a limitation due to the HTML attributes. You shouldn't use white spaces in codes and you should prefer alphanumerical characters for them to be save. I don't know if all Cyrillic characters will work but in theory, a wide range of characters is allowed.aksenovaa wrote: That is, added "attr-in stock", but should be: "attr-in-stock", that is - you need to replace the spaces with hyphens. In addition, I am afraid to assume what would happen if the code I will Cyrillic ...
This should be in the documentation and in the tooltip when you type "Attribute type code"aimeos wrote:Yes, that's a limitation due to the HTML attributes. You shouldn't use white spaces in codes and you should prefer alphanumerical characters for them to be save. I don't know if all Cyrillic characters will work but in theory, a wide range of characters is allowed.