Interface
From the point of view of the CGI, its running like any other CGI called with the POST method. Its input is a & delimited series of name value pairs (name=value) and the whole thing is URL-encoded.
The CGI should find the pairs, determine the name and value for each, and decode the name and value. The CGI can then do whatever CGIs do. Anything written to standard output will go to the server, etc.
The input is currently in five parts.
The first part is the original input to thankyou.cgi. Names and descriptions of the values.
- prevlocation
- The location (and QUERY method string) where the order entered the shopping cart system of CGIs.
- sbid
- Shopping basket id. A unique identifier for the shopping cart making the CGI calls.
- storeid
- The store identifier of the store being shopped. This is the same id as in the auth file. Store ids are unique at each host.
The next 11 items are those entered in by the customer in the "Your Shopping Cart" form.
- Comments
- Name
- Company
- Address
- Address2
- City
- State
- Zip
- Phone
- Country
- PayType
- PayType is payment method chosen by the customer in the Shopping Cart form. It is a digit that corresponds to the order of the payment types in the ShopSite -> Commerce Setup -> Payment screen. E.G. PayType 0 is Discover, PayType 4 is American Express.
- pay1
- pay2
- pay3
- pay4
- These differ according to the PayType. For Visa, pay1 is card number, pay2 is name on card, pay3 is Company, and pay4 is the expiration date. For PayType C.O.D. all of these will be --.
- function
- A guide to where to go inside thankyou.cgi. Usual value is OK.
The next block of pairs represents the settings file for the store. All names are prefaced by S-. Many of these may be seen in the Hosting Service screen.
- S-bo_dir
- URL of ShopSite CGIs.
- S-bo_reg_url
- URL of ShopSite CGIs.
- S-bo_secure_url
- Secure URL of ShopSite CGIs.
- S-bo_use_security
- Use security in ShopSite?
- S-ccprocessor
- Credit Card Processor Type.
- S-customcgi
- Location of Custom CGI.
- S-datadir
- Data directory.
- S-from_addr
- "From" address in e-mail receipts.
- S-outputdir
- Output directory.
- S-outputurl
- URL of store.
- S-perl_loc
- Location of PERL executable.
- S-sb_dir
- Shopping basket directory.
- S-sb_prompt_comments
- Prompt for comments?
- S-sb_prompt_orderinst
- Prompt for ordering instructions?
- S-sb_reg_url
- URL of shopping cart CGIs.
- S-sb_secure_url
- Secure URL of shopping cart.
- S-sb_use_security
- Use security in shopping cart?
- S-sendmail_loc
- Location of sendmail executable.
The next block of name value pairs come from an internal thankyou.cgi table. All are prefaced by F-.
Items from the Checkout form.
- F-Name
- F-Company
- F-E-mail
- F-Address
- F-City
- F-State
- F-Zip
- F-Country
- F-Phone
The PayType stuff again:
- F-PayType
- F-pay1
- F-pay2
- F-pay3
- F-pay4
Miscellaneous information:
- F-ShipOn
- F-OrderInst
- F-Comments
- F-ProductTotal
- F-TaxTotal
- F-ShippingTotal
- F-GrandTotal
The next block of name value pairs come from the record for this order in the orders database. Each name is prefixed by O- and the name is the field name in the data base.
- O-Date
- Date of the order.
- O-OrderNum
- Order number.
Items from the various forms:
- O-Name
- O-Company
- O-Email
- O-Address
- O-Address2
- O-City
- O-State
- O-Zip
- O-Country
- O-Phone
Items for the shipping information. If the shipping information is the same as the billing information, these fields will have value --.
- O-ShipName
- O-ShipCompany
- O-ShipAddress
- O-ShipAddress2
- O-ShipCity
- O-ShipState
- O-ShipZip
- O-ShipCountry
- O-ShipPhone
PayType stuff:
- O-PayType
- O-pay1
- O-pay2
- O-pay3
- O-pay4
More form stuff:
- O-ShipOn
- O-OrderInst
- O-Comments
- O-ProductTotal
- O-TaxTotal
- O-ShippingTotal
- O-GrandTotal
Last, some items not on the form.
- O-NumItems
- Number of items in this order.
- O-RefName
- Associate name, if the customer arrived at the store via an associate referral.
- O-OrderData
- Some miscellaneous binary coded data. Usually a couple of random bytes (BSDI, Linux) or nothing (Solaris).
- O-Viewed
- Whether the order has been viewed from ShopSite by the merchant. n or y.
Last, information for each of the products in the order from the basket db. Each name starts with B and a two or more digit preface, which differs for each product. The products are numbered starting with 01. So, for the first product (item) in the basket, the prefix will be B01-.
The names and functions can be best understood by looking in the back office in the Products -> Add Product form.
- B00-Name
- B00-Price
- B00-Quantity
- B00-Sub-total
- B00-Finite Options
- B00-Freeform Options
- B00-OrigDB
- B00-OrigRNum
- B00-ship1
- B00-ship2
- B00-ship3
- B00-Options Box?
- B00-Option Text
- B00-Option Finite Text
- B00-Taxable
- B00-SKU
- B00-ship4
- B00-ship5
- B00-ship6
- B00-ship7
- B00-ship8
- B00-ship9
- B00-ship10
Back to Main Help Page | Search | Give Feedback | Upgrade Info
If you are not finding the help you need, please give detailed feedback.