Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    help question How to display state abbreviation in admin customer orders instead of whole name?

    Hi, I would like to display shipping and billing address in the orders details with the standard state abbreviation instead of the whole state name.

    Does anyone know what I need to change? I think I have to edit something in the admin/orders.php file, I'm just not sure what.

    Thanks.

  2. #2
    Join Date
    Jul 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    I would also like to know this as well. Can someone post a solution for this?

    I'm running zc 1.3.7

    thanks

  3. #3
    Join Date
    Jul 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    Ok. I have an update actually. Is it possible to simply store the state value as the two-letter abbrev in the db? It doesn't matter what it looks like in the drop-down menu we just need the value in the db table to be AL instead of Alabama (for example).

    If anyone knows a way how to do this please let me know.

    thanks

  4. #4
    Join Date
    May 2006
    Posts
    41
    Plugin Contributions
    0

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    It's stored in the zones table as both full name (zones.zone_name) and abbreviation (zones.zone_code).

  5. #5
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    [FONT=Comic Sans MS]OK, I'm probably missing something that is right in front of me.... This post seems to be asking what I'm looking for, but I still need the answer.

    I too want to list the state abbreviation instead of the state name on the Invoice and Packing Slip. Would someone tell me what file(s), table, etc. that I need to change to make this happen? I see that there is a zone_code field that has the data I want displayed, but I don't know how/where to tell it to display.

    Your help is greatly appreciated.

    ~Sharon[/FONT]

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    The address is built with the function zen_address_format ...

    You would have to either customize that or, what I would do is add a paramater to the function that only the invoice and packing files pass to it as true and alter the way the state is displayed so not to mess up other things ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    I'm definitely a baby zenner. Would you guide me more specifically?

    Quote Originally Posted by Ajeh View Post
    The address is built with the function zen_address_format ...
    Where is that function?

    Quote Originally Posted by Ajeh View Post
    I would do is add a paramater to the function that only the invoice and packing files pass to it as true and alter the way the state is displayed so not to mess up other things ...
    I know it is in English, but I don't have a clue where to start if I were going to do this. What files, tables, etc. should I be looking at?

    Thank you and I apologize for my lack of knowledge. I search for hours to see if someone else had this same question answered and may have missed that as well.

    ~Sharon

  8. #8
    Join Date
    Oct 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to display state abbreviation in admin customer orders instead of whole name?

    Thank you for your help Ajeh. I continued searching and found this post http://www.zen-cart.com/forum/showthread.php?t=57057 that seems to have done what I was wanting.

    ~Sharon

 

 

Similar Threads

  1. v139h Incorrect state abbreviation being passed to ???
    By JeffLC in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 12 Feb 2015, 03:03 PM
  2. v151 Replace states name with state abbreviation on admin orders
    By firebug in forum Managing Customers and Orders
    Replies: 8
    Last Post: 27 Nov 2013, 07:41 PM
  3. Display State in Customer Info Box in admin/customers.php
    By orchidlake in forum Customization from the Admin
    Replies: 3
    Last Post: 3 Nov 2010, 01:42 PM
  4. Save US State as a initials in database instead of full name
    By bellorusha in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Mar 2010, 04:40 PM
  5. Replies: 4
    Last Post: 18 Sep 2009, 11:05 PM

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