Don't show intermediate cart results

Also, move "Done:" display from users plugin to global messages
This commit is contained in:
Juerd Waalboer 2024-11-17 01:16:16 +01:00
parent 807d255b53
commit 5d8ff672f1
3 changed files with 9 additions and 9 deletions

View file

@ -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";
}