|
|
These programs are protected by copyright and may not be resold or distributed. Please see the copyright notice for more information on your end user license for this program. Please observe this Warning: These programs are capable of collecting and sending credit card numbers via email. They are also capable of collecting other sensitive information like customers' names, addresses, phone numbers, etc. We strongly recommend that you use the security checklist found in the SecurityIssues.html document prior to operating these programs live over your web site. We can provide professional installation if you prefer. For fees, click here.
Note: Most commercial hosting companies provide the answers to 4 and 5 under their support or help sections. Look under the topic "CGI scripts." Look for things like: what are absolute paths, how to use the shared SSL. Any good hosting service should also provide this assistance over the phone, or email. They won't install CGI, or troubleshoot it, but they should easily provide you the server's paths for your site. MOFcart v2.4 has some built in troubleshooting, so if you just can't get the "absolute path" thing, then proceed with the installation, place your cart in troubleshooting mode, and MOF will try to point the way. But, it sure is easier to know it from the start. You'll also need a plain ASCII text editor. I use EditPad Pro. They have a FreeWare lite version, or head to the NoNags' site Freeware section. You cannot use a formal word processor to edit the Perl script files because they embed all kinds of nasty formatting, great for the office, bad for the Perl language. NoNags has FTP programs, too. Note: Editors like FrontPage, DreamWeaver, HomeSite do not install CGI scripts. CGI scripts must be installed independently
For windows users : create a directory on your C drive called : C:\mof-install\ UnZIP the package components into the new folder. If the MOF files did not unzip into separate directories, then start over, but find the feature in your unzip program to "preserver folders," or "preserve directory structure" so that you have something like this :
You'll be making some changes to the files before you FTP them over to your server.
You should create the directory structure on your server before you try to adjust any settings in the MOFcart files. Servers are very different, and you need to know exactly how MOFcart will be set up over on your server. About permissions We suggest you first see if MOFcart will run everything under the default directory permissions created by the server. If so, this is better security than 777 permissions.
This is the file space area usually one level up from your main public web area. Some servers prohibit traveling outside the main public web area, meaning that you cannot login to your account root area. If that is your case, then you will have to place these directories in your main public web area along side the ../invoices/ and ../mofcart/ directories. Security Warning: If these directories are placed inside the Public Web areas, then you must take precautions to prevent the data from being viewed or indexed via the web by protecting them with .htaccess. It is not sufficient to simply place "No Access" messages in those directories, because indexing bots can index them. While these files do not contain credit card information, they do contain shipping names, addresses, etc. Simply copy the .htaccess file into each of those directories and you should be safe. You do not need any passwords, you will never need web browser access to these files. Only the scripts need access to these directories. Important Note to FrontPage users: if you use the .htaccess file in your ../orderdata/ and ../orderinfo/ directories, be extra careful to FTP the .htaccess file *only* to those directories. If you accidentally FTP the .htaccess file to other directories, you will contaminate the FrontPage extensions, losing FrontPage access to your web site.
Notes: The is the area of your file space that is web accessible, from any browser. Create these directories in the top level web accessible file space, the same directory level where your index.html or default.html opening main page for the site is located. Servers are very different. Your main public web area may not be where you land when you login via FTP. Find your site's opening page. That is usually your main public web area. If your host allows you to FTP to your account root area, then your main public web area will usually be one directory below, and may be called public_html, www, web, or even your domain.com Some servers prohibit traveling outside the main public web area, meaning that you cannot login to your account root area. If that is your case, then your top level directory is your main public web area
A. Scenario one: server has designated directory to run CGI script Most servers allow CGI scripts to run from special directories only. Check your server help pages on their specifications for where to load your CGI scripts. The special directory for CGI scripts may not be called cgi-bin. It may be called anything: cgibin, cgi-local, cgi. If your server has a designated directory for CGI scripts, then you must use that directory. Do not attempt to create your own directory called cgi-bin. Do not rename the server's designated directory, or change permissions on that directory. Create ../mcart/ as a sub directory in the designated directory. The designated directory may be in your main public web area, or it may be in your account root file space, depending on your server configurations B. Scenario two: server has no designated directory to run CGI scripts Some servers, like RAQs do not care where you run CGI scripts. You can simply create the ../mcart/ folder inside your main public web area, along side the ../invoices/ and ../mofcart/ directories.
We've embedded replaceable search strings in 31 MOFcart files. The files and search strings are listed in the tables below. Adjust all the replaceable settings in these 31 files with the settings for your site. See the "easy way" below to do a global replacement on all files at once. You'll be adjusting settings in these files
See the "easy way" below to do a global replacement on all files at once, or use your own favorite search-replace methods : Either way, here are the exact search-replace strings. Important: Search for these strings exactly. Make sure all replacement strings are accurate for your site settings. Pay close attention to detail:
* Notes are examples only, match to your server context
An easy way: For Windows only, we've included a BK Replace Em v2.0 File Set with all the needed replaceable strings. You'll need to install the BK Replace Em v2.0 on your PC to use the File Set in this package.
Once you have the BK Replace Em utility installed on your Winxx PC :
Replaceable strings are on the left, enter your corresponding site settings on the right. We already have it defined to adjust all 31 files at the same time. Carefully put in your settings, and select Replace > Start Replacing. Keep a backup copy of the original MOF package in case you make some errors in a global search and replace and need to start over. If all goes well, you should get something like a log screen from BK Replace Em, showing you what files were processed and how many changes made. About 31 files will be changed, depending on version. Tip: on the BK Replace Em File menu: select File > Save File Set to save the settings you entered. If you find you entered an incorrect setting, it's sometimes easier to simply copy in a new set of 31 files, and run your SearchReplace.bkr again. You don't have to use BK Replace Em, you can use any Search and Replace utility to adjust the packaged settings on the files. We use a great little ASCII text editor called: EditPadPro, which has some pretty nice search and replace functions.
Load up your FTP program, log in to your server where you created directories, and FTP all the files. We recommend you go one directory at a time. You must upload all the script and HTML files in ASCII mode only, the image files in binary mode. Find the options on your FTP program to force ASCII transfers and upload all the script files to the ../mcart/ (CGI-BIN) directory. Some of MOF's file extensions are not recognized by your default FTP settings for ASCII mode, so an "auto" mode may not work reliably. Force ASCII mode for the CGI scripts. An "auto" mode should be fine for the ../mofcart/ directory. If you accidentally transfer the script files in binary mode they will be corrupted on the server and will not run
You'll need to adjust file permissions on three script files. Many FTP programs have options for CHMOD or adjusting permissions. With WS-FTP right click on the file, and select chmod These two files need 755 permissions:
This file needs 777 permissions:
You may need to give these directories 777 permissions. But wait first, make these directories 777 only if they do not work with default permissions
With your browser, head to the <mofinstallation.html> page on your server Use that page as a Quick Reference to your newly installed shopping cart. To begin testing the cart operations, use the example pages in the section:
MOF's ERRORMODE, as you just installed it, is set to show customer friendly error messages. If you have any installation problems, configuration problems, addressing problems, etc. MOF will respond by redirecting you to the customer friendly Error Page : --> http://www.site.com/mofcart/moferrors.html You can place the cart in troubleshooting mode to get specific information about the kind of problem MOF encountered.
While MOF is in $ERRORMODE = 0; all configuration errors, path errors, etc. will be reported with more detail to help you diagnose where the problems are. After setting the $ERRORMODE = 0; then you can run an initial ?test
This will perform some initial tests, and may show you where some of the more glaring problems are. Consult the Troubleshooting.html document to help with any problems there If all looks well there, but you're having some other problems, then continue testing the cart while in troubleshooting mode, and consult any error messages presented by MOF
Tip: refresh your browser regularly, empty the browser cache, etc. to make sure you are not viewing cached browser pages, instead of real live error pages
This will set up an additional level of feedback from the servers CGI environment. Most of the messages will report "Software Errors." You must read the messages carefully for clues on what you did wrong. Common causes for run ?test failure Tip: refresh your browser regularly, empty the browser cache, etc. to make sure you are not viewing cached browser pages, instead of real live error pages Here are the most common things that go wrong for beginners, listed in order of probability:
Here's a few more tips on absolute paths under other situations. Also, a good tip to solve any absolute path problems you are having with MOF, is to obtain a simple script, like a formmail script, or counter, etc. Many hosting services provide pre-installed scripts. Get some simple scripts going on your web site, and look into how those scripts are defining absolute paths.
NT/Win will need absolute paths defined a little different that UNIX/Linux.
NT final adjustments: If you are using the search-replace instructions to install MOF, then use the NT/Win paths as in the example above. Then, before you FTP your files to the server, you should make these quick adjustments to both configuration files:
If you don't do this you'll get a Server Error. What happens is that the backslash has powerful meaning in Perl, and you need to tell Perl that you want a backslash as a literal ending character on the pathway, else, Perl will truncate the ending quote. You can't compensate for that in the installation search-replace, because that ending is not available to be replaced, so you have to do it independently
If your server requires that you use dynamic paths, then complete the installation search-replace for DATA and WEB absolute paths this way:
Final adjustments: Before you FTP the files to the server, you should make these adjustments to both configuration files. Open both configuration files in your ASCII editor. You'll need to make some manual changes, not search-replace. Note: these adjustments are based on the $ENV{DOCUMENT_ROOT} variable, which is the CGI environment variable for your root file space. This is the most common way to create dynamic absolute paths, however, some very large hosting companies have their own way of doing this, and may assign a different variable for the dynamic path root.
Note: this usually requires that your ../orderdata/ and ../orderinfo/ be placed in your main public web file space, along side the ../invoices/ and ../mofcart/ directories
See documentation : Making your own templates. (Formatting.html) The 9 MOF templates are located in the ../mofcart/ directory
Note: if the MOFcart checkout portion is installed under SSL, the last two templates must have all images, CSS, etc. referenced to the SSL URL. If you edit the templates, you will need to edit all 9 of them: They can all be different or the same. MOF uses all of these 9 templates to surround cart functions, which allows you to put your own unique message to show for each of the cart areas and functions. Note: It's best to use the full URL for any images, CSS, or other objects in your templates. The templates are processed via the CGI on your server, and some CGI environments do not handle relative addressing correctly.
If you edit the templates this line must appear as an HTML comment line at the place in the template where you want MOF to place its output.
These programs are copyright @ MerchantOrderForm.com, MerchantPal.com 2001 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||