Hi,

I wouldn't do it with tags.

The first reason: they use generic relations so it can be sometimes more complex to make things work the same as with "normal" relations. But the main reason for me to avoid using tags in your case would be, that it would be very difficult to group your attributes, like Material: gold, silver, .... Colors: red, green, ... , etc. And lets say use something like a filter-box or something based on this goups.

I think a more flexible and still very easy approach would be to use a model for each attribute-group, like:

class Color(models.Model):
    product = models.ManyToManyField(Product, blank=True, null=True)
    name = models.CharField(_("Name"), max_length=30)
    slug = models.SlugField(...)

So this way you can filter your products on a selected color like:

Product.objects.filter(color__slug==myslug)

You can integrate this Attributes on the admin Product-page adding an inline to the object

For integrating this new attributes on the admin's product page, look at my answer (username = andzep) on stackoverflow:

http://stackoverflow.com/questions/4920358/filter-products-by-attribute

regards
Andrea


On 17.09.2012 16:44, satchmo-users@googlegroups.com wrote:
Today's Topic Summary

Group: http://groups.google.com/group/satchmo-users/topics

  * Satchmo and Django-tagging <#group_thread_0> [1 Update]

Satchmo and Django-tagging <http://groups.google.com/group/satchmo-users/t/7a996e7db020800e>

    Josue Balandrano <xird...@gmail.com> Sep 16 12:16PM -0700

    Hi, I'm building a webstore. I am going to sell Jewelry here, so
    the thing
    is that I have my main categories like "earrings, necklaces" and
    so on. But
    I need some attributes like "Material, color, stone, size". But
    these can't
    be Options because not every product is available in all colors or
    all
    sizes and I don't fell comfortable with attributes because I need
    a way to
    list all this attributes and be able to filter the result as per
    attribute
    selected.
    So I was thinking about installing Django-tagging, it seemes this
    is more
    or less what I need. The only problem is if I am going to be able
    to have a
    tree like distribution for my tagging? and do I have to modify the
    product
    models in order to implement the tagging?
    Thank you in advance.

You received this message because you are subscribed to the Google Group satchmo-users.
You can post via email <mailto:satchmo-users@googlegroups.com>.
To unsubscribe from this group, send <mailto:satchmo-users+unsubscr...@googlegroups.com> an empty message. For more options, visit <http://groups.google.com/group/satchmo-users/topics> this group.

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

--

----
*Metamorfosys GbR*
Guttenthau 6
95469 Speichersdorf
T: +49 9648 913 594
F: +49 9648 913 643
i...@metamorfosys.de <mailto:adlhue...@metamorfosys.de> www.metamorfosys.de <http://www.metamorfosys.de>
Geschäftsführung: Andrea de la Huerta u. Dominik Klüter
Gerichtsstand: Ansbach m. Außenst.

-------------------------------------------------------------------------
-------------------------------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.
-------------------------------------------------------------------------
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material  in
this e-mail is strictly forbidden.
-------------------------------------------------------------------------
-------------------------------------------------------------------------

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

Reply via email to