Products imported by the Shelf do not have good URLs.

This commit is contained in:
Colin Kuskie 2008-11-24 22:19:06 +00:00
parent 7027178762
commit e2101ad8d2
2 changed files with 5 additions and 2 deletions

View file

@ -232,6 +232,7 @@ sub importProducts {
my $newProduct = $node->addChild({className => 'WebGUI::Asset::Sku::Product'});
$newProduct->update({
title => $newProduct->fixTitle($productRow{title}),
url => $newProduct->fixUrl($productRow{title}),
sku => $productRow{mastersku},
});
$newProduct->setCollateral('variantsJSON', 'variantId', 'new', \%productCollateral);