Groups
Groups
Sign in
Groups
Groups
Satchmo users
Conversations
About
Send feedback
Help
Getting the parent product of a product variant
8 views
Skip to first unread message
Thomas
unread,
Apr 4, 2012, 12:47:04 PM
4/4/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to satchm...@googlegroups.com
Hi,
Is there a (standard) way to find out what the parent of a product variant is? e.g. the parent of "large red hat" would be "hat".
Many thanks,
Thomas
Thomas
unread,
Apr 5, 2012, 3:50:03 AM
4/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to satchm...@googlegroups.com
p = product.get_subtype_with_attr('parent', 'product')
parent_product = p.parent.product
Reply all
Reply to author
Forward
0 new messages