📄 demo.pl
字号:
####################################################################
#
# CyberCart Pro Internet Commerce System, Version 3.04
# Copyright 1997, Richard Torzynski
# 1-25-98
# All rights reserved
# This is NOT a shareware script.
#
# Merchant Setup File for demo merchant on NT
#
####################################################################
#
# For each merchant to use CyberCart IP Pro, this merchant file
# defines html page characteristics and also where files are stored
# on the system.
#
# For example, this file is set up for a merchant with the merchant
# ID of demo. This file should be called demo.pl and placed in the
# merchant file directory defined in the main CyberCart script.
# In this merchant file directory there should be a subdirectory
# called demo with three subdirectories (Data, Orders, and Logs). So here's
# a summary of the directory and file structure:
#
# c:\Merchant
# c:\Merchant\Demo.pl
# c:\Merchant\Demo
# c:\Merchant\Demo\Orders
# c:\Merchant\Demo\Data
# c:\Merchant\Demo\Logs
#
# These directories should be OUTSIDE of the html root directory so people
# can't browse these files.
#
# CyberCart Script Variables:
#
# Script URL. Set to the full url of the cybercart script. If you have
# a virtual domain with your own cgi-bin, it will be:
$script_url="http://www.name.com/cgi-bin/cybercart.pl";
#
# Secure URL. The full URL to the secure server script. Usually this
# means adding an s to http to indicate a secure server is being used.
# $secure_url = "https://www.name.com/cgi-bin/cybercart.pl";
#
# NEW
# Secure Domain. If the domain name of the secure server differs from the
# unsecure server, then set this variable. This will enable a domain
# transfer, where the session_id and order will be 'transferred' to the
# secure server. This allows you to run the script off of two servers, but
# you must duplicate the directory structure and files onto the secure
# server if its on a separate machine.
#$secure_domain = "www.name2.com";
#
# Toggle for whether script is running on secure server or not.
# 1=secure, 0=not secure
$secure=0;
#
# To supress unsecure ordering feature, set $no_unsecure=1.
# $no_unsecure = 1;
#
# To supress fax/email option, set $no_offline=1.
# $no_offline = 1;
#
# New Mail Error feature. To help with debugging and possible browser
# related incompatabilities, you can set a toggle to email you when
# someone encounters an error. This error report will include the date,
# the error message, the users browser, ip number, the url, the server,
# and the session_id variables. This will also be helpful if you need
# to send a message to support@cybercart.com.
$mail_error = 1;
####################################################################
#
#
# Merchant Data File Variables:
#
# Path of directory of merchant data directory
$home_dir="C:\\merchant\\Demo";
#
# Order Directory - temp order files stored here.
$order_dir= $home_dir . "\\Orders";
#
# Invoice Directory - Final invoices stored here. getorder.pl script is
# used to view these files using netscape or MSE.
$invoice_dir= $home_dir . "\\Data";
#
# Log files are kept here.
$log_dir = $home_dir . "\\Logs";
# Status File - stores order status information.
$status_file= $home_dir . "\\status.dat";
#
# Client list file.
$clientlist = $home_dir . "\\referrer.dat";
$sendclient = 1;
#
# Don't change this.
$price_file = "none";
#
#
####################################################################
#
# Merchant HTML File Variables:
#
# URL of directory where merchant HTML files are. This can be on another
# system or provider. End this with a slash.
$home_url="http://www.name.com/Demo/";
#
# URL of merchant home page.
$home_page="http://www.name.com/Demo/demo.html";
#
# Full Path name of merchant html files (if stored on this system). Used
# by search engine. If files are stored on another server, you need to
# install the cybersearch.pl script on that server to use the search engine.
$home_html = "c:\\inetpub\\wwwroot";
#
#
####################################################################
#
# Company Information
#
# Company email address. This is where orders are emailed to. Make sure you
# escape the '@' by putting a '\' in front of it.
$recipient="userid\@name.com";
#
# Array of email to send copies of customer's receipt
# @mailcc = ("address2\@name.com","address3\@name.com");
#
# Company Name
$company="Company Name";
#
# Company Phone Number
$phone="1-999-999-9999";
#
# Company Fax Number
$fax = "1-999-999-9999";
#
# Address
$address="123 Main Street, City, State, Zip";
# Additional header info printed underneath the company info
# $additional_header = " ";
#
# Set to "none" if don't use creditcards
# $creditcards = "none";
# Payment types accepted (list creditcards, checks, moneyorders, etc.).
@credit=("Check","Visa","Mastercard");
#
# Checks. Who checks should be made out to.
$checks="Company";
#
# State taxes. Us the two letter appreviation for states.
%statetaxes=("NM",".0525");
#
# Tax option. In some states (such as California), shipping and
# handling is taxable. Set this variable to 1 to add shipping and
# handling to taxable total.
# $tax_option = 1;
#
# State textbox. Set this to 1 to have a textbox instead of drop down
# menu of states or 2 to supress state input field for countries
# other than the United States. If you supress, remember to remove
# state form @required array down below.
# $state_textbox = 2;
#
####################################################################
#
#
# Script Pages Appearence Variables. Sets the properties of script
# generated forms.
#
# title pict that appears at the top.
# $titlepict="http://www.name.com/logo.gif";
#
# Button images. If you wish to use images instead of standard
# form buttons, set each of these to the URL of the image.
#
# Directory of where the button images are located
# $button_dir = "http://www.name.com/Demo/graphics/";
#
# Button images
# $button_search = $button_dir . "buttonsearch.gif";
# $button_order= $button_dir . "buttonorder.gif";
# $button_check= $button_dir . "buttoncheck.gif";
# $button_clear= $button_dir . "buttonclear.gif";
# $button_shop= $button_dir . "buttonshop.gif";
# $button_continue= $button_dir . "buttoncontinue.gif";
# $button_update= $button_dir . "buttonupdate.gif";
# $button_secure= $button_dir . "buttonsecure.gif";
# $button_online= $button_dir . "buttononline.gif";
# $button_offline= $button_dir . "buttonoffline.gif";
#
# Body background (specify full url of background image)
$bodyback = "";
#
# Body background color.
$bodycolor = "FFFFFF";
#
# Body text and link colors.
$bodytext = "";
$bodylink = "";
$bodyvlink = "";
$bodyalink = "";
#
# Define table background tables
$Table_width = "580";
$Table_Header_Color = "C9CFF8";
$Table_Body_Color = "FFFFE1";
$Table_Entry_Color = "C8FFC8";
#
# Item properties used by merchant (Size, Color, Style). Can have up to
# three.
@properties=("Color");
#
# Pagelinks that appear at the bottom of each script generated page. The location
# specified in the first of the pair, is the file location relative to the
# $home_url specified directory.
%pagelinks=("demo.html","Demo Book Page");
#
# List of required information in order form.
# Possible choices: Name,Street,City,State,Zip,Country,Phone,Email.
@required = ("Name","Street","City","State","Zip","Country","Email");
#
# Show order toggle. Set this variable to 1 to show contents of cart after
# customer adds item to cart.
# $showorder = 1;
#
# Redirect after adding. Set this variable to the number of seconds to
# wait before returning customer to last page after adding item to cart.
# Comment this variable out if you don't want them redirected back automatically.
# $redirect=3;
#
# Set $print_code = 1 to print the order number of the items on the forms
# $print_code = 1;
#
# Message to put at the end of the customers receipt
$mail_closing = "\n
Thank you for ordering from $company! If your order as listed is
incorrect, please let us know immediately!
Email: $recipient
Phone: $phone";
#
# Order Note. General message printed out in the order form. Frequently used to
# indicate that shipping will be calculated later for international orders.
# $order_note = "Order Note";
#
####################################################################
#
#
# Shipping variables.
#
# Method of calculating shipping [flat,percent,table,weight,items,actual,none]
# Select one of these methods, uncomment the lines and set variables
# needed for that method.
#
# Base country for shipping charges.
$shipping_base = "US";
# ==================================================================
# Shipping Method 1
# For flat, set the $shipping_modifier to the flat shipping charge.
$shipping_cost = "flat";
$shipping_modifier = 4.5;
$world_shipping_cost = "flat";
$world_shipping_modifier = "10";
#
# ==================================================================
# Shipping Method 2
# For percentage of the total cost.
# $shipping_cost = "percent";
# $shipping_modifier = .10;
# $world_shipping_cost = "percent";
# $world_shipping_modifier = .10;
#
# ==================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -