Zen Cart Logo
Forums / General Questions / I cannot require customer address or phone number. . ANY solution?

I cannot require customer address or phone number. . ANY solution?

Locked

Views: 4,227

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
18 Jan 2008, 2:02 PM
#1
darlanne avatar

darlanne

New Zenner

Join Date:
Jan 2008
Posts:
4
Plugin Contributions:
0

I cannot require customer address or phone number. . ANY solution?

I have spent the last entire week building my template shop and I thought I had done all my homework prior to choosing Zen-Cart. My situation is a bit unique in that I sell sexy (not entirely adult) web templates for a specific niche group. Therefore, I am not able to use PayPal. I had set Zen-Cart to perfectly meet my needs for the entire store ...

UNTIL ...

I realized there was NO way for my customers to go to the site, choose a template, sign up with their email address and check the heck out.

I realize there is a lot of controversy here as to checking out without an account and so forth. I will say that in my own situation it is VITAL that I do not require anything beyond an email address. I do not want my customers phone numbers or addresses. I would lose business, as privacy is just a big issue. And because I cannot use PayPal or Google Checkout, I'm stuck I guess.

The current Checkout w/Account contributions are not an option since they still do ask for address and phone.

I've built my entire shop with zero way to finish it. It is of no use to me without being able to bypass asking for the address and phone number.

I love all else that Zen-Cart does and I love how my store turned out. And I hate that I've poured countless hours into it and I know I'm asking probably for no reason since I scoured the forums for any alternative but I figured I'll ask anyway, perhaps in different wording that might present me some ... ANY alternative:

Is there ANY way at all to NOT require the address and phone number for my customers? I do not mind having them create an account, but it would not be appropriate (or necessary in the least) to require those two pieces of information.

ANY insight at all would be appreciated. I so want to use Zen-Cart and what I have developed with it.

Thanks in advance!

18 Jan 2008, 2:33 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

Try this... in the admin under configuration->minimum values, set the minimum length of the unwanted fields to 0 (zero) or spaces and see if that helps.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Jan 2008, 3:03 PM
#3
stevesh avatar

stevesh

Black Belt

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

Re: I cannot require customer address or phone number. . ANY solution?

I just tested this in my test site, and 0's don't work, but leaving the box blank works for everything but the State field. If you then go to Customer Details and set State to false, it should work (does for me, anyway).

If you don't mind my asking, how do your customers pay you without entering address info?

18 Jan 2008, 3:12 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

Thanks for trying out my suggestion! I didn't get to test it myself, but I know I set the telephone number to spaces to make it optional.

Interesting question, Steve. For most credit card processing, you need the billing address.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Jan 2008, 8:13 PM
#5
darlanne avatar

darlanne

New Zenner

Join Date:
Jan 2008
Posts:
4
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

Thank you so much for the suggestion. I will go try that right now.

Steve, my customers pay me via a separate company's billing system that acts as it's own payment processor for telephone services provided. It's definitely a unique situation. LOL.

Going to try that now thanks!

18 Jan 2008, 8:27 PM
#6
darlanne avatar

darlanne

New Zenner

Join Date:
Jan 2008
Posts:
4
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

Afo and Steve, did I read that you did get it to work by leaving those fields blank?

I just tried setting those to blank in the Minimum Values section (and the 0's, and spaces and all I could think of) and it's still asking for all the info.

Am I doing something wrong? Anything else at all I could try? I don't even mind asking for the state. It's only the actual address and phone number that I can't require.

Thanks for your help : )

18 Jan 2008, 8:40 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

There's a difference between the field displaying and being required. Can you get past that screen if you leave the fields blank?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Jan 2008, 8:58 PM
#8
darlanne avatar

darlanne

New Zenner

Join Date:
Jan 2008
Posts:
4
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

Oh my gosh I think it worked. Thank you SOOOO much. I think you saved my store! :) :)

I'm assuming now I just have to edit the templates where it is asking for that info?

Where would I go to edit the first billing page screen and then the success screen?

1 Nov 2008, 7:32 PM
#9
coffee_granules avatar

coffee_granules

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

Having set

Configuration -> Minimum Values -> Telephone Number

to 0

you will then be stuck with this darned annoying red asterisk on your create account page, so customers still won't know that the field is not compulsory.

Fear not, - open up the tpl_modules_create_account.php file from within the

includes/templates/template_default/templates

directory and remove the following

 . ((ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': '')

from the following lines

<fieldset>
<legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend>
<label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>

...so you should end up with:

<fieldset>
<legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend>
<label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"'); ?>

...and no red asterisk!

What do you mean it wouldn't work, so you removed all those annoying PHP tags....?!

1 Nov 2008, 7:51 PM
#10
coffee_granules avatar

coffee_granules

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

If your create account page is still :smile:working you can also now inflict this little hack on it so you don't have a telephone field 40 characters in length and a fax field that's only about 25 characters in length (when I last checked the two are normally the same length!):

Change the line that deals with the fax field as follows:

<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo zen_draw_input_field('fax', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_fax', '40') . 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span 

class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>

No major changes. - Now it basically mirrors the field line for the telephone with changes where necessary to keep it as an entry box for a customer's fax number should they have one.

What do you mean it wouldn't work, so you removed all those annoying PHP tags....?!

1 Nov 2008, 10:52 PM
#11
coffee_granules avatar

coffee_granules

New Zenner

Join Date:
Nov 2008
Posts:
45
Plugin Contributions:
0

Re: I cannot require customer address or phone number. . ANY solution?

For the truly brave and adventurous there should be an upated UK zone file contribution available soon that I put together for my store.

Yes, there are already two available... they have both got parts that the other has not got, the contents of neither of them match with the contents of PayPal's county list, both of them have got inaccurate names for a number of the counties and neither contain all the counties for England, Wales, Scotland, and Northern Ireland and do not, therefore, actually cover the UK at all.

That said, they were both very useful in creating my own contribution which should be available (all being well) from the contributions section soon.

If you want a copy in the meantime just PM (private message) me and I will see that you get a copy. The module fully covers the UK, including the Channel Islands, Isle of Wight, Isle of Man, Orkney, Isles of Scilly, and Western Islands and matches PayPal's county list exactly.

What do you mean it wouldn't work, so you removed all those annoying PHP tags....?!