0

I am running this code in my Template file:

echo($_order->getDeliverydate());

It echo a date, doing that in my transaction mail, it stays empty:

{{var order.getDeliverydate()}}

Any ideas what I might be missing?

1 Answer 1

1

Try with

{{var order.deliverydate }}

I hope its working fine.

1
  • Perfecto :-) ... now the only question is, how I could reformat the date. The current output is 2019-07-10, I want 10.07.2019
    – Arnie
    Commented Jul 10, 2019 at 10: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.