general help needed

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

I am trying to set up this script since about 2 weeks and think I make more mistakes than to do it right. Who can help me, please ?

All these questions are from within the smart.cfg:

1) Do I have to enter the name of the smart.cfg (this variable is within the .cfg) or enter the scriptname of S-Mart.cgi ?

# URL to this script: $cgiurl = "http://www.xxx.de/cgi-bin/smart/S-Mart.cgi";

2) Will the $secureurl-line need to stay and is it correct or do I have to enter once again the URL to the script like the one in $cgiurl?:

#$secureurl = "https://www.rcinet.com/~fsdftp/smart/smart.cgi";

3) Do I have to end the path in $basepath with a slash or without ?

4) When I have the /temp-dir three steps down in the hierarchy is this correct?:

$tmpdir = "../tmp";

5) When disabling the functions tax and shipping, do I need the fields in the database anymore ?

6) Is this right to use the database or is it now HTML-pages?:

###################################################################### ##### # Do you want do do your own catalogue pages or have the computer generate # then on the fly, from a inventory database? # $useadmin = 0 (don't use it) # $useadmin = 1 (use it!) ###################################################################### ##### $useadmin = 1;

7) Do I have to put the path into or is it correct when the demo.db is in the same directory with smart.cfg ? Same question for all the other variables:

# Where is the database file you want to use? $resourcedb = "demo.db";

8) Where do I get the track.db when I want to us this function ? Will I have to generate a file of my own ?

9) When are mails sent? With 1 or 0 ? Sorry, I am no good in english.

# Do you want to let people know (by e-mail) when their order # as been processed, shipped, etc .. ? # $passivetrack = 0; Pull # $passivetrack = 1; Push $passivetrack = 1;

For the one that will help me : Very special thanks, because I even don't know how to fix all (my) bugs....Thank y

-- Michael Franke (mesle@gmx.de), June 06, 1999

Answers

Hi,

I will try to give you some help.

1) Yes enter the URL that leads to your S-Mart.cgi file. # URL to this script: $cgiurl = "http://www.xxx.de/cgi-bin/smart/S-Mart.cgi";

2) Yes enter it the same but you need "https://" in front. The "s" is for the secure server. If you use the "$secureurl" in your script remove the comment line mark in front of it or it won't work. "#" #$secureurl = "https://www.rcinet.com/~fsdftp/smart/smart.cgi";

3) No do not use the "/" if you look in the "s-mart.cgi" file it is added in there.

4) For your "tmp" directory you use the "$basepath" and if it is down a directory add that directory in "smart/tmp" Do not place a "/" before your "tmp" directory "/smart/tmp" it is added in the "s-mart.cgi".

5) Just set them to "0" do not erase them. You might change the wrong line plus you might have need for them later.

6) You can use the "smartadmin.cgi" to make your catalogue pages or just have links to your own pages. Place your items in the "demo.db" file or use "smartadmin.cgi" to enter them.

7) If it is in the same directory just use "demo.db" if it is in a different directory than your "$basepath" add the other directory "smart/demo.db".

8) Just name a empty file "track.db" also one called "item.id" also create a directory "tmp" and one called "order" In the "Readme" file it tells you the permisions to set.

9) The e-mails are sent when you click on "Buy It!" for the "buy2" command. The other e-mails are for "smartrack.cgi" if you update your orders and want to let the customer know. Then set it to "1" or for no updates set it to "0".

Hope it helps some things are not clear until you read the "Readme" file a dozen times then you still miss a couple of things.

Jim

-- James L. Farmer (jim@team-blankets.com), June 10, 1999.


Moderation questions? read the FAQ