Hello Nicolas,
Thank you for your suggestion.
I have planed to edit the order admin email notification file. I need its text version only. So, I am editing order_admin_notification.text.php
I need the email in the following format and I am trying to do it like this:
echo"Email :".$data->customer->user_email[0]."\n";
echo "Bill Name :".$data->customer."\n";
echo "Bill Address1 :".$data->cart->billing_address."\n";
echo "Bill Address2 :".$data->customer->user_email[0]."\n";
echo "Bill City :".$data->cart->billing_address->adress_city."\n";
echo "Bill State :".$data->cart->billing_address->adress_state."\n";
echo "Bill Country :".$data->cart->billing_address->adress_country."\n";
echo "Bill Zip Code :".$data->cart->billing_address->adress_post_code."\n";
echo "Bill Phone Area Code :".$data->cart->billing_address->adress_city."\n";
echo "Bill Phone Prefix :".$data->cart->billing_address->adress_telephone."\n";
echo "Bill Phone Number :".$data->cart->billing_address->adress_telephone."\n";
I know very little about PHP and didnt find any professional one for this. however, I see the error "Catchable fatal error: Object of class stdClass could not be converted to string" from 2nd line in ' $data->customer', ' $data->cart->billing_address' etc.
What mistake I am making here and what is the solution please.
Thank you very much.
Mohsin