ChuckF Posted November 16, 2017 Share Posted November 16, 2017 This hook never fires when I first pay a new order ie the invoice that was created for the order. When I change to InvoicePaid hook it creates the log file so it is not a permissions issue. The OrderPaid hook is loading when I turn on hook activity logging but never fires add_hook("OrderPaid", 1, function ($vars) { file_put_contents('/home/clients/public/orderpaid.log', print_r($vars, 1)); return; }); // This InvoicePaid hook works add_hook("InvoicePaid", 1, function ($vars) { file_put_contents('/home/clients/public/invoicepaid.log', print_r($vars, 1)); return; }); Link to comment Share on other sites More sharing options...
ChuckF Posted November 16, 2017 Author Share Posted November 16, 2017 7 minutes ago, ChuckF said: This hook never fires when I first pay a new order ie the invoice that was created for the order. When I change to InvoicePaid hook it creates the log file so it is not a permissions issue. The OrderPaid hook is loading when I turn on hook activity logging but never fires I am creating a Domain order and we do not have auto registration turned on. This hook will do that eventually based on the some custom rules. add_hook("OrderPaid", 1, function ($vars) { file_put_contents('/home/clients/public/orderpaid.log', print_r($vars, 1)); return; }); // This InvoicePaid hook works add_hook("InvoicePaid", 1, function ($vars) { file_put_contents('/home/clients/public/invoicepaid.log', print_r($vars, 1)); return; }); Link to comment Share on other sites More sharing options...
ChuckF Posted November 16, 2017 Author Share Posted November 16, 2017 I am creating a Domain order and we do not have auto registration turned on. This hook will do that eventually based on the some custom rules. Link to comment Share on other sites More sharing options...
Recommended Posts