Zen Cart Logo
Forums / General Questions / Order Confirmation: Switching Billing and Delivery Address

Order Confirmation: Switching Billing and Delivery Address

Views: 653

Results 1 to 3 of 3
31 Aug 2012, 3:13 PM
#1
kdipaolo avatar

kdipaolo

New Zenner

Join Date:
Nov 2011
Posts:
81
Plugin Contributions:
0

Order Confirmation: Switching Billing and Delivery Address

Hi,

My task is to switch the delivery and billing address order in the order confirmation email for customers to look like this:

Billing Address

Joh Doe
1234 Work St
Columbus, OH 43235
United States

Delivery Address

Joh Doe
1234 Work St
Columbus, OH 43235
United States

ive gone into /public_html/teststore/includes/classes/order.php and switched the billing and delivery like below:

//addresses area: Billing
$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n";
$html_msg['ADDRESS_BILLING_TITLE'] = EMAIL_TEXT_BILLING_ADDRESS;
$html_msg['ADDRESS_BILLING_DETAIL'] = zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, '', "<br />");

//addresses area: Delivery
$html_msg['HEADING_ADDRESS_INFORMATION']= HEADING_ADDRESS_INFORMATION;
$html_msg['ADDRESS_DELIVERY_TITLE']     = EMAIL_TEXT_DELIVERY_ADDRESS;
$html_msg['ADDRESS_DELIVERY_DETAIL']    = ($this->content_type != 'virtual') ? zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, '', "<br />") : 'n/a';
$html_msg['SHIPPING_METHOD_TITLE']      = HEADING_SHIPPING_METHOD;
$html_msg['SHIPPING_METHOD_DETAIL']     = (zen_not_null($this->info['shipping_method'])) ? $this->info['shipping_method'] : 'n/a';

And it did not work, does anyone know a solution? Thanks for your help

31 Aug 2012, 4:22 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Order Confirmation: Switching Billing and Delivery Address

I edited that file the way you said you did and received the results you are looking for. I'm not sure why your changes didn't 'take'. File permissions, maybe ? I would check the file on the server to make sure it actually was changed.

31 Aug 2012, 4:34 PM
#3
kdipaolo avatar

kdipaolo

New Zenner

Join Date:
Nov 2011
Posts:
81
Plugin Contributions:
0

Re: Order Confirmation: Switching Billing and Delivery Address

hmmm okay ill check it out again, at least I know it works! Thanks for you detective skillz!