Cart problem

Hi

I have a simple shopping cart. The whole cart is in a form so i can
update the quantity, this works fine. How should i make the
“delete_item” to work? I know i shouldn’t use normal links, and i cant
have nested forms so i cant use button_to.
The only solution is multiple submit buttons. How can they tell which
item to delete?(how to pass the id of the product). I am guessing by
hidden fields or smth but still cant figure this out.

Hi pablo… can you tell me how you did to update the quantity
please!!
I can’t do it
Thanks !!!

pabloz wrote:

Hi

I have a simple shopping cart. The whole cart is in a form so i can
update the quantity, this works fine. How should i make the
“delete_item” to work? I know i shouldn’t use normal links, and i cant
have nested forms so i cant use button_to.
The only solution is multiple submit buttons. How can they tell which
item to delete?(how to pass the id of the product). I am guessing by
hidden fields or smth but still cant figure this out.

Hi,
for delete_item,
do u want link to click or button .

if u provide the code,
i will definitely help u…

Regards,
Srinivas Avasarala…