quikone Posted March 28, 2009 Share Posted March 28, 2009 I have put a new field in my invoice form in ubercart for a pick up option. I am trying to figure out how to propagate that new field from another new field in the user form of drupal. The field name I am trying to get to show up when the invoice is generated is profile_pickup. So the field I want to propagate is in the ubercart uc_orders/template/in the file called customer.itpl.php. The information I am trying to use is from the Profile module. This is what I have written, but all I get in the field is the code. Any one have any ideas? Here is the short code; <?php echo t('Pickup Location:'); ?> [global $uid; $profile = profile_load_profile_values($uid); $uid->profile_pickup] ?> Thanks in advance for your suggestions, Ron Link to comment https://forums.phpfreaks.com/topic/151464-just-getting-started/ Share on other sites More sharing options...
quikone Posted March 30, 2009 Author Share Posted March 30, 2009 I found out what I have done wrong, this code works. Will anyone help with getting the pickup location instead of the name of the user? <b><?php echo t('Pickup Location:'); ?></b><br /> <?php global $user; $myname = $user->name; echo 'location = ' .$myname; ?> Link to comment https://forums.phpfreaks.com/topic/151464-just-getting-started/#findComment-796603 Share on other sites More sharing options...
quikone Posted March 30, 2009 Author Share Posted March 30, 2009 I wanted to edit this, but do not know how. Anyway, if there is not anyone who knows the answer or is willing to answer, how about a good tutorial or some direction so I can learn this. Thanks, Ron Link to comment https://forums.phpfreaks.com/topic/151464-just-getting-started/#findComment-796609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.