Closed (fixed)
Project:
Referral Sources
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
26 Dec 2009 at 04:37 UTC
Updated:
22 Jun 2010 at 21:30 UTC
How would one display the order's referral source information in an invoice.
Comments
Comment #1
plasticlax commentedis there a list of tokens or variables available in the invoice?
i used
in the invoice but i don't see any referral source information in that array. (that is how the old Lead Tracker module worked).
Comment #2
adamo commentedReferral source information does get added to the $order object during the 'load' op of hook_ubercart_order(). You should be able to get to it like so:
I'll see about getting tokens created for these values and for the name and code of the referral source selected.
Comment #3
adamo commentedTokens have been added for Ubercart orders. They are:
[referralsource_selection_rid] ID of referral source selection.
[referralsource_selection_title] Title of referral source selection.
[referralsource_selection_code] Code of the referral source selection.
[referralsource_other] Referral source "Other" text.
Commited to CVS, will be in the next dev snapshot.
Comment #5
chadhester commentedI would love to start using this feature in my invoices, and in a protected space on the user's account page (for user reg results). I know that the later is likely a separate issue.
Are tokens ready for use in the current stable version? If not, should these be expected in the next stable release? Lastly, to make things safer from direct database calls, I think it would be wise to include the "selection title" in the $order object.
My company would like me to expose an individual's response on their account page (also perhaps an admin email announcing the new user), and on the invoices that the admin receives. I can contribute code back when I'm done, but just wanted to collect information about this before I get started.
Thanks for any input.
UPDATE: Created a new Issue here http://drupal.org/node/835072