1

I'm new to commerce but almost I've cracked all I need to my project but one piece still left. I can't display order shipping address. I've tried {{ order.shippingAddressId(shippingAddress) }} but it giving me order referance number.

From documentation: shippingAddressId # The id of the linked shipping address. You can get the shipping address model with the shippingAddress attribute. shippingAddress # This returns the address model from the database for the current shippingAddressId OR the caches address if the order is complete.

Please help...

1 Answer 1

2

Sounds like order.shippingAddress is all you need!

{% set orderAddress = order.shippingAddress %}

{{ orderAddress.firstName }}
{{ orderAddress.lastName }}
{{ orderAddress.address1 }}
{# ...etc! #}
1
  • Awesome!! I will try it tonight. Thank you!
    – Marcin
    Commented Jun 9, 2018 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.