Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

  3. #3
    Join Date
    Nov 2011
    Posts
    80
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. blank order information when billing and shipping address match
    By dealman876 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 23 Mar 2013, 05:10 PM
  2. Billing address empty on checkout confirmation
    By Sam_n in forum General Questions
    Replies: 0
    Last Post: 25 Nov 2011, 09:11 PM
  3. making First Order shipping and billing address match
    By NamSingh in forum General Questions
    Replies: 6
    Last Post: 11 Apr 2011, 01:36 AM
  4. Order Confirmation email suddenly stopped showing delivery and coupon info?
    By meltdowncomics in forum Managing Customers and Orders
    Replies: 3
    Last Post: 23 Jan 2009, 02:32 AM
  5. Updating customer delivery / billing address
    By adeturner in forum General Questions
    Replies: 4
    Last Post: 23 Oct 2007, 06:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg