Re: Quick question: Product Variation Parents

28 views
Skip to first unread message

ma...@cuthemustard.com

unread,
May 28, 2013, 10:30:11 AM5/28/13
to satchmo-d...@googlegroups.com
I have never found any. this is not a very helpful answer, I know. Did you find anything since you posted this message here?

On Thursday, 26 July 2012 23:47:03 UTC-4, Adrian wrote:
I'm sick of writing this to get the parent:

if 'ProductVariation' in product.get_subtypes():
  parent = product.productvariation.parent.product

I am lazy. Any shortcuts in the codebase I have missed?
Reply all
Reply to author
Forward
0 new messages