|More than 1 Form|
|More than 1 Form|
Author Randy on 11-02-2000 at 16:06 (EST)
|Hi .. Randy again|
Question....this company, for now is having their site setup for their wholesalers to go and buy the products (the e-comm site for everyday ppl may come later, for now there is a "view only" site for that), they would like 2 submission FORMS.
1) One form for customers to fill in to request a USER-ID and Password to get onto the site (it is password protected so only wholesalers can login)
2) Another form for "future" wholesalers who would like to purchase the products, so this Form would be like a Credit Application.
Is there any way I can do this with uShop? I have searched the help files, read the Forum and can't find anything.
I was going to just make them a regular mail-to submission form, but they do not want this as there may be confidential information people may have to fill in.
They like the way uShop is set up where they Login to the control panel via https and print out any orders submitted. They would like the same setup for these other 2 submission forms.
If uShop does not support this now, them maybe later move this post to the Future Feature Wish List, whereas uShop may support more Forms? On-line credit form and a request form.
What I was thinking of was just making another directory off of cgi-bin, with a data subdirectory, copy the 3 .pl files to this other directory. Use this new control panel with the template file being named account_setup.html and putting this account_setup.html file in the new data directory. Edit the original order_template.html file to suit their needs for this account_setup.html file.
sound to complicated?
could you please let me know if it's possible for uShop to support more forms
|Messages In This Discussion|
| 1. RE: More than 1 Form|
Author Bill Weiner on 11-03-2000 at 06:40 (EST)
|You could try your idea of installing a second copy of the CGI scripts, however, looking ahead you may run into these problems:|
PROBLEM 1: Since it sounds like you don't want any of the application information emailed, then you would probably need to do one of the following:
1) Disable the emails entirely by setting configuration question #7 in the ushop.pl script to:
$email_method = "CUSTOM";
("CUSTOM" is an empty subroutine that will not send any email)
2) Or if you still want some email notifications sent, then you may be able to modify the labels of the fields on the "echeck_template.html" so that the "Electronic Checking" option collects the sensative information that you don't want emailed.
PROBLEM 2: Since you are just collecting application information, you probably don't want the shopping cart to be displayed. The only way to hide that would be to change the whole "get_cart_html" subroutine in the ushop-lib.pl file to basically do nothing:
# Do nothing.
You may still, however, run into a problem with the cart still appearing on the very first page after the uShopOrderButton is pressed....and since that first shopping cart page is controlled on the Java side of things.... you won't be able to modify that yourself.
| 2. More than 1 form|
Author Randy on 11-03-2000 at 11:51 (EST)
|Hi Bill .... thanks for the response|
I tried doing what you said and did run into the problems you mentioned. Also with changing the ushop-lib.pl I ran into configuration errors upon the last continue button. Once changed back, it worked normal again.
BUT ... I did manage to do something to make things work.
What I did was, when you hit the "Click here to start the order process", it takes you to the next page, "display_cart.html .... what I did was a View Source and noticed with all the HTML there, that subroutines must have been going on, so I highlighted all the TEXT from the view source file that looked like it would do something to just call the account_form.html form I made. All the other text I did not highlight had to do with the display cart and shopping cart stuff.
I pasted this highlighted text into notepad, and basically saved it as my account_form.html file.
Once opening it, all there was, was the > button. I clicked continue and it warned me I was about to connect to my secure server and opened the page up exactly the way I wanted it to. No shopping cart information at all. I filled out the form, clicked continue again, it gave me the page to review my info still with no shopping cart stuff :) So far so good. As I hit the last continue button, the last page came up saying a representative will contact you.
I did set the uShop control panel up to email just me, no customers, to see if it would all still work, 5 minutes later an email came in with all the proper information exactly as submitted, and no shopping cart info :))
Went into the control panel to view the order, and it was there, exactly as submitted.
If you want to view the account_form.html file I made, you can see it here.
to see a highlighted pic of what I copied and pasted is here.
or you can just view source of the first page
I must admit, I lucked out on doing this. I did not even think it would work, but gave it a shot
Thanks alot Bill
| 3. RE: More than 1 form|
Author Bill Weiner on 11-03-2000 at 16:15 (EST)
|Another interesting solution. Good job!|
Don't forget that if you want to stop the emails entirely, just use that aforementioned "CUSTOM" email setting.
Also, on whatever HTML file you are using for as your "Order Reader Template" (Under General Settings - Miscellaneous), you could probably remove the "USHOP FOOTER" tag so that the cart doesn't try to appear when using the "Order Reader".
But again, nice solution!