Zen Cart Logo
Forums / General Questions / Phone Numbers Help

Phone Numbers Help

Views: 1,574

Results 1 to 12 of 12
25 Mar 2022, 12:24 PM
#1
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Phone Numbers Help

Hi,
I am looking to try to remove the option of requesting a phone numer on a customer account set up,
i never need it, no point seeting the value to 0, just want an option to remove it totally?

another quickie,
the catagories page, the drop down options of sort by,
has A - Z, but i would really like to include newest, and highest, lowest,
is there a setting i need to tick?

thanks in advance.

25 Mar 2022, 3:38 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Re: Phone Numbers Help

There's no switch for removing the phone number - you'll have to modify code.

For sorting options, it depends on your template - some have this sort of thing, others, you'd have to modify the template to provide it.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Mar 2022, 8:18 PM
#3
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Re: Phone Numbers Help

hi SwGuy,
thanks for your swift reply.
I had in the past tried changing the code, but each time i ended up with a blank page on my website, so had to revert.

I can adapt and change code ok, but this one has beat me, many hours spent on it,
search the forums as well, thought there ust might be an option i missed to select no phone number required.

the drop down, this should really be a default on the zen cart software hard wired.

My template, the host has just told me they no longer support it, they want me to pay monthly for a template!
I contacted them to switch the code from PHP 7.2 over to PHP 8.0, they said no chance, so i shall have to try to hire a dev to do it.

cheers.

25 Mar 2022, 11:22 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: Phone Numbers Help

For now, If you don't have an override for your includes/languages/english.php, copy it to includes/languages/YOUR_TEMPLATE/english.php.

Then, you can change the define for ENTRY_TELEPHONE_NUMBER_TEXT to a null ( '*' becomes '' )

Next, in YOUR_ADMIN >> Configuration >> Minimum Values, set the Phone Number to a blank. It defaults with a 3. Just edit the setting and and hit delete should leave it blank.

Now your site will still have the phone number but, it is not required AND it will not complain about getting no input.

To Truly get rid of the listing on the pages, you'll have to figure out which of the over 160 files need to be changed to keep the phone number from showing up.

My template, the host has just told me they no longer support it, they want me to pay monthly for a template!
I contacted them to switch the code from PHP 7.2 over to PHP 8.0, they said no chance, so i shall have to try to hire a dev to do it.

A dev could help with the template but PHP version is the responsibility of the host.

IMHO, a host that cannot provide 8.0 is someone you need to leave. A developer cannot change your PHP unless that version is available on the server. It is the responsibility of the host to keep PHP current on their server and available for use by their customers. 8.0 was released in November of 2020:shocking:

I would give them a pass if it were 8.1 since it's new this year but, nearly two years behind? :no:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

28 Mar 2022, 11:49 AM
#5
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Re: Phone Numbers Help

wow, that is amazing, yes i will try that in a few days when i get time, amazing info,
but also a bit of a pian that there is no facility in the zencart software to easily allow to be able remove the need for a phone number on the customer sign up.

Yes my host does cater for PHP 8.0 an 8.10 but it is the company i originally purchased the Zen template from, say they no longer support it,
but i have been able to modify most things on it before, but it just needs to somehow run PHP 8.1, i think i need to hire a dev to do this for me,
is there any one on here who can change the code on the zencart template i have? - my zencart software and hosting is all up to date.

regards
Dougie.

29 Mar 2022, 11:32 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Phone Numbers Help

Footie1:

wow, that is amazing, yes i will try that in a few days when i get time, amazing info,
but also a bit of a pian that there is no facility in the zencart software to easily allow to be able remove the need for a phone number on the customer sign up.

regards
Dougie.
The ***need ***is addressed through setting the minimum value to 0. At that point there is no need to enter the phone number, it functionally becomes optional. Adding a configuration switch in Zen Cart to exclude a field AND to identify the need would add way more options than necessary for operation. Also effort has been taken to ensure that those values remain sanitized in operation to just be numbers.

Could a negative value be used to signify something of importance such as not to display it, perhaps. I note though that not that long ago such login templates actually required more coding just to exclude identifying the need to enter data (e.g. even when the minimum value was 0 or empty, the field still had an indicator to "require" entry).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

29 Mar 2022, 11:39 PM
#7
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Re: Phone Numbers Help

hi,
wow i see, i had no idea so much code would be needed to just remove my wants for not needing a customers phone number.

