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:
parent
b338e660ea
commit
68db4f8e46
3 changed files with 19 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue