Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Earth.
    Posts
    19
    Plugin Contributions
    0

    Default Invoice layout - swapping display of postcode and county

    Which file do I need to edit to swap the position of the postal/zip code with the county field?

    As in the UK, the postcode comes after the country name.

    Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Invoice layout - swapping display of postcode and county

    Which version of Zen Cart are you using?
    What contributions/addons/mods/customizations have you done/added to your site?
    .

    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.

  3. #3
    Join Date
    Sep 2005
    Location
    Earth.
    Posts
    19
    Plugin Contributions
    0

    Default Re: Invoice layout - swapping display of postcode and county

    oops - I am using 1.3.2

    The only mods I have are the UK billing module to accept UK debit cards.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Invoice layout - swapping display of postcode and county

    In v1.3.5 a new layout format was added to the address_format table which supports the UK-preferred address structure.

    Code:
    INSERT INTO address_format VALUES (6, '$firstname $lastname$cr$streets$cr$city$cr$state$cr$postcode$cr$country','$postcode / $country');
    .. and then the countries which use this 6th format were updated as well (Admin->Locations->Countries)
    .

    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.

  5. #5
    Join Date
    Feb 2006
    Location
    UK
    Posts
    30
    Plugin Contributions
    0

    Default Re: Invoice layout - swapping display of postcode and county

    I have changed and tested the 5 dropdown options in Countries format but none of them change the invoice to the following:

    Customers Name
    Address Line 1
    Address Line 2
    Town City
    County
    Postcode
    Country

    I am sure it is something I am doing wrong but could you maybe point me in the right direction please?

    Many thanks.

    H

    PS My site is 1.3.6

  6. #6
    Join Date
    Nov 2006
    Location
    London, UK
    Posts
    132
    Plugin Contributions
    0

    Default Re: Invoice layout - swapping display of postcode and county

    Quote Originally Posted by BigMacYin View Post
    I have changed and tested the 5 dropdown options in Countries format but none of them change the invoice to the following:

    Customers Name
    Address Line 1
    Address Line 2
    Town City
    County
    Postcode
    Country

    I am sure it is something I am doing wrong but could you maybe point me in the right direction please?

    Many thanks.

    H

    PS My site is 1.3.6
    I managed to work around the problem by inserting into SQL the following:

    INSERT INTO address_format VALUES (7, '$firstname $lastname$cr$streets$cr$city$cr$postcode$cr$country','$postcode / $country');
    Input this into Admin / Tools / Install SQL Patches.

    Then, under Admin / Localisation / Countries, select United Kingdom, and set the address format to 7.

    I removed the "state" field from what Dr. Byte put, and it comes out exactly the way I want it. I have disabled a lot of the inputs on the "log in" page, so I don't know if the way it comes out on your site will be different, but what I get is this:

    Name, Surname
    Street Address
    Line 2
    City
    Postcode
    Country

    Hope this helps! I noticed it won't change invoices for orders already placed, but it does change the format for future orders.

 

 

Similar Threads

  1. Display Attributes on PayPal Payment Page and Invoice
    By numinix in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 1 Sep 2010, 08:00 PM
  2. Big Royal Mail module - delete county and postcode
    By snow-man in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Sep 2008, 08:06 AM
  3. Order History and Invoice Ignores USPS Display Options?
    By fancypants in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2007, 02:46 AM
  4. pay by invoice if county=x
    By analographi in forum Addon Payment Modules
    Replies: 4
    Last Post: 21 Mar 2007, 12:17 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