1
Example of the first Box:
<h5>Filtrar por Marcas</h5>
<select name="filtrar_marca">
{% for category in categories %}
<option value="{{ category.name }}">{{ category.name }}</option>
{% endfor %}
</select>
Exemplo de resultado: Filtrar por Marcas BMW HONDA
Then I need two more functions, where after selecting the first filter it displays the next box with the subcategories of these models and last after selecting the model it displays the last box with the years.
<h5>Filtrar por Modelos</h5>
<select name="filtrar_modelo">
<option value=""></option>
</select>
<h5>Filtrar por Ano</h5>
<select name="filtrar_ano">
<option value=""></option>
</select>
Reference http://dev.tray.com.br/hc/pt-br/articles/206166517-category
Yeah, that was the logic. Now it takes a doubt, as it would be for after selecting the 4 steps appear an OK button picking these variables and playing on a link?
– Rafael Meirim
@Rafaelmeirim I edited the post, see if now meets what you need. I generated a link putting all the variables in the address of the same.
– Leandro
Perfect, I’ll give a studied in the code and adapt the variables. Thanks!
– Rafael Meirim
Quiet, then only accept the answer to the question already stand as answered.
– Leandro