Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: requiring telephone number on account registration or guest checkout  (Read 5797 times)

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1494
  • Karma: +390/-2
    • View Profile
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

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


Offline llegrand

  • Hero Member
  • *****
  • Posts: 1494
  • Karma: +390/-2
    • View Profile
Re: requiring telephone number (assistance request)
« Reply #1 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4407
  • Karma: +205/-0
    • View Profile
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
“Chuck Norris is so amazing.”
― Mother Teresa

Offline daspi

  • Newbie
  • *
  • Posts: 46
  • Karma: +4/-0
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #3 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?
 

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1494
  • Karma: +390/-2
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #4 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.

Offline daspi

  • Newbie
  • *
  • Posts: 46
  • Karma: +4/-0
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #5 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.

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1494
  • Karma: +390/-2
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #6 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? 










Offline daspi

  • Newbie
  • *
  • Posts: 46
  • Karma: +4/-0
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #7 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.

Offline llegrand

  • Hero Member
  • *****
  • Posts: 1494
  • Karma: +390/-2
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #8 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

Offline abscenter

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: requiring telephone number on account registration or guest checkout
« Reply #9 on: September 19, 2015, 12:31:56 AM »
Vote for phone number is mandatory  ;)

 

Powered by SMFPacks Social Login Mod