www.uburst.com www.uburst.com

"More data wanted in log files"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Programmer Tips
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"More data wanted in log files"
Posted by Clark on Feb-25-02 at 08:45 PM (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
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: More data wanted in log files, Bill Weiner, Feb-25-02, (1)
Cool!, Clark, Feb-25-02, (2)
RE: Cool!, Bill Weiner, Feb-28-02, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: More data wanted in log files"
Posted by Bill Weiner on Feb-25-02 at 09:14 PM (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 . " | ";

STEP 5: Immediately BEFORE that line add this line:

print INV_LOG $id . " | ";

(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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Cool!"
Posted by Clark on Feb-25-02 at 10:00 PM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Cool!"
Posted by Bill Weiner on Feb-28-02 at 10:37 PM (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.)

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.