uShopPrintFormCGI_du.class
The uShopPrintFormCGI applet is similar to the order form
applets except that it does not ask for any payment information and
instead of processing the order, it creates a CGI-generated print
page to allow the customer to print out the order and mail or fax
it to the store. Options let you customize the form's titles,
instructions, and footnoot. To use this applet, you must have
configured the ushop_cgiscript.pl in your cgi directory on your
secure server.
See also ushop_cgiscript_du.pl.
In addition, this applet also allows you to setup shipping, tax, and payment
options as described below.
Parameters
- scriptpath - The full path to the ushop_cgiscript_du.pl on your server. Example:
"http://www.mystore.com/cgi-bin/ushop_cgiscript_du.pl".
- countries - This parameter lets you specify a list of countries to which orders
can be sent. Separate each country in the list with a comma. The list
can be as long as you like. The default value is: "United States".
- taxrate - The default tax rate. Specify this as a value 0.00 through 1.00
(ie. "0.06" or "0.07") - Or use a percent (%) sign to specify a value
of 0.00% through 100.0% (ie. "6.0%" or "7.25%")use a percent (%) sign.
Note: If you want to have different tax rates for each product,
then set this parameter to "INCLUDED" and include the tax when specifying
the price of each product. You may also want to put a note on your page
saying that "Tax has already been included in the price of each product."
- taxtable - This parameter allows you to override the default tax rate for
customers from specified countries. That is, in this parameter you
can specify special tax rates for specific countries. The format
should be "<country>=<taxrate>,<country>=<taxrate>,...".
You can specify as many countries as you want. Example: "United Kingdom=17.5%,
France=21.0%" would charge customers from the United Kingdom and France tax rates
of 17.5% and 21.0%, respectively. Note that the country names should match those
specified in the "country" parameter. If you do not want to use a tax table, set
this value to "NONE".
- shipping - This parameter allows you to specify what shipping methods are
available and how to calculate the shipping for each method. See
the page on shipping setup
for additional information on setting up Shipping.
- handling - This parameter allows you to specify a default handling fee that
will be added to all orders. Example: "NLG2.00" would charge
customers an additional NLG2.00 per order.
- handlingtable - This parameter allows you to override the default handling
rate for customers from specified countries. That is, in this
parameter you can specify special handling fees for specific
countries. The format should be "<country>=<handlingfee>,
<country>=<handlingfee>,...". You can specify as many countries
as you want. Example: "United Kingdom=NLG1.00,France=NLG1.00" would charge customers who
live in the UK or in France a NLG1.00 handling fee. Note that the Country
names should match those specified in the "countries" parameter.
- popupwindow - This parameter allows you to specify whether you want a enable
a pop-up window to display error messages. That is, if you set this value
to "YES", then any messages to be displayed will be displayed in a pop-up
window - such as a message to indicate "You must fill in your name". If you
do not want to use a pop-up window, set this parameter to "NO". The default
value is "YES".
- label - The label that will appear on the print button. This can be any
text you like, such as "Print Order" or "Fax Order".
- title - The title that will appear on the print page. Examples: "Print Order"
or "Fax Order".
- instructions - The instructions that will appear on the print page. This can say
whatever you like such as "(From your browser select print, fill
out the form, then fax it to us at 1-800-555-5555)".
- section1 - The text that will appear over the first section. Typically this will
indicate what to enter into this section of the form. Such as "Name,
Address, Telephone".
- section2 - The text that will appear over the second section. Typically this will
indicate what to enter into this section of the form. Such as
"Shipping Information".
- section3 - The text that will appear over the third section. Typically this will
indicate what to enter into this section of the form. Such as
"Payment Information - We accept Visa, Master Card and COD".
- footnoot - The text that will appear at the bottom of the form. You can specify
any message here such as "*Appropriate sales tax will be added.".
- return_url - This parameter lets you specify a URL to be used as a "BACK" link
on the order receipt page. That is, if you specify a full URL here,
uShop will add a "BACK" link on the bottom of the order receipt page
to link to the specified URL. Example: "http://www.uburst.com".
- clearcart - This parameter specifies whether to clear the shopping cart
and order form after the customer has submitted the order. Valid
values are "YES" or "NO". The default value is "NO".
- textcolor - The text color of the applet. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "white".
- background - The background color of the applet. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "white".
Note: Optional parameters are in italics
Example
This print form example has been setup:
- To send the order information to the ushop_cgiscript located in our cgi-bin directory.
- To charge no tax, except for customers from the United Kingdom - who are charged 17.5% VAT,
and customers from France - who are charged 21.0% VAT.
- To allow 2 shipping methods: Post based on subtotal or Express based on total weight.
- To charge no handling fees for customers in the United Kingdom, a NLG1.00 handling fee for
customers from France, and a NLG5.00 handling fee for customers other countries.
- To add the message "Make checks payable to Microburst Technologies, Inc." to all order receipts.
- To add a BACK link to "http://www.uburst.com" on the order receipt page.
- NOT to clear the shopping cart when the order is place.
- To use a pop-up window to display messages to the customer.
- And to have a light gray background color with black text.
<APPLET CODE = "uShopPrintFormCGI_du.class" WIDTH=460 HEIGHT=580>
<PARAM NAME=scriptpath VALUE="http://www.uburst.com/cgi-bin/ushop/ushop_cgiscript_du.pl">
<PARAM NAME=countries VALUE="UNITED STATES,CANADA,UNITED KINGDOM,
ANTIGUA AND BARBUDA,ARGENTINA,AUSTRALIA,AUSTRIA,BAHAMAS,
BAHRAIN,BARBADOS,BELGIUM,BERMUDA,BRAZIL,BRUNEI DARUSSALAM,
BULGARIA,CANADA,CAYMAN ISLANDS,CHILE,CHINA,COLOMBIA,CONGO,
COSTA RICA,CROATIA (local name: Hrvatska),CUBA,CYPRUS,
CZECH REPUBLIC,DENMARK,EGYPT,FALKLAND ISLANDS (MALVINAS),
FINLAND,FRANCE,GERMANY,GIBRALTAR,GREECE,GREENLAND,HONG KONG,
HUNGARY,ICELAND,INDIA,IRELAND,ISRAEL,ITALY,JAMAICA,JAPAN,
JORDAN,KENYA,KUWAIT,LEBANON,LIECHTENSTEIN,LITHUANIA,LUXEMBOURG,
MALAYSIA,MALTA,MEXICO,MOLDOVA (REPUBLIC OF),MONACO,MOROCCO,
MOZAMBIQUE,NEPAL,NETHERLANDS,NEW ZEALAND,NORWAY,OMAN,PAKISTAN,
PANAMA,POLAND,PSTAD/GEMEENTEUGAL,ROMANIA,RUSSIAN FEDERATION,SAUDI ARABIA,
SEYCHELLES,SINGAPORE,SLOVAKIA (Slovak Republic),SLOVENIA,
SOUTH AFRICA,SPAIN,SRI LANKA,SUDAN,SWEDEN,SWITZERLAND,TAIWAN,
PROVINCE OF CHINA,THAILAND,TURKEY,UKRAINE,UNITED ARAB EMIRATES,
UNITED KINGDOM,UNITED STATES,VENEZUELA,VIRGIN ISLANDS (BRITISH),
VIRGIN ISLANDS (U.S.),YEMEN,YUGOSLAVIA,Other">
<PARAM NAME=taxrate VALUE="0.00%">
<PARAM NAME=taxtable VALUE="UNITED KINGDOM=17.5%,FRANCE=21.0%">
<PARAM NAME=shipping VALUE="Post,BY_SUBTOTAL,20=NLG5.00,35=NLG7.00,50=NLG10.00,NLG15.00;
Express,BY_WEIGHT,10=NLG10.00,20=NLG20.00,NLG25.00">
<PARAM NAME=handling VALUE="NLG5.00">
<PARAM NAME=handlingtable VALUE="UNITED KINGDOM=NLG0.00,FRANCE=NLG1.00">
<PARAM NAME=popupwindow VALUE="YES">
<PARAM NAME=label VALUE="Druk bestelling af">
<PARAM NAME=title VALUE="Druk bestelling af">
<PARAM NAME=instructions VALUE="(Kies vanuit je browser 'print', vul het formulier in, en fax dit naar ons op +1 (0)800 123-4567)">
<PARAM NAME=section1 VALUE="Naam, Adres, Telefoon">
<PARAM NAME=section2 VALUE="Leveringsinformatie">
<PARAM NAME=section3 VALUE="Betalingsinformatie">
<PARAM NAME=footnote VALUE="*Make checks payable to Microburst Technologies, Inc.">
<PARAM NAME=return_url VALUE="http://www.uburst.com">
<PARAM NAME=clearcart VALUE="NO">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="208,208,208">
</APPLET>