Jump to content

Admin area - adding an order. Any hooks available?


mhatma

Recommended Posts

Hi guys,

We currently have some code that runs on AfterShoppingCartCheckout, so just before an order is added. We would like this same code to run when an admin creates an order in the admin panel.

I can't see a hook available for this - the closest one is AcceptOrder but this doesn't fit what we need.

Any ideas? Thanks!

Link to comment
Share on other sites

Without knowing what you're doing, we can only speculate really.

if doing this after the order is accepted won't work, then you may want to use PendingOrder instead. However, this is going to be triggered before the checkout, or it should

Alternatively, you could use some php magic and call  AddInvoicePayment . However, you'll have to query the order table for that specific invoice, make sure that it should be doing what you're supposed to.

AddInvoicePayment will trigger whether the admin creates the order or not, and PendingOrder should always trigger whan an order is 'Pending'.

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