uShopPrintButtonCGI.class
The uShopPrintButtonCGI applet provides a means by which the
customer can print the current contents of the shopping cart and then
Fax or Mail the order to the store owner. Due to the fact that older
browsers do not have the ability to print applets, the only way to
provide this printing ability was to use the ushop_cgiscript.pl to
create a dynamic .html page that can be printed from all browsers.
Thus, in order to use this print button, you must have the
ushop_cgiscript configured 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".
- 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 - If you specify this parameter, uShop will add a BACK link to the page
that will allow the customer to link to the specified page. Example:
"http://www.uburst.com".
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopPrintButtonCGI.class" WIDTH=80 HEIGHT=30>
<PARAM NAME=scriptpath VALUE="http://www.uburst.com/cgi-bin/ushop/ushop_cgiscript.pl">
<PARAM NAME=label VALUE="Print Order">
<PARAM NAME=title VALUE="Print Order">
<PARAM NAME=instructions VALUE="(From your browser select print, fill out the form, then fax it to us at 1-800-123-4567)">
<PARAM NAME=section1 VALUE="Name, Address, Telephone">
<PARAM NAME=section2 VALUE="Shipping Information">
<PARAM NAME=section3 VALUE="Payment Information">
<PARAM NAME=footnote VALUE="*Appropriate sales tax will be added.">
<PARAM NAME=return_url VALUE="http://www.uburst.com">
</APPLET>