JoomlaFAQs.org

JoomlaFAQsBanner
How To Groom Your Dog At Home

Favourites Create PDF Email Print

How To Add 'Ms' And Other Titles In VirtueMart Register Form

Author:
technojoom
Hits:
4655
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Answer

Component : VirtueMart v.1.1.2 (for Joomla 1.5.x)

In the 'Register' form of VirtueMart, they miss out the 'Ms.' in the drop-down box for the Title of customer. You may want to add other titles as well. Here's how to do it.

There are two files you need to add some code.

1) Go to yoursite/administrator/components/com_virtuemart/languages/common/english.php

2) Scroll down to line 352 onwards where you will see something like this ('Ms.' already added here in red text). Save the file.

'PHPSHOP_REGISTRATION_FORM_NONE' => 'none',
'PHPSHOP_REGISTRATION_FORM_MR' => 'Mr.',
'PHPSHOP_REGISTRATION_FORM_MRS' => 'Mrs.',
'PHPSHOP_REGISTRATION_FORM_MS' => 'Ms.',
'PHPSHOP_REGISTRATION_FORM_DR' => 'Dr.',
'PHPSHOP_REGISTRATION_FORM_PROF' => 'Prof.',

3) Next, go to yoursite/administrator/components/com_virtuemart/classes/ps_html.php

4) Scroll down to line 120 onwards and add the code in red

$title = array($VM_LANG->_('PHPSHOP_REGISTRATION_FORM_MR'),
$VM_LANG->_('PHPSHOP_REGISTRATION_FORM_MRS'),
$VM_LANG->_('PHPSHOP_REGISTRATION_FORM_MS'),
$VM_LANG->_('PHPSHOP_REGISTRATION_FORM_DR'),
$VM_LANG->_('PHPSHOP_REGISTRATION_FORM_PROF'));

5) Save and refresh.

Note : If you want to add other titles, you need to create new constants in this format PHPSHOP_REGISTRATION_FORM_whatever_your_title_is

Have fun!


SITE NOTE: To display the HTML tags on JoomlaFAQs, there is a space between the name of the tags and the enclosing "less than" (<) and "more than" (>) brackets. If you copy the code, make sure you delete the spaces to make it work!

If you have found this site to be useful and has helped you, kindly consider to donate. Your donation will encourage me and help to upkeep JoomlaFAQs.org! Cheers!





Category

Tags for this item

Add comment


Security code
Refresh

JoomlaFAQs Categories