mathp Posted April 22, 2004 Share Posted April 22, 2004 Hi everybody, The problem that i have is that if a choose a new shipping or billing addresss on the address book when i'm on the checkout (checkout_confirmation.php), the hidden variables not changes. 1- checkout = checkout_shipping.php 2- i click on change address = checkout_shipping_address.php 3- i select a new address on Address Book Entries and i click on continue 4- now i am on checkout_shipping.php all is ok i clcik on contnue 5- now on checkout_payment.php i click on change address = checkout_payment_address.php 6- i select a new address on Address Book Entries and i click on continue 7- i'm now on checkout_payment.php i click on continue 8- on this page checkout_confirmation.php the informations on the screen are ok but the hidden field are differents i use the paysystems_MS2_another_bugfix contribution http://www.oscommerce.com/community/contri...arch,paysystems Where is the problem.? If anybody have a solution at this problem, it's will be GREAT Thank You Mathieu P. Quote Link to comment Share on other sites More sharing options...
mathp Posted April 22, 2004 Author Share Posted April 22, 2004 i just found a solution Change $order->billing[] instead of $order->customer[]. That way if the customer decides to make a change and use data from their Address book, it will use the appropriate data. tep_draw_hidden_field('b_firstname', $order->billing['firstname']) . tep_draw_hidden_field('b_middlename','') . tep_draw_hidden_field('b_lastname', $order->billing['lastname']) . tep_draw_hidden_field('b_address', $order->billing['street_address']) . tep_draw_hidden_field('b_city', $order->billing['city']) . tep_draw_hidden_field('b_state', $order->billing['state']) . tep_draw_hidden_field('b_zip', $order->billing['postcode']) . tep_draw_hidden_field('b_country',$order->billing['country']['iso_code_2']) . tep_draw_hidden_field('b_tel', $order->customer['telephone']) . tep_draw_hidden_field('email', $order->customer['email_address']); Mathieu P. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.