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

firfin’s picture

Experiencing 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)

Babalu’s picture

subscribing. i would like to use the name (single line, first name or Last name) of the customer for mails to him

joshmiller’s picture

Title: Address Field and Rules » Address Field Not Available in Email Using Rules

Changing title to be more descriptive. Had one request in IRC today on this subject.

j4’s picture

Just 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

firfin’s picture

I 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?

firfin’s picture

As I understand it, offering tokens is outside of the scope of this module.

This module only does one thing, but does it correctly: store international postal addresses.

Maintainers, please re-open if I am mistaken.

firfin’s picture

Status: Active » Closed (won't fix)

And now actually closing issue.

firfin’s picture