Fix getThumbnailUrl in the Product, which was called by the Shelf directly causing failures.

Fix getPrice in the Product, which returned undef until a variant was applied to it.
These two fixes fix the Shelf.
This commit is contained in:
Colin Kuskie 2008-06-19 23:12:04 +00:00
parent b338e660ea
commit 68db4f8e46
3 changed files with 19 additions and 5 deletions

View file

@ -112,8 +112,8 @@ sub view {
if (defined $asset) {
my $sku = $asset->get;
$sku->{url} = $asset->getUrl;
$sku->{thumbnailUrl} = $asset->getThumbnailUrl;
$sku->{price} = sprintf("%.2f", $asset->getPrice);
$sku->{thumbnailUrl} = $asset->getThumbnailUrl;
$sku->{price} = sprintf("%.2f", $asset->getPrice);
push @skus, $sku;
}
else {