A couple more things

Posts: 96
Joined: 10/29/2007
Bug Finder

Two things I forgot to mention. I did use the uc_order_history to let my users see their order detail on a customized user profile page. Check it out here...

http://www.ipodfitnesscenter.com/users/demo

<?php
   
global $user;
    if (
$GLOBALS['user']->uid == arg(1)) {
    echo
'<div style="width: 99%;  padding-left: 1%;">
        <div class="cnt_hd_txt">
        <div id="fadeGreen">
            <div class="cnt_hd">Order History</div>'
;
            echo
uc_order_history($user->uid);
        echo
'</div>
        </div>
    </div>'
;
    }
   
$account = user_load(array('uid' => arg(1)));
   
drupal_set_title("Profile - ". $account->profile_fullname);
   
?>

(Yes Ryan, I did have to use drupal_set_title(), thanks for the tip)

If you click on the order, you'll see that I have including UPS and USPS tracking information in the order comments...

http://www.ipodfitnesscenter.com/user/52/order/40

The other thing you may have wondered when building an affiliate link, is why I used such a long path in the affiliate link. ie. Here is a sample link...
http://www.ipodfitnesscenter.com/ipod/fitness/nike/affiliate/52/go

I don't actually need the ipod - fitness - nike part of the URL, I could have used only affiliate, but by having my site keywords included in links pointing to my site, it increases my SEO rating for those pages.... (No big deal, but I had someone ask me about that when they made a link a few days ago.)

Thanks for all the help.
Jim

How are people doing Affilate Stuff with Ubercart By: VitaLife (24 replies) Tue, 10/30/2007 - 15:09