uShopOrder1SMTP_nw.class
The uShopOrder1SMTP applet is an order form which collects the
customer's personal and payment information and then emails the
information to the store owner. In addition, this applet also allows
you to setup shipping, tax, and payment options as described below.
Note that since this order method emails the information via regular
SMTP mail, the transactions will not necessarily be secure.
See also uShop Security.
Parameters
- mailto - The email address to send the order information to. Example:
"sales@mystore.com".
- subject - The subject that will appear on all order emails. Example:
"uShop Order".
- 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: "NOK2.00" would charge
customers an additional NOK2.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=NOK1.00,France=NOK1.00" would charge customers who
live in the UK or in France a NOK1.00 handling fee. Note that the Country
names should match those specified in the "countries" parameter.
- payment - This parameter lets you specify a list of payment methods that
you accept. Separate each method with a comma. Example: "Visa,
Master Card, Discover, COD" would allow customers to choose
to pay by Visa, Master Card, Discover, or COD.
- validate - This parameter lets you specify whether you want to let uShop
validate the credit card information before sending the order.
uShop has the ability to validate credit card numbers by verifying
the number of digits, checking the prefix, and performing a mod 10
checksum check on the card numbers. Supported credit card types
are MasterCard, Visa, Amex, Diners Club/Carte Blanche, Discover,
enRoute, and JCB. Set this parameter to "YES" is you want to
validate the card numbers. Otherwise, set this parameter to "NO".
The default value is "NO".
- 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".
- message - An optional message that will be included on the bottom of the
order receipt that is sent to the customer.
- 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".
- thankyou_url - Instead of letting uShop create an order receipt page after an
order is placed, this parameter lets you specify a URL of a custom
thankyou page (or any web page) that you want to appear after an
order is place. 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 order form example has been setup:
- To mail orders to info@uburst.com
- To put the subject "uShop Order" onto all order emails.
- To accept Visa, Master Card, Discover, and American Express payment methods.
- NOT to validate credit card numbers.
- 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 NOK1.00 handling fee for
customers from France, and a NOK5.00 handling fee for customers other countries.
- To add the message "Takk for din bestilling!." to all order receipts.
- 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 = "uShopOrder1SMTP_nw.class" WIDTH=450 HEIGHT=680>
<PARAM NAME=mailto VALUE="info@uburst.com">
<PARAM NAME=subject VALUE="uShop Order">
<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,PORTUGAL,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=NOK5.00,35=NOK7.00,50=NOK10.00,NOK15.00;
Express,BY_WEIGHT,10=NOK10.00,20=NOK20.00,NOK25.00">
<PARAM NAME=handling VALUE="NOK5.00">
<PARAM NAME=handlingtable VALUE="UNITED KINGDOM=NOK0.00,FRANCE=NOK1.00">
<PARAM NAME=payment VALUE="Visa,Master Card,Discover,American Express">
<PARAM NAME=validate VALUE="NO">
<PARAM NAME=popupwindow VALUE="YES">
<PARAM NAME=message VALUE="Takk for din bestilling!.">
<PARAM NAME=thankyou_url VALUE="NONE">
<PARAM NAME=clearcart VALUE="NO">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="208,208,208">
</APPLET>