some fixes

This commit is contained in:
JT Smith 2008-02-28 01:04:14 +00:00
parent c9661496fe
commit 12d2ce6c16
2 changed files with 30 additions and 1 deletions

View file

@ -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 )