In magento 2 how to remove coma from billing and shipping address of order confirmation email template.

Order confirmation mail is called from "order_new.html" file.

In this file billing address is called as"{{var formattedBillingAddress|raw}}" this line and the shipping address is called as "{{var formattedShippingAddress|raw}}".

In which file i have to edit? How can i do this? Please help me to achieve this.

$templateVars = array(
        'store' => $this->storeManager->getStore(),
        'message'   => 'We processed your order ID We will contact you soon in mail for the acknowledgement if you not receive mail within 4 hours please get help from support@xxx.com',
        'order' => $order,
        'store'=> $store,
        'productName'=> $productName,
        'payment_html' => $this->getPaymentHtml($order),
        'formattedShippingAddress' => $this->getFormattedShippingAddress($order),
        'formattedBillingAddress' => $this->getFormattedBillingAddress($order),
| improve this answer | |
  • Where can we add/edit this code ? – Vignesh Bala Mar 11 at 13:25

Your Answer

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

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