It seems the Billing data (address) it used currently for the Order confirmation message.
If the shipping profile it's available for the order, its data should be used instead.

Files: 

Comments

vasike’s picture

i think the right solution for this is to build tokens for customer data:
shipping data if available, billing if not.

vasike’s picture

Status:Active» Needs review

here is a gerrit commit about this
https://code.drupalcommerce.org/#/c/699/

it add new token for Order entities : [commerce-order:customer-data].
this token will use the shipping data is present or billing if not.
this token has the same structure (type) as commerce profiles tokens.

vasike’s picture

patch from previous gerrit commit.

vasike’s picture

it seems that the last patch was not so right
here is a new one that should work.

lsolesen’s picture

Issue summary:View changes
Status:Needs review» Closed (duplicate)

Fixed a little more simple #2141093: Billing address is displayed rather than shipping in order confirmation letter. Cross-referenced the issues, if the other issue runs into problems.

@vasike what is your take on this?

lsolesen’s picture