Hello,
I would like to change some messages of virtuemart 2.0.6, I searched a lot for this messages but I don't fint it. I hope somebody can help me to find this messages.
The first message is the following: "Could not store user Passwords do not match. Please re-enter password. Please enter your name." - It show a registration error.
The second message is: "Address has been successfully deleted." - It appear when somebody delete his/her address
I attached a photo about this messages. I hope somebody can help me.
[attachment cleanup by admin]
Hello,
Please take a look under the controllers, uses vminfo
e.g under components\com_virtuemart\controllers\user.php @ line 273, there is a msg:
$msg = vmInfo('Address has been successfully deleted.');
because 206 is quite old i could find the second msg, so may be now refers to joomla library translation key under language\en-GB\en-GB.lib_joomla.ini
Line 622: JLIB_USER_ERROR_PASSWORD_NOT_MATCH="Passwords do not match. Please re-enter password."
Regards
bytelord was quicker typing a reply but here is mine anyway:
You should update to Joomla 2.5.7 and Virtuemart 2.0.12. The strings were changed in newer versions. Most messages are stored in *.ini files. If you want to locate certain words (string), you should download and install an editor like the free Notepad++. If you build your shop on your own PC, you can use its' "Search in files" feature which easily finds words in the code in a few seconds.
If you want to change it in your old version, use Joomla language file overrides. Otherwise your change will be overwritten next time you update.
Thanks a lor for the answers. I will ckeck in a few minutes my VM file-s.
It works not for me. I tried with notepad++, but nothing found, I searched with notepad all my joomla folders.
both messages?
Consider to upgrade to a newer version because 206 is to old and i don't have any copy of it...
Regards
I upgrated already to the latest.
Hello,
components\com_virtuemart\controllers\user.php
Line 273: $msg = vmInfo('Address has been successfully deleted.');
language\en-GB\en-GB.com_virtuemart.ini (1 hit)
Line 587: COM_VIRTUEMART_USER_STORE_ERROR="Could not store user %s"
language\en-GB\en-GB.lib_joomla.ini (1 hit)
Line 622: JLIB_USER_ERROR_PASSWORD_NOT_MATCH="Passwords do not match. Please re-enter password."
administrator\language\en-GB\en-GB.lib_joomla.ini (1 hit)
Line 622: JLIB_USER_ERROR_PASSWORD_NOT_MATCH="Passwords do not match. Please re-enter password."
language\en-GB\en-GB.lib_joomla.ini (1 hit)
Line 196: JLIB_DATABASE_ERROR_PLEASE_ENTER_YOUR_NAME="Please enter your name."
administrator\language\en-GB\en-GB.lib_joomla.ini (1 hit)
Line 196: JLIB_DATABASE_ERROR_PLEASE_ENTER_YOUR_NAME="Please enter your name."
Regards
Thank you very mutch for your help.
You are the best, have a nice day.
I'm also looking for the "address has been successfully deleted" file.
It is no more in the user controller.
no one knows ? :'(
Hi,
I have VM 2.0.26d here now and the message is in the user model (/administrator/components/com_virtuemart/models/user.php) on the line 1406 (in method removeAddress):
function removeAddress($virtuemart_userinfo_id){
$db = JFactory::getDBO();
if ( isset($virtuemart_userinfo_id) and $this->_id != 0 ) {
//$userModel -> deleteAddressST();
$q = 'DELETE FROM #__virtuemart_userinfos WHERE virtuemart_user_id="'. $this->_id .'" AND virtuemart_userinfo_id="'. (int)$virtuemart_userinfo_id .'"';
$db->setQuery($q);
if($db->query()){
vmInfo('Address has been successfully deleted.');
return true;
}
}
return false;
}
Regards,
Pavel
thank you so much