From 3ec94d50d85efb55d1b8e9a54e4f4e16a6912927 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 9 May 2008 23:02:44 +0000 Subject: [PATCH] begin adding inventory control overrides of parent class --- lib/WebGUI/Asset/Sku/Product.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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;