Hi,

I recently started using related items and I couldn't find anything
set up in Satchmo that would display them. For anyone else interested
in this, here is what I did.

Simply add this to the base_product.html template before the footer
block


{% if product.related_items.all %}
<p>Products related to {{ product.name }}</p>
    {% for related_item in product.related_items.all %}
        <p><a
href="{{ related_item.get_absolute_url }}">{{ related_item.name }} -
{{ related_item.main_category }}</a></p>
    {% endfor %}
{% else %}
<p>{{ product.name }} has no related products</p>
{% endif %}


Obviously, everyone will want to use related items in a different way.
Is anyone a big user of related items? What do you do? For people who
aren't using them yet, this is a (very) basic way to include them in
your store.

-Steve
--~--~---------~--~----~------------~-------~--~----~
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