[advanced search]
Results from the most recent live auction are here.
35 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Website Development
User Name
Password

Old 06-25-2008, 09:12 AM   · #1
namep88
NamePros Member
 
Trader Rating: (9)
Join Date: Jan 2007
Posts: 79
NP$: 0.00 (Donate)
namep88 is on a distinguished roadnamep88 is on a distinguished road
Order Form Script Help

If anyone can help i'd appreciate it. MunchiesNow.com - if you pay by cash it goes to a BLANK page. If you go pay by paypal it goes to paypal, I don't understand why the blank page appears.

Thanks


Patrick


Please register or log-in into NamePros to hide ads
namep88 is offline   Reply With Quote
Old 06-25-2008, 09:51 AM   · #2
edbrown
NamePros Member
 
edbrown's Avatar
 
Location: London
Trader Rating: (2)
Join Date: Dec 2006
Posts: 101
NP$: 141.10 (Donate)
edbrown is an unknown quantity at this point
There isn't really much we can help you with unless you are willing to show us the php file that is executed. (orderform_send.php)
edbrown is offline   Reply With Quote
Old 06-25-2008, 10:49 AM   · #3
namep88
NamePros Member
 
Trader Rating: (9)
Join Date: Jan 2007
Posts: 79
NP$: 0.00 (Donate)
namep88 is on a distinguished roadnamep88 is on a distinguished road
Thanks Ed, here it is:

<?

//---------- Script Configuration Section ------

//The Email Address in which you would like to receive order confirmation
$EmailAddress = "munchiesnow@gmail.com";

//The Subject of the email message you receive when someone makes a purchase
$EmailSubject = "MunchiesNow.com Online Order!";



//Should the script send an email to the user when it has successfully placed
//an order through your website? Yes or No
$ReplyBoolean = "Yes";

//The Name in which you would like to use as the sender of the follow up order email
$SenderName = "MunchiesNow";

//The Email address from which the script will use to send the email to the user
$SenderEmailAddress = "munchiesnow@gmail.com";

//The Subject of the email message your user receives as a follow up order letter
$SenderEmailSubject = "Thank you for your MunchiesNow.com Order";

//The body of the email message your user receives
$SenderBody = "Thank you for ordering from MunchiesNow.com. Your order unless specified otherwise is for immediate delivery. Your order will be delivered to you within 30 minutes. If you ordered coffee for an office breakfast, please allow 45minutes for delivery. If you live in a college dorm please be sure to have your cell phone at your side as a driver will attempt to call you to meet you downstairs. We look forward to seeing you soon.";



//Should the script send an invoice to the user? Yes or No
$InvoiceReplyBoolean = "Yes";

//The Name in which you would like to use as the sender of the invoice
$InvoiceSenderName = "MunchiesNow";

//The Email address from which the script will use to send the invoice to the user
$InvoiceSenderEmailAddress = "munchiesnow@gmail.com";

//The Subject of the invoice your user receives
$InvoiceSenderEmailSubject = "Your MunchiesNow.com Receipt";



//Paypal Email Address
$PaypalEmail = "grocerygogo@gmail.com";






//========== Actual PHP Script Begins ==========

list ($productname, $productprice, $extra) = split('/',$txtproduct);

mail( "$EmailAddress", "$EmailSubject: $txtsubject",
"Purchaser: $txtfirstname $txtmiddlename $txtlastname($txtemail) \nItem: $productname at $$productprice per unit. \n\nName: $txtfirstname $txtmiddlename $txtlastname\nAddress: $txtaddress\naddress2: $txtaddress2\nCity: $txtcity\nState: $txtstate\nZip Code: $txtzip\nCountry: $txtcountry\nPhone: $txtphone\nEmail: $txtemail\nPayment Method: $txtpayment\nProduct: $txtproduct\n\nRemarks: $txtmessage", "From: $txtemail" );


$ReplyBoolean = strtolower($ReplyBoolean);

if($ReplyBoolean == "yes") {

mail( "$txtemail", "$SenderEmailSubject", "Dear $txtfirstname $txtmiddlename $txtlastname, \n\n$SenderBody \n\n$SenderName", "From: $SenderName <$SenderEmailAddress>" );

}

$InvoiceReplyBoolean = strtolower($InvoiceReplyBoolean);

if($InvoiceReplyBoolean == "yes") {

mail( "$txtemail", "$InvoiceSenderEmailSubject",
"==================\nOnline Order Invoice\n==================\n\nPurchaser: $txtfirstname $txtmiddlename $txtlastname ($txtemail) \nItem: $productname at $$productprice per unit. \n\nName: $txtfirstname $txtmiddlename $txtlastname\nAddress: $txtaddress\naddress2: $txtaddress2\nCity: $txtcity\nState: $txtstate\nZip Code: $txtzip\nCountry: $txtcountry\nPhone: $txtphone\nEmail: $txtemail\nPayment Method: $txtpayment\nProduct: $txtproduct\n\nRemarks: $txtmessage\n\n$InvoiceSenderName", "From: $InvoiceSenderName <$InvoiceSenderEmailAddress>" );

}


if(strtolower($txtpayment) == "pp") {

header ("Location: https://www.paypal.com/xclick/business=$PaypalEmail&undefined_quantity=1&item_name=$productname&amount=$productprice&no_shipp//ing=1" );

}

elseif (strtolower($txtpayment) == "cm") {

header ("Location: http://www.munchiesnow.com/orderPOF_finish.html" );


}

