Post by jty » Mon Nov 17, 2008 5:41 am

This is how Open Cart 0.7.9 RC3 is working
Check out > create account > check out again after creating account
Then change "delivery" address to something else

The result is that the "payment" address changes to the 2nd address (the delivery address) entered so the buyer has to change address again to set the payment address back to the original first address.

How do I make Open Cart not change the payment address to the delivery address please?

It is annoying for the buyer to have to change the address back to the payment address, after having changed the delivery address.

I can see them not doing it so that I end up payment addresses which are actually delivery addresses.
Thanks

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Mon Nov 17, 2008 10:23 am

EASY  :D

EDIT:
/catalog/controller/checkout_payment.php

CHANGE:

Code: Select all

if (!$address->has($session->get('payment_address_id'))) {
      	$session->set('payment_address_id', $session->get('shipping_address_id'));
}
TO:

Code: Select all

if (!$address->has($session->get('payment_address_id'))) {
	$session->set('payment_address_id', $customer->getAddressId());
}

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Mon Nov 17, 2008 11:26 am

I had both sets of code in my checkout_payment so I commented out rather than changing it
It appears to be working
thank-you again

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am
Who is online

Users browsing this forum: No registered users and 2 guests