Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Hook Info Needed For Post Order Status Change Rate Topic   - - - - -

  • fleaffair
  • Senior Member
  • Members
  • Join Date: 11-Jun 14
  • 537 posts

Posted 29 July 2017 - 01:52 PM #1

Is there any hook which we can use to run some php code post an order status has changed e.g. Shipped to Delivered.


We want that the code should run on once the status of order has changed.

Warm Regards,
Admin | MVE: 4.2.4

  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11358 posts

Posted 29 July 2017 - 07:05 PM #2

Sure, take a look at the 'fn_change_order_status() function in fn.cart.php and use the 'change_order_status' hook.

Note that this is probably the most common hook used in cs-cart so be wary and cautious of the data you encounter or insert.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.