dbltoe:
-
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.
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...