FPHPSC Configure

From FreeBert Wiki

Jump to: navigation, search

[edit] Configuring The Free PHP Shopping Cart to run on your server

Once you have uploaded all the Free PHP Shopping Cart files to a directory on your web server, you are ready to configure the package to run on your server. To do so, you will need to edit the Local_Settings.php file in the cart script's root directory (if you uploaded your cart files to http://www.youdomain.com/FPHPSC/, the script root directory would be '/FPHPSC/'). In the Local_Settings.php file, you will see there are several settings that can be set, grouped into a couple of sections.

a) - General Settings - The general settings relate to the general setup of your cart script:

  • $Site_Domain - this should be the full domain of the root of your site

Example: 'http://www.freebert.com/'
Tip: be sure to end your domain with a '/'

  • $Site_Title - self explanatory
  • $Site_Script_Root_Directory - the name of the directory the script files reside in.

Example: if you uploaded the script files to http://www.youdomain.com/FPHPSC/, set Site_Script_Root_Directory = 'FPHPSC/'
Tip: be sure to end your Site_Script_Root_Directory with a '/'

  • $CSS_Filename - the name of the CSS file you want the script to use. Enter the title of the file only, and be sure that that file exists in the /css/ folder in your script directory. The package includes 2 default CSS files in the css directory, called WhiteBack.css and BlackBack.css. Try switching between these two to change the basic color scheme of your site.
  • $Session_Prefix - a short prefix to add to session variable calls - if you don't understand this leave it as FPHPSC_


b) - Payment Options - The Payment Options section allows you to choose which of the installed payment mods are active on your site. Enter a 1 beside the option to wish to activate, enter a 0 (zero) beside the option(s) you wish to de-activate. By default, all payment options are activated.

c) - Payment Mods - The Payment Mod Settings section allows you to configure each of the active payment methods with your personal info.
i) - For the PayPal option, you only need to enter your paypal account email address (so paypal knows who to send the money to).
ii) - For the Money Order option, you need to enter info on who the money order should be made out to (should match the name on the bank account you intend to cash the money orders at), as well as the address you want the Money Order payments to be mailed to.
iii) - For the Phone order option, you need to enter the phone number you want your customers to call in their sales to, as well as an additional field for giving extra instructions to your customers (such as calling hours, etc)

Personal tools
Toolbox