I have some products in categories marked as inactive (not shown in
the shop) and in categories marked as active. If I select one of these
products, in some case, the inactive category appears in the bread
crumb navigation bar.

Is there a possibility to show only active categories in the bread
crumb navigation bar?

Temporary I solved the problem by editing the product.html:

{% if product.category.all.0.is_active %}
        {% for name, url in product.category.all.0.get_url_name %}
        <li><a href="{{ url }}">{{ name }}</a></li>
        {% endfor %}
{% else %}
        {% for name, url in product.category.all.1.get_url_name %}
        <li><a href="{{ url }}">{{ name }}</a></li>
        {% endfor %}
{% endif %}

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to