Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2020
    Location
    Manchester UK
    Posts
    26
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Phone Numbers Help

    Quote Originally Posted by Footie1 View Post
    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...

  3. #3
    Join Date
    Jul 2020
    Location
    Manchester UK
    Posts
    26
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Phone Numbers Help

    Quote Originally Posted by dbltoe View Post
    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

    I would give them a pass if it were 8.1 since it's new this year but, nearly two years behind?
    Quote Originally Posted by Footie1 View Post
    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:
    Code:
    define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');
    to
    Code:
    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...

  5. #5
    Join Date
    Jul 2020
    Location
    Manchester UK
    Posts
    26
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Jul 2020
    Location
    Manchester UK
    Posts
    26
    Plugin Contributions
    0

    Default Re: Phone Numbers Help

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

  7. #7
    Join Date
    Jul 2020
    Location
    Manchester UK
    Posts
    26
    Plugin Contributions
    0

    Default Re: Phone Numbers Help

    Quote Originally Posted by Footie1 View Post
    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...ay_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.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 12 Feb 2014, 12:19 AM
  2. missing phone numbers
    By fvb in forum General Questions
    Replies: 7
    Last Post: 3 Aug 2008, 08:53 PM
  3. Missing Customers Phone Numbers
    By madfastride in forum General Questions
    Replies: 1
    Last Post: 4 Feb 2008, 10:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg