Orders do have a relation to OrderItem, which has a sku field which you
could use to look up the purchased variation/product,
https://github.com/stephenmcd/cartridge/blob/master/cartridge/shop/models.py#L665
.

The reason (as far as I know) that there isn't a direct relation to product
is that products could be deleted while orders should never be deleted.


On Tue, Jul 1, 2014 at 2:10 AM, 董健 <[email protected]> wrote:

> I want to add more function for "post orders".But i have questions below:
> 1. i want to add product image ,shipping information and so on.
> 2. i found that order has no relation with product in cartridge. i check
> code and try in admin.
> 3. i need a clue about implementing this function .
>
> thanks for help!
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to