Page 1 of 1
Removing payable and address from checque order confirmation
Posted: Thu Apr 25, 2013 11:51 pm
by fred123
Hi,
I have modified the cheque payment option so I can use it for pay over phone.
I have managed to tweek all onsite bits to say what I want, however I cannot remove payee name and address from the order confirmation email.
Can anyone point me in the right direction of what and where to remove these?
I have added a screen shot it so you can see what I mean

Re: Removing payable and address from checque order confirma
Posted: Fri Apr 26, 2013 12:21 am
by rupaknepali
Please make the backup and follow the following steps, i have not tested it but hope it will work
Code: Select all
$template->data['payment_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format))));
Find the above code at catalog/model/checkout/order.php
just below it insert below
$template->data['payment_address'] = "";
Likewise
Code: Select all
$template->data['shipping_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format))));
Find the above code at catalog/model/checkout/order.php
just below it insert below
$template->data['shipping_address'] = "";
Let us know if anything happens

Re: Removing payable and address from checque order confirma
Posted: Fri Apr 26, 2013 1:11 am
by fred123
I only have $template->data['payment_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format))));
dont have the shipping address one

Re: Removing payable and address from checque order confirma
Posted: Fri Apr 26, 2013 1:17 am
by fred123
I put the $template->data['payment_address'] = ""; and all the bits are still there

Re: Removing payable and address from checque order confirma
Posted: Sat Apr 27, 2013 10:09 pm
by fred123
any further suggestions pleas? This is driving me mad!
Thanks