Thanks Shawn,
I think i satisfied with this way. It seems a suitable way for Django.
I'll use it. Thanks again,
2011/8/23 Shawn Milochik :
> On 08/22/2011 05:44 PM, ozgur yilmaz wrote:
>>
>> Ok. Thank you so much. So, formset is a suitable way to achieve this.
>> But, is it the most django-orient
On 08/22/2011 05:44 PM, ozgur yilmaz wrote:
Ok. Thank you so much. So, formset is a suitable way to achieve this.
But, is it the most django-oriented way? Is there any alternative way?
Maybe using popup window to select a product, and handle the return
value of popup, then use a hiddenvalue to ho
Ok. Thank you so much. So, formset is a suitable way to achieve this.
But, is it the most django-oriented way? Is there any alternative way?
Maybe using popup window to select a product, and handle the return
value of popup, then use a hiddenvalue to hold the return value. And
repeat this for many
On 08/22/2011 05:33 PM, ozgur yilmaz wrote:
thanks,
but i think i have to use a suitable js for adding a new product. am i wrong?
To do it the way you want you'll have to use JavaScript, but it's easy
(especially with jQuery) to dynamically add elements to your form. No
refreshing necessary
If you want to dynamically update your Cart without refreshing the page, yes
you will need to write some heavy ajax. But if you are okey with page
refreshing, you can temprorarily save your cart in session and use formsets
as shawn suggested.
2011/8/23 ozgur yilmaz
> thanks,
>
> but i think i ha
thanks,
but i think i have to use a suitable js for adding a new product. am i wrong?
2011/8/23 Shawn Milochik :
> On 08/22/2011 05:21 PM, ozgur yilmaz wrote:
>>
>> thats not the answer. you can add item to basket by clicking a button
>> "add to basket" on every item page. My purpose is to fill a
On 08/22/2011 05:21 PM, ozgur yilmaz wrote:
thats not the answer. you can add item to basket by clicking a button
"add to basket" on every item page. My purpose is to fill a single
form, with 1 or many products. Than a single button, saves a checkout
object and many product object.
Use formsets
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 s
thats not the answer. you can add item to basket by clicking a button
"add to basket" on every item page. My purpose is to fill a single
form, with 1 or many products. Than a single button, saves a checkout
object and many product object.
23 Ağustos 2011 00:12 tarihinde Yaşar Arabacı yazdı:
> I d
I don't know the answer, but you may want to check this out:
http://www.satchmoproject.com/
2011/8/23 ozgur yilmaz
> Hi, I have a problem.
>
> I have two models:
>
> class CheckOut(models.Model):
> models.DateField()
>
> class Product(models.Model):
> checkout = models.ForeignKey( CheckOut )
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
mul
11 matches
Mail list logo