Hi
Some one know how i can remove customer shipping address from email, if shipping method Pickup?
Comment out/remove:
from ../catalog/view/theme/default/template/mail/order.tpl
Code: Select all
<?php if ($shipping_address) { ?>
<td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $shipping_address; ?></td>
<?php } ?>
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
nope... for guest's it's working, but not for customers =(grgr wrote: ↑Fri Oct 27, 2017 10:38 pmComment out/remove:
from ../catalog/view/theme/default/template/mail/order.tplCode: Select all
<?php if ($shipping_address) { ?> <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;"><?php echo $shipping_address; ?></td> <?php } ?>
Hi,
to remove shipping address when shipping method pickup in file catalog/model/checkout/order.php (line 510)
find:
and replace to:
this remove shipping address from invoices.
Good luck
to remove shipping address when shipping method pickup in file catalog/model/checkout/order.php (line 510)
find:
Code: Select all
$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))));
and replace to:
Code: Select all
if (isset($this->session->data['shipping_method']['code']) && ($this->session->data['shipping_method']['code'] !== 'pickup.pickup')) {
$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))));
} else {
$data['shipping_address'] = '';
}
Good luck
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
Who is online
Users browsing this forum: No registered users and 200 guests