Zen Cart Logo
Forums / General Questions / Duplicate entries being created in address book

Duplicate entries being created in address book

Locked

Views: 1,261

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
22 Apr 2008, 8:46 PM
#1
juno avatar

juno

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

Duplicate entries being created in address book

I'm running 1.3.5 -- I can't upgrade yet because the site I've "inherited" has a lot of custom code / database changes that I need to wrap my head around before attempting an upgrade.

The problem I'm trying to solve is that of duplicate address book entries. If I select "change your address," the checkout_shipping_address page contains a form that has my current shipping information, and a list of other addresses with radio buttons. If I select one of the address with the radio button AND leave the current shipping information filled in, it duplicates the current information as a new address entry. If I clear it out and then use the radio button, the selected shipping address displays.

I've combed through the code and can't even find where this duplicate is being created. I know I just want the address form to be empty, but I'm afraid I'll mess with the regular shipping address form.

HELP!!! :laugh:

8 May 2008, 3:27 PM
#2
juno avatar

juno

New Zenner

Join Date:
Mar 2008
Posts:
22
Plugin Contributions:
0

Re: Duplicate entries being created in address book

In the interested of helping someone else who may have this same issue, the problem was that in our version of the page checkout_new_address.php wasn't testing to see whether or not a new address (radio buttons) had been selected. The addition of the test -- !isset($_POST['address']) to the IF statement corrected the problem.