cart done, moving on to cart item

This commit is contained in:
JT Smith 2008-02-25 22:56:47 +00:00
parent 640554ea14
commit a4391994a4
3 changed files with 232 additions and 12 deletions

View file

@ -67,7 +67,7 @@ A hash reference as generated by getOptions().
sub addToCart {
my ($self, $options) = @_;
$self->applyOptions($options);
my $cart = WebGUI::Shop::Cart->new($self->session);
my $cart = WebGUI::Shop::Cart->create($self->session);
my $cart->addItem($self, 1);
}