google-code-export / google-checkout-oscommerce

Automatically exported from code.google.com/p/google-checkout-oscommerce
1 stars 0 forks source link

new-order-notification handling of address is broken for repeat customer #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've not actually seen the bug occur yet, but I spotted it in the code
(http://google-checkout-oscommerce.googlecode.com/svn/trunk/catalog/googlechecko
ut/responsehandler.php):

      //      The user exists and is logged in
      //      Check database to see if the address exist.
      $address_book = tep_db_query(...);
      if (!tep_db_num_rows($address_book)) {
        ...
      } else {
        $customer_default_address_id = $address_book['address_book_id'];
        $customer_country_id = $address_book['entry_country_id'];
        $customer_zone_id = $address_book['entry_zone_id'];
      }

Which is, of course, totally broken, as the data has not been fetched from
the database.

Original issue reported on code.google.com by forest...@gmail.com on 21 Oct 2008 at 3:02