www.uburst.com www.uburst.com

"Affiliate user information"

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

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Affiliate user information"
Posted by Patrick on Jan-22-02 at 11:32 PM (EST)
Is their away that when the affiliate logs on to read their report, that I can remove the Subtotal, Sum of Subtotals and Rate so they can only see how much commission they have have but do not know how many sales they have generated nor the commission rate they have?

Example below:

As it stands now;

Affiliate ID: Test
Name: Test
Company: Test
Address: Test
Phone: Test
Fax: Test
Email: Test@test.com
Website: http://test.com

Date Reservation Number Subtotal
--------------+-------------------+--------------------
01/22/2002 01222002-006985500 75
01/22/2002 01222002-007074147 750

Total Number of Referrals = 2
Sum of Subtotals = $ 825.00
Rate = 1.0%
Commission = $ 8.25


And the way I want it;

Affiliate ID: Test
Name: Test
Company: Test
Address: Test
Phone: Test
Fax: Test
Email: Test@test.com
Website: http://test.com

Date
--------------+-------------------+
01/22/2002 01222002-006985500
01/22/2002 01222002-007074147

Total Number of Referrals = 2
Commission = $ 8.25

Thanks

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: Affiliate user information, Bill Weiner, Jan-23-02, (1)
Thanks, Patrick, Jan-23-02, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Affiliate user information"
Posted by Bill Weiner on Jan-23-02 at 05:28 AM (EST)
The only way to remove that information from the affiliate reports is to make a couple mods to the ushop-lib.pl script, as described below:

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 "sub get_report_text"... this will get you to the start of the subroutine that generates the affiliate report output.

STEP 4: Within that subroutine, locate the following line:

$formatted_line = sprintf("%-15s%-20s%s\n",$date,$order_id,$subtotal);

And change it to:

$formatted_line = sprintf("%-15s%-20s\n",$date,$order_id);

STEP 5: Within that subroutine, locate the following line:

$results .= "$lang_sum_of_subtotals = " . $formatted_line . "\n";

And comment it out by putting a # in front of it:

#$results .= "$lang_sum_of_subtotals = " . $formatted_line . "\n";

STEP 6: Within that subroutine, locate the following line:

$results .= "$lang_rate = " . $rate . "\n";

And comment it out by putting a # in front of it:

#$results .= "$lang_rate = " . $rate . "\n";

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

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 . "Thanks"
Posted by Patrick on Jan-23-02 at 08:25 AM (EST)
Thanks, just the way I wanted it.
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


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.