checkout problems... :(

Problems installing or using the NOP Design Free Shopping Cart. **ARCHIVE** Please post new topics to one of the groups below.

Moderator: scott

checkout problems... :(

Postby tron » Sun Feb 09, 2003 12:45 pm

AHHHHHHHHHHHHHHH!!!!
I have a little big problem yet... checkout.html;

<!--Shopping Cart Checkout Begin-->
The items listed below are currently in your shopping cart:
<p>
<FORM ACTION="/cgi-bin/checkout.pl" METHOD="POST">
<SCRIPT>
CheckoutCart();
</SCRIPT>

Name: <input type="text" name="b_first"> <input type="text" name="b_last">
Email: <input type="text" name="b_email">
... Your other form data here...

<INPUT type=SUBMIT value=" Submit Order ">
</FORM>
<!--Shopping Cart Checkout End -->


Thats code is the single one u have in http://www.nopdesingn.com main page and dont works in my test web.
The one fron sample site works right. My own single code is done using this one like base... taking off fields that i dont need... but dont works
This my new test site:
http://webcindario.com/hollow/paginatest/frames.html

And this message is showed after submit :

Warning: Failed opening '' for inclusion (include_path='.') in /home/webcindario/hollow/paginatest/cgi-bin/checkout.php on line 61
The form you submitted was not complete.

I'm sorry, but it appears that you forgot to fill in a required field. Please go back and correct the error.


--------------------------------------------------------------------------------

Warning: Failed opening '' for inclusion (include_path='.') in /home/webcindario/hollow/paginatest/cgi-bin/checkout.php on line 67


The chmod is 755. Thats right.

PLEASE HELP!!!
tron
 
Posts: 15
Joined: Sun Feb 02, 2003 12:14 pm

Postby Steven Nyland » Sun Feb 09, 2003 1:42 pm

Tron, the error message basically means that not all of the fields of the checkout form have been filled in (correctly). The PHP script validates the user imput -so- make sure that ALL of the fieldnames (line 98 of your PHP script) match the ones on your checkout.html EXACTLY!

To test, just replace lines 98-101:
Code: Select all
if (($b_first == "") || ($b_last == "") || ($b_addr == "") || ($b_city == "") || ($b_state == "") || ($b_zip == "") || ($b_phone == "") || ($b_email == "")) {
   doFormError("I'm sorry, but it appears that you forgot to fill in a required field.  Please go <A HREF='Javascript:history.go(-1);'>back</A> and correct the error.");
   exit;
}

With:
Code: Select all
if ($b_first == "") {
   doFormError("I'm sorry, but it appears that you forgot to fill in a required field.  Please go <A HREF='Javascript:history.go(-1);'>back</A> and correct the error.");
   exit;
}


The test the form and fill in a correct e-mail address (formfield b_email) and a first name (formfield b_first).

Hope this helps,

Steven

Hope this helps,

Steven
[ If it ain't Dutch ... it ain't Much ]
Steven Nyland
Guru
 
Posts: 274
Joined: Thu Jan 02, 2003 1:20 pm
Location: Still here ...

Postby tron » Mon Feb 10, 2003 8:34 pm

Now it works.
The problem was in thats code lines. I has fixit the problem.
Thanks Steven.
tron
 
Posts: 15
Joined: Sun Feb 02, 2003 12:14 pm


Return to Installation and Setup Problems

Who is online

Users browsing this forum: No registered users and 0 guests

cron