Skip to content

Commit

Permalink
feat(Order): Add ability to override Order link
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Bentvelzen committed Jul 18, 2017
1 parent 5e55adf commit 82c2f43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/order/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,9 @@ public function SummaryOfTotal() {
public function Link() {
//get the account page and go to it
$account = DataObject::get_one('AccountPage');
return $account->Link()."order/$this->ID";
$link = $account->Link()."order/$this->ID";
$this->extend('updateLink', $link);
return $link;
}

/**
Expand Down

0 comments on commit 82c2f43

Please sign in to comment.