Jump to content

OrderPaid Hook not firing


ChuckF

Recommended Posts

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

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated