On Thu, Feb 19, 2009 at 12:21 AM, geoff_the_fish
<[email protected]> wrote:
>
> Does anybody have any advice about how to deal with product options eg
> small, medium, large or red,yellow, blue?
>
> Do I need to make a new content object for each option eg
> Product A blue
> Product A red
> Product A yellow
>
> Or is there a nicer way to do this?

On Fri, Feb 20, 2009 at 6:33 AM, Lucie Lejard <[email protected]> wrote:

>
> But you can probably create a system that will add the correct price
> to your cart depending on what options where selected.
>

This sounds like the best way to go to me. Create a content object that
encapsulates the possible options, then create a custom LineItemFactory for
the object that will take these options in to account when creating the
entry in the shopping cart. Some sample code that may help is available at:

http://code.google.com/p/getpaid/source/browse/sandbox/dixond/getpaid.purchasablecredits/trunk/getpaid/purchasablecredits/adapters.py


Hope this helps,
Darryl Dixon
Winterhouse Consulting Ltd
http://www.winterhouseconsulting.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"getpaid-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to