SilverTreasure Posted May 16, 2003 Posted May 16, 2003 I install the Gift Voucher contribution without any problems. Thanks to its programmer! However the program sends an email with a $10 Gift Voucher to each New customer! I want to know how to turn this OFF. I appreciate your help. :!: :!: :!: :!: :?: :?: :?: :?: :?: :?:
Guest Posted May 16, 2003 Posted May 16, 2003 My 2 cents worth on how to turn off the feature: 1. cd to the catalog directory and search the source code for one of the strings thats always sent in the email. In linux use the find command, and if you need tips on how to do that just ask. In windows I couldnt tell you how to search - its probably in some IDE dialog box like everything else in windows. You may have to do this search twice because in many codes the string is defined in one file as a string constant and then the constant is used everywhere else in the actual code. String constants are easy to recognize becasue by convention they are always IN_UPPER_CASE_LIKE_THIS. 2. Once you have identified the files where the string exists, read the source code for these files. One of them will be sending an email message in a loop. 3. comment out that line of code. 4. write down what you did in a notebook just in case you broke something 5. test the cart's new behavior
Daemonj Posted May 16, 2003 Posted May 16, 2003 In includes/add_application_top.php find the line: define('NEW_SIGNUP_GIFT_VOUCHER_AMOUNT', '10'); and comment it out. Read the install.txt as well. ;) "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted May 16, 2003 Posted May 16, 2003 Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.
Daemonj Posted May 16, 2003 Posted May 16, 2003 Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime. Your point?? I directed him to the install.txt where the information was listed. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Recommended Posts
Archived
This topic is now archived and is closed to further replies.