Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Paypal Shipping address strange behaviour

    Zencart version 1.51 and 1.52
    I have several Zen cart owners in the UK who from time to time see strange shipping address behaviour when items are purchased via PayPal Express Checkout.
    The customers billing address is correct but sometimes the shipping address is given a different county/state name. The county/state will always be the same but different from one zen cart shop to the other. I think the issue might be that the customer making the purchase may not have filled out correctly all the fields in their PayPal account. As when you look at the admin area in Zen cart the common denominator appears to be :
    Click image for larger version. 

Name:	paypal.png 
Views:	71 
Size:	34.5 KB 
ID:	17148
    Address State: GB WR53SP

    So if in the field Address State the town or county/state appears i.e. worcester WR53SP the shipping address is correct, but if it appears as above GB WR53SP then the shipping address in the admin area is changed to random county/state which is always the same but different from one Zen cart to another.

    Is this a bug in Zen cart or just that the customers have failed to fill out their PayPal details correctly?
    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Paypal Shipping address strange behaviour

    Zen Cart simply responds to whatever PayPal sends back, which is based on what the customers entered.
    .

    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
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: Paypal Shipping address strange behaviour

    Quote Originally Posted by DrByte View Post
    Zen Cart simply responds to whatever PayPal sends back, which is based on what the customers entered.
    Thanks for the speedy response, but maybe I have not explained myself too well. If a customer purchases using PayPal express and pays by credit card then this happens all OK
    Click image for larger version. 

Name:	PAYPAL.jpg 
Views:	78 
Size:	18.6 KB 
ID:	17150
    But if a customer pays by PayPal and presumably has not entered the full information (State/County) this happens:
    Click image for larger version. 

Name:	paypal2.jpg 
Views:	71 
Size:	18.9 KB 
ID:	17151
    So zen cart adds the county Devon and with this zen cart always Devon, but another zen cart will use a different county name but always the same.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Paypal Shipping address strange behaviour

    Zen Cart can only work with the data that is provided to it.

    So, if the customer gives the data in a certain format to your Zen Cart store, then Zen Cart will start with that.

    However, if the customer gives the data to PayPal differently, then Zen Cart will display that.


    The gray box area you're highlighting is data that comes directly from PayPal.
    .

    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
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: Paypal Shipping address strange behaviour

    I already understood that the grey area was data coming from PayPal. Thanks for the update. Still strange that when the state county is not in the data from PayPal shipping adds the incorrect county and is always the same.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Paypal Shipping address strange behaviour

    I just did a fresh search of all the source code in Zen Cart. There's no mention of "GB WR53SP" anywhere.

    Perhaps it's coming from one of your settings? or plugins? or a combination of those?
    .

    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.

  7. #7
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: Paypal Shipping address strange behaviour

    Quote Originally Posted by DrByte View Post
    I just did a fresh search of all the source code in Zen Cart. There's no mention of "GB WR53SP" anywhere.

    Perhaps it's coming from one of your settings? or plugins? or a combination of those?
    Thanks for the guidance and help. Its very strange this happens on 6 sites that all use Paypal Express. The only time the shipping changes in state/county is when the customer has not filled in the PayPal details correctly. IE in State GB WR53SP (WR53SP is UK postal code) so another might be GB PL206NB
    On each occasion that this happens the Shipping State is changed to an incorrect State/County each shop uses a different 'default' county one always uses Devon another uses Greater London.
    All sites have similar plugins, but nothing obvious that would cause this issue.

  8. #8
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: Paypal Shipping address strange behaviour

    @DrByte
    Thanks for the help, after some searching in the database I can see that the info sent and received from PayPal seems to be OK, when you check the PayPal table. However, if the customers fails to enter a state but just enters GB and postal code the shipping address always adds an incorrect state/county. I found that information in the orders table under delivery_state where would this information come from and do you have any ideas why it enters a 'default' incorrect state/county?
    Thanks

  9. #9
    Join Date
    Jul 2007
    Posts
    342
    Plugin Contributions
    7

    Default Re: Paypal Shipping address strange behaviour

    @DrByte
    Thanks for the help, after some searching in the database I can see that the info sent and received from PayPal seems to be OK, when you check the PayPal table. However, if the customers fails to enter a state but just enters GB and postal code the shipping address always adds an incorrect state/county. I found that information in the orders table under delivery_state where would this information come from and do you have any ideas why it enters a 'default' incorrect state/county?
    Thanks.
    It looks like the error is coming from
    admin/orders.php (using COWA but this customer used standard)
    Around line 518
    <td class="main" valign="top"><strong><?php echo ENTRY_SHIPPING_ADDRESS; ?></strong></td>
    <td class="main"><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?></td>

    Where is echo data coming from
    PHP Code:
    <?php echo zen_address_format($order->delivery['format_id'], $order->delivery1'''<br />'); ?>
    If you can help me find this maybe I can find the error?

  10. #10
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Paypal Shipping address strange behaviour

    The $order->delivery address is the Shipping Address supplied.
    .

    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. v139h strange Javascript behaviour
    By skylab001 in forum General Questions
    Replies: 1
    Last Post: 23 Feb 2012, 05:14 AM
  2. Strange Behaviour
    By rogers in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 4 Apr 2008, 11:57 AM
  3. strange cursor behaviour in IE
    By niekohle67 in forum General Questions
    Replies: 5
    Last Post: 20 Aug 2007, 07:59 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