make sure that commerce products with no variants still have a sku variant created for them with a title

This commit is contained in:
Colin Kuskie 2008-06-12 17:34:10 +00:00
parent ccf97b2736
commit 2189fa2580

View file

@ -1202,6 +1202,7 @@ sub mergeProductsWithCommerce {
$shortdesc .= sprintf('%s:%s,', $parameter, $value);
}
$shortdesc =~ s/,$//; ##tidy up and clip to 30 chars
$shortdesc = $productData->{title} unless $shortdesc;
$shortdesc = substr $shortdesc, 0, 30;
my $variant;