Delete Item-Button ??? : LUSENET : S-Mart Shopping Cart : One Thread

Hi, I am new at this great PRG.. I sucessfully installed it.

I searched this Forum for a Delete-Button for each item, and i found, that there is a subroutine delete_item. Sure I saw it, but how can I implement it into the cart???

I am not a Programmer, but I think, I will insert for this function a new form. But I know that isn4t possible to have a FORM into a FORM.

Can s.o. help?

What I want to have is a Delete-Button appearing in each line of the items the customer want to sell. Clicking this should delete this iteam and review the cart. IS THIS POSSIBLE?

Please help, I cannot imagine how I can do this!

Thanks in advance!

Peter M.

-- Peter (, February 17, 1999


Hi, If the customer is on the review_cart routine they should be able to just enter 0 in the quantity and hit re-calculate and it will remove the item from the cart. I might not understand your question though...

Marc Burnell

-- Marc Burnell (, February 21, 1999.

A delete item button is better than changing the quantity to zero and recalculating because it makes it a one click process, rather than selecting the quantity field, using the keyboard to change the quantity to zero and back to the mouse to click recalculate.

-- Michael Lynne (, February 22, 1999.

I don't know if you have any cgi experience, so you might need to ask someone to help. You need to write a small form responder to run the delete_item subroutine, and you need to add the code to add the button where it needs to go. Sorry if I'm being vague, but I don't have the code in front of me right now.

-- Justin Evans (, June 11, 1999.

Moderation questions? read the FAQ