0

Is it possible to write a twig conditional if the Billing Address is not the Same as the Shipping address?

{# something like #}
{% if order.shippingAddress is the same as the billing address  %}
    {# only the shipping address #}
{% else %}
    {# both shipping and billing address #}
{% endif %}

I've seen there are two handles when I test {{ dump(order) }}:

billingSameAsShipping and shippingSameAsBilling are present.

But they both return NULL although the addresses are the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.