?>
namep88 is offline   Reply With Quote
Old 06-25-2008, 11:20 AM   · #4
edbrown
NamePros Member
 
edbrown's Avatar
 
Location: London
Trader Rating: (2)
Join Date: Dec 2006
Posts: 101
NP$: 141.10 (Donate)
edbrown is an unknown quantity at this point
This line of code is incorrect:

Code:
elseif (strtolower($txtpayment) == "cm") {


It should read:

Code:
elseif (strtolower($txtpayment) == "ca") {


Also, the code does not take into account the "CatScratch" option, you need another else if statement.

Hope that helped.
edbrown is offline   Reply With Quote
Old 06-25-2008, 01:45 PM   · #5
namep88
NamePros Member
 
Trader Rating: (9)
Join Date: Jan 2007
Posts: 79
NP$: 0.00 (Donate)
namep88 is on a distinguished roadnamep88 is on a distinguished road
So I did that for the cash and it worked just as you said, but I did it for catscratch "CT" and got this message: Parse error: syntax error, unexpected '}' in /home/munchies/public_html/orderform_send.php on line 92

see below:

<?

//---------- Script Configuration Section ------

//The Email Address in which you would like to receive order confirmation
$EmailAddress = "munchiesnow@gmail.com";

//The Subject of the email message you receive when someone makes a purchase
$EmailSubject = "MunchiesNow.com Online Order!";



//Should the script send an email to the user when it has successfully placed
//an order through your website? Yes or No
$ReplyBoolean = "Yes";

//The Name in which you would like to use as the sender of the follow up order email
$SenderName = "MunchiesNow";

//The Email address from which the script will use to send the email to the user
$SenderEmailAddress = "munchiesnow@gmail.com";

//The Subject of the email message your user receives as a follow up order letter
$SenderEmailSubject = "Thank you for your MunchiesNow.com Order";

//The body of the email message your user receives
$SenderBody = "Thank you for ordering from MunchiesNow.com. Your order unless specified otherwise is for immediate delivery. Your order will be delivered to you within 30 minutes. If you ordered coffee for an office breakfast, please allow 45minutes for delivery. If you live in a college dorm please be sure to have your cell phone at your side as a driver will attempt to call you to meet you downstairs. We look forward to seeing you soon.";



//Should the script send an invoice to the user? Yes or No
$InvoiceReplyBoolean = "Yes";

//The Name in which you would like to use as the sender of the invoice
$InvoiceSenderName = "MunchiesNow";

//The Email address from which the script will use to send the invoice to the user
$InvoiceSenderEmailAddress = "munchiesnow@gmail.com";

//The Subject of the invoice your user receives
$InvoiceSenderEmailSubject = "Your MunchiesNow.com Receipt";



//Paypal Email Address
$PaypalEmail = "grocerygogo@gmail.com";






//========== Actual PHP Script Begins ==========

list ($productname, $productprice, $extra) = split('/',$txtproduct);

mail( "$EmailAddress", "$EmailSubject: $txtsubject",
"Purchaser: $txtfirstname $txtmiddlename $txtlastname($txtemail) \nItem: $productname at $$productprice per unit. \n\nName: $txtfirstname $txtmiddlename $txtlastname\nAddress: $txtaddress\naddress2: $txtaddress2\nCity: $txtcity\nState: $txtstate\nZip Code: $txtzip\nCountry: $txtcountry\nPhone: $txtphone\nEmail: $txtemail\nPayment Method: $txtpayment\nProduct: $txtproduct\n\nRemarks: $txtmessage", "From: $txtemail" );


$ReplyBoolean = strtolower($ReplyBoolean);

if($ReplyBoolean == "yes") {

mail( "$txtemail", "$SenderEmailSubject", "Dear $txtfirstname $txtmiddlename $txtlastname, \n\n$SenderBody \n\n$SenderName", "From: $SenderName <$SenderEmailAddress>" );

}

$InvoiceReplyBoolean = strtolower($InvoiceReplyBoolean);

if($InvoiceReplyBoolean == "yes") {

mail( "$txtemail", "$InvoiceSenderEmailSubject",
"==================\nOnline Order Invoice\n==================\n\nPurchaser: $txtfirstname $txtmiddlename $txtlastname ($txtemail) \nItem: $productname at $$productprice per unit. \n\nName: $txtfirstname $txtmiddlename $txtlastname\nAddress: $txtaddress\naddress2: $txtaddress2\nCity: $txtcity\nState: $txtstate\nZip Code: $txtzip\nCountry: $txtcountry\nPhone: $txtphone\nEmail: $txtemail\nPayment Method: $txtpayment\nProduct: $txtproduct\n\nRemarks: $txtmessage\n\n$InvoiceSenderName", "From: $InvoiceSenderName <$InvoiceSenderEmailAddress>" );

}


if(strtolower($txtpayment) == "pp") {

header ("Location: https://www.paypal.com/xclick/business=$PaypalEmail&undefined_quantity=1&item_name=$productname&amount=$productprice&no_shipp//ing=1" );

}

elseif (strtolower($txtpayment) == "ca") {

header ("Location: http://www.munchiesnow.com/orderPOF_finish.html" );


}

}

elseif (strtolower($txtpayment) == "ct") {

header ("Location: http://www.munchiesnow.com/orderPOF_finish.html" );


}


?>

and it does it again for cash
namep88 is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Find out how! http://www.mobisitetrader.com/ Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 02:34 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0