And also, I suggest that you create Cart model, with ManyToMany field to
your product. And you can add your checkout date there too, and other cart
related information like total price etc. Keep your cart as a session
variable until checked out, you can then save your cart. So that you could
have see checked out Carts on the admin panel.

23 Ağustos 2011 00:12 tarihinde Yaşar Arabacı <yasar11...@gmail.com> yazdı:

> I don't know the answer, but you may want to check this out:
> http://www.satchmoproject.com/
>
>
> 2011/8/23 ozgur yilmaz <yelb...@gmail.com>
>
>> Hi, I have a problem.
>>
>> I have two models:
>>
>> class CheckOut(models.Model):
>>   models.DateField()
>>
>> class Product(models.Model):
>>   checkout = models.ForeignKey( CheckOut )
>>   name = models.CharField()
>>   price = models.FloatField()
>>
>> With these models, i want to contruct a CheckOut form, and select
>> multiple products, calculate the amount ( price * item_number ).
>>
>> What is the most popular or best way to achieve this thought?
>>
>> I want to use popup windows to select a product and item number for
>> checkout. If i can use a "add product" link in the form, and show a
>> popup window to select the product and number, and return the values
>> to the form, i would be glad.
>>
>> Thanks for your help,
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
> http://yasar.serveblog.net/
>
>


-- 
http://yasar.serveblog.net/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to