Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
i have a problem with address field and rules ;)
I have an user profile with an address field. To inform the admin about a new user registration, i want to send a e-mail with the address field components. But i can only use patterns like [account:name].
If i switch to data selection i find account:field-user-billing-address: and as example account:field-user-billing-address:organisation-name. But the token is not overwritten at the e-mail output.
tested with address field 7.x-1.x-dev and rules 7.x-2.x-dev
anyone have the same problem? Or it is just my own failure at settings?
Comments
Comment #1
firfin CreditAttribution: firfin commentedExperiencing the same issue. I am using address field with a commerce order.
[commerce-order:commerce_customer_billing] does work, unfortunately this outputs the entire addressfield without any formatting (basically 1 long string of all the subfields)
Comment #2
Babalu CreditAttribution: Babalu commentedsubscribing. i would like to use the name (single line, first name or Last name) of the customer for mails to him
Comment #3
joshmillerChanging title to be more descriptive. Had one request in IRC today on this subject.
Comment #4
j4 CreditAttribution: j4 commentedJust to add that the problem still persists. Can some one please help with this?
EDIT: Actually using http://drupal.org/project/addressfield_tokens solves the issue.
Thanks
Jaya
Comment #5
firfin CreditAttribution: firfin commentedI confirm that addressfield tokens supplies tokens for addressfield.
Thanks for the find jaya.
I added a page about this in the handbook section. http://drupal.org/node/1758942 please review / elaborate
Maybe something should even be added to the project page?
Comment #6
firfin CreditAttribution: firfin commentedAs I understand it, offering tokens is outside of the scope of this module.
Maintainers, please re-open if I am mistaken.
Comment #7
firfin CreditAttribution: firfin commentedAnd now actually closing issue.
Comment #8
firfin CreditAttribution: firfin commentedmarked #1188778: Add token support for the various elements of an address field as a duplicates of this issue.