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
Affiliate user information

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-21-17 08:25 AM EST
Original Message
Affiliate user information
Author Patrick on 01-22-2002 at 23:32 (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
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Affiliate user information Bill Weiner, 2002-01-23 05:28:19 (1)
            Thanks Patrick, 2002-01-23 08:25:59 (2)

Messages In This Discussion
         1. RE: Affiliate user information
        Author Bill Weiner on 01-23-2002 at 05:28 (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%sn",$date,$order_id,$subtotal);

And change it to:

$formatted_line = sprintf("%-15s%-20sn",$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!
TABLE OF CONTENTS
                 2. Thanks
                Author Patrick on 01-23-2002 at 08:25 (EST)
Thanks, just the way I wanted it.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.