uShopPrintButtonCGI_sp.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_sp.pl.
Parameters
- scriptpath - The full path to the ushop_cgiscript_sp.pl on your server. Example:
"http://www.mystore.com/cgi-bin/ushop_cgiscript_sp.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_sp.class" WIDTH=125 HEIGHT=30>
<PARAM NAME=scriptpath VALUE="http://www.uburst.com/cgi-bin/ushop/ushop_cgiscript_sp.pl">
<PARAM NAME=label VALUE="Imprimir Pedido">
<PARAM NAME=title VALUE="Imprimir Pedido">
<PARAM NAME=instructions VALUE="(Desde el navegador, seleccione imprimir, complete el formulario y luego envíenoslo vía fax al 1-800-123-4567)">
<PARAM NAME=section1 VALUE="Nombre, Dirección, Telefono">
<PARAM NAME=section2 VALUE="Información Envio">
<PARAM NAME=section3 VALUE="Zahlungsarten">
<PARAM NAME=footnote VALUE="*Los impuestos apropiados seran añadidos.">
<PARAM NAME=return_url VALUE="http://www.uburst.com">
</APPLET>