----------------------- Shopping Cart ---------------------------- Contents: 1. Step by step installation guide. ==================================================================== 1. Step by step installation guide. Step 1. ******* Unzip all files from cart.zip. You should get the following files: readme.txt - this file cart.pl – Shopping Cart script ashman.pl - standalone script for carts cleanup shop_date.pl - ssi script, which starts ashman.pl carttest.pl – Sample script to test Shopping Cart carttempl.html – Sample template file cartssi.html – Sample file to illustrate ssi calls *.gif - image files Step 2. ******* Edit *.pl files if needed: the very first line of the following files cart.pl ashman.pl shop_date.pl carttest.pl contains full pathname to Perl, default settings should be OK for most systems, but you should consult your server man pages if not sure. Step 3. ******* Upload all *.pl and files to Accounts Online directory on your WEB server IN ASCII MODE. Set rights for all *.pl and *.pm files to 0755. Upload all *.gif files to the same directory on your WEB server IN BINARY MODE. Step 4. (optional) ******* Edit if needed and upload carttempl.html into your Accounts Online /tmpl directory. The cart.pl script looks for a line starting with **SHOPPING CART** tag to replace it with shopping cart interface. Step 5. ******* Please ensure your Accounts Online version is the same or newer as per Shopping Cart requirements (http://www.eastwright.com/internet/cart/index.html). Upgrade Accounts Online if required. Run Accounts Online System Setup. In Shopping Cart section - Set ‘Template name’ field to the name of your template file (if used) - Set ‘Confirmation URL’ field to the URL of the script to run after order/purchase (optional, you can use the sample script carttest.pl for testing) - Enter number of days to store customer’s cart info into ‘Keep cart for’ field. The keep counter resets every time shopping cart updated. Make sure the field is not empty and not zero. - Check ‘Use eCommerce Gateway’ box if you want checkout to be handled by credit card transaction gateway - Check ‘Qty field in invoices’ box if you want Qty field to be used in emailed invoices (if unchecked Qty always set to 1 and multiple items are being duplicated). Step 6. ******* Normally ashman.pl is to be run once every day by crontab. If you do not have access to crontab on your server or do not know what crontab is at all use shop_date.pl instead. Place the following html code on the page which gets maximum hits per day. Every time this page being accessed shop_date.pl will check last time ashman.pl was activated and run it if necessary.