Arrays

Arrays are set up in this store configuration document to provide your customer with options from drop down menus on the order form for shipping and payment and to provide payment instructions. There is also an array that, in Commercial grades of MyStore3™, lets you select a quantity discount schedule for each store item.

shipby:  This array provides a list of the shipping options that you offer. You can offer as many or few options as you like. Always keep the "0" array as is. The format is always
  "<option value=1>USA, Standard UPS";. Where the "value=" number is a multiplier on standard UPS ground rates to approximate enhanced services or out of country service. Your particular circumstance will dictate what value to use with each entry.

payby:  This array provides a list of the payment options offered. You can offer as many or few options as you like. All options in the default list are supported through a script on the secure MyStore.to server. Always keep the "0" array as is. The "value=" phrases are codes used at the server to provide your customer with the proper response to their payment option selection. IE: Selecting the "ccon" option will return a secure credit card information form for real time credit card processing.

payinstruct:  This array provides a list of the payment instructions corresponding to the "payby" option selected. The text in quotes shows up on the purchase order and customer confirmation copy. Each item in the list must have a corresponding item in the "payby" list.

qfact  (for MyStore3 Commercial only, see note)  This array allows you to apply quantity discounts throughout the store. The discount applies to each item depending on the quantity of that item selected. IE: the default qfact[0] indicates that if the quantity selected exceeds zero, then the discounted price will be 100% of the listed price. However, qfact[1] indicates that if the quantity selected exceeds 9, then the discounted price will be 90% of the listed price. You can have as many or few options as you like. Always keep qfact[0] and arrange the options in descending order of increasing discounts.

HINT  A useful option to run a store wide sale without having to change any database prices is to simply change the qfact[0] discount. The value will be the decimal equivalent of the percentage discounted. The other lines can be commented out or deleted.

NOTES:
To change an array always follow the format and observe quotes and commas. Lines can be removed by deleting or by commenting out. To comment out, place a double slash (//) in front of the line. Remaining lines must be renumbered consecutively starting with zero.
The quantity discount array, qfact() will appear in both the Lite and Commercial grades of the configuration file. This insures the ability to upgrade. The array is ignored in the Lite version.

Copyright © ImagineNation 1997 - 1999
Webmaster