1
General Extensions / Re: Working on custom extension
« on: September 13, 2013, 01:27:48 AM »
New question. I am new to hooks so I am not sure how to use them. Assume I make my extension dependent on default_authorizeaim_net. I want to add note "Hello" to admin order page after the default_authorizeaim_net notes. They look like:
So I want to do this:
Will this work?
Quote
Authorization Code: 000000
AVS Response: P
Transaction ID: 0
Card Code Response: 252C77980EAA158C200EAC622BAF5F10
Cardholder Authentication Verification Response:
So I want to do this:
Quote
Authorization Code: 000000
AVS Response: P
Transaction ID: 0
Card Code Response: 252C77980EAA158C200EAC622BAF5F10
Cardholder Authentication Verification Response:
Hello
Will this work?
Quote
class Vitalmyth extends Extension {
public function afterDefaultAuthorizeNetAimsend() {
$this->model_checkout_order->update($this->session->data['order_id'], 1, 'Hello', FALSE);
}
}