Details map to the CartItemDetails model. There can be any number of
CartItemDetails objects for each CartItem instance. The signal is sent
at every invocation of cart.add() so if you connect a simple listener
to satchmo_cart_details_query, you should be able to do something
simple like:
def simple_listener(sender, details, **kwargs):
details.append({'name':"test detail", 'value':"testing",
'sort_order':0, 'price_change':1.00})
Basically, that should add a test detail to each item added to the
cart with a dollar increase in price.
On May 15, 2009, at 5:50 PM, Christian <[email protected]>
wrote:
>
> Bob,
> Thanks for this article and I like your site, too.
>
> I am also trying to add some product details before going into the
> cart. However, I have a question:
>
> how does the "details" list get back to the cart.add_item()? In my
> case, it is in the MultipleProductForm and the data is coming from my
> POST data.
>
> c
>
>
>
>
> On May 15, 9:13 am, Bob Waycott <[email protected]> wrote:
>> The new blog post is live.
>> This time I actually cover how we sell all our products at US and
>> international prices.
>>
>> Hope you guys find it helpful, and feel free to leave some feedback
>> on how
>> we could do things better, if you have it.
>>
>> http://thisismedium.com/labs/satchmo-diaries-part-three-more-signals/
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---