Hello Zak,
Got the problem now, yes, it was added in recent version of Virtuemart. There are 2 solutions, can either alter Virtuemart or AwoCoupon. Here they are.
For Virtuemart, we remove the message, but this means it will not show if a coupon is successfully added:
in www/components/com_virtuemart/helpers/cart.php, around line 695 is this
<?php
return JText::_('COM_VIRTUEMART_CART_COUPON_VALID');
?>
Change it to this
<?php
return '';
?>
Now for AwoCoupon solution, which strips out the message if there is an error
in www/components/com_awocoupon/helpers/vm_coupon.php, around line 273 is this
<?php
function return_false($key) {
?>
Right after that add this
<?php
// strip out Virtuemart successful message
$orig_messages = $messages = JFactory::getApplication()->getMessageQueue();
foreach($messages as $k=>$message) {
if($message['type']=='message' && $message['message']==JText::_('COM_VIRTUEMART_CART_COUPON_VALID')) {
unset($messages[$k]);
}
}
if($orig_messages != $messages) {
$session = JFactory::getSession();
$session->set('application.queue', empty($messages) ? null : $messages);
JFactory::getApplication()->set('_messageQueue',empty($messages) ? '' : $messages);
}
?>
That should do it.