Delivery Address for Store PickUp in order pick up email.
Hello
I have a situation where I have to store the delivery address and send it through order confirmation email for the STORE PICKUP option. Customers have different stores and the company wants to keep track of which store location did the pickup. Right now delivery address is N/A for the store pick-up setting.
Can anyone please check this?
Thanks
Re: Delivery Address for Store PickUp in order pick up email.
Re: Delivery Address for Store PickUp in order pick up email.
Quote:
Originally Posted by
nishajh
Issue is solved
This is where you help others like yourself in the future by supplying how you were able to accomplish your task.
Re: Delivery Address for Store PickUp in order pick up email.
Issue : Wanted to show the delivery address in the order confirmation email for Storepickup shipping method. Our customers have different store locations and they wanted the dealer to know which location is coming to pickup.
Solution:
In the includes/classes/order.php look for
$storepickup = (strpos($this->info['shipping_module_code'], "storepickup") !== false);
if ($this->content_type != 'virtual' && !$storepickup) {
$html_msg['ADDRESS_DELIVERY_DETAIL'] = zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, '', "<br />");
} else {
$html_msg['ADDRESS_DELIVERY_DETAIL'] = 'n/a';
}
CHANGE TO
$storepickup = (strpos($this->info['shipping_module_code'], "storepickup") !== false);
if ($this->content_type != 'virtual' && !$storepickup) {
$html_msg['ADDRESS_DELIVERY_DETAIL'] = zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, '', "<br />");
} else {
$html_msg['ADDRESS_DELIVERY_DETAIL'] = zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, '', "<br />");
}
Thanks
Re: Delivery Address for Store PickUp in order pick up email.
Thank you for helping others.:clap: