Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    48
    Plugin Contributions
    0

    Default Order confirmation address formatting

    Hi, I would like to change the format of the delivery and/or billing addresses in the order confirmation emails. The current format is:

    Joe Bloggs
    10 High Street
    Anytown, BL55 1AB
    Anytownshire, United Kingdom


    but would like to change this to:

    Joe Bloggs
    10 High Street
    Anytown
    Anytownshire
    BL55 1AB
    United Kingdom


    The reason for this being our label printer allows us to highlight text in an email and print the address label but as the formatting is wrong, it means we need to edit the email first and it can be quite time consuming!

    I've found the email file (shop/includes/classes/orders.php) but it calls an array for the address and I can't find where this array is defined!

    Thanks in advance for any pointers on this.

  2. #2
    Join Date
    Dec 2006
    Posts
    48
    Plugin Contributions
    0

    Default Re: Order confirmation address formatting

    Someone must be able to point me in the right direction surely!?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Order confirmation address formatting

    Zen Cart formats addresses according to established international standards/formats. Hence the display of the address block on invoices is done using the same logic.

    If you want to use our own standard regardless of what the postal company's standard address format is, you will need to write custom code to do that.
    The Zen Cart code to do it for admin-related content is in /admin/includes/functions/general.php ... in the zen_address_format() function.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Order Confirmation email address?
    By PortraitArtist in forum Managing Customers and Orders
    Replies: 12
    Last Post: 27 Jan 2014, 03:17 PM
  2. Order Confirmation Edit Address Link
    By yuguang in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Jul 2009, 07:45 PM
  3. Change my email address in order confirmation
    By starrydesigns in forum Managing Customers and Orders
    Replies: 5
    Last Post: 10 May 2008, 04:46 PM
  4. Payment address on order confirmation
    By Ryk in forum General Questions
    Replies: 4
    Last Post: 30 Aug 2006, 10:40 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR