Don't show intermediate cart results
Also, move "Done:" display from users plugin to global messages
This commit is contained in:
parent
807d255b53
commit
5d8ff672f1
3 changed files with 9 additions and 9 deletions
|
@ -41,6 +41,14 @@ sub hook_cart_changed($class, $cart, @) {
|
|||
}
|
||||
}
|
||||
|
||||
sub hook_checkout($class, $cart, $user, $transaction_id, @) {
|
||||
if ($cart->changed) {
|
||||
say "Done:";
|
||||
$cart->display;
|
||||
}
|
||||
say "Transaction ID: $transaction_id";
|
||||
}
|
||||
|
||||
sub hook_abort($class, $cart, @) {
|
||||
say "\e[1;4mABORTING TRANSACTION.\e[0m";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue