Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Empty state causes duplicate entry of city

    ZCv1.56c
    OPC v2.3.2

    It doesn't feel like an OPC related issue.

    Checking out, as a guest, I enter

    Street Address
    Address Line 2 [left blank]
    City
    County/State/Province [left blank]
    Post/Zip Code
    Country

    In PayPal EC Checkout my selected address is

    Street Address
    City
    County/State/Province
    Post/Zip Code

    On completing the order with PayPal and returning to Site I get this message:

    The delivery address that you entered (Name, StreetAddress, City, , PostCode, Country) was replaced by the address you selected at PayPal. Please review your order and contact us if an update is needed.

    Reviewing the order on the checkout_success page, the delivery address is:

    Name
    StreetAddress
    City, City
    PostCode
    Country

    The blank State field in the checkout process has been populated with a duplicate of City.
    Simon

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,677
    Plugin Contributions
    123

    Default Re: Empty state causes duplicate entry of city

    This might just be the browser's autofill doing this. Have you tried another browser ?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Empty state causes duplicate entry of city

    There's no visual evidence of the State field being populated during checkout but I'll take from your post that it might the autofill my Dashlane password manager uses - I'll disable that (and try another browser).
    Simon

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,134
    Plugin Contributions
    11

    Default Re: Empty state causes duplicate entry of city

    I would think the bigger concern here is that the system accepts an address without the state since it is listed as required in guest checkout.

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

    Default Re: Empty state causes duplicate entry of city

    Does it only happen with PayPal?
    Does it only happen with UK addresses (vs a US one for example)? I wonder if the internal matching of the address returned by PayPal isn't finding a proper City-State-Country match and is filling in the city for an empty placeholder.
    .

    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.

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Empty state causes duplicate entry of city

    Quote Originally Posted by dbltoe View Post
    I would think the bigger concern here is that the system accepts an address without the state since it is listed as required in guest checkout.
    I believe that I made the state field optional - Minimum Values > State > Minimum length of state = [blank], I can't find any reference to it being 'required' in guest checkout.
    Simon

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,134
    Plugin Contributions
    11

    Default Re: Empty state causes duplicate entry of city

    This from 1.5.7 with OPC.

    Attachment 19095

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Empty state causes duplicate entry of city

    Quote Originally Posted by DrByte View Post
    Does it only happen with PayPal?
    I'll do a Square test and see whether it's just PayPal.
    Quote Originally Posted by DrByte View Post
    Does it only happen with UK addresses (vs a US one for example)?
    I could try a US PayPal shipping address I guess. This is the only time I've seen this - the majority of sales have been virtual orders without shipping addresses and it seems that the physical order customers (UK) did in fact enter their state(county) - typical!
    Quote Originally Posted by DrByte View Post
    I wonder if the internal matching of the address returned by PayPal isn't finding a proper City-State-Country match and is filling in the city for an empty placeholder.
    To me that sounds like it could be the reason.
    Simon

  9. #9
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Empty state causes duplicate entry of city

    Quote Originally Posted by simon1066 View Post
    ... and it seems that the physical order customers (UK) did in fact enter their state(county) - typical!
    Probably a good reason to reinstate the State as being a required field.
    Simon

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

    Default Re: Empty state causes duplicate entry of city

    Quote Originally Posted by simon1066 View Post
    This is the only time I've seen this - the majority of sales have been virtual orders without shipping addresses and it seems that the physical order customers (UK) did in fact enter their state(county) - typical!
    Good point. I hadn't thought of virtual vs physical too.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v156 Autofill City & State from Zip Code
    By chadlly2003 in forum General Questions
    Replies: 4
    Last Post: 12 Feb 2020, 06:48 AM
  2. v139d Trouble making city+state fields readonly
    By gump47371 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2012, 07:30 AM
  3. Postcode, city, state customization
    By yokozuna in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Jan 2012, 05:17 AM
  4. 10736 Shipping Address Invalid City State Postal
    By jwashburn in forum PayPal Express Checkout support
    Replies: 30
    Last Post: 6 Jan 2010, 11:13 PM
  5. tax based on city in same state
    By fairview in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 20 Dec 2006, 09:33 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