Hide "Enter username to pay/finish" when cart is emptied.
This commit is contained in:
parent
2575468cf3
commit
3f32f020c8
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ sub hook_plugin_fail {
|
|||
|
||||
sub hook_cart_changed {
|
||||
my ($class, $cart) = @_;
|
||||
$cart->size or return;
|
||||
$cart->display(" ");
|
||||
say "Enter username to pay/finish or 'abort' to abort.\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue