uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Clearing Affiliate Logs

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-20-17 06:45 AM EST
Original Message
Clearing Affiliate Logs
Author Ron Harter on 10-01-2001 at 11:27 (EST)
I just tried clearing the affiliate logs for the end of the quarter and could not clear them all.
They used to use a 2-digit year code 01 and now use a 4-digit code. It would not let me enter the 4 digits for the year 2001.

Thanks
Ron
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Clearing Affiliate Logs Joseph Pishgar, 2001-10-01 12:50:30 (1)
            RE: Clearing Affiliate Logs Bill Weiner, 2002-06-11 05:12:40 (2)

Messages In This Discussion
         1. RE: Clearing Affiliate Logs
        Author Joseph Pishgar on 10-01-2001 at 12:50 (EST)
Hello Ron,

I've not heard of this before as of yet, so I'm not entirely sure what the solution is. My recommendation is, if you are looking to start from scratch with the affiliate logs, simply go into your data directory and delete the ushop-affiliates.txt file and that should do the trick.
Also, if there are specific affiliates you need to delete, the ushop-affiliates.txt file is bar-dillineated and relatively easy to edit.

Hope this helps.

Regards,
Joseph Pishgar
Support Engineer
Microburst Technologies, Inc.
www.uburst.com
TABLE OF CONTENTS
                 2. RE: Clearing Affiliate Logs
                Author Bill Weiner on 06-11-2002 at 05:12 (EST)
What I believe is happening is that when we updated the order date format to have a 4-digit year, the date format in the affiliate log also got updated, but the logic in the affiliate clear method was not updated. So here is a way to correct that:

STEP 1: Make a backup of your ushop-lib.pl script... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$clear_year += 100;

STEP 4: Change that line to:

$clear_year += 2000;

STEP 5: Save the script... as TEXT if your editor asks... and try it out!
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.