VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: superdre on August 01, 2012, 04:05:56 AM

Title: How to remove/modify checkout "Info: Message sent to [...]
Post by: superdre on August 01, 2012, 04:05:56 AM
Hi, can someone help where i can disable in Virtuemart 2.x the info messagge:

"Info: Message sent to.....

that shows when someone finish an order.
I could find the solution for virtuemart 1.x here: http://forum.virtuemart.net/index.php?topic=89371.0, but i couldn“t find any "ps_order.php" file (administrator/components/com_virtuemart/classes/ps_order.php)
y try to look for the code with PHiSearch with 0 result.
Any help?
Title: Re: How to remove/modify checkout "Info: Message sent to [...]
Post by: superdre on August 01, 2012, 04:43:09 AM
here i attach an image of the alert message.

[attachment cleanup by admin]
Title: Re: How to remove/modify checkout "Info: Message sent to [...]
Post by: ivus on August 02, 2012, 02:55:48 AM
Hi superdre,

Firstly, that topic you were reading was for VM1.1 which would explain why the files don't exist in your install.

Anyway...

site_root/administrator/components/com_virtuemart/model/orders.php @line 1155 comment/remove that line:



vmInfo( JText::_($string,false).' '.$order['details']['BT']->first_name.' '.$order['details']['BT']->last_name. ', '.$order['details']['BT']->email);



Not however that function line is used globally in the front end and the back end. So when you update the status of an order and want to notify the user, you won't see that notice anymore.

I hope this helps. ;D