Forums / Templates, Stylesheets, Page Layout / saving new shipping/billing address as default..

saving new shipping/billing address as default..

Locked

Views: 1,958

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Dec 2006, 9:25 AM
#1
ourcaptain avatar

ourcaptain

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

saving new shipping/billing address as default..

hi there,

i'm not sure where this question should go exactly, but:

  1. i've turn off most fields from being required upon registration, or set some fields up as hidden values during registration (ie. telephone # = 0000000000)

  2. the problem is that when the user goes to check out, this fake info is still in the default address that's printed:

User Lastname
123 Whatever St.
, NY
00000000000

  1. i've figure out some strange session['sendto'] and session['billto'] hacks that redirect the user to the shipping/billing address edit screen if a. theres' only 1 address for the user (ie they havent added a shipping/billing one yet) and b. the default address city = '' (this is a loose description of my hack)

  2. this works to get around displaying the fake address upon the first checkout for the user, but not after that.

ideally, i'd like to save the first total real address (shipping i suppose) as the user's new default address when he/she enters it (not just to session['sendto'].. can i do this?

even more ideally, i'd either write over the old address slot, or delete it..

has anyone done anything like this?

you'll have my eternal devotion if you can steer me along!

thank you,
oc

:lol:

8 Dec 2006, 3:20 AM
#2
ourcaptain avatar

ourcaptain

New Zenner

Join Date:
Nov 2006
Posts:
4
Plugin Contributions:
0

Re: saving new shipping/billing address as default..

:smartass::smartass::smartass:

nevermind, I'm almost there. for anyone else inclined to do such a thing, the place to do your delete and new address as default switching is in

modules/checkout_new_address.php

:clap: