New answers tagged

0

Manage to fix it. The email template was using {{var items}} but changing it to {{var items|raw}} sorts it.


0

Step 1: First you need to add a layout file in your module. modulename/view/frontend/layout/yourxml.xml <?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Label" ...


0

Yes, you can retrieve credit card details from order object. $order is of type Magento\Sales\Model\Order The following methods get the credit card details: $order->getPayment()->getCcExpMonth(); $order->getPayment()->getCcExpYear(); $order->getPayment()->getCcLast4();


0

It seems to me that expiration date is a sensitive data that shouldn't be sent threw an email ? But may be I'm wrong. Actually you probably doesn't have any place where this data is stored.


0

How can we call this layout in phtml block which we added in email template ?


Top 50 recent answers are included