SUPER handling for Sku/*.pm

This commit is contained in:
Colin Kuskie 2010-04-08 16:23:04 -07:00
parent 87b5eed18b
commit 593d02d68b
6 changed files with 34 additions and 34 deletions

View file

@ -98,14 +98,14 @@ Checks to make sure there isn't already a coupon of this type in the cart.
=cut
sub addToCart {
my ($self, $options) = @_;
override addToCart => sub {
my ($self) = @_;
my $found = $self->hasCoupon();
unless ($found) {
$self->{_hasAddedToCart} = 1;
$self->SUPER::addToCart($options);
super();
}
}
};
#-------------------------------------------------------------------