SUPER handling for Sku/*.pm
This commit is contained in:
parent
87b5eed18b
commit
593d02d68b
6 changed files with 34 additions and 34 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue