diff --git a/lib/WebGUI/Asset/Sku/Product.pm b/lib/WebGUI/Asset/Sku/Product.pm index 560999728..24ea8ab1c 100644 --- a/lib/WebGUI/Asset/Sku/Product.pm +++ b/lib/WebGUI/Asset/Sku/Product.pm @@ -389,6 +389,19 @@ sub getPrice { return $self->getOptions->{price}; } +#------------------------------------------------------------------- + +=head2 getQuantityAvailable ( ) + +Returns the amount of a variant that are available. + +=cut + +sub getQuantityAvailable { + my $self = shift; + return $self->getOptions->{quantity}; +} + #------------------------------------------------------------------- sub getThumbnailUrl { my $self = shift;