Post by fred123 » Thu Apr 25, 2013 11:51 pm

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 :)

Attachments

cheque.png

cheque.png (8.95 KiB) Viewed 615 times


Active Member

Posts

Joined
Fri Aug 26, 2011 3:13 pm

Post by rupaknepali » Fri Apr 26, 2013 12:21 am

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 :)

Rupak Nepali
webocreation.com@gmail.com
http://webocreation.com
Enjoy! Tips and tricks as well as free module.


Active Member

Posts

Joined
Mon Apr 25, 2011 7:04 pm

Post by fred123 » Fri Apr 26, 2013 1:11 am

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 :(

Active Member

Posts

Joined
Fri Aug 26, 2011 3:13 pm

Post by fred123 » Fri Apr 26, 2013 1:17 am

I put the $template->data['payment_address'] = ""; and all the bits are still there :(

Active Member

Posts

Joined
Fri Aug 26, 2011 3:13 pm

Post by fred123 » Sat Apr 27, 2013 10:09 pm

any further suggestions pleas? This is driving me mad!

Thanks

Active Member

Posts

Joined
Fri Aug 26, 2011 3:13 pm
Who is online

Users browsing this forum: No registered users and 121 guests