Results 1 to 9 of 9

Threaded View

  1. #7
    Join Date
    Jul 2012
    Posts
    16,798
    Plugin Contributions
    17

    Default Re: Replace states name with state abbreviation on admin orders

    Quote Originally Posted by firebug View Post
    No I need the States abbreviation to show instead of the whole spelled out States name when I print the customer invoice from the Zen Cart admin. In the ZC admin when you go to Customer>Orders and click on an order the customers address information shows the spelled out States name like this

    JOHN DOE
    123 ANY ST
    ANYTOWN, Florida 34238

    And I need it to be like this when I print the invoices.

    JOHN DOE
    123 ANY ST
    ANYTOWN, FL 34238
    Don't know where you are at with this problem; however, I just completed some research to try to help someone that was looking for a related address presentation issue. Their's was for an international address; however, I found that a similar solution may help without all sorts of coding as provided "above"... Get this, check the address format for United States: This would be found in the Locations/Taxes drop down of the admin panel. Then choose countries. Change to page 10. Look at the address format for United States. It probably is set to a value of 1.... This value assigns a display address with the state fully spelt. What you want is the two letter abbreviation... Change the address format to 2... This should provide an address format that has the two letter abbreviation for the state. It may be further helpful to require states to be a dropdown (as I am not sure what database lookup is performed when the state is manually typed in versus lookup from the table(s).)

    If existing entries are not automatically changed to the two letter abbreviation, and there is a need to change the records, I would suggest adding a new entry with the above settings, see the differences, track down the applicable information for the change outs, then update the database through your favorite method to change all of the entered addresses desired to be modified...

    Can't believe that it is/would be that easy, but there ya' go... (That said, I'm not sure how my database got populated with countries and states, if by initial installation or upload of some other data, but it does have information related to all of that.) Or upon rereading ihungil's response, I could be completely wrong regarding the order data, but possibly correct as far as the user's data...
    Last edited by mc12345678; 27 Nov 2013 at 07:45 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

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. How To Replace Store Name with Logo?
    By kenix in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Apr 2009, 05:55 PM
  3. Replies: 7
    Last Post: 24 Nov 2008, 04:25 AM
  4. How to replace category/product name with image?
    By Rotkale in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Dec 2006, 03:59 PM
  5. replace product name text with images - possible??
    By Matt Noiseux in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Oct 2006, 06:48 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