Skip to content

Commit

Permalink
Update code generation to use beforeCompleteOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Dec 13, 2018
1 parent a70c3f5 commit 12112c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GiftVoucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function _registerEventHandlers()
Event::on(Sites::class, Sites::EVENT_AFTER_SAVE_SITE, [$this->getVoucherTypes(), 'afterSaveSiteHandler']);
Event::on(Sites::class, Sites::EVENT_AFTER_SAVE_SITE, [$this->getVouchers(), 'afterSaveSiteHandler']);
// Event::on(Order::class, Order::EVENT_AFTER_ORDER_PAID, [$this->getCodes(), 'handlePaidOrder']);
Event::on(Order::class, Order::EVENT_AFTER_COMPLETE_ORDER, [$this->getCodes(), 'handleCompletedOrder']);
Event::on(Order::class, Order::EVENT_BEFORE_COMPLETE_ORDER, [$this->getCodes(), 'handleCompletedOrder']);
}

private function _registerElementTypes()
Expand Down

0 comments on commit 12112c2

Please sign in to comment.