I am using the Latest Virtuemart 3.0.4 and Joomla 3.3.6. My site is http://coronel.sopravista.pt
I keep getting this error when I Confirm order. Is not sent the email to the shop owner and customer.
But in the order backoffice appears recorded and when I change the status of the order, the customer is notified. The owner shop does not receive the email.
Versão PHP 5.3.28
comes from this
function handleStockAfterStatusChangedPerProduct($newState, $oldState,$tableOrderItems, $quantity) {
if($newState == $oldState) return;
// $StatutWhiteList = array('P','C','X','R','S','N');
$db = JFactory::getDBO();
$db->setQuery('SELECT * FROM `#__virtuemart_orderstates` ');
$StatutWhiteList = $db->loadAssocList('order_status_code');
// new product is statut N
$StatutWhiteList['N'] = Array ( 'order_status_id' => 0 , 'order_status_code' => 'N' , 'order_stock_handle' => 'A');
if(!array_key_exists($oldState,$StatutWhiteList) or !array_key_exists($newState,$StatutWhiteList)) {
vmError('The workflow for '.$newState.' or '.$oldState.' is unknown, take a look on model/orders function handleStockAfterStatusChanged','Can\'t process workflow, contact the shopowner. Status is '.$newState);
return ;
}
looks like either a state your trying to change to or from doesn't exist
Yes, but i still Is not sent the email to the shop owner and customer.
Any solutions ;-)
I repeat!
looks like either a state your trying to change to or from doesn't exist -- do they?????