Add support for the original sku entry in the header.

This commit is contained in:
Colin Kuskie 2008-09-29 23:26:34 +00:00
parent 84f38558cf
commit a61bd107fa
3 changed files with 30 additions and 1 deletions

View file

@ -159,6 +159,7 @@ sub importProducts {
$headers = <$table>;
chomp $headers;
$headers =~ tr/\r//d;
$headers =~ s/\bsku\b/varSku/;
my @headers = WebGUI::Text::splitCSV($headers);
WebGUI::Error::InvalidFile->throw(error => qq{Bad header found in the CSV file}, brokenFile => $filePath)
unless (join(q{-}, sort @headers) eq 'mastersku-price-quantity-shortdescription-title-varSku-weight')