0

Hello all,

I have one problem in javascritpt or i do not it may be ajax need.

Actually i am working on a shopping cart. In this when i add product to my cart and after adding that product in my cart . I want to change the quantity of that product. For this I need javascript code or it may be using ajax.

Please help me, how i can change this quantity using javascript code.

Thanks,
Gagan

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by Luckychap
0

Hello all,

I have one problem in javascritpt or i do not it may be ajax need.

Actually i am working on a shopping cart. In this when i add product to my cart and after adding that product in my cart . I want to change the quantity of that product.When i change the quantity and click to next page it does not show modified quantity.It only shows previous selected quantity. For this I need javascript code or it may be using ajax.

Please help me, how i can change this quantity using javascript code.

Thanks,
Gagan

0

Are you saving the quantity some where? I guess you are not.

And If yes tell where u r saving the selected quantity.

0

Are you saving the quantity some where? I guess you are not.

And If yes tell where u r saving the selected quantity.

Yes, I am saving the quantity in database at that time when we add the product into cart. But after that there is text box i have added in code. When we jump on next page payment page or user form page there this should show modified quantity . I have some idea that i should use onclick or onchange event for that. But i do not know how i can implement that event in code. Please help me.
Thanks,
Gagan

0

Then I am afraid that u r not fetching the right value from the database when jumping to next page.

How are u fetching the value of quantity when u jumped to the next page.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.