move product import to shelf

This commit is contained in:
JT Smith 2008-07-12 21:40:27 +00:00
parent 3642628dc6
commit cc0105a9a4
9 changed files with 317 additions and 432 deletions

View file

@ -21,7 +21,6 @@ use WebGUI::Shop::AddressBook;
use WebGUI::Shop::Cart;
use WebGUI::Shop::Credit;
use WebGUI::Shop::Pay;
use WebGUI::Shop::Products;
use WebGUI::Shop::Ship;
use WebGUI::Shop::Tax;
use WebGUI::Shop::Transaction;
@ -190,28 +189,6 @@ sub www_pay {
#-------------------------------------------------------------------
=head2 www_products ()
Hand off to the tax system.
=cut
sub www_products {
my $session = shift;
my $output = undef;
my $method = "www_".$session->form->get("method");
my $products = WebGUI::Shop::Products->new($session);
if ($method ne "www_" && WebGUI::Shop::Products->can($method)) {
$output = $products->$method();
}
else {
WebGUI::Error::MethodNotFound->throw(error=>"Couldn't call non-existant method $method", method=>$method);
}
return $output;
}
#-------------------------------------------------------------------
=head2 www_ship ()
Hand off to the shipper.