uShopOrderContactCGI.class
The uShopOrderContactCGI applet is an order form that does
not request any payment information. This was designed to be used
as a "Contact Us" applet. This applet has four configurable fields
and an option on whether to send the current contents of the shopping
cart with the notification.
To use this applet, you must have configured the ushop_cgiscript.pl
in your cgi directory on your server.
See also ushop_cgiscript.pl.
Parameters
- scriptpath - The full path to the ushop_cgiscript.pl on your server. Example:
"http://www.mystore.com/cgi-bin/ushop_cgiscript.pl".
- 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 receipt page. That is, if you specify a full URL here,
uShop will add a "BACK" link on the bottom of the receipt page
to link to the specified URL. Example: "http://www.uburst.com".
- thankyou_url - Instead of letting uShop create an 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".
- label1 - The label to appear by the first text entry box. You can specify
any label you want such as "First Name:", "Name:", "Company:", etc.
The default value is "*Name:".
- label2 - The label to appear by the third text entry box. You can specify
any label you want such as "Phone:", "Work Phone:", "Day Phone:",
etc. The default value is "*Day Phone:".
- label3 - The label to appear by the fourth text entry box. You can specify
any label you want such as "Phone:", "Home Phone:", "Evening Phone:",
etc. The default value is "*Evening Phone:".
- label4 - The label to appear by the fifth text entry box. You can specify
any label you want such as "Best Time:", "Time Range:", "After:",
etc. The default value is "*Best Time:".
- validate - This parameter lets you specify whether you want to require that
the customer enters a value in all of the text entry boxes.
- cart_info - This parameter lets you specify whether you want to include the
current shopping cart contents (product information) with the
contact notification.
- 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".
- 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".
- 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
<APPLET CODE = "uShopOrderContactCGI.class" WIDTH=450 HEIGHT=450>
<PARAM NAME=scriptpath VALUE="http://www.uburst.com/cgi-bin/ushop/ushop_cgiscript.pl">
<PARAM NAME=message VALUE="A representative will contact you.">
<PARAM NAME=label1 VALUE="*Name: ">
<PARAM NAME=label2 VALUE="*Day Phone: ">
<PARAM NAME=label3 VALUE="*Evening Phone: ">
<PARAM NAME=label4 VALUE="*Best Time: ">
<PARAM NAME=validate VALUE="YES">
<PARAM NAME=clearcart VALUE="NO">
<PARAM NAME=cart_info VALUE="YES">
<PARAM NAME=popupwindow VALUE="YES">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="lightGray">
<PARAM NAME=return_url VALUE="http://www.uburst.com">
<PARAM NAME=thankyou_url VALUE="NONE">
</APPLET>