Add support for the original sku entry in the header.
This commit is contained in:
parent
84f38558cf
commit
a61bd107fa
3 changed files with 30 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue