Hello,
we are trying to put the script to disable sending the bill to Virtuemart as explained in your FAQ, but what about the string to replace is hosted on 2 points of shopfunctionsf.php files Virtuemart 3 at line 540 and 553. Carry the script :
if (! $ usedefault and isset ($ vars [ 'newOrderData'] [ 'customer_notified']) and $ vars [ 'newOrderData'] [ 'customer_notified'] == 1) {
$ user = self :: sendVmMail ($ view, $ recipient, $ noVendorMail);
vmdebug ( 'renderMail by overwrite');
} else {
$ order status ForShopperEmail =
VmConfig :: get ( 'email_os_s', array ( 'U', 'C', 'S', 'R', 'X'));
if (! is_array ($ orderstatusForShopperEmail)) $ orderstatusForShopperEmail = array ($ orderstatusForShopperEmail);
if (in_array ((string) $ vars [ 'Order Details'] [ 'details'] [ 'BT'] -> ORDER_STATUS, $ orderstatusForShopperEmail)) {$ user = self :: sendVmMail ($ view, $ recipient, $ noVendorMail) ; vmdebug ( 'renderMail by default');
} else {$ user = -1;
}
}
} Else {
$ user = self :: sendVmMail ($ view, $ recipient, $ noVendorMail);
I explained where and how to insert your string? Thank you.