updated tests for sku and fixed problems

This commit is contained in:
JT Smith 2008-03-19 22:00:58 +00:00
parent dbbc52d643
commit 3e6687ef7f
3 changed files with 40 additions and 5 deletions

View file

@ -2016,6 +2016,22 @@ sub processTemplate {
}
}
#-------------------------------------------------------------------
=head2 processStyle ( html )
Returns some HTML wrappered in a style. Should be overridden by subclasses, because this one actually doesn't do anything other than return the html back to you.
=head3 html
The content to wrap up.
=cut
sub processStyle {
my ($self, $output) = @_;
return $output;
}
#-------------------------------------------------------------------

View file

@ -17,7 +17,7 @@ package WebGUI::Asset::Sku;
use strict;
use Tie::IxHash;
use base 'WebGUI::Asset';
use WebGUI::Shop::Cart;
=head1 NAME
@ -159,7 +159,13 @@ sub definition {
#-------------------------------------------------------------------
=head2 getCart ( ) {
=head2 getCart ( )
Returns a reference to the current session's cart.
=cut
sub getCart {
my $self = shift;
return WebGUI::Shop::Cart->getCartBySession($self->session);
}