VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: kovi on October 24, 2012, 17:43:28 PM

Title: I want to change some messages
Post by: kovi on October 24, 2012, 17:43:28 PM
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]
Title: Re: I want to change some messages
Post by: bytelord on October 24, 2012, 21:19:02 PM
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
Title: Re: I want to change some messages
Post by: jjk on October 24, 2012, 21:31:06 PM
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.
Title: Re: I want to change some messages
Post by: kovi on October 25, 2012, 08:00:08 AM
Thanks a lor for the answers. I will ckeck in a few minutes my VM file-s.

Title: Re: I want to change some messages
Post by: kovi on October 25, 2012, 11:32:27 AM
It works not for me. I tried with notepad++, but nothing found, I searched with notepad all my joomla folders.
Title: Re: I want to change some messages
Post by: bytelord on October 25, 2012, 15:41:07 PM
both messages?

Consider to upgrade to a newer version because 206 is to old and i don't have any copy of it...

Regards
Title: Re: I want to change some messages
Post by: kovi on October 25, 2012, 17:07:20 PM
I upgrated already to the latest.
Title: Re: I want to change some messages
Post by: bytelord on October 26, 2012, 09:52:35 AM
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
Title: Re: I want to change some messages
Post by: kovi on October 27, 2012, 09:00:00 AM
Thank you very mutch for your help.
You are the best, have a nice day.
Title: Re: I want to change some messages
Post by: greaves on April 16, 2014, 21:11:50 PM
I'm also looking for the "address has been successfully deleted" file.
It is no more in the user controller.
Title: Re: I want to change some messages
Post by: greaves on April 22, 2014, 08:08:51 AM
no one knows ?  :'(
Title: Re: I want to change some messages
Post by: byPV on April 22, 2014, 10:22:14 AM
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
Title: Re: I want to change some messages
Post by: greaves on April 23, 2014, 20:03:35 PM
thank you so much