Created
June 29, 2012 15:29
-
-
Save boxbilling/3018605 to your computer and use it in GitHub Desktop.
BoxBilling new event hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function onAfterAdminOrderActivate(Box_Event $event) | |
{ | |
$api = $event->getApiAdmin(); | |
$params = $event->getParameters(); | |
$order_id = $params['id']; | |
$order = $api->order_get(array('id'=>$order_id)); | |
$service = $api->order_service(array('id'=>$order_id)); | |
$product = $api->product_get(array('id'=>$order['product_id'])); | |
// do your stuff here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment