| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding customer title options | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Adding customer title options
Hi all,
At present, customer title only has options for Mr, Ms and Mrs. That isn't a very inclusive list and what I want to do is either add to those options (probably the easier way to go) or make title a free text box, so that customers can enter their own text (probably more difficult, but with greatest flexibility for the customer). I've searched through the settings and even dug around in the database and cannot find where Mr, Ms and Mrs are stored. Any advice on how to achieve either of these options gratefully received as always.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy |
|||||||
#2
|
|||||||
|
|||||||
Re: Adding customer title options
Where do customers choose the titles ? I can't find it in billing address and shipping address steps of check out process, or in the address book either.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Adding customer title options
I believe these are language variables and probably hardcoded which ones to select and include in the dropdown list. You will need to find the template outputting the values and the php class responsible for it and modify it if you want to extend this.
However I find it odd that anyone will want to include this. It is very uncommon to allow something like this. No one cares to fill it out and if you modify this to allow customers to enter free text you may just end with some gibberish as value for the most part. @Ed - it is part of the address fields setup in admin and it is off by default. I am even surprised XC5 has this included by default yet it is missing street second line and company. It makes absolutely no sense but hey it is XC after all....
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||
|
|||||||
Re: Adding customer title options
Thank you Steve.
It is hardcoded, but can be overriden easily. The relevant lines in the class classes/XLite/View/FormField/Select/Title.php are Code:
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#5
|
|||||||
|
|||||||
Re: Adding customer title options
Hi,
Thanks for your replies. It is one of those things that divides opinion: personally, I prefer to include a title and not a full name when filling out shopping cart information; others will prefer to do the opposite. If a customer does fill out the form without entering their full name (and many of our customers do), then having a title at least allows for emails, etc, to be more politely addressed: eg Dear Mr Smith, rather than Dear Smith. I think our best route will be to extend the list of options, but make the field not required. That way, those that want to fill it out can and those that don't want to won't be forced to. Thanks for your help.
__________________
Four sites using X-Cart 5.4.x.x. Oh the joy |
|||||||
|
|||
X-Cart forums © 2001-2020
|