uShopPrintImageButtonCGI_fr.class
The uShopPrintImageButtonCGI 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.
Note that this applet is identical to the uShopPrintButtonCGI applet
except this applet allows you to specify any image to be used instead
of a regular text label on the button. The image can be any .gif or
.jpg and can be of any size. There is also an option to specify whether
you want a 3-D border around the applet or not.
See also ushop_cgiscript_fr.pl.
Parameters
- scriptpath - The full path to the ushop_cgiscript_fr.pl on your server. Example:
"http://www.mystore.com/cgi-bin/ushop_cgiscript_fr.pl".
- 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".
- image - The image to be displayed as the button. This parameter can be
specified as the full URL to the image or as the path relative to
where the .class files are located. If the image is in the same
directory as the .class files, then you can just specify the image
name.
- border - This parameter lets you specify whether you want a 3-D border
around the image or not. The default is "YES". If you do not
want a border, specify this parameter as "NO".
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopPrintImageButtonCGI_fr.class" WIDTH=55 HEIGHT=45>
<PARAM NAME=scriptpath VALUE="http://www.uburst.com/cgi-bin/ushop/ushop_cgiscript_fr.pl">
<PARAM NAME=title VALUE="Imprimer commande">
<PARAM NAME=instructions VALUE="(Sélectionnez le bouton 'Imprimer' de votre navigateur, remplissez le formulaire puis expédiez nous celui-ci par fax au numéro 1-800-123-4567)">
<PARAM NAME=section1 VALUE="Nom, Adresse, Téléphone">
<PARAM NAME=section2 VALUE="Informations sur l'expédition">
<PARAM NAME=section3 VALUE="Informations sur le mode de paiement">
<PARAM NAME=footnote VALUE="*La TVA spécifique sera ajoutée.">
<PARAM NAME=return_url VALUE="http://www.uburst.com">
<PARAM NAME=image VALUE="example_print_button.gif">
<PARAM NAME=border VALUE="YES">
</APPLET>