some fixes
This commit is contained in:
parent
c9661496fe
commit
12d2ce6c16
2 changed files with 30 additions and 1 deletions
|
|
@ -210,6 +210,23 @@ sub remove {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 setQuantity ( quantity )
|
||||
|
||||
Sets quantity of this item in the cart.
|
||||
|
||||
=head3 quantity
|
||||
|
||||
The number to set the quantity to. Zero or less will remove the item from cart.
|
||||
|
||||
=cut
|
||||
|
||||
sub setQuantity {
|
||||
my ($self, $quantity) = @_;
|
||||
return $self->incrementQuantity($quantity - $self->get("quantity"));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 update ( properties )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue