Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2018
    Posts
    2
    Plugin Contributions
    0

    Default Empty delivery or billing address in order table

    Hi,

    Zen Cart version is 1.5.5e
    PHP 7.x
    template from Template Monsters

    Sometime we can't see the billing or delivery address in the admin are on the order details page.
    Unfortunately after order inserted to order table this fileds are empty.

    I made a script and put it into the checkout confirmation page to save the page state before the customer confirmation is processed. The saved html output shows the addresses but those values are missing from the database table. The confirmation email content does not show that values too.

    I noticed when i step back from confirmation page to delivery or payment method page and change the
    option sometime the confirmation page shows the old method, after refreshing page, it is shows the correct one.

    There is no error log in the log folder.

    I was looking for solution but can't find, yet.
    Any suggestion how can we detect the source of this error?

    Thanks!

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

    Default Re: Empty delivery or billing address in order table

    I have seen this issue one time. No logs, and nothing was peculiar about the order. Same configuration (1.5.5e/PHP7.1).
    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
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,547
    Plugin Contributions
    81

    Default Re: Empty delivery or billing address in order table

    Quote Originally Posted by swguy View Post
    I have seen this issue one time. No logs, and nothing was peculiar about the order. Same configuration (1.5.5e/PHP7.1).
    We are still seeing this as well. Seems to be an extreme edge case and has been happening for years...

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

    Default Re: Empty delivery or billing address in order table

    Just got a report of this on 1.5.7c - store does a TON of transactions and it has only happened twice.
    Is it possible the session data is getting clobbered so that in includes/classes/order.php,

    $billto = (!empty($_SESSION['billto']) ? (int)$_SESSION['billto'] : 0);
    $sendto = (!empty($_SESSION['sendto']) ? (int)$_SESSION['sendto'] : 0);

    winds up setting one or both to 0? If so, would it be better to do

    $billto = (!empty($_SESSION['billto']) ? (int)$_SESSION['billto'] : $_SESSION['customer_default_address_id']);
    $sendto = (!empty($_SESSION['sendto']) ? (int)$_SESSION['sendto'] : $_SESSION['customer_default_address_id']);
    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.

 

 

Similar Threads

  1. Order Confirmation: Switching Billing and Delivery Address
    By kdipaolo in forum General Questions
    Replies: 2
    Last Post: 31 Aug 2012, 05:34 PM
  2. Billing address empty
    By Limey in forum General Questions
    Replies: 5
    Last Post: 25 Dec 2011, 03:10 AM
  3. Billing address empty on checkout confirmation
    By Sam_n in forum General Questions
    Replies: 0
    Last Post: 25 Nov 2011, 09:11 PM
  4. Linkpoint To Decline Order If CC Address Does Not Match With Billing Address
    By smythmikey in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Dec 2009, 03:29 PM
  5. Updating customer delivery / billing address
    By adeturner in forum General Questions
    Replies: 4
    Last Post: 23 Oct 2007, 06:30 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