Finally figured it out:

options = current_product.options.values('name', 
'price_change').order_by('option_group')


On Friday, March 22, 2013 7:25:09 AM UTC+2, Thomas wrote:
>
> Hi,
>
> I am stumped by what would seem to be really trivial..
>
> Let us say I sell Hats in two colours (Black, White) and in two sizes 
> (Medium, Large). If someone purchased a Large Black Hat, then the 'child' 
> product is hat_black_large, and the product id is say 3.
>
> My question is: given the product id of 3 (or the product of 
> hat_black_large), how do I derive the selected options 'Large' and 'Black' ?
>
> I am able to derive the 'parent' product id (eg it would be '1' in this 
> case), but I just can't figure out what method to use to get the options ..
>
> Many thanks,
> Thomas
>

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


Reply via email to