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.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | shipping_data_for_order_confirmation-2008190-4.patch | 11.77 KB | vasike |
Comments
Comment #1
vasikei think the right solution for this is to build tokens for customer data:
shipping data if available, billing if not.
Comment #2
vasikehere 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.
Comment #3
vasikepatch from previous gerrit commit.
Comment #4
vasikeit seems that the last patch was not so right
here is a new one that should work.
Comment #5
lsolesen CreditAttribution: lsolesen commentedFixed 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?
Comment #6
lsolesen CreditAttribution: lsolesen commented