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
More data wanted in log files

Knowledge Base Lobby : uShop Support Conference : Programmer Tips
Nov-21-17 04:45 AM EST
Original Message
More data wanted in log files
Author Clark on 02-25-2002 at 20:45 (EST)
Hi,
Is there a way I can add the Affilliate ID to the Inventory Log? So the log would have the items listed on each line as they were purchased but also included the Affilliate ID associated with the sale of each product. Thanks!
Clark
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: More data wanted in log files Bill Weiner, 2002-02-25 21:14:13 (1)
            Cool! Clark, 2002-02-25 22:00:47 (2)
                 RE: Cool! Bill Weiner, 2002-02-28 22:37:56 (3)

Messages In This Discussion
         1. RE: More data wanted in log files
        Author Bill Weiner on 02-25-2002 at 21:14 (EST)
Here are instructions on how to add the Affiliate ID to the inventory log file:

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

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

STEP 3: Do a search on the following line:

sub update_inventory_log

This will get you to the start of the subroutine that writes data to the inventory log.

STEP 4: Further down in that subroutine, locate the following line:

print INV_LOG $order_number . " &pip; ";

STEP 5: Immediately BEFORE that line add this line:

print INV_LOG $id . " &pip; ";

(Note the "bar" or "pipe" in the above line might not show up correctly in this forum. So if not, just make sure you use a bar just like the other print lines.)

STEP 6: Save the file ... as TEXT if your editor asks... and try it out!

The inventory log file should now have the affiliate id (if any) at the start of each line.
TABLE OF CONTENTS
                 2. Cool!
                Author Clark on 02-25-2002 at 22:00 (EST)
Sweet Soul Sister that works like a sonofagun! Thanks for your always excellent help Bill!

Now I'm drunk with power so I'll ask more affiliate questions.

How do I include the affiliate ID on the orders that the customer prints out and faxes in?

Does every other order method record the transaction in the log files? If not, can I capture affilate ID's with eChecks, etc?

Thanks again Bill. You do great work.
TABLE OF CONTENTS
                         3. RE: Cool!
                        Author Bill Weiner on 02-28-2002 at 22:37 (EST)
Throughout the script, the affiliate id can be accessed via the global variable: $id

So here is one suggestion for displaying that $id on the "Print" page:

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

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

STEP 3: Do a search on the following line:

sub display_print_order_form

This will get you to the start of the subroutine that outputs the "Print" page html.

STEP 4: Near the end of that subroutine... just a few lines above the "exit" line... you should see the following line:

$order_footer = &get_cart_html();

STEP 5: Immediately AFTER that $order_footer line, try adding this line:

$order_footer .= "Affiliate: $id";

STEP 6: Save the script... as TEXT if your editor asks... and try it out.

(The affilate id should now appear near the bottom of the Print order page.)
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.