Accessing Custom Product Attributes

8 views
Skip to first unread message

Jason Buckner

unread,
Aug 19, 2011, 7:48:11 PM8/19/11
to satchm...@googlegroups.com
I'm new to Satchmo and working on a project where people purchase credits that get applied to their account. My first thought was to give a product an option "credits", register for the order_success signal, and access the Products returned in the Order.

In order to access the attribute, I have to call product.productattribute_set.get(option__name='credits').value

Is this the recommended approach for this or would it be better to create a Custom Product Module that has a credits field?

Thanks,
Jason
Reply all
Reply to author
Forward
0 new messages