Hi there.
Joomla 2.5
Virtuemart 2.0.2
When a person is logged and does not accept the terms and conditions, an error is displayed on top of the cart page which states "please accept the ...", above that the heading is simply "info", my client would like to change that to "important Message". I have checked all the files, the language files, and even the database, but cannot find where this info is being pulled from.
(http://www.engenoxford.co.za/engen.jpg)
I can tell you that it has something to do with this:
if (empty($this->tosAccepted)) {
$userFieldsModel = VmModel::getModel('Userfields');
//$required = $userFieldsModel->getIfRequired('agreed');
$agreed = $userFieldsModel->getUserfield('agreed','name');
vmdebug('my new getUserfieldbyName',$agreed->default,$agreed->required);
if(!empty($agreed->required) and empty($agreed->default) and !empty($this->BT)){
$redirectMsg = null;// JText::_('COM_VIRTUEMART_CART_PLEASE_ACCEPT_TOS');
vmInfo('COM_VIRTUEMART_CART_PLEASE_ACCEPT_TOS','COM_VIRTUEMART_CART_PLEASE_ACCEPT_TOS');
return $this->redirecter('index.php?option=com_virtuemart&view=cart' , $redirectMsg);
} else if($agreed->default){
$this->tosAccepted = $agreed->default;
}
}
I just want to change "info" to important message"... Could it be so hard?
That is not in a language file but coded in administrator/com_virtuemart/helpers/config.php - in out of date versions I think the code was something like
$app ->enqueueMessage('Info: '.JText::_($publicdescr));
But info messages were removed/changed from VM2.0.22 - http://forum.virtuemart.net/index.php?topic=116463.msg392819#msg392819
Note that the version numbers you give are not only very old, but are known to be insecure.
http://virtuemart.net/news/list-all-news/446-important-security-release-vm-team-at-joomladay-germany
http://forum.virtuemart.net/index.php?topic=118683.0
Hi,
This is a really olb post, but The current version of Virtuemart is still giving the info message as described at the beginning of the post, I also checked the "Helper" file as suggested, and this does in fact have:
$app ->enqueueMessage('Info: '.JText:...........
in many different areas of the file, however this does not help me to change the output "Info" to "Important Message" as initially requested. I simply would like to know where to change this.
VM: 2.6.0
J: 2.5.19
Thank you