Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resetting billing at checkout


rhubarb

Recommended Posts

Posted

I want to be able to reset the billing address (primary address) at checkout. In checkout_shipping.php the change address button leads to the checkout_shipping_address.php file where I've added a Set as billing address checkbox to each alternative address. According to the selection, I've reregistered the session variable customer_default_address_id and updated the field 'customers_default_address_id' in the customers table. The change is recognised if I go back to the change address page but if I proceed to checkout_payment.php and checkout_confirmation.php it is still set with the previous billing address.

 

Anyone done any similar work in this area please?

Posted

Solved. I added

 

if (!tep_session_is_registered('billto')) {

tep_session_register('billto');

}

$billto = $customer_default_address_id;

 

in checkout_shipping_address.php

Archived

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

×
×
  • Create New...