Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

EXPERTS -> $customer_default_address_id ??


Recommended Posts

Hello, I've customized my oscommerce, and done some custom coding, and now when a customer checks out, there shipping and billing information is missing. I've narrowed down to this part in the code:


<?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>


in checkout_shipping.php (the first page where this problem occurs, when they click checkout)


$sendto is supposed to be the customer's address field, in which tep_address_label queries the database and matches the customer id and address id from the address book table. Problem is, for some reason $sendto = 0 instead of like 38 or 25 or whatever. If I check the top of checkout_shipping.php, I see essentially:


$sendto = $customer_default_address_id;


and $customer_default_address_id = 0 as well. I don't know where this variable is set exactly, but if its in the session data, then I probably have a session problem. Does anyone know more about this variable or what could be causing my problem ? (possibly session problems?)



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...