Location: PHPKode > scripts > Free PHP Shopping Cart > FPHPSC/inc/payment_mods/MONEYORDER_Functions.php
<?
//////////////////////////////////////////////////////////////////////
// The freebert.com Free PHP Shopping Cart:
// Version 0.80 - July 14th, 2009
// License / Terms of Use:
// Free to use, edit & customize, so long as the freebert.com logo, 
// the 'Powered By The Free PHP Shopping Cart' text & links 
// remain displayed on the bottom of every visable shopping cart page. 
// Redistribution in whole or in part of any page or function within 
// the freebert.com Free PHP Shopping Cart is strictly forbidden
// without the express written consent from freebert.com.
// Copyright (c) 2007 - 2009  by Colin Burke - freebert.com
// Contact: hide@address.com
// Support: http://www.freebert.com/Wiki/index.php/FPHPSC
// NOTE: If you want a cart script package with more features like
// customer accounts, database integration, administration section,
// online customer orderstatus section and more, OR
// if you simply want to legally remove the logo & links and
// continue to use the freebert.com Free PHP Shopping Cart
// you may do so by buying a domain license for the freebert.com
// Deluxe PHP SQL Shopping Cart Script. For details go to:
// http://www.freebert.com/Products/DeluxePHPSQLShoppingCart/ 
//////////////////////////////////////////////////////////////////////

// Settings For Money Order
$Arr_MoneyOrder['MakeOutTo'] = 'Kramer J. Peabody'; // Name You Want Money Order Made Out To - Should Match Your Bank Account
$Arr_MoneyOrder['StreetAndNumber'] = '123 Fake St.'; // Address Number & Street Name
$Arr_MoneyOrder['AptBox'] = 'Box Number 4'; // Box Number / Apt#
$Arr_MoneyOrder['City'] = 'Springfield'; // City
$Arr_MoneyOrder['State'] = 'CA'; // State / Province
$Arr_MoneyOrder['Country'] = 'USA'; // Country
$Arr_MoneyOrder['Zip'] = '90210'; // Zip / Postal Code


// ****************************************************************************************************************************************
function Display_MoneyOrder_Option()
{
  $Output ='';
  $Output =$Output.'<table width="100%" border="0" align="center">
  <tr> 
    <td colspan="2"> <FORM ACTION="MakePayment.php" METHOD="post">
    <div align="center"> 
    <table width="95%" border="1" align="center">
      <tr> 
        <td><div align="center" class="RedBold">Money Order</div></td>
      </tr>
      <tr> 
        <td><div align="center" class="WhiteBold">Print out our Automatic 
              Money Order - Order Form and pay by sending a money 
              order through the mail.<br><br>
        <input type="submit" name="Submit" value="Click Here to Pay By Money Order">
        <br><br></div></td>
      </tr>
      </table>
      <INPUT TYPE="hidden" NAME="PayType" VALUE="MoneyOrder">
      </div>
    </FORM> </td>
  </tr>
  <tr bgcolor="#666666"> 
    <td colspan="2">&nbsp;</td>
  </tr>
</table>';
  return $Output;
}
// ****************************************************************************************************************************************
function Create_MoneyOrder_Info($Arr_MoneyOrder,$Site_Title,$Site_Domain,$Session_Prefix,$Currency_Symbol,$Currency_Code)
{
  $CartTotals=GetCartTotals($Session_Prefix);
  $MoneyOrderTotal=$CartTotals['Order_Total']+2;
  
  $Output ='';
  $Output =$Output.'<div align="center">
<b>'.$Site_Title.' Money Order Order-Form:</b><br />
- This an auto-generated page - Do not bookmark this page - <br />
<b>Print out this page and send a copy along with your name & address and your payment to the address below to complete your order</b><br /><br />
'.DisplayCartWShipping($Session_Prefix,$Currency_Symbol,$Currency_Code)."<br />
 + (".$Currency_Code.")".$Currency_Symbol." 2.00 Bank Processing Fee<br />
<font size='4'>Send This Amount in (".$Currency_Code.") funds: ".$Currency_Symbol." ".number_format($MoneyOrderTotal, 2, '.', '')."</font><br /><br />
Make out the Money Order to:<br />
<b>".$Arr_MoneyOrder['MakeOutTo']."</b><br />
And send it to:<br />
".$Arr_MoneyOrder['StreetAndNumber']."<br />
".$Arr_MoneyOrder['AptBox']."<br />
".$Arr_MoneyOrder['City'].", ".$Arr_MoneyOrder['State']."<br />
".$Arr_MoneyOrder['Country']."<br />
".$Arr_MoneyOrder['Zip']."
<br />

<b>Don't forget to include in your order:</b><br />
1 - A print out of this order form - we need to know what you want to buy.<br />
2 - Include your name & shipping address & contact info (email address or phone number).<br />
3 - The money order - your payment - available from most banks and post offices.<br />
<br />
<b>We will begin processing your order upon receipt of payment!<br />
Thank You For Shopping @ ".$Site_Title.".</b><br />
".$Site_Domain."<br />
- This an auto-generated page - Do not bookmark this page - </div>"; 
  return $Output;
}
//////////////////////////////////////////////////////////////////////
// The freebert.com Free PHP Shopping Cart:
// Version 0.80 - July 14th, 2009
// License / Terms of Use:
// Free to use, edit & customize, so long as the freebert.com logo, 
// the 'Powered By The Free PHP Shopping Cart' text & links 
// remain displayed on the bottom of every visable shopping cart page. 
// Redistribution in whole or in part of any page or function within 
// the freebert.com Free PHP Shopping Cart is strictly forbidden
// without the express written consent from freebert.com.
// Copyright (c) 2007 - 2009  by Colin Burke - freebert.com
// Contact: hide@address.com
// Support: http://www.freebert.com/Wiki/index.php/FPHPSC
// NOTE: If you want a cart script package with more features like
// customer accounts, database integration, administration section,
// online customer orderstatus section and more, OR
// if you simply want to legally remove the logo & links and
// continue to use the freebert.com Free PHP Shopping Cart
// you may do so by buying a domain license for the freebert.com
// Deluxe PHP SQL Shopping Cart Script. For details go to:
// http://www.freebert.com/Products/DeluxePHPSQLShoppingCart/ 
//////////////////////////////////////////////////////////////////////
?>
Return current item: Free PHP Shopping Cart