Reputation: 765
I am passing an array in template parameters in Magento's sendNewOrderEmail
function as:
$mailer->setTemplateParams(array(
'order' => $this,
'billing' => $this->getBillingAddress(),
'payment_html' => $paymentBlockHtml,
'sa' => $someArray // This is an array
)
);
But I am not able to use the variable sa
in the magento email template. I tried using it like {{var sa}}
But in the email i get Array
instead of the contents.
How can I display contents of the array in the email.
Upvotes: 0
Views: 4979
Reputation: 2719
You can try sa.key
where key is key in array.
Or you can merge this array with base params array
Upvotes: 2