News:

Looking for documentation? Take a look on our wiki

Main Menu

[solved]Virtuemart Order Emails Not Working

Started by vagu71, October 03, 2012, 20:20:18 PM

Previous topic - Next topic

foxlox

hi guys

did you solve? I do it:

in components/com_virtuemart/views/pluginresponse/pluginresponse/tmpl/default.php after JHTML::_('behavior.modal');

insert:
--------------------------------8<----------cut ----------------------
$order_id=$_GET['on'];
$query = 'select virtuemart_order_id from PREFISSOTABELLE_virtuemart_orders where order_number="'.$order_id.'"';
$db = JFactory::getDBO ();
$db->setQuery ($query);
$result=$db->loadObjectList();
$virtuemart_order_id=$result[0]->virtuemart_order_id;
$modelOrder = VmModel::getModel ('orders');
$order['order_status'] = 'C';
$order['virtuemart_order_id'] = $virtuemart_order_id;;
$order['customer_notified'] = 1;
$order['comments'] = "Pagamento ricevuto tramite PayPal per ordine ".$order_id;
$modelOrder->updateStatusForOneOrder($virtuemart_order_id, $order, true);
--------------------------------8<---------- end of cut ----------------------

ciao ciao

dropaway

Default Order Status to send email to vendor   - add Pending

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

alin

Same problem here.

I created a custom payment method with 0 fees and the email didn't work. As soon as I added some fees for the payment, the email worked.  ;D