Jump to content

Just getting started


quikone

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.