Remove / add attributes to the filter
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!
Remove / add attributes to the filter
Did not find how to remove the product attributes from the filter...
Re: Remove / add attributes to the filter
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...
Re: Remove / add attributes to the filter
I want to remove some of the attributes. In the settings nothing about it not found.
Re: Remove / add attributes to 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.
Re: Remove / add attributes to the filter
We've implemented a configuration option for you that allows you to specify the attribute types that should be displayed. You can also determine an alternative sort order of the attribute types in the catalog filter with this option. The basic usage is:
You need to update the TYPO3 and Core code to the latest version to get this working. Alternatively, you can wait until the next version of the TYPO3 plugin is released (might be in 3-4 weeks).
Code: Select all
plugin.tx_aimeos.settings.client.html.catalog.filter.attribute.types {
0 = length
1 = width
2 = color
# 3 = <attribute code>
}
Re: Remove / add attributes to the filter
Many thanks
Re: Remove / add attributes to the filter
Updated and experimented. For some reason stopped working filter by attributes. Plus, not all attributes are added.
Maybe in my setup that something was wrong, but before that it worked. I ask you to check.
Maybe in my setup that something was wrong, but before that it worked. I ask you to check.
Re: Remove / add attributes to the filter
In HTML code is added to the attribute. But it is not always true. For instance, the attributes code "in stock", then it will be in the code:
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 ...
P.S. I see on the demo site filter does not work: http://typo3.demo.aimeos.org/elegance/
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>
P.S. I see on the demo site filter does not work: http://typo3.demo.aimeos.org/elegance/
Last edited by aksenovaa on 15 Apr 2015, 19:42, edited 1 time in total.
Re: Remove / add attributes to the filter
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 ...
Re: Remove / add attributes to the filter
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.