Back to e-Business Applet |
Parameters |
mark the
parameters that are required.
Parameters that control data | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
<PARAM NAME="DATA_FILE_NAME" VALUE="data.txt"> name of your text data file. Default is data.txt. If the data file is placed in another directory than the applet this parameter must include the relative path from the directory of the applet. For example: The applet is in http://www.javazine.net/catviewpro/ and the data file is in http://www.javazine.net/catviewpro/db/data.txt then this parameter must be <PARAM NAME="DATA" VALUE="db/data.txt"> |
||||||||||||||||
![]() |
<PARAM NAME="DATA_FILE_DELIMITER"
VALUE="COMMA"> specify the character used to separate columns in your data file. Valid DELIMITER values are COMMA, SEMICOLON, TAB, QMARK (') or DQMARK ("). COMMA is default. |
||||||||||||||||
![]() |
<PARAM NAME="DATA_FILE_ROW_COUNT"
VALUE="1200"> number of rows in your data file |
||||||||||||||||
![]() X is the column number starting from 1 |
ADD A COLUMN PROPERTY FOR EACH COLUMN IN YOUR DATA FILE BEGINNING WITH
COLUMN_1, COLUMN_2 ... COLUMN PROPERTIES HAVE MULTIPLE ATTRIBUTES EACH WITH A SYNTAX LIKE NAME=VALUE COLUMN ATTRIBUTES ARE SEPARATED BY SEMICOLONS (;) THE NAME ATTRIBUTE IS THE COLUMN NAME THE WIDTH CAN BE USED TO SET THE INITIAL WIDTH OF THE COLUMN. BY DEFAULT THE COLUMN WIDTH IS AUTOMATICALLY CALCULATED THE TYPE ATTRIBUTE CAN HAVE THE FOLLOWING VALUES TYPE=STRING (COLUMNS OF TYPE=STRING WILL ARE SORTED AS STRINGS WHEN THE COLUMN HEADER IS CLICKED) TYPE=NUMBER (COLUMNS OF TYPE=NUMBER WILL ARE SORTED AS NUMBERS WHEN THE COLUMN HEADER IS CLICKED) TYPE=URL (COLUMNS OF TYPE=URL ARE LINKS THAT WILL BE SHOWN WHEN CLICKED ON) TYPE=IMAGE (COLUMNS OF TYPE=IMAGE ARE LINKS TO IMAGES THAT WILL BE SHOWN WHEN CLICKED ON) TYPE=CATEGORY (COLUMNS OF TYPE=CATEGORY ARE USED GROUP THE DATA INTO CATEGORIES) THE BASEURL ATTRIBUTE CAN BE USED FOR COLUMNS OF TYPE=URL OR TYPE=IMAGE THE VALUE IN COLUMNS OF TYPE=URL OR TYPE=IMAGE ARE ADDED TO THE BASEURL ATTRIBUTE VALUE WHEN THE COLUMNS ARE CLICKED ON COLUMNS WITH AN ALIAS ATTRIBUTE WILL DISPLAY THE ALIAS INSTEAD OF THE COLUMN VALUE FOR COLUMNS OF TYPE=URL OR TYPE=IMAGE THE ALIAS=link OR ALIAS=Photo IS USEFULL Notice that attributes are separated with semicolons.
|
Parameters that control the ordering | |
---|---|
![]() |
<PARAM NAME="ORDER_PROTOCOL" VALUE="smtp"> <PARAM NAME="ORDER_PROTOCOL" VALUE="http"> If ORDER_PROTOCOL is set to smtp the applet try to connect directly to
the server specified in the email_host parameter below. When set to
"http" the applet will use a form mail cgi to email the orders.
This will normally work for all. |
![]() |
<PARAM NAME="ORDER_EMAIL_HOST"
VALUE="mail.compuserve.com"> Only used if email_protocol is set to "smtp" Set the ORDER_EMAIL_HOSTparameter to the outgoing email server (smtp server) or incoming POP3 server you use in other email clients. If the ORDER_EMAIL parameter is you@yourserver.com the ORDER_EMAIL_HOST parameter may be something like mail.yourserver.com. For test purposes you can try to use www.javazine.net as the email host. |
ORDER_CGI | <PARAM NAME="ORDER_CGI"
VALUE="http://www.javazine.net/orderprocess.pl"> The applet will make a http post of the order content to the cgi script specified in this parameter. This feature will allow e-Business Applet to integrate with a backend e-commerce server. It is called ORDER_CGI but the cgi script can do anything with the order data. Here is detailed specification of the form field parameters. |
![]() |
<PARAM NAME="ORDER_EMAIL"
VALUE="admin@trading.dk"> orders are sent to this email address. |
ORDER_EMAIL_SUBJECT | <PARAM NAME="EMAIL_SUBJECT" VALUE="Order info from MyShop"> |
ORDER_EMAIL_HEADER | <PARAM NAME="EMAIL_HEADER" VALUE="Thank you for
ordering from my shop"> specify a header line in the order email |
![]() ORDER_TEXT_2 ORDER_TEXT_3 ... |
<PARAMETER NAME="ORDER_TEXT_1" VALUE="this is the
first line in the free order text> Set free order text in the order form dialog one line of text per parameter |
![]() |
<PARAM NAME="ORDER_CURRENCY" VALUE="DKK"> Indicate the currency. Default USD |
![]() There can be multiple PAYMENT parameters beginning with PAYMENT_1 |
<PARAM NAME="PAYMENT_1" VALUE="name=Visa;
type=CREDITCARD; fee=0>
Type can be: |
![]() |
<PARAMETER NAME="ORDER_SECRET_KEY"
VALUE="af3d34gh4d21"> This is an encrypted representation of a password you choose. The password is used to decrypt credit card numbers before the order is submitted. Use the Crypt Applet utility to generate a secret key parameter and to decrypt the credit card numbers in the orders you receive. |
ORDER_VALUE_ADDED_TAX | <PARAM NAME="ORDER_VALUE_ADDED_TAX"
VALUE="25"> Enter the value added tax in percent. Default is 0%. The VAT is calculated and added to the total cost. |
ORDER_SHIPPING_COST | <PARAM NAME="ORDER_SHIPPING_COST"
VALUE="10"> Add a fixed cost for shipping. Added to the total cost. Default 0 |
ORDER_HANDLING_COST | <PARAM NAME="ORDER_HANDLING_COST"
VALUE="5"> Add a fixed cost for handling. Added to the total cost. Default 0 |
ORDER_SHOW_CALCULATED_COST | <PARAM NAME="ORDER_SHOW_CALCULATED_COST" VALUE="NO"> will hide the calculated cost on the order form dialog |
Form parameters posted to cgi (only for advanced users) | |
---|---|
RECEIPT_NO | unique 10 digit number + a modulus10 check digit. This number is generated automatically for each order |
MERCHANT_BILLING_CODE | merchant id used by some credit card operators and payment gateways |
CUSTOMER_ID | The customer id can be set as a parameter at load time. This can be used to assign a unique ID to a customer. |
CUSTOMER_EMAIL | email given by customer in the order |
CUSTOMER_NAME | name given by customer in the order |
CUSTOMER_COMPANY | company given by customer in the order |
CUSTOMER_ADDRESS | address given by customer in the order |
CUSTOMER_CITY | city given by customer in the order |
CUSTOMER_ZIP | zip given by customer in the order |
CUSTOMER_STATE | state given by customer in the order |
CUSTOMER_COUNTRY | country given by customer in the order |
CUSTOMER_TELEPHONE | telephone given by customer in the order |
CUSTOMER_COMMENT | email given by customer in the order |
PAYMENT_METHOD | payment method selected by the customer |
CREDIT_CARD_NUMBER | credit card number given by the customer. Credit card numbers are encrypted by the e-Business Applet and can be decrypted by the Crypt Applet |
NAME_ON_CREDIT_CARD | name on the credit card give by customer |
EXPIRATION_MONTH | expiration month od the credit card give by customer |
EXPIRATION_YEAR | expiration year of the credit card give by customer |
ITEM_COUNT | number of items ordered |
ITEM_ID_1, ITEM_ID_2 ..... | if the one of the columns are of type ID each ordered item is put in a form parameter with names running from item_id_1, item_id_2 ... to the number of items given in ITEM_COUNT above. |
ITEM_QUANTITY_1, ITEMQUANTITY_2 .... | the quantities for each item specified above in the item_id_1 ... parameters |