started on transaction management interface
finished merging new yui
This commit is contained in:
parent
728eccc3cb
commit
fb17e6375e
6 changed files with 231 additions and 17 deletions
|
|
@ -21,6 +21,7 @@ use WebGUI::Shop::Cart;
|
|||
use WebGUI::Shop::Pay;
|
||||
use WebGUI::Shop::Ship;
|
||||
use WebGUI::Shop::Tax;
|
||||
use WebGUI::Shop::Transaction;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
|
@ -173,6 +174,26 @@ sub www_tax {
|
|||
return $output;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_transaction ()
|
||||
|
||||
Hand off to the transaction system.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_transaction {
|
||||
my $session = shift;
|
||||
my $output = undef;
|
||||
my $method = "www_".$session->form->get("method");
|
||||
my $transaction = WebGUI::Shop::Transaction->create($session);
|
||||
if ($method ne "www_" && $transaction->can($method)) {
|
||||
$output = $transaction->$method();
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
|
||||
1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue