If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Features Wish List / Add telephone number in the Change Shipping Address?

Add telephone number in the Change Shipping Address?

Locked

Started by superprg on 6 Jan 2008, 1:02 AM · Views: 7,266

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
6 Jan 2008, 1:02 AM
#1
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Post #1 by superprg

Hi
When we place an order in zen cart we have the option of changing the shipping address
I wanted to know how we can add the telephone number field in the form so that the customer can enter it and then it shows up in the admin
Thanks!

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

8 May 2008, 8:33 PM
#2
magneteye avatar

magneteye

Zen Follower

Join Date:
Mar 2007
Location:
Portland, OR
Posts:
163
Plugin Contributions:
0

Post #2 by magneteye

I want to know how to get the phone number in the change shipping address area as well!

Anyone going to step in and help out?

9 May 2008, 11:48 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #3 by stevesh

Well, a customer would have to be logged in to see that page, so you should already have his or her phone number, or am I missing something?

Adding fields to Zencart forms is a surprisingly difficult thing to do.

9 May 2008, 7:46 PM
#4
magneteye avatar

magneteye

Zen Follower

Join Date:
Mar 2007
Location:
Portland, OR
Posts:
163
Plugin Contributions:
0

Post #4 by magneteye

We want a phone number for the person its being shipped to, not who is making the purchase.

10 May 2008, 8:58 PM
#5
bindaaz avatar

bindaaz

New Zenner

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

Post #5 by bindaaz

Any update on this issue.. I am also looking for such a feature.. It's very impotant to have the telephone number of the shipping address.

It would be best if there is a possiblity to add additional fields as necessary.

19 May 2008, 7:11 PM
#6
magneteye avatar

magneteye

Zen Follower

Join Date:
Mar 2007
Location:
Portland, OR
Posts:
163
Plugin Contributions:
0

Post #6 by magneteye

Well, no one seems to have any idea on this.

I think I am going to attempt to find the form and add another field for the phone and pray it works.

21 May 2008, 4:02 AM
#7
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Post #7 by elastic

yeah, i have to do the same thing. basically, I think just follow the 2nd address line, clone it, and follow it throughout the cart and it will be fine. also have to clone the javascript checks... you'll need to add that new field to the table in mySQL as well.

hmmn. really?

3 Jun 2008, 6:28 AM
#8
bindaaz avatar

bindaaz

New Zenner

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

Post #8 by bindaaz

I have already started with it. I can now save phone number in the database from 2 forms. From my account page and during a checkout process. Retrieving the value and adding it to other forms remaining.

4 Jun 2008, 7:40 PM
#9
magneteye avatar

magneteye

Zen Follower

Join Date:
Mar 2007
Location:
Portland, OR
Posts:
163
Plugin Contributions:
0

Post #9 by magneteye

bindaaz, how did you go about doing this?

8 Jun 2008, 10:19 AM
#10
bindaaz avatar

bindaaz

New Zenner

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

Post #10 by bindaaz

Here is an initial version of my changes for adding telephone number to the shipping address.

  • My changes are based on the zen version 1.3.8
  • Changes in 2 tables required.
  • It's mandatory to add telephone number when adding a new shipping address.
  • Shipping address display contains the shipping phone number as well.
2 Jul 2008, 7:43 PM
#11
jbhopper avatar

jbhopper

New Zenner

Join Date:
Jul 2007
Posts:
8
Plugin Contributions:
0

Post #11 by jbhopper

hi, I tried this but when I go to update the DB with the sql file I get this:

1146 Table '(MY DB NAME HERE).zen_address_book' doesn't exist
in:
[show fields from zen_address_book]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I don't see a zen_address_book table, only a address_book

I'm using 1.3.8 - any help?

8 Jul 2008, 6:56 PM
#12
jbhopper avatar

jbhopper

New Zenner

Join Date:
Jul 2007
Posts:
8
Plugin Contributions:
0

Post #12 by jbhopper

jbhopper:

hi, I tried this but when I go to update the DB with the sql file I get this:

1146 Table '(MY DB NAME HERE).zen_address_book' doesn't exist
in:
[show fields from zen_address_book]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I don't see a zen_address_book table, only a address_book

I'm using 1.3.8 - any help?

Bump for help - please? :unsure:

4 Aug 2008, 5:36 AM
#13
bindaaz avatar

bindaaz

New Zenner

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

Post #13 by bindaaz

It's not the DB name. It's the table prefix if you have one. It seems like you are not using any table prefix. Change the addon script SQL and remove 'zen_' from the table names.

10 Sep 2008, 6:51 PM
#14
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Post #14 by makenoiz

Works well but phone does not appear on checkout_payment page only checkout_shipping. Im working to fix.

makenoiz

22 stores and counting! Ive been zenned.

11 Sep 2008, 6:02 AM
#15
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Post #15 by makenoiz

So if I use

<address><?php echo zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'); ?></address> the phone number will show

but if I use <address><?php echo zen_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></address> the phone number will not show.

Can someone explain the difference to me?

makenoiz

22 stores and counting! Ive been zenned.

23 Jul 2009, 11:24 PM
#16
stlnyc avatar

stlnyc

Zen Follower

Join Date:
Oct 2008
Posts:
179
Plugin Contributions:
0

Post #16 by stlnyc

Has anyone gotten this to work? Any chance of having this in the next major update?

https://www.grapediscounts.com
Zen Version 1.3.9f, Mods: Click-Show-Hide Menu, IH3, Editable SB, Recently Viewed SB, Froogle, EZ-Pop

5 Nov 2009, 7:19 AM
#17
avotecnica avatar

avotecnica

New Zenner

Join Date:
Dec 2008
Posts:
8
Plugin Contributions:
0

Post #17 by avotecnica

up for this mod.

30 Nov 2009, 5:50 AM
#18
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Post #18 by bassface

This is off to a good start, but isn't fully cooked yet.

20 Dec 2009, 11:24 PM
#19
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Post #19 by bassface

Anyone using this successfully?

4 Feb 2010, 3:23 AM
#20
promogator avatar

promogator

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

Post #20 by promogator

does anyone know how to edit just the NAMES.
i cant find wher to edit just

"SHIPPING LINE 2" in the ENGLISH.PHP.....

any clues

instead of adding a telephone number

i justw want toe dit the SHIPPING LINE 2... to say "RECIPENTS TELEPHONE NUMBER"

thanks!