After Submit order, instead of confirmation it goes back to cartgreenspun.com : LUSENET : S-Mart Shopping Cart : One Thread
When I try to submit an order, instead of going to a confirmation page, it goes back to the review command.
I have tried to comment out the send order and send verify option in S-Mart.cgi under the key_items2 sub routine, but still to no avail.
I have even tried the script with the cc_verify routine turned on and off. Still, no confirmation page, just a return to the review cart screen.
-- Gregory Gillam (email@example.com), May 28, 1999
S-mart is heavily based on Matt Wright's FORMMAIL. Your problem is probably in your orderform (the HTML itself) Here are Matt's instructions for the 'redirect' field which would be placed in the orderform.
------------------------------------------------------------------------ Field: redirect Description: If you wish to redirect the user to a different URL, rather than having them see the default response to the fill-out form, you can use this hidden variable to send them to a pre-made HTML page. Syntax: To choose the URL they will end up at:
To allow them to specify a URL they wish to travel to once the form is filled out:
-- Gregory Swofford (firstname.lastname@example.org), May 28, 1999.
Had the same problem. Noticed in the code that the order form page generated, that the cart on top of the order form, is considered a form, and did not have an end form tag (). Therefore when a user would click on the Submit order button, the script thought it was a re-calculate order, and take you back to the view cart page.
-- Bryan Hollis (email@example.com), April 15, 2000.
I'm having the same problem, it's the only main thing not working, since I get confirmation emails and all. My final page after ordering (ie. inserting all data, customer name, shipping address, payment etc.) is that it shows a page like the cart review but it doesn't even add "You have successfully ordered" and it only shows on top the two select menus and below the same table with the items in the cart.
I tried all suggestions I found here on this board (closing /form tags) but to no avail - there was one post though that said the /form in the cgi should be moved, but they didn't specify the location and I don't know where to start in the cgi file.
I am testing the basic version of smart, I also downloaded the 3.1 but first I'd like to get a hang of the simple cart (there's a lot more files in the 3.1!) - but would this problem be solved in the 3.1 new version?
Also, in the order page is there a way to make the table of purchased items appear not as a form, so that you can't delete or select, but only as review (if one wants to change they can always press the links in the footer to review the cart).
-- Monica (firstname.lastname@example.org), September 08, 2000.