AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: llegrand on May 24, 2015, 12:41:58 PM

Title: requiring telephone number on account registration or guest checkout
Post by: llegrand on May 24, 2015, 12:41:58 PM
Hello,   I know you removed the requirement for the telephone number by request.  But unfortunately not all users have the same idea about what is right for their business.  in this post from 2012  you indicated how to get rid of it and the you might be adding it to be an optional selection for the future. 
http://forum.abantecart.com/index.php/topic,417.msg1260.html#msg1260 (http://forum.abantecart.com/index.php/topic,417.msg1260.html#msg1260)

Two questions then;

1.  is it option yet?  admin selectable?
2.  if not,  what's the current requirements (lots of changes to the templates since 2012)  to add back the mandatory?

thanks
Lee

Title: Re: requiring telephone number (assistance request)
Post by: llegrand on May 27, 2015, 10:16:13 PM
Hi Admins,

I could use some help with this.   Codes have changed considerably since 2012!

I gave it a try,  but failed.

Thanks in advance for the help.
Lee
Title: Re: requiring telephone number on account registration or guest checkout
Post by: Basara on May 28, 2015, 06:56:34 AM
Hello.

It is not an option in admin.
I suggest to compare files to find how to resolve your problem.
We did not remember all the things but you can start research from this commit https://github.com/abantecart/abantecart-src/issues/117 As you can see developer change  public_html/storefront/model/account/customer.php file
Title: Re: requiring telephone number on account registration or guest checkout
Post by: daspi on June 14, 2015, 09:59:16 AM
I am also looking to make the telephone required. I think many of use need the telephone number required in case there are questions regarding an order. I found some customers are slow to respond to emails and with all the spam filters out there it's not easy to reach their inbox. A phone number for the customer is very helpful. Did anybody come up with a solution?
 
Title: Re: requiring telephone number on account registration or guest checkout
Post by: llegrand on June 14, 2015, 10:26:14 AM
yes,  I did succeed in making the telephone number manadatory.  What version of the cart are you using?

I altered v 1.2.1 so I can give you the details for that version.
Title: Re: requiring telephone number on account registration or guest checkout
Post by: daspi on June 14, 2015, 03:53:06 PM
I would implement it on the latest version. Does it get overwritten when upgrading? Or is that modification separate from the core code? An yes, I would be very interested in leaning how to do it.
Title: Re: requiring telephone number on account registration or guest checkout
Post by: llegrand on June 14, 2015, 04:14:34 PM
The latest version is 1.2.2.   I just looked at the code for the affected files and it has not changed from 1.2.1  to 1.2.2  so it will work on either one.

Yes it is a mode to files.   Yes it is possible that it will be overwritten in later versions - depends on what they change,  so you would need to check out each time on a version update.  Perhaps in an upcoming version  they will make that filed Admin optional.

You will need to replace 3 files.
You can use cpanel  or FTP.
Are you comfortable with doing that? 









Title: Re: requiring telephone number on account registration or guest checkout
Post by: daspi on June 17, 2015, 08:07:29 AM
Yes, no problem. I can implement code changes, file merge etc. Can you give me access to the files or instructions? Thanks.
Title: Re: requiring telephone number on account registration or guest checkout
Post by: llegrand on June 17, 2015, 01:30:03 PM
here are the files that I have successfully changed out.

Read the Telephone Field text file FIRST.  It has the file locations.  You can replace the files or replace the code lines - either way works.

Please make a copy of your existing files in this list BEFORE changing anything.
Lee
Title: Re: requiring telephone number on account registration or guest checkout
Post by: abscenter on September 19, 2015, 12:31:56 AM
Vote for phone number is mandatory  ;)
Title: Re: requiring telephone number on account registration or guest checkout
Post by: HADY on February 20, 2020, 09:28:08 AM
here are the files that I have successfully changed out.

Read the Telephone Field text file FIRST.  It has the file locations.  You can replace the files or replace the code lines - either way works.

Please make a copy of your existing files in this list BEFORE changing anything.
Lee


Hi!

I followed all these instruction but it still doesn't work and it is just showing that telephone required only.
Title: Re: requiring telephone number on account registration or guest checkout
Post by: Carlos99 on August 14, 2020, 05:59:11 PM
I have the same doubt, is it necessary or they already removed it