Hi,
I want to customize emails which are sent to vendor/customer.
I have created a template override.
The Bill to/Ship to information is in a tabular form:
| Bill to | Ship to |
First name | ABC | XYZ |
City | CityA | CityB |
However, I need to customize as below:
Bill To:First_name Last_name
Address_1 Address_2
City Zip
State Country
Phone
Ship To:First_name Last_name
Address_1 Address_2
City Zip
State Country
Phone
I am able to get the Bill To details using $this->orderDetails['details']['BT']->first_name variables.
I am facing issue in getting the Country and State names.. I am able to get only Country/state ids.
Also, I am not sure how to get for Ship To details. How to check if both billing and shipping information are same?
Please assist.
Thanks.