So the code in the includes/English file is
define('ENTRY_TELEPHONE_NUMBER_TEXT', '');
and i should change it to?
ENTRY_TELEPHONE_NUMBER_TEXT to a null ( '
' becomes '' )

and that then takes away the need to actually have to fill inthe phone number field, BUT
will this hinder any other part of the cart needing the phone number via checkout etc?

I still need to find a person to pay to help change my template from PHP 7.1 to PHP 8.1
my hosting does support PHP 8.1 and is quite top end hosting and zencart is bang up to date.
Anyone on here ready to quote for the job, fixed fee, as hourly fee is open ended.

cheers in advance.

29 Mar 2022, 11:50 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Phone Numbers Help

dbltoe:

  1. For now, If you don't have an override for your includes/languages/english.php, copy it to includes/languages/YOUR_TEMPLATE/english.php.

  2. Then, you can change the define for ENTRY_TELEPHONE_NUMBER_TEXT to a null ( '*' becomes '' )

  3. Next, in YOUR_ADMIN >> Configuration >> Minimum Values, set the Phone Number to a blank. It defaults with a 3. Just edit the setting and and hit delete should leave it blank.

Now your site will still have the phone number but, it is not required AND it will not complain about getting no input.

To Truly get rid of the listing on the pages, you'll have to figure out which of the over 160 files need to be changed to keep the phone number from showing up.

A dev could help with the template but PHP version is the responsibility of the host.

IMHO, a host that cannot provide 8.0 is someone you need to leave. A developer cannot change your PHP unless that version is available on the server. It is the responsibility of the host to keep PHP current on their server and available for use by their customers. 8.0 was released in November of 2020:shocking:

I would give them a pass if it were 8.1 since it's new this year but, nearly two years behind? :no:

Footie1:

hi,
wow i see, i had no idea so much code would be needed to just remove my wants for not needing a customers phone number.

So the code in the includes/English file is
define('ENTRY_TELEPHONE_NUMBER_TEXT', '');
and i should change it to?
ENTRY_TELEPHONE_NUMBER_TEXT to a null ( '
' becomes '' )

and that then takes away the need to actually have to fill inthe phone number field, BUT
will this hinder any other part of the cart needing the phone number via checkout etc?

I still need to find a person to pay to help change my template from PHP 7.1 to PHP 8.1
my hosting does support PHP 8.1 and is quite top end hosting and zencart is bang up to date.
Anyone on here ready to quote for the job, fixed fee, as hourly fee is open ended.

cheers in advance.

That depends... Understand, dbltoe offered at least 2 steps in the above post: modify the language define so that a customer doesn't see the * next to the telephone entry AND change the configuration setting... Those were in paragraph 2 and 3 above. The change to the define (step 2) only changes what is seen. It does not actually modify the requirements. The third step (Next, in YOUR_ADMIN >> Configuration >> Minimum Values, set the Phone Number to a blank. It defaults with a 3. Just edit the setting and and hit delete should leave it blank.) is what actually changes how the store responds. It makes it so that anywhere that has a phone number fill in for a customer, they do not have to fill it in...

So... Since you seem to indicate that your english.php file is located in includes/languages, before you make changes, follow step 1 above to ensure (but not replace) includes/languages/YOUR_COMMERCIAL_TEMPLATE/english.php. If that file exists, then again find the associated define changing:

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

to

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

AGAIN, the last four characters are:
'');
That's two single quotes, a right parentheses and a semi-colon.

As to "offers", all should remember that such should be handled by PM or other means, not posted in the forum.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

30 Mar 2022, 12:18 AM
#9
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Re: Phone Numbers Help

hi,
brilliant info, sometimes the obvious is not obvious, but i need to check just in case.

Yes i already had the phone number minimum set to zero, but customers were still filling it in,
which also puts some customers off joining the website.

So what i have done to resolve this if anyone else needs this info for in future is....
Includes/English file, i just reworded the phone number required field text to - "Leave this field blank", and set the admin/minimum/phone to zero,
and i can set up an account without the need for a phone number being statutory.

many many thanks for your input on this guys.

I am still after a dev to change my PHP settings in my actual template, not on the server, that is an easy drop down on the plesk.

31 Mar 2022, 2:27 PM
#10
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Re: Phone Numbers Help

hi,
yes to PM's
anyone fancy having a pop at updating the PHP settings?
regards.

21 May 2022, 5:21 PM
#11
footie1 avatar

footie1

New Zenner

Join Date:
Jul 2020
Location:
Manchester UK
Posts:
26
Plugin Contributions:
0

Re: Phone Numbers Help

Footie1:

hi,
yes to PM's
anyone fancy having a pop at updating the PHP settings?
regards.

Still after a tech guy to switch over the php 7.4 over to 8.1 = just needs the template code settings switched.
i have my own hosting, and can easily swap to the new version there, but it needs the template code updated to match it.

Not sure where to post this job apart from here, but yes i understand PM system is needed.
But who has the skill to update this for me, a fixed fee payment is waiting.

OH - An update on the Square credit card situation is below.

I have the module installed, but the real pain was getting the token to be set as ON.
turned out it was an easy fix, but it took me four days.
So to help people not waste that time, the solution was.

in your square account, on th oAth section enter the link there as,
https://www.YOUR-DOMAIN.COMmmmmmmmmm/squareWebPay_handler.php

THEN go to your zencart,
Admin/Modules/Payment/Square Webpay, EDIT/ THEN JUST CLICK THE AUTHENTICATE LINK THERE, JOB DONE!

i switched it on, yes it is there, but i am not happy at having the customer input all the card details direct on my website,
depite using SSL. So does anyone know if they have a system like paypal where it is a pop up, or total page redirect?
Cheers.

22 May 2022, 10:21 AM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: Phone Numbers Help

Footie1:

Still after a tech guy to switch over the php 7.4 over to 8.1 = just needs the template code settings switched.
i have my own hosting, and can easily swap to the new version there, but it needs the template code updated to match it.

...
Noting that there is no version of Zen Cart currently released (zc157d is currently the latest) that will run without warnings and errors under PHP 8.1.