Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paysystems hidden fields - address book


mathp

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...