 |
Results from the most recent live auction are here.
18 members in the live chat room. Join Chat!
| |
06-25-2008, 09:12 AM
|
· #1 | | NamePros Member | 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 |
| |
06-25-2008, 09:51 AM
|
· #2 | | NamePros Member Location: London Join Date: Dec 2006
Posts: 101
NP$: 141.10 ( Donate)
| 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) |
| |
06-25-2008, 10:49 AM
|
· #3 | | NamePros Member | 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" );
}
?> |
| |
06-25-2008, 11:20 AM
|
· #4 | | NamePros Member Location: London Join Date: Dec 2006
Posts: 101
NP$: 141.10 ( Donate)
| 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. |
| |
06-25-2008, 01:45 PM
|
· #5 | | NamePros Member | 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 |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |