Dansie Shopping Cart
Dansie Shopping Cart
Frequently Asked Questions
Searchable F.A.Q.
FAQ Home
Show all FAQs

# 36: Permanent link
Question:
How do I make changes to the vars.dat and lang.dat files?

Answer:
Right click on vars.dat and select "Open with...".
Select Notepad. If you don't see Notepad, click "Choose Program" and set Notepad to open your .dat files.

In Windows XP, right click on the icon, then select "Properties". You will see "Opens with:..." click on the "CHANGE" button next to that and direct it to use Notepad.

I recommend making a back-up copy of your vars.dat and lang.dat files from time to time incase you really booger-up something up. Using Windows, right click on vars.dat, drag over to an empty space in the same directory, release and select "Copy here". That will make a copy of the vars.dat file in the same directory with the name of "Copy of vars.dat".

Remember, don't make any changes to your vars.dat or lang.dat file without reading what the ReadMe has to say about that variable first. This will save you a lot of trouble. After you make some changes to your vars.dat or lang.dat file on you computer, you need to upload that file to your cgi-bin on your website so the cart.pl script can read it and use the new settings.

Just FTP into your site, change the directory to your cgi-bin, set the upload format to "ASCII" and NOT "binary". Binary is for images, ASCII is for text files. If you upload a file in binary format it can get corrupted. Once you upload the vars.dat file replacing/overwriting the old vars.dat file, the cart.pl script can then use the new settings. Then run a test order to confirm your new changes have taken effect.

Checklist to make sure you are a vars.dat and lang.dat editing expert:

1. Always make a backup copy of vars.dat or lang.dat before you make changes to them. That way, if you bugger them up really bad, you can just revert to your backup copies.
2. Follow the instructions in the ReadMe for how to set the variables. Don't make any changes to your vars.dat or lang.dat file without reading what the ReadMe has to say about that variable first. This will save you a lot of trouble.
3. Be careful when making changes so that you do not over-write or erase variables or the arrow delimiters that go with the variables.
4. Use a plain text editor to open the file and always save as plain text. Microsoft's Notepad or Mac's SimpleText work good. Do not use an HTML editing program.
5. Upload/download the file to your cgi-bin in ASCII format only (as opposed to binary) You will find this setting in your FTP program.

See also:
http://www.dansie.net/examples/ReadMe.html#important



Dansie FAQ Wizard 2.0
http://www.dansie.net