If this is your first visit, check our documentation. To post, register or login.
Forums / Managing Customers and Orders / Primary Address resets to blank after every logout, for amember plugin

Primary Address resets to blank after every logout, for amember plugin

Locked

Started by ladyhypnotist on 10 Nov 2008, 5:11 PM · Views: 2,079

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Nov 2008, 5:11 PM
#1
ladyhypnotist avatar

ladyhypnotist

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Primary Address resets to blank after every logout, for amember plugin

When the customer checks the box to save the address as the primary address (which works only while the customer is logged in), after they logout, the next time they log in, the primary address is always blank again and they have to go the address book and check primary address again.

Even if they show only one entry in their address book, the primary address shows as blank. This has caused orders to ship and bill with no address.

When I look at the database, in the customer table, the field customers_default_address_id matches the correct address_book_id in the address_book table, and yet if I log in as any of those users, the primary address is always blank unless I check the box for primary address for that session. It always returns to a blank primary address after the user logs out and logs back in.

Help for a newbie please, I'm pulling my hair out here!

Melissa

10 Nov 2008, 5:41 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Primary Address resets to blank after every logout, for amember plugin

Your recent problems seem to indicate either data problems or code issues as none of this is normal ...

If would really be a good idea to either go through your database tables to try to locate the issues and your code to find the conflicts or to have someone do this for you ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Nov 2008, 9:51 PM
#3
ladyhypnotist avatar

ladyhypnotist

New Zenner

Join Date:
Sep 2008
Posts:
21
Plugin Contributions:
0

Re: Primary Address resets to blank after every logout, for amember plugin

The primary address works correctly on new users I input manually through zen cart.

I have a plugin that creates zen cart accounts for all my users on my membership site through amember. It's only those users where the primary address resets. The authors for the plugin can't figure it out. When I look at my database, in the customer table, the field customers_default_address_id matches the correct address_book_id in the address_book table, so theoretically the primary address should show up.

Also, the plugin didn't alter zencart at all. The install was completely in the membership software. I didn't install/change any zencart files.

Any ideas?

14 Nov 2008, 5:14 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Primary Address resets to blank after every logout, for amember plugin

Sounds like bad code in the plugin or something corrupted something on the database tables ...

Without going through the code for this plugin and your database tables it is really hard to speculate what could be causing the problem ...

As manually creating an account appears to be working, this lends to the problem resting with the add-on that you are using ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!