updated tests for sku and fixed problems
This commit is contained in:
parent
dbbc52d643
commit
3e6687ef7f
3 changed files with 40 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue